text: /*! For license information please see main.159f75d2.js.LICENSE.txt */
  !function(){var e={757:function(e,t,n){e.exports=n(727)},110:function(e,t,n){"use strict";var r=n(441),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=d(n);i&&i!==p&&e(t,i,r)}var o=c(n);f&&(o=o.concat(f(n)));for(var s=u(t),v=u(n),y=0;y<o.length;++y){var g=o[y];if(!a[g]&&(!r||!r[g])&&(!v||!v[g])&&(!s||!s[g])){var m=h(n,g);try{l(t,g,m)}catch(b){}}}}return t}},571:function(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},390:function(e){function t(e){this.message=e}t.prototype=new Error,t.prototype.name="InvalidCharacterError",e.exports="undefined"!==typeof window&&window.atob&&window.atob.bind(window)||function(e){var n=String(e).replace(/=+$/,"");if(n.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,a=0,o=0,s="";i=n.charAt(o++);~i&&(r=a%4?64*r+i:i,a++%4)?s+=String.fromCharCode(255&r>>(-2*a&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s}},180:function(e,t,n){var r=n(390);e.exports=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(n){return r(t)}}},513:function(e,t,n){"use strict";var r=n(180);function i(e){this.message=e}i.prototype=new Error,i.prototype.name="InvalidTokenError",e.exports=function(e,t){if("string"!==typeof e)throw new i("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(r(e.split(".")[n]))}catch(a){throw new i("Invalid token specified: "+a.message)}},e.exports.InvalidTokenError=i},725:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}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(i){return!1}}()?Object.assign:function(e,a){for(var o,s,u=i(e),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))n.call(o,c)&&(u[c]=o[c]);if(t){s=t(o);for(var f=0;f<s.length;f++)r.call(o,s[f])&&(u[s[f]]=o[s[f]])}}return u}},151:function(e,t,n){var r=n(571);e.exports=d,e.exports.parse=a,e.exports.compile=function(e,t){return s(a(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=h;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){for(var n,r=[],a=0,o=0,s="",c=t&&t.delimiter||"/";null!=(n=i.exec(e));){var f=n[0],h=n[1],d=n.index;if(s+=e.slice(o,d),o=d+f.length,h)s+=h[1];else{var p=e[o],v=n[2],y=n[3],g=n[4],m=n[5],b=n[6],x=n[7];s&&(r.push(s),s="");var k=null!=v&&null!=p&&p!==v,_="+"===b||"*"===b,w="?"===b||"*"===b,E=n[2]||c,S=g||m;r.push({name:y||a++,prefix:v||"",delimiter:E,optional:w,repeat:_,partial:k,asterisk:!!x,pattern:S?l(S):x?".*":"[^"+u(E)+"]+?"})}}return o<e.length&&(s+=e.substr(o)),s&&r.push(s),r}function o(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",f(t)));return function(t,i){for(var a="",s=t||{},u=(i||{}).pretty?o:encodeURIComponent,l=0;l<e.length;l++){var c=e[l];if("string"!==typeof c){var f,h=s[c.name];if(null==h){if(c.optional){c.partial&&(a+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(h)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var d=0;d<h.length;d++){if(f=u(h[d]),!n[l].test(f))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(f)+"`");a+=(0===d?c.prefix:c.delimiter)+f}}else{if(f=c.asterisk?encodeURI(h).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(h),!n[l].test(f))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+f+'"');a+=c.prefix+f}}else a+=c}return a}}function u(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 h(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,a=!1!==n.end,o="",s=0;s<e.length;s++){var l=e[s];if("string"===typeof l)o+=u(l);else{var h=u(l.prefix),d="(?:"+l.pattern+")";t.push(l),l.repeat&&(d+="(?:"+h+d+")*"),o+=d=l.optional?l.partial?h+"("+d+")?":"(?:"+h+"("+d+"))?":h+"("+d+")"}}var p=u(n.delimiter||"/"),v=o.slice(-p.length)===p;return i||(o=(v?o.slice(0,-p.length):o)+"(?:"+p+"(?=$))?"),o+=a?"$":i&&v?"":"(?="+p+"|$)",c(new RegExp("^"+o,f(n)),t)}function d(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=[],i=0;i<e.length;i++)r.push(d(e[i],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return h(a(e,n),t,n)}(e,t,n)}},888:function(e,t,n){"use strict";var r=n(47);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint: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:a,resetWarningCache:i};return n.PropTypes=n,n}},7:function(e,t,n){e.exports=n(888)()},47:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},463:function(e,t,n){"use strict";var r=n(791),i=n(725),a=n(296);function o(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(o(227));function s(e,t,n,r,i,a,o,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var u=!1,l=null,c=!1,f=null,h={onError:function(e){u=!0,l=e}};function d(e,t,n,r,i,a,o,c,f){u=!1,l=null,s.apply(h,arguments)}var p=null,v=null,y=null;function g(e,t,n){var r=e.type||"unknown-event";e.currentTarget=y(n),function(e,t,n,r,i,a,s,h,p){if(d.apply(this,arguments),u){if(!u)throw Error(o(198));var v=l;u=!1,l=null,c||(c=!0,f=v)}}(r,t,void 0,e),e.currentTarget=null}var m=null,b={};function x(){if(m)for(var e in b){var t=b[e],n=m.indexOf(e);if(!(-1<n))throw Error(o(96,e));if(!_[n]){if(!t.extractEvents)throw Error(o(97,e));for(var r in _[n]=t,n=t.eventTypes){var i=void 0,a=n[r],s=t,u=r;if(w.hasOwnProperty(u))throw Error(o(99,u));w[u]=a;var l=a.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&k(l[i],s,u);i=!0}else a.registrationName?(k(a.registrationName,s,u),i=!0):i=!1;if(!i)throw Error(o(98,r,e))}}}}function k(e,t,n){if(E[e])throw Error(o(100,e));E[e]=t,S[e]=t.eventTypes[n].dependencies}var _=[],w={},E={},S={};function T(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!b.hasOwnProperty(t)||b[t]!==r){if(b[t])throw Error(o(102,t));b[t]=r,n=!0}}n&&x()}var O=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),C=null,P=null,M=null;function D(e){if(e=v(e)){if("function"!==typeof C)throw Error(o(280));var t=e.stateNode;t&&(t=p(t),C(e.stateNode,e.type,t))}}function I(e){P?M?M.push(e):M=[e]:P=e}function A(){if(P){var e=P,t=M;if(M=P=null,D(e),t)for(e=0;e<t.length;e++)D(t[e])}}function N(e,t){return e(t)}function R(e,t,n,r,i){return e(t,n,r,i)}function L(){}var F=N,j=!1,V=!1;function z(){null===P&&null===M||(L(),A())}function B(e,t,n){if(V)return e(t,n);V=!0;try{return F(e,t,n)}finally{V=!1,z()}}var q=/^[: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]*$/,U=Object.prototype.hasOwnProperty,W={},Q={};function H(e,t,n,r,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a}var $={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){$[e]=new H(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];$[t]=new H(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){$[e]=new H(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){$[e]=new H(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){$[e]=new H(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){$[e]=new H(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){$[e]=new H(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){$[e]=new H(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){$[e]=new H(e,5,!1,e.toLowerCase(),null,!1)}));var Y=/[\-:]([a-z])/g;function K(e){return e[1].toUpperCase()}"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(Y,K);$[t]=new H(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Y,K);$[t]=new H(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Y,K);$[t]=new H(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){$[e]=new H(e,1,!1,e.toLowerCase(),null,!1)})),$.xlinkHref=new H("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){$[e]=new H(e,1,!1,e.toLowerCase(),null,!0)}));var G=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t,n,r){var i=$.hasOwnProperty(t)?$[t]:null;(null!==i?0===i.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,i,r)&&(n=null),r||null===i?function(e){return!!U.call(Q,e)||!U.call(W,e)&&(q.test(e)?Q[e]=!0:(W[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}G.hasOwnProperty("ReactCurrentDispatcher")||(G.ReactCurrentDispatcher={current:null}),G.hasOwnProperty("ReactCurrentBatchConfig")||(G.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,Z="function"===typeof Symbol&&Symbol.for,ee=Z?Symbol.for("react.element"):60103,te=Z?Symbol.for("react.portal"):60106,ne=Z?Symbol.for("react.fragment"):60107,re=Z?Symbol.for("react.strict_mode"):60108,ie=Z?Symbol.for("react.profiler"):60114,ae=Z?Symbol.for("react.provider"):60109,oe=Z?Symbol.for("react.context"):60110,se=Z?Symbol.for("react.concurrent_mode"):60111,ue=Z?Symbol.for("react.forward_ref"):60112,le=Z?Symbol.for("react.suspense"):60113,ce=Z?Symbol.for("react.suspense_list"):60120,fe=Z?Symbol.for("react.memo"):60115,he=Z?Symbol.for("react.lazy"):60116,de=Z?Symbol.for("react.block"):60121,pe="function"===typeof Symbol&&Symbol.iterator;function ve(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=pe&&e[pe]||e["@@iterator"])?e:null}function ye(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 ne:return"Fragment";case te:return"Portal";case ie:return"Profiler";case re:return"StrictMode";case le:return"Suspense";case ce:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case oe:return"Context.Consumer";case ae:return"Context.Provider";case ue:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case fe:return ye(e.type);case de:return ye(e.render);case he:if(e=1===e._status?e._result:null)return ye(e)}return null}function ge(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,a=ye(e.type);n=null,r&&(n=ye(r.type)),r=a,a="",i?a=" (at "+i.fileName.replace(J,"")+":"+i.lineNumber+")":n&&(a=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+a}t+=n,e=e.return}while(e);return t}function me(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function xe(e){e._valueTracker||(e._valueTracker=function(e){var t=be(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 i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.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 ke(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function _e(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function we(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=me(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 Ee(e,t){null!=(t=t.checked)&&X(e,"checked",t,!1)}function Se(e,t){Ee(e,t);var n=me(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,me(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Te(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&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ce(e,t){return e=i({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 Pe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+me(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Me(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function De(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:me(n)}}function Ie(e,t){var n=me(t.value),r=me(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 Ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Ne="http://www.w3.org/1999/xhtml",Re="http://www.w3.org/2000/svg";function Le(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 Fe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var je,Ve,ze=(Ve=function(e,t){if(e.namespaceURI!==Re||"innerHTML"in e)e.innerHTML=t;else{for((je=je||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=je.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 Be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function qe(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ue={animationend:qe("Animation","AnimationEnd"),animationiteration:qe("Animation","AnimationIteration"),animationstart:qe("Animation","AnimationStart"),transitionend:qe("Transition","TransitionEnd")},We={},Qe={};function He(e){if(We[e])return We[e];if(!Ue[e])return e;var t,n=Ue[e];for(t in n)if(n.hasOwnProperty(t)&&t in Qe)return We[e]=n[t];return e}O&&(Qe=document.createElement("div").style,"AnimationEvent"in window||(delete Ue.animationend.animation,delete Ue.animationiteration.animation,delete Ue.animationstart.animation),"TransitionEvent"in window||delete Ue.transitionend.transition);var $e=He("animationend"),Ye=He("animationiteration"),Ke=He("animationstart"),Ge=He("transitionend"),Xe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Je=new("function"===typeof WeakMap?WeakMap:Map);function Ze(e){var t=Je.get(e);return void 0===t&&(t=new Map,Je.set(e,t)),t}function et(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function tt(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 nt(e){if(et(e)!==e)throw Error(o(188))}function rt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=et(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return nt(i),e;if(a===r)return nt(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=a;break}if(u===r){s=!0,r=i,n=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,r=i;break}if(u===r){s=!0,r=a,n=i;break}u=u.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(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 it(e,t){if(null==t)throw Error(o(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function at(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function st(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)g(e,t[r],n[r]);else t&&g(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ut(e){if(null!==e&&(ot=it(ot,e)),e=ot,ot=null,e){if(at(e,st),ot)throw Error(o(95));if(c)throw e=f,c=!1,f=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ct(e){if(!O)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"===typeof t[e]),t}var ft=[];function ht(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ft.length&&ft.push(e)}function dt(e,t,n,r){if(ft.length){var i=ft.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function pt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Dn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=lt(e.nativeEvent);r=e.topLevelType;var a=e.nativeEvent,o=e.eventSystemFlags;0===n&&(o|=64);for(var s=null,u=0;u<_.length;u++){var l=_[u];l&&(l=l.extractEvents(r,t,a,i,o))&&(s=it(s,l))}ut(s)}}function vt(e,t,n){if(!n.has(e)){switch(e){case"scroll":Kt(t,"scroll",!0);break;case"focus":case"blur":Kt(t,"focus",!0),Kt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ct(e)&&Kt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Xe.indexOf(e)&&Yt(e,t)}n.set(e,null)}}var yt,gt,mt,bt=!1,xt=[],kt=null,_t=null,wt=null,Et=new Map,St=new Map,Tt=[],Ot="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ct="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Pt(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function Mt(e,t){switch(e){case"focus":case"blur":kt=null;break;case"dragenter":case"dragleave":_t=null;break;case"mouseover":case"mouseout":wt=null;break;case"pointerover":case"pointerout":Et.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":St.delete(t.pointerId)}}function Dt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=Pt(t,n,r,i,a),null!==t&&(null!==(t=In(t))&&gt(t)),e):(e.eventSystemFlags|=r,e)}function It(e){var t=Dn(e.target);if(null!==t){var n=et(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=tt(n)))return e.blockedOn=t,void a.unstable_runWithPriority(e.priority,(function(){mt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function At(e){if(null!==e.blockedOn)return!1;var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=In(t);return null!==n&&gt(n),e.blockedOn=t,!1}return!0}function Nt(e,t,n){At(e)&&n.delete(t)}function Rt(){for(bt=!1;0<xt.length;){var e=xt[0];if(null!==e.blockedOn){null!==(e=In(e.blockedOn))&&yt(e);break}var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:xt.shift()}null!==kt&&At(kt)&&(kt=null),null!==_t&&At(_t)&&(_t=null),null!==wt&&At(wt)&&(wt=null),Et.forEach(Nt),St.forEach(Nt)}function Lt(e,t){e.blockedOn===t&&(e.blockedOn=null,bt||(bt=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Rt)))}function Ft(e){function t(t){return Lt(t,e)}if(0<xt.length){Lt(xt[0],e);for(var n=1;n<xt.length;n++){var r=xt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==kt&&Lt(kt,e),null!==_t&&Lt(_t,e),null!==wt&&Lt(wt,e),Et.forEach(t),St.forEach(t),n=0;n<Tt.length;n++)(r=Tt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Tt.length&&null===(n=Tt[0]).blockedOn;)It(n),null===n.blockedOn&&Tt.shift()}var jt={},Vt=new Map,zt=new Map,Bt=["abort","abort",$e,"animationEnd",Ye,"animationIteration",Ke,"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",Ge,"transitionEnd","waiting","waiting"];function qt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],a="on"+(i[0].toUpperCase()+i.slice(1));a={phasedRegistrationNames:{bubbled:a,captured:a+"Capture"},dependencies:[r],eventPriority:t},zt.set(r,t),Vt.set(r,a),jt[i]=a}}qt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus 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),qt("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),qt(Bt,2);for(var Ut="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Wt=0;Wt<Ut.length;Wt++)zt.set(Ut[Wt],0);var Qt=a.unstable_UserBlockingPriority,Ht=a.unstable_runWithPriority,$t=!0;function Yt(e,t){Kt(t,e,!1)}function Kt(e,t,n){var r=zt.get(t);switch(void 0===r?2:r){case 0:r=Gt.bind(null,t,1,e);break;case 1:r=Xt.bind(null,t,1,e);break;default:r=Jt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Gt(e,t,n,r){j||L();var i=Jt,a=j;j=!0;try{R(i,e,t,n,r)}finally{(j=a)||z()}}function Xt(e,t,n,r){Ht(Qt,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){if($t)if(0<xt.length&&-1<Ot.indexOf(e))e=Pt(null,e,t,n,r),xt.push(e);else{var i=Zt(e,t,n,r);if(null===i)Mt(e,r);else if(-1<Ot.indexOf(e))e=Pt(i,e,t,n,r),xt.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return kt=Dt(kt,e,t,n,r,i),!0;case"dragenter":return _t=Dt(_t,e,t,n,r,i),!0;case"mouseover":return wt=Dt(wt,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Et.set(a,Dt(Et.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,St.set(a,Dt(St.get(a)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){Mt(e,r),e=dt(e,r,null,t);try{B(pt,e)}finally{ht(e)}}}}function Zt(e,t,n,r){if(null!==(n=Dn(n=lt(r)))){var i=et(n);if(null===i)n=null;else{var a=i.tag;if(13===a){if(null!==(n=tt(i)))return n;n=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=dt(e,r,n,t);try{B(pt,e)}finally{ht(e)}return null}var en={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},tn=["Webkit","ms","Moz","O"];function nn(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||en.hasOwnProperty(e)&&en[e]?(""+t).trim():t+"px"}function rn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=nn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(en).forEach((function(e){tn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),en[t]=en[e]}))}));var an=i({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 on(e,t){if(t){if(an[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62,""))}}function sn(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}}var un=Ne;function ln(e,t){var n=Ze(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=S[t];for(var r=0;r<t.length;r++)vt(t[r],e,n)}function cn(){}function fn(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 hn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dn(e,t){var n,r=hn(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=hn(r)}}function pn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function vn(){for(var e=window,t=fn();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=fn((e=t.contentWindow).document)}return t}function yn(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 gn="$?",mn="$!",bn=null,xn=null;function kn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function _n(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 wn="function"===typeof setTimeout?setTimeout:void 0,En="function"===typeof clearTimeout?clearTimeout:void 0;function Sn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Tn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||n===mn||n===gn){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var On=Math.random().toString(36).slice(2),Cn="__reactInternalInstance$"+On,Pn="__reactEventHandlers$"+On,Mn="__reactContainere$"+On;function Dn(e){var t=e[Cn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Mn]||n[Cn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Tn(e);null!==e;){if(n=e[Cn])return n;e=Tn(e)}return t}n=(e=n).parentNode}return null}function In(e){return!(e=e[Cn]||e[Mn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function An(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function Nn(e){return e[Pn]||null}function Rn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Ln(e,t){var n=e.stateNode;if(!n)return null;var r=p(n);if(!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(o(231,t,typeof n));return n}function Fn(e,t,n){(t=Ln(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=it(n._dispatchListeners,t),n._dispatchInstances=it(n._dispatchInstances,e))}function jn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Rn(t);for(t=n.length;0<t--;)Fn(n[t],"captured",e);for(t=0;t<n.length;t++)Fn(n[t],"bubbled",e)}}function Vn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Ln(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=it(n._dispatchListeners,t),n._dispatchInstances=it(n._dispatchInstances,e))}function zn(e){e&&e.dispatchConfig.registrationName&&Vn(e._targetInst,null,e)}function Bn(e){at(e,jn)}var qn=null,Un=null,Wn=null;function Qn(){if(Wn)return Wn;var e,t,n=Un,r=n.length,i="value"in qn?qn.value:qn.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return Wn=i.slice(e,1<t?1-t:void 0)}function Hn(){return!0}function $n(){return!1}function Yn(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Hn:$n,this.isPropagationStopped=$n,this}function Kn(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function Gn(e){if(!(e instanceof this))throw Error(o(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Xn(e){e.eventPool=[],e.getPooled=Kn,e.release=Gn}i(Yn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Hn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Hn)},persist:function(){this.isPersistent=Hn},isPersistent:$n,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=$n,this._dispatchInstances=this._dispatchListeners=null}}),Yn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Yn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var a=new t;return i(a,n.prototype),n.prototype=a,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Xn(n),n},Xn(Yn);var Jn=Yn.extend({data:null}),Zn=Yn.extend({data:null}),er=[9,13,27,32],tr=O&&"CompositionEvent"in window,nr=null;O&&"documentMode"in document&&(nr=document.documentMode);var rr=O&&"TextEvent"in window&&!nr,ir=O&&(!tr||nr&&8<nr&&11>=nr),ar=String.fromCharCode(32),or={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},sr=!1;function ur(e,t){switch(e){case"keyup":return-1!==er.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function lr(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var cr=!1;var fr={eventTypes:or,extractEvents:function(e,t,n,r){var i;if(tr)e:{switch(e){case"compositionstart":var a=or.compositionStart;break e;case"compositionend":a=or.compositionEnd;break e;case"compositionupdate":a=or.compositionUpdate;break e}a=void 0}else cr?ur(e,n)&&(a=or.compositionEnd):"keydown"===e&&229===n.keyCode&&(a=or.compositionStart);return a?(ir&&"ko"!==n.locale&&(cr||a!==or.compositionStart?a===or.compositionEnd&&cr&&(i=Qn()):(Un="value"in(qn=r)?qn.value:qn.textContent,cr=!0)),a=Jn.getPooled(a,t,n,r),i?a.data=i:null!==(i=lr(n))&&(a.data=i),Bn(a),i=a):i=null,(e=rr?function(e,t){switch(e){case"compositionend":return lr(t);case"keypress":return 32!==t.which?null:(sr=!0,ar);case"textInput":return(e=t.data)===ar&&sr?null:e;default:return null}}(e,n):function(e,t){if(cr)return"compositionend"===e||!tr&&ur(e,t)?(e=Qn(),Wn=Un=qn=null,cr=!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 ir&&"ko"!==t.locale?null:t.data}}(e,n))?((t=Zn.getPooled(or.beforeInput,t,n,r)).data=e,Bn(t)):t=null,null===i?t:null===t?i:[i,t]}},hr={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 dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!hr[e.type]:"textarea"===t}var pr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function vr(e,t,n){return(e=Yn.getPooled(pr.change,e,t,n)).type="change",I(n),Bn(e),e}var yr=null,gr=null;function mr(e){ut(e)}function br(e){if(ke(An(e)))return e}function xr(e,t){if("change"===e)return t}var kr=!1;function _r(){yr&&(yr.detachEvent("onpropertychange",wr),gr=yr=null)}function wr(e){if("value"===e.propertyName&&br(gr))if(e=vr(gr,e,lt(e)),j)ut(e);else{j=!0;try{N(mr,e)}finally{j=!1,z()}}}function Er(e,t,n){"focus"===e?(_r(),gr=n,(yr=t).attachEvent("onpropertychange",wr)):"blur"===e&&_r()}function Sr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return br(gr)}function Tr(e,t){if("click"===e)return br(t)}function Or(e,t){if("input"===e||"change"===e)return br(t)}O&&(kr=ct("input")&&(!document.documentMode||9<document.documentMode));var Cr={eventTypes:pr,_isInputEventSupported:kr,extractEvents:function(e,t,n,r){var i=t?An(t):window,a=i.nodeName&&i.nodeName.toLowerCase();if("select"===a||"input"===a&&"file"===i.type)var o=xr;else if(dr(i))if(kr)o=Or;else{o=Sr;var s=Er}else(a=i.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=Tr);if(o&&(o=o(e,t)))return vr(o,n,r);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Oe(i,"number",i.value)}},Pr=Yn.extend({view:null,detail:null}),Mr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Mr[e])&&!!t[e]}function Ir(){return Dr}var Ar=0,Nr=0,Rr=!1,Lr=!1,Fr=Pr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ir,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Ar;return Ar=e.screenX,Rr?"mousemove"===e.type?e.screenX-t:0:(Rr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Nr;return Nr=e.screenY,Lr?"mousemove"===e.type?e.screenY-t:0:(Lr=!0,0)}}),jr=Fr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Vr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},zr={eventTypes:Vr,extractEvents:function(e,t,n,r,i){var a="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(a&&0===(32&i)&&(n.relatedTarget||n.fromElement)||!o&&!a)return null;(a=r.window===r?r:(a=r.ownerDocument)?a.defaultView||a.parentWindow:window,o)?(o=t,null!==(t=(t=n.relatedTarget||n.toElement)?Dn(t):null)&&(t!==et(t)||5!==t.tag&&6!==t.tag)&&(t=null)):o=null;if(o===t)return null;if("mouseout"===e||"mouseover"===e)var s=Fr,u=Vr.mouseLeave,l=Vr.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=jr,u=Vr.pointerLeave,l=Vr.pointerEnter,c="pointer");if(e=null==o?a:An(o),a=null==t?a:An(t),(u=s.getPooled(u,o,n,r)).type=c+"leave",u.target=e,u.relatedTarget=a,(n=s.getPooled(l,t,n,r)).type=c+"enter",n.target=a,n.relatedTarget=e,c=t,(r=o)&&c)e:{for(l=c,o=0,e=s=r;e;e=Rn(e))o++;for(e=0,t=l;t;t=Rn(t))e++;for(;0<o-e;)s=Rn(s),o--;for(;0<e-o;)l=Rn(l),e--;for(;o--;){if(s===l||s===l.alternate)break e;s=Rn(s),l=Rn(l)}s=null}else s=null;for(l=s,s=[];r&&r!==l&&(null===(o=r.alternate)||o!==l);)s.push(r),r=Rn(r);for(r=[];c&&c!==l&&(null===(o=c.alternate)||o!==l);)r.push(c),c=Rn(c);for(c=0;c<s.length;c++)Vn(s[c],"bubbled",u);for(c=r.length;0<c--;)Vn(r[c],"captured",n);return 0===(64&i)?[u]:[u,n]}};var Br="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},qr=Object.prototype.hasOwnProperty;function Ur(e,t){if(Br(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(!qr.call(t,n[r])||!Br(e[n[r]],t[n[r]]))return!1;return!0}var Wr=O&&"documentMode"in document&&11>=document.documentMode,Qr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Hr=null,$r=null,Yr=null,Kr=!1;function Gr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Kr||null==Hr||Hr!==fn(n)?null:("selectionStart"in(n=Hr)&&yn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Yr&&Ur(Yr,n)?null:(Yr=n,(e=Yn.getPooled(Qr.select,$r,e,t)).type="select",e.target=Hr,Bn(e),e))}var Xr={eventTypes:Qr,extractEvents:function(e,t,n,r,i,a){if(!(a=!(i=a||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Ze(i),a=S.onSelect;for(var o=0;o<a.length;o++)if(!i.has(a[o])){i=!1;break e}i=!0}a=!i}if(a)return null;switch(i=t?An(t):window,e){case"focus":(dr(i)||"true"===i.contentEditable)&&(Hr=i,$r=t,Yr=null);break;case"blur":Yr=$r=Hr=null;break;case"mousedown":Kr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Kr=!1,Gr(n,r);case"selectionchange":if(Wr)break;case"keydown":case"keyup":return Gr(n,r)}return null}},Jr=Yn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Zr=Yn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ei=Pr.extend({relatedTarget:null});function ti(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}var ni={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ri={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"},ii=Pr.extend({key:function(e){if(e.key){var t=ni[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ti(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ri[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ir,charCode:function(e){return"keypress"===e.type?ti(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ti(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ai=Fr.extend({dataTransfer:null}),oi=Pr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ir}),si=Yn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ui=Fr.extend({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:null,deltaMode:null}),li={eventTypes:jt,extractEvents:function(e,t,n,r){var i=Vt.get(e);if(!i)return null;switch(e){case"keypress":if(0===ti(n))return null;case"keydown":case"keyup":e=ii;break;case"blur":case"focus":e=ei;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Fr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ai;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=oi;break;case $e:case Ye:case Ke:e=Jr;break;case Ge:e=si;break;case"scroll":e=Pr;break;case"wheel":e=ui;break;case"copy":case"cut":case"paste":e=Zr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=jr;break;default:e=Yn}return Bn(t=e.getPooled(i,t,n,r)),t}};if(m)throw Error(o(101));m=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),x(),p=Nn,v=In,y=An,T({SimpleEventPlugin:li,EnterLeaveEventPlugin:zr,ChangeEventPlugin:Cr,SelectEventPlugin:Xr,BeforeInputEventPlugin:fr});var ci=[],fi=-1;function hi(e){0>fi||(e.current=ci[fi],ci[fi]=null,fi--)}function di(e,t){fi++,ci[fi]=e.current,e.current=t}var pi={},vi={current:pi},yi={current:!1},gi=pi;function mi(e,t){var n=e.type.contextTypes;if(!n)return pi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function bi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function xi(){hi(yi),hi(vi)}function ki(e,t,n){if(vi.current!==pi)throw Error(o(168));di(vi,t),di(yi,n)}function _i(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,ye(t)||"Unknown",a));return i({},n,{},r)}function wi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pi,gi=vi.current,di(vi,e),di(yi,yi.current),!0}function Ei(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=_i(e,t,gi),r.__reactInternalMemoizedMergedChildContext=e,hi(yi),hi(vi),di(vi,e)):hi(yi),di(yi,n)}var Si=a.unstable_runWithPriority,Ti=a.unstable_scheduleCallback,Oi=a.unstable_cancelCallback,Ci=a.unstable_requestPaint,Pi=a.unstable_now,Mi=a.unstable_getCurrentPriorityLevel,Di=a.unstable_ImmediatePriority,Ii=a.unstable_UserBlockingPriority,Ai=a.unstable_NormalPriority,Ni=a.unstable_LowPriority,Ri=a.unstable_IdlePriority,Li={},Fi=a.unstable_shouldYield,ji=void 0!==Ci?Ci:function(){},Vi=null,zi=null,Bi=!1,qi=Pi(),Ui=1e4>qi?Pi:function(){return Pi()-qi};function Wi(){switch(Mi()){case Di:return 99;case Ii:return 98;case Ai:return 97;case Ni:return 96;case Ri:return 95;default:throw Error(o(332))}}function Qi(e){switch(e){case 99:return Di;case 98:return Ii;case 97:return Ai;case 96:return Ni;case 95:return Ri;default:throw Error(o(332))}}function Hi(e,t){return e=Qi(e),Si(e,t)}function $i(e,t,n){return e=Qi(e),Ti(e,t,n)}function Yi(e){return null===Vi?(Vi=[e],zi=Ti(Di,Gi)):Vi.push(e),Li}function Ki(){if(null!==zi){var e=zi;zi=null,Oi(e)}Gi()}function Gi(){if(!Bi&&null!==Vi){Bi=!0;var e=0;try{var t=Vi;Hi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Vi=null}catch(n){throw null!==Vi&&(Vi=Vi.slice(e+1)),Ti(Di,Ki),n}finally{Bi=!1}}}function Xi(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Ji(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Zi={current:null},ea=null,ta=null,na=null;function ra(){na=ta=ea=null}function ia(e){var t=Zi.current;hi(Zi),e.type._context._currentValue=t}function aa(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function oa(e,t){ea=e,na=ta=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(No=!0),e.firstContext=null)}function sa(e,t){if(na!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(na=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ta){if(null===ea)throw Error(o(308));ta=t,ea.dependencies={expirationTime:0,firstContext:t,responders:null}}else ta=ta.next=t;return e._currentValue}var ua=!1;function la(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ca(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function fa(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function ha(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 da(e,t){var n=e.alternate;null!==n&&ca(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function pa(e,t,n,r){var a=e.updateQueue;ua=!1;var o=a.baseQueue,s=a.shared.pending;if(null!==s){if(null!==o){var u=o.next;o.next=s.next,s.next=u}o=s,a.shared.pending=null,null!==(u=e.alternate)&&(null!==(u=u.updateQueue)&&(u.baseQueue=s))}if(null!==o){u=o.next;var l=a.baseState,c=0,f=null,h=null,d=null;if(null!==u)for(var p=u;;){if((s=p.expirationTime)<r){var v={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null};null===d?(h=d=v,f=l):d=d.next=v,s>c&&(c=s)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),du(s,p.suspenseConfig);e:{var y=e,g=p;switch(s=t,v=n,g.tag){case 1:if("function"===typeof(y=g.payload)){l=y.call(v,l,s);break e}l=y;break e;case 3:y.effectTag=-4097&y.effectTag|64;case 0:if(null===(s="function"===typeof(y=g.payload)?y.call(v,l,s):y)||void 0===s)break e;l=i({},l,s);break e;case 2:ua=!0}}null!==p.callback&&(e.effectTag|=32,null===(s=a.effects)?a.effects=[p]:s.push(p))}if(null===(p=p.next)||p===u){if(null===(s=a.shared.pending))break;p=o.next=s.next,s.next=u,a.baseQueue=o=s,a.shared.pending=null}}null===d?f=l:d.next=h,a.baseState=f,a.baseQueue=d,pu(c),e.expirationTime=c,e.memoizedState=l}}function va(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!==typeof r)throw Error(o(191,r));r.call(i)}}}var ya=G.ReactCurrentBatchConfig,ga=(new r.Component).refs;function ma(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var ba={isMounted:function(e){return!!(e=e._reactInternalFiber)&&et(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=eu(),i=ya.suspense;(i=fa(r=tu(r,e,i),i)).payload=t,void 0!==n&&null!==n&&(i.callback=n),ha(e,i),nu(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=eu(),i=ya.suspense;(i=fa(r=tu(r,e,i),i)).tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),ha(e,i),nu(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=eu(),r=ya.suspense;(r=fa(n=tu(n,e,r),r)).tag=2,void 0!==t&&null!==t&&(r.callback=t),ha(e,r),nu(e,n)}};function xa(e,t,n,r,i,a,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!Ur(n,r)||!Ur(i,a))}function ka(e,t,n){var r=!1,i=pi,a=t.contextType;return"object"===typeof a&&null!==a?a=sa(a):(i=bi(t)?gi:vi.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?mi(e,i):pi),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ba,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function _a(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&&ba.enqueueReplaceState(t,t.state,null)}function wa(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ga,la(e);var a=t.contextType;"object"===typeof a&&null!==a?i.context=sa(a):(a=bi(t)?gi:vi.current,i.context=mi(e,a)),pa(e,n,i,r),i.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(ma(e,t,a,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ba.enqueueReplaceState(i,i.state,null),pa(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.effectTag|=4)}var Ea=Array.isArray;function Sa(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(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===ga&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Ta(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Oa(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.effectTag=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 i(e,t){return(e=Nu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Fu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=Sa(e,t,n),r.return=e,r):((r=Ru(n.type,n.key,n.props,null,e.mode,r)).ref=Sa(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=ju(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Lu(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Fu(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Ru(t.type,t.key,t.props,null,e.mode,n)).ref=Sa(e,null,t),n.return=e,n;case te:return(t=ju(t,e.mode,n)).return=e,t}if(Ea(t)||ve(t))return(t=Lu(t,e.mode,n,null)).return=e,t;Ta(e,t)}return null}function d(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===i?n.type===ne?f(e,t,n.props.children,r,i):l(e,t,n,r):null;case te:return n.key===i?c(e,t,n,r):null}if(Ea(n)||ve(n))return null!==i?null:f(e,t,n,r,null);Ta(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?f(t,e,r.props.children,i,r.key):l(t,e,r,i);case te:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(Ea(r)||ve(r))return f(t,e=e.get(n)||null,r,i,null);Ta(t,r)}return null}function v(i,o,s,u){for(var l=null,c=null,f=o,v=o=0,y=null;null!==f&&v<s.length;v++){f.index>v?(y=f,f=null):y=f.sibling;var g=d(i,f,s[v],u);if(null===g){null===f&&(f=y);break}e&&f&&null===g.alternate&&t(i,f),o=a(g,o,v),null===c?l=g:c.sibling=g,c=g,f=y}if(v===s.length)return n(i,f),l;if(null===f){for(;v<s.length;v++)null!==(f=h(i,s[v],u))&&(o=a(f,o,v),null===c?l=f:c.sibling=f,c=f);return l}for(f=r(i,f);v<s.length;v++)null!==(y=p(f,i,v,s[v],u))&&(e&&null!==y.alternate&&f.delete(null===y.key?v:y.key),o=a(y,o,v),null===c?l=y:c.sibling=y,c=y);return e&&f.forEach((function(e){return t(i,e)})),l}function y(i,s,u,l){var c=ve(u);if("function"!==typeof c)throw Error(o(150));if(null==(u=c.call(u)))throw Error(o(151));for(var f=c=null,v=s,y=s=0,g=null,m=u.next();null!==v&&!m.done;y++,m=u.next()){v.index>y?(g=v,v=null):g=v.sibling;var b=d(i,v,m.value,l);if(null===b){null===v&&(v=g);break}e&&v&&null===b.alternate&&t(i,v),s=a(b,s,y),null===f?c=b:f.sibling=b,f=b,v=g}if(m.done)return n(i,v),c;if(null===v){for(;!m.done;y++,m=u.next())null!==(m=h(i,m.value,l))&&(s=a(m,s,y),null===f?c=m:f.sibling=m,f=m);return c}for(v=r(i,v);!m.done;y++,m=u.next())null!==(m=p(v,i,y,m.value,l))&&(e&&null!==m.alternate&&v.delete(null===m.key?y:m.key),s=a(m,s,y),null===f?c=m:f.sibling=m,f=m);return e&&v.forEach((function(e){return t(i,e)})),c}return function(e,r,a,u){var l="object"===typeof a&&null!==a&&a.type===ne&&null===a.key;l&&(a=a.props.children);var c="object"===typeof a&&null!==a;if(c)switch(a.$$typeof){case ee:e:{for(c=a.key,l=r;null!==l;){if(l.key===c){if(7===l.tag){if(a.type===ne){n(e,l.sibling),(r=i(l,a.props.children)).return=e,e=r;break e}}else if(l.elementType===a.type){n(e,l.sibling),(r=i(l,a.props)).ref=Sa(e,l,a),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}a.type===ne?((r=Lu(a.props.children,e.mode,u,a.key)).return=e,e=r):((u=Ru(a.type,a.key,a.props,null,e.mode,u)).ref=Sa(e,r,a),u.return=e,e=u)}return s(e);case te:e:{for(l=a.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=ju(a,e.mode,u)).return=e,e=r}return s(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=Fu(a,e.mode,u)).return=e,e=r),s(e);if(Ea(a))return v(e,r,a,u);if(ve(a))return y(e,r,a,u);if(c&&Ta(e,a),"undefined"===typeof a&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(o(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Ca=Oa(!0),Pa=Oa(!1),Ma={},Da={current:Ma},Ia={current:Ma},Aa={current:Ma};function Na(e){if(e===Ma)throw Error(o(174));return e}function Ra(e,t){switch(di(Aa,t),di(Ia,e),di(Da,Ma),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fe(null,"");break;default:t=Fe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}hi(Da),di(Da,t)}function La(){hi(Da),hi(Ia),hi(Aa)}function Fa(e){Na(Aa.current);var t=Na(Da.current),n=Fe(t,e.type);t!==n&&(di(Ia,e),di(Da,n))}function ja(e){Ia.current===e&&(hi(Da),hi(Ia))}var Va={current:0};function za(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===gn||n.data===mn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))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}function Ba(e,t){return{responder:e,props:t}}var qa=G.ReactCurrentDispatcher,Ua=G.ReactCurrentBatchConfig,Wa=0,Qa=null,Ha=null,$a=null,Ya=!1;function Ka(){throw Error(o(321))}function Ga(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Br(e[n],t[n]))return!1;return!0}function Xa(e,t,n,r,i,a){if(Wa=a,Qa=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,qa.current=null===e||null===e.memoizedState?ko:_o,e=n(r,i),t.expirationTime===Wa){a=0;do{if(t.expirationTime=0,!(25>a))throw Error(o(301));a+=1,$a=Ha=null,t.updateQueue=null,qa.current=wo,e=n(r,i)}while(t.expirationTime===Wa)}if(qa.current=xo,t=null!==Ha&&null!==Ha.next,Wa=0,$a=Ha=Qa=null,Ya=!1,t)throw Error(o(300));return e}function Ja(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===$a?Qa.memoizedState=$a=e:$a=$a.next=e,$a}function Za(){if(null===Ha){var e=Qa.alternate;e=null!==e?e.memoizedState:null}else e=Ha.next;var t=null===$a?Qa.memoizedState:$a.next;if(null!==t)$a=t,Ha=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Ha=e).memoizedState,baseState:Ha.baseState,baseQueue:Ha.baseQueue,queue:Ha.queue,next:null},null===$a?Qa.memoizedState=$a=e:$a=$a.next=e}return $a}function eo(e,t){return"function"===typeof t?t(e):t}function to(e){var t=Za(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Ha,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=s=a=null,l=i;do{var c=l.expirationTime;if(c<Wa){var f={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(s=u=f,a=r):u=u.next=f,c>Qa.expirationTime&&(Qa.expirationTime=c,pu(c))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),du(c,l.suspenseConfig),r=l.eagerReducer===e?l.eagerState:e(r,l.action);l=l.next}while(null!==l&&l!==i);null===u?a=r:u.next=s,Br(r,t.memoizedState)||(No=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function no(e){var t=Za(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);Br(a,t.memoizedState)||(No=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ro(e){var t=Ja();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:eo,lastRenderedState:e}).dispatch=bo.bind(null,Qa,e),[t.memoizedState,e]}function io(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Qa.updateQueue)?(t={lastEffect:null},Qa.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 ao(){return Za().memoizedState}function oo(e,t,n,r){var i=Ja();Qa.effectTag|=e,i.memoizedState=io(1|t,n,void 0,void 0===r?null:r)}function so(e,t,n,r){var i=Za();r=void 0===r?null:r;var a=void 0;if(null!==Ha){var o=Ha.memoizedState;if(a=o.destroy,null!==r&&Ga(r,o.deps))return void io(t,n,a,r)}Qa.effectTag|=e,i.memoizedState=io(1|t,n,a,r)}function uo(e,t){return oo(516,4,e,t)}function lo(e,t){return so(516,4,e,t)}function co(e,t){return so(4,2,e,t)}function fo(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 ho(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,so(4,2,fo.bind(null,t,e),n)}function po(){}function vo(e,t){return Ja().memoizedState=[e,void 0===t?null:t],e}function yo(e,t){var n=Za();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ga(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function go(e,t){var n=Za();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ga(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function mo(e,t,n){var r=Wi();Hi(98>r?98:r,(function(){e(!0)})),Hi(97<r?97:r,(function(){var r=Ua.suspense;Ua.suspense=void 0===t?null:t;try{e(!1),n()}finally{Ua.suspense=r}}))}function bo(e,t,n){var r=eu(),i=ya.suspense;i={expirationTime:r=tu(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===Qa||null!==a&&a===Qa)Ya=!0,i.expirationTime=Wa,Qa.expirationTime=Wa;else{if(0===e.expirationTime&&(null===a||0===a.expirationTime)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=a(o,n);if(i.eagerReducer=a,i.eagerState=s,Br(s,o))return}catch(u){}nu(e,r)}}var xo={readContext:sa,useCallback:Ka,useContext:Ka,useEffect:Ka,useImperativeHandle:Ka,useLayoutEffect:Ka,useMemo:Ka,useReducer:Ka,useRef:Ka,useState:Ka,useDebugValue:Ka,useResponder:Ka,useDeferredValue:Ka,useTransition:Ka},ko={readContext:sa,useCallback:vo,useContext:sa,useEffect:uo,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,oo(4,2,fo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oo(4,2,e,t)},useMemo:function(e,t){var n=Ja();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ja();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=bo.bind(null,Qa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ja().memoizedState=e},useState:ro,useDebugValue:po,useResponder:Ba,useDeferredValue:function(e,t){var n=ro(e),r=n[0],i=n[1];return uo((function(){var n=Ua.suspense;Ua.suspense=void 0===t?null:t;try{i(e)}finally{Ua.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ro(!1),n=t[0];return t=t[1],[vo(mo.bind(null,t,e),[t,e]),n]}},_o={readContext:sa,useCallback:yo,useContext:sa,useEffect:lo,useImperativeHandle:ho,useLayoutEffect:co,useMemo:go,useReducer:to,useRef:ao,useState:function(){return to(eo)},useDebugValue:po,useResponder:Ba,useDeferredValue:function(e,t){var n=to(eo),r=n[0],i=n[1];return lo((function(){var n=Ua.suspense;Ua.suspense=void 0===t?null:t;try{i(e)}finally{Ua.suspense=n}}),[e,t]),r},useTransition:function(e){var t=to(eo),n=t[0];return t=t[1],[yo(mo.bind(null,t,e),[t,e]),n]}},wo={readContext:sa,useCallback:yo,useContext:sa,useEffect:lo,useImperativeHandle:ho,useLayoutEffect:co,useMemo:go,useReducer:no,useRef:ao,useState:function(){return no(eo)},useDebugValue:po,useResponder:Ba,useDeferredValue:function(e,t){var n=no(eo),r=n[0],i=n[1];return lo((function(){var n=Ua.suspense;Ua.suspense=void 0===t?null:t;try{i(e)}finally{Ua.suspense=n}}),[e,t]),r},useTransition:function(e){var t=no(eo),n=t[0];return t=t[1],[yo(mo.bind(null,t,e),[t,e]),n]}},Eo=null,So=null,To=!1;function Oo(e,t){var n=Iu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Co(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 Po(e){if(To){var t=So;if(t){var n=t;if(!Co(e,t)){if(!(t=Sn(n.nextSibling))||!Co(e,t))return e.effectTag=-1025&e.effectTag|2,To=!1,void(Eo=e);Oo(Eo,n)}Eo=e,So=Sn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,To=!1,Eo=e}}function Mo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Eo=e}function Do(e){if(e!==Eo)return!1;if(!To)return Mo(e),To=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!_n(t,e.memoizedProps))for(t=So;t;)Oo(e,t),t=Sn(t.nextSibling);if(Mo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){So=Sn(e.nextSibling);break e}t--}else"$"!==n&&n!==mn&&n!==gn||t++}e=e.nextSibling}So=null}}else So=Eo?Sn(e.stateNode.nextSibling):null;return!0}function Io(){So=Eo=null,To=!1}var Ao=G.ReactCurrentOwner,No=!1;function Ro(e,t,n,r){t.child=null===e?Pa(t,null,n,r):Ca(t,e.child,n,r)}function Lo(e,t,n,r,i){n=n.render;var a=t.ref;return oa(t,i),r=Xa(e,t,n,r,a,i),null===e||No?(t.effectTag|=1,Ro(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Jo(e,t,i))}function Fo(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!==typeof o||Au(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ru(n.type,null,r,null,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,jo(e,t,o,r,i,a))}return o=e.child,i<a&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:Ur)(i,r)&&e.ref===t.ref)?Jo(e,t,a):(t.effectTag|=1,(e=Nu(o,r)).ref=t.ref,e.return=t,t.child=e)}function jo(e,t,n,r,i,a){return null!==e&&Ur(e.memoizedProps,r)&&e.ref===t.ref&&(No=!1,i<a)?(t.expirationTime=e.expirationTime,Jo(e,t,a)):zo(e,t,n,r,a)}function Vo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function zo(e,t,n,r,i){var a=bi(n)?gi:vi.current;return a=mi(t,a),oa(t,i),n=Xa(e,t,n,r,a,i),null===e||No?(t.effectTag|=1,Ro(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Jo(e,t,i))}function Bo(e,t,n,r,i){if(bi(n)){var a=!0;wi(t)}else a=!1;if(oa(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),ka(t,n,r),wa(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,l=n.contextType;"object"===typeof l&&null!==l?l=sa(l):l=mi(t,l=bi(n)?gi:vi.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof o.getSnapshotBeforeUpdate;f||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==r||u!==l)&&_a(t,o,r,l),ua=!1;var h=t.memoizedState;o.state=h,pa(t,r,o,i),u=t.memoizedState,s!==r||h!==u||yi.current||ua?("function"===typeof c&&(ma(t,n,c,r),u=t.memoizedState),(s=ua||xa(t,n,s,r,h,u,l))?(f||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.effectTag|=4)):("function"===typeof o.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=l,r=s):("function"===typeof o.componentDidMount&&(t.effectTag|=4),r=!1)}else o=t.stateNode,ca(e,t),s=t.memoizedProps,o.props=t.type===t.elementType?s:Ji(t.type,s),u=o.context,"object"===typeof(l=n.contextType)&&null!==l?l=sa(l):l=mi(t,l=bi(n)?gi:vi.current),(f="function"===typeof(c=n.getDerivedStateFromProps)||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==r||u!==l)&&_a(t,o,r,l),ua=!1,u=t.memoizedState,o.state=u,pa(t,r,o,i),h=t.memoizedState,s!==r||u!==h||yi.current||ua?("function"===typeof c&&(ma(t,n,c,r),h=t.memoizedState),(c=ua||xa(t,n,s,r,u,h,l))?(f||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,l),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof o.componentDidUpdate&&(t.effectTag|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=l,r=c):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return qo(e,t,n,r,a,i)}function qo(e,t,n,r,i,a){Vo(e,t);var o=0!==(64&t.effectTag);if(!r&&!o)return i&&Ei(t,n,!1),Jo(e,t,a);r=t.stateNode,Ao.current=t;var s=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&o?(t.child=Ca(t,e.child,null,a),t.child=Ca(t,null,s,a)):Ro(e,t,s,a),t.memoizedState=r.state,i&&Ei(t,n,!0),t.child}function Uo(e){var t=e.stateNode;t.pendingContext?ki(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ki(0,t.context,!1),Ra(e,t.containerInfo)}var Wo,Qo,Ho,$o={dehydrated:null,retryTime:0};function Yo(e,t,n){var r,i=t.mode,a=t.pendingProps,o=Va.current,s=!1;if((r=0!==(64&t.effectTag))||(r=0!==(2&o)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(o|=1),di(Va,1&o),null===e){if(void 0!==a.fallback&&Po(t),s){if(s=a.fallback,(a=Lu(null,i,0,null)).return=t,0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,a.child=e;null!==e;)e.return=a,e=e.sibling;return(n=Lu(s,i,n,null)).return=t,a.sibling=n,t.memoizedState=$o,t.child=a,n}return i=a.children,t.memoizedState=null,t.child=Pa(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(a=a.fallback,(n=Nu(e,e.pendingProps)).return=t,0===(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=Nu(i,a)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=$o,t.child=n,i}return n=Ca(t,e.child,a.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=a.fallback,(a=Lu(null,i,0,null)).return=t,a.child=e,null!==e&&(e.return=a),0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,a.child=e;null!==e;)e.return=a,e=e.sibling;return(n=Lu(s,i,n,null)).return=t,a.sibling=n,n.effectTag|=2,a.childExpirationTime=0,t.memoizedState=$o,t.child=a,n}return t.memoizedState=null,t.child=Ca(t,e,a.children,n)}function Ko(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),aa(e.return,t)}function Go(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailExpiration=0,o.tailMode=i,o.lastEffect=a)}function Xo(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Ro(e,t,r.children,n),0!==(2&(r=Va.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!==(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ko(e,n);else if(19===e.tag)Ko(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(di(Va,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===za(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Go(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===za(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Go(t,!0,n,null,a,t.lastEffect);break;case"together":Go(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Jo(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&pu(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Nu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Nu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Zo(e,t){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 es(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 bi(t.type)&&xi(),null;case 3:return La(),hi(yi),hi(vi),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Do(t)||(t.effectTag|=4),null;case 5:ja(t),n=Na(Aa.current);var a=t.type;if(null!==e&&null!=t.stateNode)Qo(e,t,a,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Na(Da.current),Do(t)){r=t.stateNode,a=t.type;var s=t.memoizedProps;switch(r[Cn]=t,r[Pn]=s,a){case"iframe":case"object":case"embed":Yt("load",r);break;case"video":case"audio":for(e=0;e<Xe.length;e++)Yt(Xe[e],r);break;case"source":Yt("error",r);break;case"img":case"image":case"link":Yt("error",r),Yt("load",r);break;case"form":Yt("reset",r),Yt("submit",r);break;case"details":Yt("toggle",r);break;case"input":we(r,s),Yt("invalid",r),ln(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Yt("invalid",r),ln(n,"onChange");break;case"textarea":De(r,s),Yt("invalid",r),ln(n,"onChange")}for(var u in on(a,s),e=null,s)if(s.hasOwnProperty(u)){var l=s[u];"children"===u?"string"===typeof l?r.textContent!==l&&(e=["children",l]):"number"===typeof l&&r.textContent!==""+l&&(e=["children",""+l]):E.hasOwnProperty(u)&&null!=l&&ln(n,u)}switch(a){case"input":xe(r),Te(r,s,!0);break;case"textarea":xe(r),Ae(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=cn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(u=9===n.nodeType?n:n.ownerDocument,e===un&&(e=Le(a)),e===un?"script"===a?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(a,{is:r.is}):(e=u.createElement(a),"select"===a&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,a),e[Cn]=t,e[Pn]=r,Wo(e,t),t.stateNode=e,u=sn(a,r),a){case"iframe":case"object":case"embed":Yt("load",e),l=r;break;case"video":case"audio":for(l=0;l<Xe.length;l++)Yt(Xe[l],e);l=r;break;case"source":Yt("error",e),l=r;break;case"img":case"image":case"link":Yt("error",e),Yt("load",e),l=r;break;case"form":Yt("reset",e),Yt("submit",e),l=r;break;case"details":Yt("toggle",e),l=r;break;case"input":we(e,r),l=_e(e,r),Yt("invalid",e),ln(n,"onChange");break;case"option":l=Ce(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=i({},r,{value:void 0}),Yt("invalid",e),ln(n,"onChange");break;case"textarea":De(e,r),l=Me(e,r),Yt("invalid",e),ln(n,"onChange");break;default:l=r}on(a,l);var c=l;for(s in c)if(c.hasOwnProperty(s)){var f=c[s];"style"===s?rn(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&ze(e,f):"children"===s?"string"===typeof f?("textarea"!==a||""!==f)&&Be(e,f):"number"===typeof f&&Be(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(E.hasOwnProperty(s)?null!=f&&ln(n,s):null!=f&&X(e,s,f,u))}switch(a){case"input":xe(e),Te(e,r,!1);break;case"textarea":xe(e),Ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+me(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Pe(e,!!r.multiple,n,!1):null!=r.defaultValue&&Pe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof l.onClick&&(e.onclick=cn)}kn(a,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ho(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));n=Na(Aa.current),Na(Da.current),Do(t)?(n=t.stateNode,r=t.memoizedProps,n[Cn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Cn]=t,t.stateNode=n)}return null;case 13:return hi(Va),r=t.memoizedState,0!==(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Do(t):(r=null!==(a=e.memoizedState),n||null===a||null!==(a=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=a,a.nextEffect=s):(t.firstEffect=t.lastEffect=a,a.nextEffect=null),a.effectTag=8)),n&&!r&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Va.current)?Rs===Cs&&(Rs=Ps):(Rs!==Cs&&Rs!==Ps||(Rs=Ms),0!==zs&&null!==Is&&(Bu(Is,Ns),qu(Is,zs)))),(n||r)&&(t.effectTag|=4),null);case 4:return La(),null;case 10:return ia(t),null;case 19:if(hi(Va),null===(r=t.memoizedState))return null;if(a=0!==(64&t.effectTag),null===(s=r.rendering)){if(a)Zo(r,!1);else if(Rs!==Cs||null!==e&&0!==(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=za(s))){for(t.effectTag|=64,Zo(r,!1),null!==(a=e.updateQueue)&&(t.updateQueue=a,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(a=r).effectTag&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(e=a.alternate)?(a.childExpirationTime=0,a.expirationTime=s,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null):(a.childExpirationTime=e.childExpirationTime,a.expirationTime=e.expirationTime,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,s=e.dependencies,a.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return di(Va,1&Va.current|2),t.child}s=s.sibling}}else{if(!a)if(null!==(e=za(s))){if(t.effectTag|=64,a=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Zo(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ui()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,a=!0,Zo(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Ui()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ui(),n.sibling=null,t=Va.current,di(Va,a?1&t|2:1&t),n):null}throw Error(o(156,t.tag))}function ts(e){switch(e.tag){case 1:bi(e.type)&&xi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(La(),hi(yi),hi(vi),0!==(64&(t=e.effectTag)))throw Error(o(285));return e.effectTag=-4097&t|64,e;case 5:return ja(e),null;case 13:return hi(Va),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return hi(Va),null;case 4:return La(),null;case 10:return ia(e),null;default:return null}}function ns(e,t){return{value:e,source:t,stack:ge(t)}}Wo=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}},Qo=function(e,t,n,r,a){var o=e.memoizedProps;if(o!==r){var s,u,l=t.stateNode;switch(Na(Da.current),e=null,n){case"input":o=_e(l,o),r=_e(l,r),e=[];break;case"option":o=Ce(l,o),r=Ce(l,r),e=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":o=Me(l,o),r=Me(l,r),e=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(l.onclick=cn)}for(s in on(n,r),n=null,o)if(!r.hasOwnProperty(s)&&o.hasOwnProperty(s)&&null!=o[s])if("style"===s)for(u in l=o[s])l.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(E.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var c=r[s];if(l=null!=o?o[s]:void 0,r.hasOwnProperty(s)&&c!==l&&(null!=c||null!=l))if("style"===s)if(l){for(u in l)!l.hasOwnProperty(u)||c&&c.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in c)c.hasOwnProperty(u)&&l[u]!==c[u]&&(n||(n={}),n[u]=c[u])}else n||(e||(e=[]),e.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(e=e||[]).push(s,c)):"children"===s?l===c||"string"!==typeof c&&"number"!==typeof c||(e=e||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(E.hasOwnProperty(s)?(null!=c&&ln(a,s),e||l===c||(e=[])):(e=e||[]).push(s,c))}n&&(e=e||[]).push("style",n),a=e,(t.updateQueue=a)&&(t.effectTag|=4)}},Ho=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var rs="function"===typeof WeakSet?WeakSet:Set;function is(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ge(n)),null!==n&&ye(n.type),t=t.value,null!==e&&1===e.tag&&ye(e.type);try{console.error(t)}catch(i){setTimeout((function(){throw i}))}}function as(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Tu(e,n)}else t.current=null}function os(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Ji(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(o(163))}function ss(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function us(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ls(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void us(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Ji(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&va(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}va(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&kn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ft(n)))))}throw Error(o(163))}function cs(e,t,n){switch("function"===typeof Mu&&Mu(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Hi(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(a){Tu(i,a)}}e=e.next}while(e!==r)}))}break;case 1:as(t),"function"===typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){Tu(e,n)}}(t,n);break;case 5:as(t);break;case 4:ys(e,t,n)}}function fs(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&fs(t)}function hs(e){return 5===e.tag||3===e.tag||4===e.tag}function ds(e){e:{for(var t=e.return;null!==t;){if(hs(t)){var n=t;break e}t=t.return}throw Error(o(160))}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(o(161))}16&n.effectTag&&(Be(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||hs(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.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?ps(e,n,t):vs(e,n,t)}function ps(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?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=cn));else if(4!==r&&null!==(e=e.child))for(ps(e,t,n),e=e.sibling;null!==e;)ps(e,t,n),e=e.sibling}function vs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(vs(e,t,n),e=e.sibling;null!==e;)vs(e,t,n),e=e.sibling}function ys(e,t,n){for(var r,i,a=t,s=!1;;){if(!s){s=a.return;e:for(;;){if(null===s)throw Error(o(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===a.tag||6===a.tag){e:for(var u=e,l=a,c=n,f=l;;)if(cs(u,f,c),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===l)break e;for(;null===f.sibling;){if(null===f.return||f.return===l)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(u=r,l=a.stateNode,8===u.nodeType?u.parentNode.removeChild(l):u.removeChild(l)):r.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){r=a.stateNode.containerInfo,i=!0,a.child.return=a,a=a.child;continue}}else if(cs(e,a,n),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(s=!1)}a.sibling.return=a.return,a=a.sibling}}function gs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void ss(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Pn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ee(n,r),sn(e,i),t=sn(e,r),i=0;i<a.length;i+=2){var s=a[i],u=a[i+1];"style"===s?rn(n,u):"dangerouslySetInnerHTML"===s?ze(n,u):"children"===s?Be(n,u):X(n,s,u,t)}switch(e){case"input":Se(n,r);break;case"textarea":Ie(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Pe(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Pe(n,!!r.multiple,r.defaultValue,!0):Pe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Ft(t.containerInfo)));case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,qs=Ui()),null!==n)e:for(e=n;;){if(5===e.tag)a=e.stateNode,r?"function"===typeof(a=a.style).setProperty?a.setProperty("display","none","important"):a.display="none":(a=e.stateNode,i=void 0!==(i=e.memoizedProps.style)&&null!==i&&i.hasOwnProperty("display")?i.display:null,a.style.display=nn("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(a=e.child.sibling).return=e,e=a;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void ms(t);case 19:return void ms(t)}throw Error(o(163))}function ms(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new rs),t.forEach((function(t){var r=Cu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var bs="function"===typeof WeakMap?WeakMap:Map;function xs(e,t,n){(n=fa(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ws||(Ws=!0,Qs=r),is(e,t)},n}function ks(e,t,n){(n=fa(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return is(e,t),r(i)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Hs?Hs=new Set([this]):Hs.add(this),is(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var _s,ws=Math.ceil,Es=G.ReactCurrentDispatcher,Ss=G.ReactCurrentOwner,Ts=16,Os=32,Cs=0,Ps=3,Ms=4,Ds=0,Is=null,As=null,Ns=0,Rs=Cs,Ls=null,Fs=1073741823,js=1073741823,Vs=null,zs=0,Bs=!1,qs=0,Us=null,Ws=!1,Qs=null,Hs=null,$s=!1,Ys=null,Ks=90,Gs=null,Xs=0,Js=null,Zs=0;function eu(){return 0!==(48&Ds)?1073741821-(Ui()/10|0):0!==Zs?Zs:Zs=1073741821-(Ui()/10|0)}function tu(e,t,n){if(0===(2&(t=t.mode)))return 1073741823;var r=Wi();if(0===(4&t))return 99===r?1073741823:1073741822;if(0!==(Ds&Ts))return Ns;if(null!==n)e=Xi(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Xi(e,150,100);break;case 97:case 96:e=Xi(e,5e3,250);break;case 95:e=2;break;default:throw Error(o(326))}return null!==Is&&e===Ns&&--e,e}function nu(e,t){if(50<Xs)throw Xs=0,Js=null,Error(o(185));if(null!==(e=ru(e,t))){var n=Wi();1073741823===t?0!==(8&Ds)&&0===(48&Ds)?su(e):(au(e),0===Ds&&Ki()):au(e),0===(4&Ds)||98!==n&&99!==n||(null===Gs?Gs=new Map([[e,t]]):(void 0===(n=Gs.get(e))||n>t)&&Gs.set(e,t))}}function ru(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(Is===i&&(pu(t),Rs===Ms&&Bu(i,Ns)),qu(i,t)),i}function iu(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!zu(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function au(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Yi(su.bind(null,e));else{var t=iu(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=eu();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Li&&Oi(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Yi(su.bind(null,e)):$i(r,ou.bind(null,e),{timeout:10*(1073741821-t)-Ui()}),e.callbackNode=t}}}function ou(e,t){if(Zs=0,t)return Uu(e,t=eu()),au(e),null;var n=iu(e);if(0!==n){if(t=e.callbackNode,0!==(48&Ds))throw Error(o(327));if(wu(),e===Is&&n===Ns||cu(e,n),null!==As){var r=Ds;Ds|=Ts;for(var i=hu();;)try{yu();break}catch(u){fu(e,u)}if(ra(),Ds=r,Es.current=i,1===Rs)throw t=Ls,cu(e,n),Bu(e,n),au(e),t;if(null===As)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Rs,Is=null,r){case Cs:case 1:throw Error(o(345));case 2:Uu(e,2<n?2:n);break;case Ps:if(Bu(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=bu(i)),1073741823===Fs&&10<(i=qs+500-Ui())){if(Bs){var a=e.lastPingedTime;if(0===a||a>=n){e.lastPingedTime=n,cu(e,n);break}}if(0!==(a=iu(e))&&a!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=wn(xu.bind(null,e),i);break}xu(e);break;case Ms:if(Bu(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=bu(i)),Bs&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,cu(e,n);break}if(0!==(i=iu(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==js?r=10*(1073741821-js)-Ui():1073741823===Fs?r=0:(r=10*(1073741821-Fs)-5e3,0>(r=(i=Ui())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ws(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=wn(xu.bind(null,e),r);break}xu(e);break;case 5:if(1073741823!==Fs&&null!==Vs){a=Fs;var s=Vs;if(0>=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,r=(a=Ui()-(10*(1073741821-a)-(0|s.timeoutMs||5e3)))<=i?0:i+r-a),10<r){Bu(e,n),e.timeoutHandle=wn(xu.bind(null,e),r);break}}xu(e);break;default:throw Error(o(329))}if(au(e),e.callbackNode===t)return ou.bind(null,e)}}return null}function su(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!==(48&Ds))throw Error(o(327));if(wu(),e===Is&&t===Ns||cu(e,t),null!==As){var n=Ds;Ds|=Ts;for(var r=hu();;)try{vu();break}catch(i){fu(e,i)}if(ra(),Ds=n,Es.current=r,1===Rs)throw n=Ls,cu(e,t),Bu(e,t),au(e),n;if(null!==As)throw Error(o(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Is=null,xu(e),au(e)}return null}function uu(e,t){var n=Ds;Ds|=1;try{return e(t)}finally{0===(Ds=n)&&Ki()}}function lu(e,t){var n=Ds;Ds&=-2,Ds|=8;try{return e(t)}finally{0===(Ds=n)&&Ki()}}function cu(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,En(n)),null!==As)for(n=As.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&xi();break;case 3:La(),hi(yi),hi(vi);break;case 5:ja(r);break;case 4:La();break;case 13:case 19:hi(Va);break;case 10:ia(r)}n=n.return}Is=e,As=Nu(e.current,null),Ns=t,Rs=Cs,Ls=null,js=Fs=1073741823,Vs=null,zs=0,Bs=!1}function fu(e,t){for(;;){try{if(ra(),qa.current=xo,Ya)for(var n=Qa.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Wa=0,$a=Ha=Qa=null,Ya=!1,null===As||null===As.return)return Rs=1,Ls=t,As=null;e:{var i=e,a=As.return,o=As,s=t;if(t=Ns,o.effectTag|=2048,o.firstEffect=o.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var u=s;if(0===(2&o.mode)){var l=o.alternate;l?(o.updateQueue=l.updateQueue,o.memoizedState=l.memoizedState,o.expirationTime=l.expirationTime):(o.updateQueue=null,o.memoizedState=null)}var c=0!==(1&Va.current),f=a;do{var h;if(h=13===f.tag){var d=f.memoizedState;if(null!==d)h=null!==d.dehydrated;else{var p=f.memoizedProps;h=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!c)}}if(h){var v=f.updateQueue;if(null===v){var y=new Set;y.add(u),f.updateQueue=y}else v.add(u);if(0===(2&f.mode)){if(f.effectTag|=64,o.effectTag&=-2981,1===o.tag)if(null===o.alternate)o.tag=17;else{var g=fa(1073741823,null);g.tag=2,ha(o,g)}o.expirationTime=1073741823;break e}s=void 0,o=t;var m=i.pingCache;if(null===m?(m=i.pingCache=new bs,s=new Set,m.set(u,s)):void 0===(s=m.get(u))&&(s=new Set,m.set(u,s)),!s.has(o)){s.add(o);var b=Ou.bind(null,i,u,o);u.then(b,b)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);s=Error((ye(o.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."+ge(o))}5!==Rs&&(Rs=2),s=ns(s,o),f=a;do{switch(f.tag){case 3:u=s,f.effectTag|=4096,f.expirationTime=t,da(f,xs(f,u,t));break e;case 1:u=s;var x=f.type,k=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof x.getDerivedStateFromError||null!==k&&"function"===typeof k.componentDidCatch&&(null===Hs||!Hs.has(k)))){f.effectTag|=4096,f.expirationTime=t,da(f,ks(f,u,t));break e}}f=f.return}while(null!==f)}As=mu(As)}catch(_){t=_;continue}break}}function hu(){var e=Es.current;return Es.current=xo,null===e?xo:e}function du(e,t){e<Fs&&2<e&&(Fs=e),null!==t&&e<js&&2<e&&(js=e,Vs=t)}function pu(e){e>zs&&(zs=e)}function vu(){for(;null!==As;)As=gu(As)}function yu(){for(;null!==As&&!Fi();)As=gu(As)}function gu(e){var t=_s(e.alternate,e,Ns);return e.memoizedProps=e.pendingProps,null===t&&(t=mu(e)),Ss.current=null,t}function mu(e){As=e;do{var t=As.alternate;if(e=As.return,0===(2048&As.effectTag)){if(t=es(t,As,Ns),1===Ns||1!==As.childExpirationTime){for(var n=0,r=As.child;null!==r;){var i=r.expirationTime,a=r.childExpirationTime;i>n&&(n=i),a>n&&(n=a),r=r.sibling}As.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=As.firstEffect),null!==As.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=As.firstEffect),e.lastEffect=As.lastEffect),1<As.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=As:e.firstEffect=As,e.lastEffect=As))}else{if(null!==(t=ts(As)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=As.sibling))return t;As=e}while(null!==As);return Rs===Cs&&(Rs=5),null}function bu(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function xu(e){var t=Wi();return Hi(99,ku.bind(null,e,t)),null}function ku(e,t){do{wu()}while(null!==Ys);if(0!==(48&Ds))throw Error(o(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=bu(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Is&&(As=Is=null,Ns=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var a=Ds;Ds|=Os,Ss.current=null,bn=$t;var s=vn();if(yn(s)){if("selectionStart"in s)var u={start:s.selectionStart,end:s.selectionEnd};else e:{var l=(u=(u=s.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(l&&0!==l.rangeCount){u=l.anchorNode;var c=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{u.nodeType,f.nodeType}catch(T){u=null;break e}var h=0,d=-1,p=-1,v=0,y=0,g=s,m=null;t:for(;;){for(var b;g!==u||0!==c&&3!==g.nodeType||(d=h+c),g!==f||0!==l&&3!==g.nodeType||(p=h+l),3===g.nodeType&&(h+=g.nodeValue.length),null!==(b=g.firstChild);)m=g,g=b;for(;;){if(g===s)break t;if(m===u&&++v===c&&(d=h),m===f&&++y===l&&(p=h),null!==(b=g.nextSibling))break;m=(g=m).parentNode}g=b}u=-1===d||-1===p?null:{start:d,end:p}}else u=null}u=u||{start:0,end:0}}else u=null;xn={activeElementDetached:null,focusedElem:s,selectionRange:u},$t=!1,Us=i;do{try{_u()}catch(T){if(null===Us)throw Error(o(330));Tu(Us,T),Us=Us.nextEffect}}while(null!==Us);Us=i;do{try{for(s=e,u=t;null!==Us;){var x=Us.effectTag;if(16&x&&Be(Us.stateNode,""),128&x){var k=Us.alternate;if(null!==k){var _=k.ref;null!==_&&("function"===typeof _?_(null):_.current=null)}}switch(1038&x){case 2:ds(Us),Us.effectTag&=-3;break;case 6:ds(Us),Us.effectTag&=-3,gs(Us.alternate,Us);break;case 1024:Us.effectTag&=-1025;break;case 1028:Us.effectTag&=-1025,gs(Us.alternate,Us);break;case 4:gs(Us.alternate,Us);break;case 8:ys(s,c=Us,u),fs(c)}Us=Us.nextEffect}}catch(T){if(null===Us)throw Error(o(330));Tu(Us,T),Us=Us.nextEffect}}while(null!==Us);if(_=xn,k=vn(),x=_.focusedElem,u=_.selectionRange,k!==x&&x&&x.ownerDocument&&pn(x.ownerDocument.documentElement,x)){null!==u&&yn(x)&&(k=u.start,void 0===(_=u.end)&&(_=k),"selectionStart"in x?(x.selectionStart=k,x.selectionEnd=Math.min(_,x.value.length)):(_=(k=x.ownerDocument||document)&&k.defaultView||window).getSelection&&(_=_.getSelection(),c=x.textContent.length,s=Math.min(u.start,c),u=void 0===u.end?s:Math.min(u.end,c),!_.extend&&s>u&&(c=u,u=s,s=c),c=dn(x,s),f=dn(x,u),c&&f&&(1!==_.rangeCount||_.anchorNode!==c.node||_.anchorOffset!==c.offset||_.focusNode!==f.node||_.focusOffset!==f.offset)&&((k=k.createRange()).setStart(c.node,c.offset),_.removeAllRanges(),s>u?(_.addRange(k),_.extend(f.node,f.offset)):(k.setEnd(f.node,f.offset),_.addRange(k))))),k=[];for(_=x;_=_.parentNode;)1===_.nodeType&&k.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"===typeof x.focus&&x.focus(),x=0;x<k.length;x++)(_=k[x]).element.scrollLeft=_.left,_.element.scrollTop=_.top}$t=!!bn,xn=bn=null,e.current=n,Us=i;do{try{for(x=e;null!==Us;){var w=Us.effectTag;if(36&w&&ls(x,Us.alternate,Us),128&w){k=void 0;var E=Us.ref;if(null!==E){var S=Us.stateNode;Us.tag,k=S,"function"===typeof E?E(k):E.current=k}}Us=Us.nextEffect}}catch(T){if(null===Us)throw Error(o(330));Tu(Us,T),Us=Us.nextEffect}}while(null!==Us);Us=null,ji(),Ds=a}else e.current=n;if($s)$s=!1,Ys=e,Ks=t;else for(Us=i;null!==Us;)t=Us.nextEffect,Us.nextEffect=null,Us=t;if(0===(t=e.firstPendingTime)&&(Hs=null),1073741823===t?e===Js?Xs++:(Xs=0,Js=e):Xs=0,"function"===typeof Pu&&Pu(n.stateNode,r),au(e),Ws)throw Ws=!1,e=Qs,Qs=null,e;return 0!==(8&Ds)||Ki(),null}function _u(){for(;null!==Us;){var e=Us.effectTag;0!==(256&e)&&os(Us.alternate,Us),0===(512&e)||$s||($s=!0,$i(97,(function(){return wu(),null}))),Us=Us.nextEffect}}function wu(){if(90!==Ks){var e=97<Ks?97:Ks;return Ks=90,Hi(e,Eu)}}function Eu(){if(null===Ys)return!1;var e=Ys;if(Ys=null,0!==(48&Ds))throw Error(o(331));var t=Ds;for(Ds|=Os,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:ss(5,n),us(5,n)}}catch(r){if(null===e)throw Error(o(330));Tu(e,r)}n=e.nextEffect,e.nextEffect=null,e=n}return Ds=t,Ki(),!0}function Su(e,t,n){ha(e,t=xs(e,t=ns(n,t),1073741823)),null!==(e=ru(e,1073741823))&&au(e)}function Tu(e,t){if(3===e.tag)Su(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Su(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Hs||!Hs.has(r))){ha(n,e=ks(n,e=ns(t,e),1073741823)),null!==(n=ru(n,1073741823))&&au(n);break}}n=n.return}}function Ou(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Is===e&&Ns===n?Rs===Ms||Rs===Ps&&1073741823===Fs&&Ui()-qs<500?cu(e,Ns):Bs=!0:zu(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,au(e)))}function Cu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=tu(t=eu(),e,null)),null!==(e=ru(e,t))&&au(e)}_s=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||yi.current)No=!0;else{if(r<n){switch(No=!1,t.tag){case 3:Uo(t),Io();break;case 5:if(Fa(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:bi(t.type)&&wi(t);break;case 4:Ra(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,di(Zi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Yo(e,t,n):(di(Va,1&Va.current),null!==(t=Jo(e,t,n))?t.sibling:null);di(Va,1&Va.current);break;case 19:if(r=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(r)return Xo(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),di(Va,Va.current),!r)return null}return Jo(e,t,n)}No=!1}}else No=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=mi(t,vi.current),oa(t,n),i=Xa(null,t,r,e,i,n),t.effectTag|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,bi(r)){var a=!0;wi(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,la(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&ma(t,r,s,e),i.updater=ba,t.stateNode=i,i._reactInternalFiber=t,wa(t,r,e,n),t=qo(null,t,r,!0,a,n)}else t.tag=0,Ro(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),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)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,a=t.tag=function(e){if("function"===typeof e)return Au(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===ue)return 11;if(e===fe)return 14}return 2}(i),e=Ji(i,e),a){case 0:t=zo(null,t,i,e,n);break e;case 1:t=Bo(null,t,i,e,n);break e;case 11:t=Lo(null,t,i,e,n);break e;case 14:t=Fo(null,t,i,Ji(i.type,e),r,n);break e}throw Error(o(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,zo(e,t,r,i=t.elementType===r?i:Ji(r,i),n);case 1:return r=t.type,i=t.pendingProps,Bo(e,t,r,i=t.elementType===r?i:Ji(r,i),n);case 3:if(Uo(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ca(e,t),pa(t,r,null,n),(r=t.memoizedState.element)===i)Io(),t=Jo(e,t,n);else{if((i=t.stateNode.hydrate)&&(So=Sn(t.stateNode.containerInfo.firstChild),Eo=t,i=To=!0),i)for(n=Pa(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ro(e,t,r,n),Io();t=t.child}return t;case 5:return Fa(t),null===e&&Po(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,_n(r,i)?s=null:null!==a&&_n(r,a)&&(t.effectTag|=16),Vo(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ro(e,t,s,n),t=t.child),t;case 6:return null===e&&Po(t),null;case 13:return Yo(e,t,n);case 4:return Ra(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ca(t,null,r,n):Ro(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Lo(e,t,r,i=t.elementType===r?i:Ji(r,i),n);case 7:return Ro(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ro(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value;var u=t.type._context;if(di(Zi,u._currentValue),u._currentValue=a,null!==s)if(u=s.value,0===(a=Br(u,a)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(u,a):1073741823))){if(s.children===i.children&&!yi.current){t=Jo(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var l=u.dependencies;if(null!==l){s=u.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&a)){1===u.tag&&((c=fa(n,null)).tag=2,ha(u,c)),u.expirationTime<n&&(u.expirationTime=n),null!==(c=u.alternate)&&c.expirationTime<n&&(c.expirationTime=n),aa(u.return,n),l.expirationTime<n&&(l.expirationTime=n);break}c=c.next}}else s=10===u.tag&&u.type===t.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===t){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}Ro(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,oa(t,n),r=r(i=sa(i,a.unstable_observedBits)),t.effectTag|=1,Ro(e,t,r,n),t.child;case 14:return a=Ji(i=t.type,t.pendingProps),Fo(e,t,i,a=Ji(i.type,a),r,n);case 15:return jo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ji(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,bi(r)?(e=!0,wi(t)):e=!1,oa(t,n),ka(t,r,i),wa(t,r,i,n),qo(null,t,r,!0,e,n);case 19:return Xo(e,t,n)}throw Error(o(156,t.tag))};var Pu=null,Mu=null;function Du(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.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Iu(e,t,n,r){return new Du(e,t,n,r)}function Au(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Nu(e,t){var n=e.alternate;return null===n?((n=Iu(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.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ru(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Au(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case ne:return Lu(n.children,i,a,t);case se:s=8,i|=7;break;case re:s=8,i|=1;break;case ie:return(e=Iu(12,n,t,8|i)).elementType=ie,e.type=ie,e.expirationTime=a,e;case le:return(e=Iu(13,n,t,i)).type=le,e.elementType=le,e.expirationTime=a,e;case ce:return(e=Iu(19,n,t,i)).elementType=ce,e.expirationTime=a,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case ae:s=10;break e;case oe:s=9;break e;case ue:s=11;break e;case fe:s=14;break e;case he:s=16,r=null;break e;case de:s=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Iu(s,n,t,i)).elementType=e,t.type=r,t.expirationTime=a,t}function Lu(e,t,n,r){return(e=Iu(7,e,r,t)).expirationTime=n,e}function Fu(e,t,n){return(e=Iu(6,e,null,t)).expirationTime=n,e}function ju(e,t,n){return(t=Iu(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vu(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function zu(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Bu(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function qu(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Uu(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Wu(e,t,n,r){var i=t.current,a=eu(),s=ya.suspense;a=tu(a,i,s);e:if(n){t:{if(et(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(o(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(bi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(o(171))}if(1===n.tag){var l=n.type;if(bi(l)){n=_i(n,l,u);break e}}n=u}else n=pi;return null===t.context?t.context=n:t.pendingContext=n,(t=fa(a,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ha(i,t),nu(i,a),a}function Qu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hu(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function $u(e,t){Hu(e,t),(e=e.alternate)&&Hu(e,t)}function Yu(e,t,n){var r=new Vu(e,t,n=null!=n&&!0===n.hydrate),i=Iu(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,la(i),e[Mn]=r.current,n&&0!==t&&function(e,t){var n=Ze(t);Ot.forEach((function(e){vt(e,t,n)})),Ct.forEach((function(e){vt(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Gu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"===typeof i){var s=i;i=function(){var e=Qu(o);s.call(e)}}Wu(t,o,e,i)}else{if(a=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 Yu(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"===typeof i){var u=i;i=function(){var e=Qu(o);u.call(e)}}lu((function(){Wu(t,o,e,i)}))}return Qu(o)}function Xu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Ju(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ku(t))throw Error(o(200));return Xu(e,t,null,n)}Yu.prototype.render=function(e){Wu(e,this._internalRoot,null,null)},Yu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Wu(null,e,null,(function(){t[Mn]=null}))},yt=function(e){if(13===e.tag){var t=Xi(eu(),150,100);nu(e,t),$u(e,t)}},gt=function(e){13===e.tag&&(nu(e,3),$u(e,3))},mt=function(e){if(13===e.tag){var t=eu();nu(e,t=tu(t,e,null)),$u(e,t)}},C=function(e,t,n){switch(t){case"input":if(Se(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 i=Nn(r);if(!i)throw Error(o(90));ke(r),Se(r,i)}}}break;case"textarea":Ie(e,n);break;case"select":null!=(t=n.value)&&Pe(e,!!n.multiple,t,!1)}},N=uu,R=function(e,t,n,r,i){var a=Ds;Ds|=4;try{return Hi(98,e.bind(null,t,n,r,i))}finally{0===(Ds=a)&&Ki()}},L=function(){0===(49&Ds)&&(function(){if(null!==Gs){var e=Gs;Gs=null,e.forEach((function(e,t){Uu(t,e),au(t)})),Ki()}}(),wu())},F=function(e,t){var n=Ds;Ds|=2;try{return e(t)}finally{0===(Ds=n)&&Ki()}};var Zu={Events:[In,An,Nn,T,w,Bn,function(e){at(e,zn)},I,A,Jt,ut,wu,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Pu=function(e){try{t.onCommitFiberRoot(n,e,void 0,64===(64&e.current.effectTag))}catch(r){}},Mu=function(e){try{t.onCommitFiberUnmount(n,e)}catch(r){}}}catch(r){}})(i({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:G.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Dn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zu,t.createPortal=Ju,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return e=null===(e=rt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!==(48&Ds))throw Error(o(187));var n=Ds;Ds|=1;try{return Hi(99,e.bind(null,t))}finally{Ds=n,Ki()}},t.hydrate=function(e,t,n){if(!Ku(t))throw Error(o(200));return Gu(null,e,t,!0,n)},t.render=function(e,t,n){if(!Ku(t))throw Error(o(200));return Gu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ku(e))throw Error(o(40));return!!e._reactRootContainer&&(lu((function(){Gu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Mn]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_createPortal=function(e,t){return Ju(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ku(n))throw Error(o(200));if(null==e||void 0===e._reactInternalFiber)throw Error(o(38));return Gu(e,t,n,!1,r)},t.version="16.14.0"},164: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(463)},372:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=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,h=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,m=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function k(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case a:case s:case o:case d:return e;default:switch(e=e&&e.$$typeof){case l:case h:case y:case v:case u:return e;default:return t}}case i:return t}}}function _(e){return k(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=h,t.Fragment=a,t.Lazy=y,t.Memo=v,t.Portal=i,t.Profiler=s,t.StrictMode=o,t.Suspense=d,t.isAsyncMode=function(e){return _(e)||k(e)===c},t.isConcurrentMode=_,t.isContextConsumer=function(e){return k(e)===l},t.isContextProvider=function(e){return k(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return k(e)===h},t.isFragment=function(e){return k(e)===a},t.isLazy=function(e){return k(e)===y},t.isMemo=function(e){return k(e)===v},t.isPortal=function(e){return k(e)===i},t.isProfiler=function(e){return k(e)===s},t.isStrictMode=function(e){return k(e)===o},t.isSuspense=function(e){return k(e)===d},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===f||e===s||e===o||e===d||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===v||e.$$typeof===u||e.$$typeof===l||e.$$typeof===h||e.$$typeof===m||e.$$typeof===b||e.$$typeof===x||e.$$typeof===g)},t.typeOf=k},441:function(e,t,n){"use strict";e.exports=n(372)},374:function(e,t,n){"use strict";var r=n(791),i=60103;if(60107,"function"===typeof Symbol&&Symbol.for){var a=Symbol.for;i=a("react.element"),a("react.fragment")}var o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,a={},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)s.call(t,r)&&!u.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:c,props:a,_owner:o.current}}t.jsx=l,t.jsxs=l},117:function(e,t,n){"use strict";var r=n(725),i="function"===typeof Symbol&&Symbol.for,a=i?Symbol.for("react.element"):60103,o=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.forward_ref"):60112,d=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,y="function"===typeof Symbol&&Symbol.iterator;function g(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 m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function x(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||m}function k(){}function _(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||m}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(g(85));this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=x.prototype;var w=_.prototype=new k;w.constructor=_,r(w,x.prototype),w.isPureReactComponent=!0;var E={current:null},S=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,n){var r,i={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)S.call(t,r)&&!T.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:a,type:e,key:o,ref:s,props:i,_owner:E.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===a}var P=/\/+/g,M=[];function D(e,t,n,r){if(M.length){var i=M.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function I(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>M.length&&M.push(e)}function A(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s=!1;if(null===e)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case a:case o:s=!0}}if(s)return n(r,e,""===t?"."+R(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var u=0;u<e.length;u++){var l=t+R(i=e[u],u);s+=A(i,l,n,r)}else if(null===e||"object"!==typeof e?l=null:l="function"===typeof(l=y&&e[y]||e["@@iterator"])?l:null,"function"===typeof l)for(e=l.call(e),u=0;!(i=e.next()).done;)s+=A(i=i.value,l=t+R(i,u++),n,r);else if("object"===i)throw n=""+e,Error(g(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return s}function N(e,t,n){return null==e?0:A(e,"",t,n)}function R(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 L(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?j(e,r,n,(function(e){return e})):null!=e&&(C(e)&&(e=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(P,"$&/")+"/")+n)),r.push(e))}function j(e,t,n,r,i){var a="";null!=n&&(a=(""+n).replace(P,"$&/")+"/"),N(e,F,t=D(t,a,r,i)),I(t)}var V={current:null};function z(){var e=V.current;if(null===e)throw Error(g(321));return e}var B={ReactCurrentDispatcher:V,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return j(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;N(e,L,t=D(null,null,t,n)),I(t)},count:function(e){return N(e,(function(){return null}),null)},toArray:function(e){var t=[];return j(e,t,null,(function(e){return e})),t},only:function(e){if(!C(e))throw Error(g(143));return e}},t.Component=x,t.Fragment=s,t.Profiler=l,t.PureComponent=_,t.StrictMode=u,t.Suspense=d,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(g(267,e));var i=r({},e.props),o=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=E.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)S.call(t,c)&&!T.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:a,type:e.type,key:o,ref:s,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:h,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:v,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return z().useCallback(e,t)},t.useContext=function(e,t){return z().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return z().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return z().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return z().useLayoutEffect(e,t)},t.useMemo=function(e,t){return z().useMemo(e,t)},t.useReducer=function(e,t,n){return z().useReducer(e,t,n)},t.useRef=function(e){return z().useRef(e)},t.useState=function(e){return z().useState(e)},t.version="16.14.0"},791:function(e,t,n){"use strict";e.exports=n(117)},184:function(e,t,n){"use strict";e.exports=n(374)},727:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(D){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),o=new C(r||[]);return a._invoke=function(e,t,n){var r=f;return function(i,a){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw a;return M()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=S(o,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=c(e,t,n);if("normal"===u.type){if(r=n.done?p:h,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(D){return{type:"throw",arg:D}}}e.wrap=l;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",v={};function y(){}function g(){}function m(){}var b={};u(b,a,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(P([])));k&&k!==n&&r.call(k,a)&&(b=k);var _=m.prototype=y.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,o,s){var u=c(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(f).then((function(e){l.value=e,o(l)}),(function(e){return n("throw",e,o,s)}))}s(u.arg)}var i;this._invoke=function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=c(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(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 C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(e){if(e){var n=e[a];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:M}}function M(){return{value:t,done:!0}}return g.prototype=m,u(_,"constructor",m),u(m,"constructor",g),g.displayName=u(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,u(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(E.prototype),u(E.prototype,o,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new E(l(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},w(_),u(_,s,"Generator"),u(_,a,(function(){return this})),u(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=P,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},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 n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(u&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(o)},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),v},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),v}},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 i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"===typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},813:function(e,t){"use strict";var n,r,i,a,o;if("undefined"===typeof window||"function"!==typeof MessageChannel){var s=null,u=null,l=function e(){if(null!==s)try{var n=t.unstable_now();s(!0,n),s=null}catch(r){throw setTimeout(e,0),r}},c=Date.now();t.unstable_now=function(){return Date.now()-c},n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(l,0))},r=function(e,t){u=setTimeout(e,t)},i=function(){clearTimeout(u)},a=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,h=window.Date,d=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var v=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://fb.me/react-polyfills"),"function"!==typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof f&&"function"===typeof f.now)t.unstable_now=function(){return f.now()};else{var y=h.now();t.unstable_now=function(){return h.now()-y}}var g=!1,m=null,b=-1,x=5,k=0;a=function(){return t.unstable_now()>=k},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):x=0<e?Math.floor(1e3/e):5};var _=new MessageChannel,w=_.port2;_.port1.onmessage=function(){if(null!==m){var e=t.unstable_now();k=e+x;try{m(!0,e)?w.postMessage(null):(g=!1,m=null)}catch(n){throw w.postMessage(null),n}}else g=!1},n=function(e){m=e,g||(g=!0,w.postMessage(null))},r=function(e,n){b=d((function(){e(t.unstable_now())}),n)},i=function(){p(b),b=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<O(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function T(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,u=e[s];if(void 0!==o&&0>O(o,n))void 0!==u&&0>O(u,o)?(e[r]=u,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==u&&0>O(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function O(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],P=[],M=1,D=null,I=3,A=!1,N=!1,R=!1;function L(e){for(var t=S(P);null!==t;){if(null===t.callback)T(P);else{if(!(t.startTime<=e))break;T(P),t.sortIndex=t.expirationTime,E(C,t)}t=S(P)}}function F(e){if(R=!1,L(e),!N)if(null!==S(C))N=!0,n(j);else{var t=S(P);null!==t&&r(F,t.startTime-e)}}function j(e,n){N=!1,R&&(R=!1,i()),A=!0;var o=I;try{for(L(n),D=S(C);null!==D&&(!(D.expirationTime>n)||e&&!a());){var s=D.callback;if(null!==s){D.callback=null,I=D.priorityLevel;var u=s(D.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?D.callback=u:D===S(C)&&T(C),L(n)}else T(C);D=S(C)}if(null!==D)var l=!0;else{var c=S(P);null!==c&&r(F,c.startTime-n),l=!1}return l}finally{D=null,I=o,A=!1}}function V(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var z=o;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(){N||A||(N=!0,n(j))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return S(C)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_scheduleCallback=function(e,a,o){var s=t.unstable_now();if("object"===typeof o&&null!==o){var u=o.delay;u="number"===typeof u&&0<u?s+u:s,o="number"===typeof o.timeout?o.timeout:V(e)}else o=V(e),u=s;return e={id:M++,callback:a,priorityLevel:e,startTime:u,expirationTime:o=u+o,sortIndex:-1},u>s?(e.sortIndex=u,E(P,e),null===S(C)&&e===S(P)&&(R?i():R=!0,r(F,u-s))):(e.sortIndex=o,E(C,e),N||A||(N=!0,n(j))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();L(e);var n=S(C);return n!==D&&null!==D&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<D.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}}},296:function(e,t,n){"use strict";e.exports=n(813)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},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.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(){"use strict";var e=n(791),t=n(164);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function u(){return u=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},u.apply(this,arguments)}function l(e){return"/"===e.charAt(0)}function c(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var f=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],a=e&&l(e),o=t&&l(t),s=a||o;if(e&&l(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var u=i[i.length-1];n="."===u||".."===u||""===u}else n=!1;for(var f=0,h=i.length;h>=0;h--){var d=i[h];"."===d?c(i,h):".."===d?(c(i,h),f++):f&&(c(i,h),f--)}if(!s)for(;f--;f)i.unshift("..");!s||""===i[0]||i[0]&&l(i[0])||i.unshift("");var p=i.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p},h="Invariant failed";function d(e,t){if(!e)throw new Error(h)}function p(e){return"/"===e.charAt(0)?e:"/"+e}function v(e){return"/"===e.charAt(0)?e.substr(1):e}function y(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 g(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function m(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function b(e,t,n,r){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=u({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(a){throw a instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):a}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=f(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function x(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var a="function"===typeof e?e(t,n):e;"string"===typeof a?"function"===typeof r?r(a,i):i(!0):i(!1!==a)}else i(!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 k=!("undefined"===typeof window||!window.document||!window.document.createElement);function _(e,t){t(window.confirm(e))}var w="popstate",E="hashchange";function S(){try{return window.history.state||{}}catch(e){return{}}}function T(e){void 0===e&&(e={}),k||d(!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")),i=e,a=i.forceRefresh,o=void 0!==a&&a,s=i.getUserConfirmation,l=void 0===s?_:s,c=i.keyLength,f=void 0===c?6:c,h=e.basename?g(p(e.basename)):"";function v(e){var t=e||{},n=t.key,r=t.state,i=window.location,a=i.pathname+i.search+i.hash;return h&&(a=y(a,h)),b(a,r,n)}function T(){return Math.random().toString(36).substr(2,f)}var O=x();function C(e){u(z,e),z.length=t.length,O.notifyListeners(z.location,z.action)}function P(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||I(v(e.state))}function M(){I(v(S()))}var D=!1;function I(e){if(D)D=!1,C();else{O.confirmTransitionTo(e,"POP",l,(function(t){t?C({action:"POP",location:e}):function(e){var t=z.location,n=N.indexOf(t.key);-1===n&&(n=0);var r=N.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(D=!0,L(i))}(e)}))}}var A=v(S()),N=[A.key];function R(e){return h+m(e)}function L(e){t.go(e)}var F=0;function j(e){1===(F+=e)&&1===e?(window.addEventListener(w,P),r&&window.addEventListener(E,M)):0===F&&(window.removeEventListener(w,P),r&&window.removeEventListener(E,M))}var V=!1;var z={length:t.length,action:"POP",location:A,createHref:R,push:function(e,r){var i="PUSH",a=b(e,r,T(),z.location);O.confirmTransitionTo(a,i,l,(function(e){if(e){var r=R(a),s=a.key,u=a.state;if(n)if(t.pushState({key:s,state:u},null,r),o)window.location.href=r;else{var l=N.indexOf(z.location.key),c=N.slice(0,l+1);c.push(a.key),N=c,C({action:i,location:a})}else window.location.href=r}}))},replace:function(e,r){var i="REPLACE",a=b(e,r,T(),z.location);O.confirmTransitionTo(a,i,l,(function(e){if(e){var r=R(a),s=a.key,u=a.state;if(n)if(t.replaceState({key:s,state:u},null,r),o)window.location.replace(r);else{var l=N.indexOf(z.location.key);-1!==l&&(N[l]=a.key),C({action:i,location:a})}else window.location.replace(r)}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&(e=!1);var t=O.setPrompt(e);return V||(j(1),V=!0),function(){return V&&(V=!1,j(-1)),t()}},listen:function(e){var t=O.appendListener(e);return j(1),function(){j(-1),t()}}};return z}var O="hashchange",C={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+v(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:v,decodePath:p},slash:{encodePath:p,decodePath:p}};function P(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function M(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function D(e){window.location.replace(P(window.location.href)+"#"+e)}function I(e){void 0===e&&{},k||d(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?_:r,a=n.hashType,o=void 0===a?"slash":a,s=e.basename?g(p(e.basename)):"",l=C[o],c=l.encodePath,f=l.decodePath;function h(){var e=f(M());return s&&y(e,s),b(e)}var v=x();function w(e){u(z,e),z.length=t.length,v.notifyListeners(z.location,z.action)}var E=!1,S=null;function T(){var e,t,n=M(),r=c(n);if(n!==r)D(r);else{var a=h(),o=z.location;if(!E&&(a,o.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(S===m(a))return;null,function(e){if(E)!1,w();else{var t="POP";v.confirmTransitionTo(e,t,i,(function(n){n?w({action:t,location:e}):function(e){var t=z.location,n=R.lastIndexOf(m(t));-1===n&&0;var r=R.lastIndexOf(m(e));-1===r&&0;var i=n-r;i&&(!0,L(i))}(e)}))}}(a)}}var I=M(),A=c(I);I!==A&&D(A);var N=h(),R=[m(N)];function L(e){t.go(e)}var F=0;function j(e){1===(F+=e)&&1===e?window.addEventListener(O,T):0===F&&window.removeEventListener(O,T)}var V=!1;var z={length:t.length,action:"POP",location:N,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&P(window.location.href),n+"#"+c(s+m(e))},push:function(e,t){var n="PUSH",r=b(e,void 0,void 0,z.location);v.confirmTransitionTo(r,n,i,(function(e){if(e){var t=m(r),i=c(s+t);if(M()!==i){t,function(e){window.location.hash=e}(i);var a=R.lastIndexOf(m(z.location)),o=R.slice(0,a+1);o.push(t),o,w({action:n,location:r})}else w()}}))},replace:function(e,t){var n="REPLACE",r=b(e,void 0,void 0,z.location);v.confirmTransitionTo(r,n,i,(function(e){if(e){var t=m(r),i=c(s+t);M()!==i&&(t,D(i));var a=R.indexOf(m(z.location));-1!==a&&(R[a]=t),w({action:n,location:r})}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&!1;var t=v.setPrompt(e);return V||(j(1),!0),function(){return V&&(!1,j(-1)),t()}},listen:function(e){var t=v.appendListener(e);return j(1),function(){j(-1),t()}}};return z}function A(e,t,n){return Math.min(Math.max(e,t),n)}function N(e){void 0===e&&{};var t=e,n=t.getUserConfirmation,r=t.initialEntries,i=void 0===r?["/"]:r,a=t.initialIndex,o=void 0===a?0:a,s=t.keyLength,l=void 0===s?6:s,c=x();function f(e){u(g,e),g.length=g.entries.length,c.notifyListeners(g.location,g.action)}function h(){return Math.random().toString(36).substr(2,l)}var d=A(o,0,i.length-1),p=i.map((function(e){return b(e,void 0,"string"===typeof e?h():e.key||h())})),v=m;function y(e){var t=A(g.index+e,0,g.entries.length-1),r=g.entries[t];c.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var g={length:p.length,action:"POP",location:p[d],index:d,entries:p,createHref:v,push:function(e,t){var r="PUSH",i=b(e,t,h(),g.location);c.confirmTransitionTo(i,r,n,(function(e){if(e){var t=g.index+1,n=g.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),f({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=b(e,t,h(),g.location);c.confirmTransitionTo(i,r,n,(function(e){e&&(g.entries[g.index]=i,f({action:r,location:i}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=g.index+e;return t>=0&&t<g.entries.length},block:function(e){return void 0===e&&!1,c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return g}var R=n(7),L=n.n(R),F=1073741823,j="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{};function V(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)}))}}}var z=e.createContext||function(t,n){var r,i,a="__create-react-context-"+function(){var e="__global_unique_id__";return j[e]=(j[e]||0)+1}()+"__",o=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).emitter=V(t.props.value),t}s(t,e);var r=t.prototype;return r.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var t,r=this.props.value,i=e.value;((a=r)===(o=i)?0!==a||1/a===1/o:a!==a&&o!==o)?t=0:(t="function"===typeof n?n(r,i):F,0!==(t|=0)&&this.emitter.set(e.value,t))}var a,o},r.render=function(){return this.props.children},t}(e.Component);o.childContextTypes=((r={})[a]=L().object.isRequired,r);var u=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(e,n){0!==((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}s(n,e);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?F:t},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?F:e},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():t},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(e.Component);return u.contextTypes=((i={})[a]=L().object,i),{Provider:o,Consumer:u}},B=z,q=n(151),U=n.n(q);n(441);function W(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n(110);var Q=function(e){var t=B();return t.displayName=e,t},H=Q("Router-History"),$=Q("Router"),Y=function(t){function n(e){var n;return(n=t.call(this,e)||this).state={location:e.history.location},n._isMounted=!1,n._pendingLocation=null,e.staticContext||(n.unlisten=e.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}s(n,t),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(),this._isMounted=!1,this._pendingLocation=null)},r.render=function(){return e.createElement($.Provider,{value:{history:this.props.history,location:this.state.location,match:n.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},e.createElement(H.Provider,{children:this.props.children||null,value:this.props.history}))},n}(e.Component);e.Component;e.Component;var K={},G=0;function X(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,a=void 0!==i&&i,o=n.strict,s=void 0!==o&&o,u=n.sensitive,l=void 0!==u&&u;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=K[n]||(K[n]={});if(r[e])return r[e];var i=[],a={regexp:U()(e,i,t),keys:i};return G<1e4&&(r[e]=a,G++),a}(n,{end:a,strict:s,sensitive:l}),i=r.regexp,o=r.keys,u=i.exec(e);if(!u)return null;var c=u[0],f=u.slice(1),h=e===c;return a&&!h?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:h,params:o.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var J=function(t){function n(){return t.apply(this,arguments)||this}return s(n,t),n.prototype.render=function(){var t=this;return e.createElement($.Consumer,null,(function(n){n||d(!1);var r=t.props.location||n.location,i=u({},n,{location:r,match:t.props.computedMatch?t.props.computedMatch:t.props.path?X(r.pathname,t.props):n.match}),a=t.props,o=a.children,s=a.component,l=a.render;return Array.isArray(o)&&function(t){return 0===e.Children.count(t)}(o)&&(o=null),e.createElement($.Provider,{value:i},i.match?o?"function"===typeof o?o(i):o:s?e.createElement(s,i):l?l(i):null:"function"===typeof o?o(i):null)}))},n}(e.Component);function Z(e){return"/"===e.charAt(0)?e:"/"+e}function ee(e,t){if(!e)return t;var n=Z(e);return 0!==t.pathname.indexOf(n)?t:u({},t,{pathname:t.pathname.substr(n.length)})}function te(e){return"string"===typeof e?e:m(e)}function ne(e){return function(){d(!1)}}function re(){}e.Component;var ie=function(t){function n(){return t.apply(this,arguments)||this}return s(n,t),n.prototype.render=function(){var t=this;return e.createElement($.Consumer,null,(function(n){n||d(!1);var r,i,a=t.props.location||n.location;return e.Children.forEach(t.props.children,(function(t){if(null==i&&e.isValidElement(t)){r=t;var o=t.props.path||t.props.from;i=o?X(a.pathname,u({},t.props,{path:o})):n.match}})),i?e.cloneElement(r,{location:a,computedMatch:i}):null}))},n}(e.Component);e.useContext;var ae=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).history=T(e.props),e}return s(n,t),n.prototype.render=function(){return e.createElement(Y,{history:this.history,children:this.props.children})},n}(e.Component);e.Component;var oe=function(e,t){return"function"===typeof e?e(t):e},se=function(e,t){return"string"===typeof e?b(e,null,null,t):e},ue=function(e){return e},le=e.forwardRef;"undefined"===typeof le&&(le=ue);var ce=le((function(t,n){var r=t.innerRef,i=t.navigate,a=t.onClick,o=W(t,["innerRef","navigate","onClick"]),s=o.target,l=u({},o,{onClick:function(e){try{a&&a(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),i())}});return l.ref=ue!==le&&n||r,e.createElement("a",l)}));var fe=le((function(t,n){var r=t.component,i=void 0===r?ce:r,a=t.replace,o=t.to,s=t.innerRef,l=W(t,["component","replace","to","innerRef"]);return e.createElement($.Consumer,null,(function(t){t||d(!1);var r=t.history,c=se(oe(o,t.location),t.location),f=c?r.createHref(c):"",h=u({},l,{href:f,navigate:function(){var e=oe(o,t.location),n=m(t.location)===m(se(e));(a||n?r.replace:r.push)(e)}});return ue!==le?h.ref=n||s:h.innerRef=s,e.createElement(i,h)}))})),he=function(e){return e},de=e.forwardRef;"undefined"===typeof de&&(de=he);de((function(t,n){var r=t["aria-current"],i=void 0===r?"page":r,a=t.activeClassName,o=void 0===a?"active":a,s=t.activeStyle,l=t.className,c=t.exact,f=t.isActive,h=t.location,p=t.sensitive,v=t.strict,y=t.style,g=t.to,m=t.innerRef,b=W(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return e.createElement($.Consumer,null,(function(t){t||d(!1);var r=h||t.location,a=se(oe(g,r),r),x=a.pathname,k=x&&x.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),_=k?X(r.pathname,{path:k,exact:c,sensitive:p,strict:v}):null,w=!!(f?f(_,r):_),E="function"===typeof l?l(w):l,S="function"===typeof y?y(w):y;w&&(E=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(" ")}(E,o),S=u({},S,s));var T=u({"aria-current":w&&i||null,className:E,style:S,to:a},b);return he!==de?T.ref=n||m:T.innerRef=m,e.createElement(fe,T)}))}));var pe=function(e,t){return pe=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])},pe(e,t)};function ve(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}pe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ye=function(){return ye=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ye.apply(this,arguments)};function ge(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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function me(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{u(r.next(e))}catch(t){a(t)}}function s(e){try{u(r.throw(e))}catch(t){a(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}u((r=r.apply(e,t||[])).next())}))}function be(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(s){a=[6,s],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}Object.create;function xe(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var ke="Invariant Violation",_e=Object.setPrototypeOf,we=void 0===_e?function(e,t){return e.__proto__=t,e}:_e,Ee=function(e){function t(n){void 0===n&&(n=ke);var r=e.call(this,"number"===typeof n?ke+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=ke,we(r,t.prototype),r}return ve(t,e),t}(Error);function Se(e,t){if(!e)throw new Ee(t)}var Te=["debug","log","warn","error","silent"],Oe=Te.indexOf("log");function Ce(e){return function(){if(Te.indexOf(e)>=Oe){var t=console[e]||console.log;return t.apply(console,arguments)}}}!function(e){e.debug=Ce("debug"),e.log=Ce("log"),e.warn=Ce("warn"),e.error=Ce("error")}(Se||(Se={}));function Pe(e){try{return e()}catch(_e){}}var Me=Pe((function(){return globalThis}))||Pe((function(){return window}))||Pe((function(){return self}))||Pe((function(){return global}))||Pe((function(){return Pe.constructor("return this")()})),De="__",Ie=[De,De].join("DEV");var Ae=function(){try{return Boolean(__DEV__)}catch(_e){return Object.defineProperty(Me,Ie,{value:"production"!==Pe((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),Me[Ie]}}();function Ne(e){try{return e()}catch(t){}}var Re=Ne((function(){return globalThis}))||Ne((function(){return window}))||Ne((function(){return self}))||Ne((function(){return n.g}))||Ne((function(){return Ne.constructor("return this")()})),Le=!1;function Fe(){Le&&(delete Re.process,Le=!1)}function je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ve(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 ze(e,t,n){return t&&Ve(e.prototype,t),n&&Ve(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Be(e,t){if(!Boolean(e))throw new Error(t)}function qe(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 Ue(e,t){if(e){if("string"===typeof e)return qe(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)?qe(e,t):void 0}}function We(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,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(u){s=!0,i=u}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(e,t)||Ue(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 Qe(e){return function(e){if(Array.isArray(e))return qe(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ue(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.")}()}!Re||Ne((function(){return"production"}))||Ne((function(){return process}))||(Object.defineProperty(Re,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Le=!0);function He(e){return $e(e,[])}function $e(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";var n=[].concat(Qe(t),[e]);if(function(e){return"function"===typeof e.toJSON}(e)){var r=e.toJSON();if(r!==e)return"string"===typeof r?r:$e(r,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],a=0;a<n;++a)i.push($e(e[a],t));1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)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(e){var n=We(e,2);return n[0]+": "+$e(n[1],t)}));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}var Ye=function(e,t){return e instanceof t},Ke=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};je(this,t),"string"===typeof e||Be(!1,"Body must be a string. Received: ".concat(He(e),".")),this.body=e,this.name=n,this.locationOffset=r,this.locationOffset.line>0||Be(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Be(!1,"column in locationOffset is 1-indexed and must be positive.")}return ze(t,[{key:Symbol.toStringTag,get:function(){return"Source"}}]),t}();function Ge(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ue(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}Fe(),__DEV__?Se("boolean"===typeof Ae,Ae):Se("boolean"===typeof Ae,36);var Xe,Je,Ze=function(e){function t(e,n,r){je(this,t),this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=r}return ze(t,[{key:Symbol.toStringTag,get:function(){return"Location"}},{key:"toJSON",value:function(){return{start:this.start,end:this.end}}}]),t}(),et=function(e){function t(e,n,r,i,a,o){je(this,t),this.kind=e,this.start=n,this.end=r,this.line=i,this.column=a,this.value=o,this.prev=null,this.next=null}return ze(t,[{key:Symbol.toStringTag,get:function(){return"Token"}},{key:"toJSON",value:function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}]),t}(),tt={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"]},nt=new Set(Object.keys(tt));function rt(e){var t=null===e||void 0===e?void 0:e.kind;return"string"===typeof t&&nt.has(t)}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(Xe||(Xe={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(Je||(Je={}));var it=Object.freeze({});function at(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tt,r=new Map,i=0,a=Object.values(Je);i<a.length;i++){var o=a[i];r.set(o,ot(t,o))}var s=void 0,u=Array.isArray(e),l=[e],c=-1,f=[],h=e,d=void 0,p=void 0,v=[],y=[];do{var g=++c===l.length,m=g&&0!==f.length;if(g){if(d=0===y.length?void 0:v[v.length-1],h=p,p=y.pop(),m)if(u){h=h.slice();var b,x=0,k=Ge(f);try{for(k.s();!(b=k.n()).done;){var _=We(b.value,2),w=_[0],E=_[1],S=w-x;null===E?(h.splice(S,1),x++):h[S]=E}}catch(L){k.e(L)}finally{k.f()}}else{h=Object.defineProperties({},Object.getOwnPropertyDescriptors(h));var T,O=Ge(f);try{for(O.s();!(T=O.n()).done;){var C=We(T.value,2),P=C[0],M=C[1];h[P]=M}}catch(L){O.e(L)}finally{O.f()}}c=s.index,l=s.keys,f=s.edits,u=s.inArray,s=s.prev}else if(p){if(null===(h=p[d=u?c:l[c]])||void 0===h)continue;v.push(d)}var D,I=void 0;if(!Array.isArray(h)){var A,N;rt(h)||Be(!1,"Invalid AST Node: ".concat(He(h),"."));var R=g?null===(A=r.get(h.kind))||void 0===A?void 0:A.leave:null===(N=r.get(h.kind))||void 0===N?void 0:N.enter;if((I=null===R||void 0===R?void 0:R.call(t,h,d,p,v,y))===it)break;if(!1===I){if(!g){v.pop();continue}}else if(void 0!==I&&(f.push([d,I]),!g)){if(!rt(I)){v.pop();continue}h=I}}if(void 0===I&&m&&f.push([d,h]),g)v.pop();else s={inArray:u,index:c,keys:l,edits:f,prev:s},l=(u=Array.isArray(h))?h:null!==(D=n[h.kind])&&void 0!==D?D:[],c=-1,f=[],p&&y.push(p),p=h}while(void 0!==s);return 0!==f.length?f[f.length-1][1]:e}function ot(e,t){var n=e[t];return"object"===typeof n?n:"function"===typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function st(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 ut(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 ut(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 ut(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 lt(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,n){return t&&lt(e.prototype,t),n&&lt(e,n),e}var ft=function(){return"function"===typeof Symbol},ht=function(e){return ft()&&Boolean(Symbol[e])},dt=function(e){return ht(e)?Symbol[e]:"@@"+e};ft()&&!ht("observable")&&(Symbol.observable=Symbol("observable"));var pt=dt("iterator"),vt=dt("observable"),yt=dt("species");function gt(e,t){var n=e[t];if(null!=n){if("function"!==typeof n)throw new TypeError(n+" is not a function");return n}}function mt(e){var t=e.constructor;return void 0!==t&&null===(t=t[yt])&&(t=void 0),void 0!==t?t:Ct}function bt(e){return e instanceof Ct}function xt(e){xt.log?xt.log(e):setTimeout((function(){throw e}))}function kt(e){Promise.resolve().then((function(){try{e()}catch(t){xt(t)}}))}function _t(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"===typeof t)t();else{var n=gt(t,"unsubscribe");n&&n.call(t)}}catch(r){xt(r)}}function wt(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function Et(e,t,n){e._state="running";var r=e._observer;try{var i=gt(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(wt(e),!i)throw n;i.call(r,n);break;case"complete":wt(e),i&&i.call(r)}}catch(a){xt(a)}"closed"===e._state?_t(e):"running"===e._state&&(e._state="ready")}function St(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 kt((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(Et(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void Et(e,t,n);e._queue.push({type:t,value:n})}}var Tt=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new Ot(this);try{this._cleanup=t.call(void 0,n)}catch(r){n.error(r)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(wt(this),_t(this))},ct(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),Ot=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){St(this._subscription,"next",e)},t.error=function(e){St(this._subscription,"error",e)},t.complete=function(){St(this._subscription,"complete")},ct(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),Ct=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 Tt(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(n,r){if("function"===typeof e)var i=t.subscribe({next:function(t){try{e(t,a)}catch(n){r(n),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function a(){i.unsubscribe(),n()}}))},t.map=function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");return new(mt(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(r){return n.error(r)}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(mt(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(r){return n.error(r)}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=mt(this),r=arguments.length>1,i=!1,a=arguments[1],o=a;return new n((function(n){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||r)try{o=e(o,t)}catch(s){return n.error(s)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(o),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 i=mt(this);return new i((function(t){var r,a=0;return function e(o){r=o.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){a===n.length?(r=void 0,t.complete()):e(i.from(n[a++]))}})}(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=mt(this);return new n((function(r){var i=[],a=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(s){return r.error(s)}var a=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(a);e>=0&&i.splice(e,1),o()}});i.push(a)},error:function(e){r.error(e)},complete:function(){o()}});function o(){a.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),a.unsubscribe()}}))},t[vt]=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=gt(t,vt);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return bt(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(ht("iterator")&&(r=gt(t,pt)))return new n((function(e){kt((function(){if(!e.closed){for(var n,i=st(r.call(t));!(n=i()).done;){var a=n.value;if(e.next(a),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){kt((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];var i="function"===typeof this?this:e;return new i((function(e){kt((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))},ct(e,null,[{key:yt,get:function(){return this}}]),e}();function Pt(e){return null!==e&&"object"===typeof e}function Mt(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw __DEV__?new Ee("Found a ".concat(e.operation," operation").concat(e.name?" named '".concat(e.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new Ee(41);"FragmentDefinition"===e.kind&&r.push(e)})),"undefined"===typeof n&&(__DEV__?Se(1===r.length,"Found ".concat(r.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):Se(1===r.length,42),n=r[0].name.value),ye(ye({},e),{definitions:xe([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function Dt(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function It(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?Se(n,"No fragment named ".concat(e.name.value,".")):Se(n,43),n;default:return null}}function At(e){return{__ref:String(e)}}function Nt(e){return Boolean(e&&"object"===typeof e&&"string"===typeof e.__ref)}function Rt(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 i={};n.fields.map((function(e){return Rt(i,e.name,e.value,r)})),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return Rt(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 __DEV__?new Ee('The inline argument "'.concat(t.value,'" of kind "').concat(n.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new Ee(52);e[t.value]=null}}ft()&&Object.defineProperty(Ct,Symbol("extensions"),{value:{symbol:vt,hostReportError:xt},configurable:!0});var Lt=["connection","include","skip","client","rest","export"],Ft=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 i={};return r.forEach((function(e){i[e]=t[e]})),"".concat(n.connection.key,"(").concat(jt(i),")")}return n.connection.key}var a=e;if(t){var o=jt(t);a+="(".concat(o,")")}return n&&Object.keys(n).forEach((function(e){-1===Lt.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@".concat(e,"(").concat(jt(n[e]),")"):a+="@".concat(e))})),a}),{setStringify:function(e){var t=jt;return jt=e,t}}),jt=function(e){return JSON.stringify(e,Vt)};function Vt(e,t){return Pt(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function zt(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return Rt(n,r,i,t)})),n}return null}function Bt(e){return e.alias?e.alias.value:e.name.value}function qt(e,t,n){if("string"===typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r<i.length;r++){var a=i[r];if(Ut(a)){if("__typename"===a.name.value)return e[Bt(a)]}else{var o=qt(e,It(a,n).selectionSet,n);if("string"===typeof o)return o}}}function Ut(e){return"Field"===e.kind}function Wt(e){return"InlineFragment"===e.kind}function Qt(e){__DEV__?Se(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):Se(e&&"Document"===e.kind,44);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new Ee('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new Ee(45);return e}));return __DEV__?Se(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):Se(t.length<=1,46),e}function Ht(e){return Qt(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function $t(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function Yt(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function Kt(e){var t=Ht(e);return __DEV__?Se(t&&"query"===t.operation,"Must contain a query definition."):Se(t&&"query"===t.operation,47),t}function Gt(e){var t;Qt(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var a=i.operation;if("query"===a||"mutation"===a||"subscription"===a)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw __DEV__?new Ee("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new Ee(51)}function Xt(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&Rt(t,e.variable.name,e.defaultValue)})),t}function Jt(e,t){return t?t(e):Ct.of()}function Zt(e){return"function"===typeof e?new nn(e):e}function en(e){return e.request.length<=1}var tn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return ve(t,e),t}(Error),nn=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return Ct.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(Zt).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var i=Zt(n),a=Zt(r||new e(Jt));return en(i)&&en(a)?new e((function(e){return t(e)?i.request(e)||Ct.of():a.request(e)||Ct.of()})):new e((function(e,n){return t(e)?i.request(e,n)||Ct.of():a.request(e,n)||Ct.of()}))},e.execute=function(e,t){return e.request(function(e,t){var n=ye({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=ye(ye({},n),"function"===typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return ye({},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?$t(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 i=r[n];if(t.indexOf(i)<0)throw __DEV__?new Ee("illegal argument: ".concat(i)):new Ee(24)}return e}(t))))||Ct.of()},e.concat=function(t,n){var r=Zt(t);if(en(r))return __DEV__&&Se.warn(new tn("You are calling concat on a terminating link, which will have no effect",r)),r;var i=Zt(n);return en(i)?new e((function(e){return r.request(e,(function(e){return i.request(e)||Ct.of()}))||Ct.of()})):new e((function(e,t){return r.request(e,(function(e){return i.request(e,t)||Ct.of()}))||Ct.of()}))},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(Jt)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new Ee("request is not implemented"):new Ee(19)},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}(),rn=function(e,t){var n;try{n=JSON.stringify(e)}catch(i){var r=__DEV__?new Ee("Network request failed. ".concat(t," is not serializable: ").concat(i.message)):new Ee(21);throw r.parseError=i,r}return n},an=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},on=Object.prototype.hasOwnProperty;function sn(e){return 9===e||32===e}function un(e){return e>=48&&e<=57}function ln(e){return e>=97&&e<=122||e>=65&&e<=90}function cn(e){return ln(e)||95===e}function fn(e){return ln(e)||un(e)||95===e}function hn(e){for(var t,n=Number.MAX_SAFE_INTEGER,r=null,i=-1,a=0;a<e.length;++a){var o,s=e[a],u=dn(s);u!==s.length&&(r=null!==(o=r)&&void 0!==o?o:a,i=a,0!==a&&u<n&&(n=u))}return e.map((function(e,t){return 0===t?e:e.slice(n)})).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function dn(e){for(var t=0;t<e.length&&sn(e.charCodeAt(t));)++t;return t}var pn=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function vn(e){return yn[e.charCodeAt(0)]}var yn=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function gn(e){return at(e,mn)}var mn={Name:{leave:function(e){return e.value}},Variable:{leave:function(e){return"$"+e.name}},Document:{leave:function(e){return bn(e.definitions,"\n\n")}},OperationDefinition:{leave:function(e){var t=kn("(",bn(e.variableDefinitions,", "),")"),n=bn([e.operation,bn([e.name,t]),bn(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+kn(" = ",r)+kn(" ",bn(i," "))}},SelectionSet:{leave:function(e){return xn(e.selections)}},Field:{leave:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,a=e.selectionSet,o=kn("",t,": ")+n,s=o+kn("(",bn(r,", "),")");return s.length>80&&(s=o+kn("(\n",_n(bn(r,"\n")),"\n)")),bn([s,bn(i," "),a]," ")}},Argument:{leave:function(e){return e.name+": "+e.value}},FragmentSpread:{leave:function(e){return"..."+e.name+kn(" ",bn(e.directives," "))}},InlineFragment:{leave:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return bn(["...",kn("on ",t),bn(n," "),r]," ")}},FragmentDefinition:{leave:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,a=e.selectionSet;return"fragment ".concat(t).concat(kn("(",bn(r,", "),")")," ")+"on ".concat(n," ").concat(kn("",bn(i," ")," "))+a}},IntValue:{leave:function(e){return e.value}},FloatValue:{leave:function(e){return e.value}},StringValue:{leave:function(e){var t=e.value;return e.block?function(e,t){var n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,a=r.length>1&&r.slice(1).every((function(e){return 0===e.length||sn(e.charCodeAt(0))})),o=n.endsWith('\\"""'),s=e.endsWith('"')&&!o,u=e.endsWith("\\"),l=s||u,c=!(null!==t&&void 0!==t&&t.minimize)&&(!i||e.length>70||l||a||o),f="",h=i&&sn(e.charCodeAt(0));return(c&&!h||a)&&(f+="\n"),f+=n,(c||l)&&(f+="\n"),'"""'+f+'"""'}(t):'"'.concat(t.replace(pn,vn),'"')}},BooleanValue:{leave:function(e){return e.value?"true":"false"}},NullValue:{leave:function(){return"null"}},EnumValue:{leave:function(e){return e.value}},ListValue:{leave:function(e){return"["+bn(e.values,", ")+"]"}},ObjectValue:{leave:function(e){return"{"+bn(e.fields,", ")+"}"}},ObjectField:{leave:function(e){return e.name+": "+e.value}},Directive:{leave:function(e){return"@"+e.name+kn("(",bn(e.arguments,", "),")")}},NamedType:{leave:function(e){return e.name}},ListType:{leave:function(e){return"["+e.type+"]"}},NonNullType:{leave:function(e){return e.type+"!"}},SchemaDefinition:{leave:function(e){var t=e.description,n=e.directives,r=e.operationTypes;return kn("",t,"\n")+bn(["schema",bn(n," "),xn(r)]," ")}},OperationTypeDefinition:{leave:function(e){return e.operation+": "+e.type}},ScalarTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives;return kn("",t,"\n")+bn(["scalar",n,bn(r," ")]," ")}},ObjectTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.interfaces,i=e.directives,a=e.fields;return kn("",t,"\n")+bn(["type",n,kn("implements ",bn(r," & ")),bn(i," "),xn(a)]," ")}},FieldDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.arguments,i=e.type,a=e.directives;return kn("",t,"\n")+n+(wn(r)?kn("(\n",_n(bn(r,"\n")),"\n)"):kn("(",bn(r,", "),")"))+": "+i+kn(" ",bn(a," "))}},InputValueDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.type,i=e.defaultValue,a=e.directives;return kn("",t,"\n")+bn([n+": "+r,kn("= ",i),bn(a," ")]," ")}},InterfaceTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.interfaces,i=e.directives,a=e.fields;return kn("",t,"\n")+bn(["interface",n,kn("implements ",bn(r," & ")),bn(i," "),xn(a)]," ")}},UnionTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,i=e.types;return kn("",t,"\n")+bn(["union",n,bn(r," "),kn("= ",bn(i," | "))]," ")}},EnumTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,i=e.values;return kn("",t,"\n")+bn(["enum",n,bn(r," "),xn(i)]," ")}},EnumValueDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives;return kn("",t,"\n")+bn([n,bn(r," ")]," ")}},InputObjectTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,i=e.fields;return kn("",t,"\n")+bn(["input",n,bn(r," "),xn(i)]," ")}},DirectiveDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.arguments,i=e.repeatable,a=e.locations;return kn("",t,"\n")+"directive @"+n+(wn(r)?kn("(\n",_n(bn(r,"\n")),"\n)"):kn("(",bn(r,", "),")"))+(i?" repeatable":"")+" on "+bn(a," | ")}},SchemaExtension:{leave:function(e){var t=e.directives,n=e.operationTypes;return bn(["extend schema",bn(t," "),xn(n)]," ")}},ScalarTypeExtension:{leave:function(e){return bn(["extend scalar",e.name,bn(e.directives," ")]," ")}},ObjectTypeExtension:{leave:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return bn(["extend type",t,kn("implements ",bn(n," & ")),bn(r," "),xn(i)]," ")}},InterfaceTypeExtension:{leave:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return bn(["extend interface",t,kn("implements ",bn(n," & ")),bn(r," "),xn(i)]," ")}},UnionTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.types;return bn(["extend union",t,bn(n," "),kn("= ",bn(r," | "))]," ")}},EnumTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.values;return bn(["extend enum",t,bn(n," "),xn(r)]," ")}},InputObjectTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.fields;return bn(["extend input",t,bn(n," "),xn(r)]," ")}}};function bn(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 xn(e){return kn("{\n",_n(bn(e,"\n")),"\n}")}function kn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function _n(e){return kn("  ",e.replace(/\n/g,"\n  "))}function wn(e){var t;return null!==(t=null===e||void 0===e?void 0:e.some((function(e){return e.includes("\n")})))&&void 0!==t&&t}var En={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Sn=function(e,t){return t(e)};function Tn(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={},a={};n.forEach((function(e){i=ye(ye(ye({},i),e.options),{headers:ye(ye({},i.headers),On(e.headers))}),e.credentials&&(i.credentials=e.credentials),a=ye(ye({},a),e.http)}));var o=e.operationName,s=e.extensions,u=e.variables,l=e.query,c={operationName:o,variables:u};return a.includeExtensions&&(c.extensions=s),a.includeQuery&&(c.query=t(l,gn)),{options:i,body:c}}function On(e){if(e){var t=Object.create(null);return Object.keys(Object(e)).forEach((function(n){t[n.toLowerCase()]=e[n]})),t}return e}function Cn(e){return new Ct((function(t){t.error(e)}))}var Pn=Pe((function(){return fetch})),Mn=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.print,a=void 0===i?Sn:i,o=e.includeExtensions,s=e.useGETForQueries,u=e.includeUnusedVariables,l=void 0!==u&&u,c=ge(e,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&function(e){if(!e&&"undefined"===typeof fetch)throw __DEV__?new Ee("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n  link: new HttpLink({ uri: '/graphql', fetch })\n});\n    "):new Ee(20)}(r||Pn);var f={http:{includeExtensions:o},options:c.fetchOptions,credentials:c.credentials,headers:c.headers};return new nn((function(e){var t=function(e,t){return e.getContext().uri||("function"===typeof t?t(e):t||"/graphql")}(e,n),i=e.getContext(),o={};if(i.clientAwareness){var u=i.clientAwareness,c=u.name,h=u.version;c&&(o["apollographql-client-name"]=c),h&&(o["apollographql-client-version"]=h)}var d,p=ye(ye({},o),i.headers),v={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:p},y=Tn(e,a,En,f,v),g=y.options,m=y.body;if(m.variables&&!l){var b=new Set(Object.keys(m.variables));at(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&b.delete(e.name.value)}}),b.size&&(m.variables=ye({},m.variables),b.forEach((function(e){delete m.variables[e]})))}if(!g.signal){var x=function(){if("undefined"===typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),k=x.controller,_=x.signal;(d=k)&&(g.signal=_)}if(s&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(g.method="GET"),"GET"===g.method){var w=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 i=void 0;try{i=rn(t.variables,"Variables map")}catch(S){return{parseError:S}}r("variables",i)}if(t.extensions){var a=void 0;try{a=rn(t.extensions,"Extensions map")}catch(S){return{parseError:S}}r("extensions",a)}var o="",s=e,u=e.indexOf("#");-1!==u&&(o=e.substr(u),s=e.substr(0,u));var l=-1===s.indexOf("?")?"?":"&";return{newURI:s+l+n.join("&")+o}}(t,m),E=w.newURI,S=w.parseError;if(S)return Cn(S);t=E}else try{g.body=rn(m,"Payload")}catch(S){return Cn(S)}return new Ct((function(n){var i;return(r||Pe((function(){return fetch}))||Pn)(t,g).then((function(t){return e.setContext({response:t}),t})).then((i=e,function(e){return e.text().then((function(t){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}})).then((function(t){return e.status>=300&&an(e,t,"Response not successful: Received status code ".concat(e.status)),Array.isArray(t)||on.call(t,"data")||on.call(t,"errors")||an(e,t,"Server response was missing for query '".concat(Array.isArray(i)?i.map((function(e){return e.operationName})):i.operationName,"'.")),t}))})).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){d&&d.abort()}}))}))},Dn=nn.execute;function In(){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}var An=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,Mn(t).request)||this;return n.options=t,n}return ve(t,e),t}(nn),Nn=Object.prototype,Rn=Nn.toString,Ln=Nn.hasOwnProperty,Fn=Function.prototype.toString,jn=new Map;function Vn(e,t){try{return zn(e,t)}finally{jn.clear()}}function zn(e,t){if(e===t)return!0;var n=Rn.call(e);if(n!==Rn.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(Wn(e,t))return!0;var r=Bn(e),i=Bn(t),a=r.length;if(a!==i.length)return!1;for(var o=0;o<a;++o)if(!Ln.call(t,r[o]))return!1;for(o=0;o<a;++o){var s=r[o];if(!zn(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==""+t;case"[object Map]":case"[object Set]":if(e.size!==t.size)return!1;if(Wn(e,t))return!0;for(var u=e.entries(),l="[object Map]"===n;;){var c=u.next();if(c.done)break;var f=c.value,h=f[0],d=f[1];if(!t.has(h))return!1;if(l&&!zn(d,t.get(h)))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 p=e.byteLength;if(p===t.byteLength)for(;p--&&e[p]===t[p];);return-1===p;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var v=Fn.call(e);return v===Fn.call(t)&&!function(e,t){var n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(v,Un)}return!1}function Bn(e){return Object.keys(e).filter(qn,e)}function qn(e){return void 0!==this[e]}var Un="{ [native code] }";function Wn(e,t){var n=jn.get(e);if(n){if(n.has(t))return!0}else jn.set(e,n=new Set);return n.add(t),!1}var Qn=function(){return Object.create(null)},Hn=Array.prototype,$n=Hn.forEach,Yn=Hn.slice,Kn=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=Qn),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return $n.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(Yn.call(e)))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(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}();var Gn="function"===typeof WeakMap&&!("object"===typeof navigator&&"ReactNative"===navigator.product),Xn="function"===typeof WeakSet,Jn="function"===typeof Symbol&&"function"===typeof Symbol.for;function Zn(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;__DEV__?Se(n&&1===n.length,"Incorrect number of arguments for the @".concat(r," directive.")):Se(n&&1===n.length,38);var i=n[0];__DEV__?Se(i.name&&"if"===i.name.value,"Invalid argument for the @".concat(r," directive.")):Se(i.name&&"if"===i.name.value,39);var a=i.value;__DEV__?Se(a&&("Variable"===a.kind||"BooleanValue"===a.kind),"Argument for the @".concat(r," directive must be a variable or a boolean value.")):Se(a&&("Variable"===a.kind||"BooleanValue"===a.kind),40),t.push({directive:e,ifArgument:i})}}));return t}(n).every((function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],__DEV__?Se(void 0!==i,"Invalid variable referenced in @".concat(n.name.value," directive.")):Se(void 0!==i,37)):i=r.value.value,"skip"===n.name.value?!i:i}))}function er(e,t){return function(e){var t=[];return at(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function tr(e){return e&&er(["client"],e)&&er(["export"],e)}var nr=Object.prototype.hasOwnProperty;function rr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ir(e)}function ir(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new or,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var ar=function(e,t,n){return this.merge(e[n],t[n])},or=function(){function e(e){void 0===e&&(e=ar),this.reconciler=e,this.isObject=Pt,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return Pt(t)&&Pt(e)?(Object.keys(t).forEach((function(i){if(nr.call(e,i)){var a=e[i];if(t[i]!==a){var o=n.reconciler.apply(n,xe([e,t,i],r,!1));o!==a&&((e=n.shallowCopyForMerge(e))[i]=o)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){if(Pt(e)){if(this.pastCopies.has(e)){if(!Object.isFrozen(e))return e;this.pastCopies.delete(e)}e=Array.isArray(e)?e.slice(0):ye({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)}return e},e}(),sr=Object.prototype.hasOwnProperty;function ur(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"===typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return"".concat(n,":").concat("number"===typeof r||"string"===typeof r?r:JSON.stringify(r))}var lr={dataIdFromObject:ur,addTypename:!0,resultCaching:!0,canonizeResults:!1};function cr(e){var t=e.canonizeResults;return void 0===t?lr.canonizeResults:t}var fr=/^[_a-z][_0-9a-z]*/i;function hr(e){var t=e.match(fr);return t?t[0]:e}function dr(e,t,n){return!!Pt(t)&&(vr(t)?t.every((function(t){return dr(e,t,n)})):e.selections.every((function(e){if(Ut(e)&&Zn(e,n)){var r=Bt(e);return sr.call(t,r)&&(!e.selectionSet||dr(e.selectionSet,t[r],n))}return!0})))}function pr(e){return Pt(e)&&!Nt(e)&&!vr(e)}var vr=function(e){return Array.isArray(e)};var yr,gr,mr=function(){function e(){this.known=new(Xn?WeakSet:Set),this.pool=new Kn(Gn),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return Pt(e)&&this.known.has(e)},e.prototype.pass=function(e){if(Pt(e)){var t=function(e){return Pt(e)?vr(e)?e.slice(0):ye({__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(Pt(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(s=this.pool.lookupArray(r)).array||(this.known.add(s.array=r),__DEV__&&Object.freeze(r)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),a=[i],o=this.sortedKeys(e);a.push(o.json);var s,u=a.length;if(o.sorted.forEach((function(n){a.push(t.admit(e[n]))})),!(s=this.pool.lookupArray(a)).object){var l=s.object=Object.create(i);this.known.add(l),o.sorted.forEach((function(e,t){l[e]=a[u+t]})),__DEV__&&Object.freeze(l)}return s.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}(),br=Object.assign((function(e){if(Pt(e)){void 0===yr&&xr();var t=yr.admit(e),n=gr.get(t);return void 0===n&&gr.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:xr});function xr(){yr=new mr,gr=new(Gn?WeakMap:Map)}function kr(e,t,n){return new Ct((function(r){var i=r.next,a=r.error,o=r.complete,s=0,u=!1,l={then:function(e){return new Promise((function(t){return t(e())}))}};function c(e,t){return e?function(t){++s;var n=function(){return e(t)};l=l.then(n,n).then((function(e){--s,i&&i.call(r,e),u&&f.complete()}),(function(e){throw--s,e})).catch((function(e){a&&a.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var f={next:c(t,i),error:c(n,a),complete:function(){u=!0,s||o&&o.call(r)}},h=e.subscribe(f);return function(){return h.unsubscribe()}}))}function _r(e){return e.errors&&e.errors.length>0||!1}function wr(e,t,n){var r=0;return e.forEach((function(n,i){t.call(this,n,i,e)&&(e[r++]=n)}),n),e.length=r,e}var Er={kind:"Field",name:{kind:"Name",value:"__typename"}};function Sr(e,t){return e.selectionSet.selections.every((function(e){return"FragmentSpread"===e.kind&&Sr(t[e.name.value],t)}))}function Tr(e){return Sr(Ht(e)||function(e){__DEV__?Se("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):Se("Document"===e.kind,48),__DEV__?Se(e.definitions.length<=1,"Fragment must have exactly one definition."):Se(e.definitions.length<=1,49);var t=e.definitions[0];return __DEV__?Se("FragmentDefinition"===t.kind,"Must be a fragment definition."):Se("FragmentDefinition"===t.kind,50),t}(e),Dt(Yt(e)))?null:e}function Or(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function Cr(e,t){var n=Object.create(null),r=[],i=Object.create(null),a=[],o=Tr(at(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&(e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(Or(e))))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})})),t.selectionSet&&Dr(t.selectionSet).forEach((function(e){a.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){i[e.name.value]=!0}},Directive:{enter:function(t){if(Or(e)(t))return null}}}));return o&&wr(r,(function(e){return!!e.name&&!n[e.name]})).length&&(o=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return Tr(at(t,{OperationDefinition:{enter:function(t){return ye(ye({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))})):[]})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var r=0;if(t.arguments&&t.arguments.forEach((function(e){n(e)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(r,o)),o&&wr(a,(function(e){return!!e.name&&!i[e.name]})).length&&(o=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return Tr(at(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(a,o)),o}var Pr=Object.assign((function(e){return at(Qt(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r)if(!r.some((function(e){return Ut(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(Ut(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return ye(ye({},e),{selections:xe(xe([],r,!0),[Er],!1)})}}}}})}),{added:function(e){return e===Er}}),Mr={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return"key"===e.name.value}))||__DEV__&&Se.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),t}};function Dr(e){var t=[];return e.selections.forEach((function(e){(Ut(e)||Wt(e))&&e.selectionSet?Dr(e.selectionSet).forEach((function(e){return t.push(e)})):"FragmentSpread"===e.kind&&t.push(e)})),t}function Ir(e){return"query"===Gt(e).operation?e:at(e,{OperationDefinition:{enter:function(e){return ye(ye({},e),{operation:"query"})}}})}var Ar=new Map;function Nr(e){var t=Ar.get(e)||1;return Ar.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function Rr(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function Lr(e){function t(t){Object.defineProperty(e,t,{value:Ct})}return Jn&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Fr(e){return e&&"function"===typeof e.then}var jr=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.addCount=0,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],Rr(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),Rr(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?Fr(e)?e.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=e.subscribe(n.handlers):(n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),Rr(n.observers,"complete"))}}},n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"===typeof t&&(t=[new Ct(t)]),Fr(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return ve(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),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},t.prototype.cleanup=function(e){var t=this,n=!1,r=function(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},a=this.addCount;this.addObserver(i),this.addCount=a},t}(Ct);function Vr(e){return Array.isArray(e)&&e.length>0}Lr(jr);var zr,Br=function(e){function t(n){var r=n.graphQLErrors,i=n.clientErrors,a=n.networkError,o=n.errorMessage,s=n.extraInfo,u=e.call(this,o)||this;return u.graphQLErrors=r||[],u.clientErrors=i||[],u.networkError=a||null,u.message=o||function(e){var t="";return(Vr(e.graphQLErrors)||Vr(e.clientErrors))&&(e.graphQLErrors||[]).concat(e.clientErrors||[]).forEach((function(e){var n=e?e.message:"Error message not found.";t+="".concat(n,"\n")})),e.networkError&&(t+="".concat(e.networkError.message,"\n")),t=t.replace(/\n$/,"")}(u),u.extraInfo=s,u.__proto__=t.prototype,u}return ve(t,e),t}(Error);function qr(e){return!!e&&e<7}!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"}(zr||(zr={}));var Ur=Object.prototype.toString;function Wr(e){return Qr(e)}function Qr(e,t){switch(Ur.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]=Qr(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]=Qr(e[n],t)})),r;default:return e}}var Hr=Object.assign,$r=Object.hasOwnProperty,Yr=!1,Kr=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,a=e.call(this,(function(e){try{var n=e._subscription._observer;n&&!n.error&&(n.error=Gr)}catch(t){}var r=!a.observers.size;a.observers.add(e);var i=a.last;return i&&i.error?e.error&&e.error(i.error):i&&i.result&&e.next&&e.next(i.result),r&&a.reobserve().catch((function(){})),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}}))||this;a.observers=new Set,a.subscriptions=new Set,a.isTornDown=!1,a.options=i,a.queryId=r.queryId||n.generateQueryId();var o=Ht(i.query);return a.queryName=o&&o.name&&o.name.value,a.initialFetchPolicy=i.fetchPolicy||"cache-first",a.queryManager=n,a.queryInfo=r,a}return ve(t,e),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(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||zr.ready,r=ye(ye({},t),{loading:qr(n),networkStatus:n}),i=this.options.fetchPolicy,a=void 0===i?"cache-first":i;if("network-only"===a||"no-cache"===a||"standby"===a||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var o=this.queryInfo.getDiff();(o.complete||this.options.returnPartialData)&&(r.data=o.result),Vn(r.data,{})&&(r.data=void 0),o.complete?(delete r.partial,!o.complete||r.networkStatus!==zr.loading||"cache-first"!==a&&"cache-only"!==a||(r.networkStatus=zr.ready,r.loading=!1)):r.partial=!0,!__DEV__||o.complete||this.options.partialRefetch||r.loading||r.data||r.error||Xr(o.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!Vn(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||Vn(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",__DEV__&&e&&$r.call(e,"variables")){var i=Kt(this.options.query),a=i.variableDefinitions;a&&a.some((function(e){return"variables"===e.variable.name.value}))||__DEV__&&Se.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=i.name)||void 0===t?void 0:t.value)||JSON.stringify(i),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!Vn(this.options.variables,e)&&(n.variables=this.options.variables=ye(ye({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,zr.refetch)},t.prototype.fetchMore=function(e){var t=this,n=ye(ye({},e.query?e:ye(ye(ye({},this.options),e),{variables:ye(ye({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=zr.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,zr.fetchMore).then((function(r){var i=r.data,a=e.updateQuery;return a?(__DEV__&&!Yr&&(__DEV__&&Se.warn("The updateQuery callback for fetchMore is deprecated, and will be removed\nin the next major version of Apollo Client.\n\nPlease convert updateQuery functions to field policies with appropriate\nread and merge functions, or use/adapt a helper function (such as\nconcatPagination, offsetLimitPagination, or relayStylePagination) from\n@apollo/client/utilities.\n\nThe field policy system handles pagination more effectively than a\nhand-written updateQuery function, and you only need to define the policy\nonce, rather than every time you call fetchMore."),Yr=!0),t.updateQuery((function(e){return a(e,{fetchMoreResult:i,variables:n.variables})}))):t.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:i}),r})).finally((function(){t.queryManager.stopQuery(r),t.reobserve()}))},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 i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError?e.onError(t):__DEV__&&Se.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return Vn(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},zr.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.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n){if(!t||t.interval!==n){__DEV__?Se(n,"Attempted to start a polling query without a polling interval."):Se(n,10),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(qr(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},zr.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=ye(ye({},this.last),{result:this.queryManager.assumeImmutableResults?e:Wr(e),variables:t}),Vr(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===zr.refetch||t===zr.fetchMore||t===zr.poll,i=this.options.variables,a=r?In(this.options,e):Hr(this.options,In(e));r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!Vn(e.variables,i)&&(a.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=zr.setVariables)));var o=a.variables&&ye({},a.variables),s=this.fetch(a,t),u={next:function(e){n.reportResult(e,o)},error:function(e){n.reportError(e,o)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer,!0),this.concast=s,this.observer=u),s.addObserver(u),s.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this.getLastError();(n||this.isDifferentFromLastResult(e))&&((n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),Rr(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=ye(ye({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:zr.error,loading:!1});this.updateLastResult(n,t),Rr(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}(Ct);function Gr(e){__DEV__&&Se.error("Unhandled error",e.message,e.stack)}function Xr(e){__DEV__&&e&&__DEV__&&Se.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}Lr(Kr);var Jr=null,Zr={},ei=1,ti="@wry/context:Slot",ni=Array,ri=ni[ti]||function(){var e=function(){function e(){this.id=["slot",ei++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=Jr;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===Zr)break;return e!==Jr&&(Jr.slots[this.id]=t),!0}return Jr&&(Jr.slots[this.id]=Zr),!1},e.prototype.getValue=function(){if(this.hasValue())return Jr.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,a=((i={__proto__:null})[this.id]=e,i),o=Jr;Jr={parent:o,slots:a};try{return t.apply(r,n)}finally{Jr=o}},e.bind=function(e){var t=Jr;return function(){var n=Jr;try{return Jr=t,e.apply(this,arguments)}finally{Jr=n}}},e.noContext=function(e,t,n){if(!Jr)return e.apply(n,t);var r=Jr;try{return Jr=null,e.apply(n,t)}finally{Jr=r}},e}();try{Object.defineProperty(ni,ti,{value:ni[ti]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();ri.bind,ri.noContext;function ii(){}var ai,oi=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=ii),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=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},e.prototype.set=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)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=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}(),si=new ri,ui=Object.prototype.hasOwnProperty,li=void 0===(ai=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:ai;function ci(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var fi=[];function hi(e,t){if(!e)throw new Error(t||"assertion failure")}function di(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var pi=function(){function e(t){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 e.prototype.peek=function(){if(1===this.value.length&&!gi(this))return vi(this),this.value[0]},e.prototype.recompute=function(e){return hi(!this.recomputing,"already recomputing"),vi(this),gi(this)?function(e,t){Ei(e),si.withValue(e,yi,[e,t]),function(e,t){if("function"===typeof e.subscribe)try{ci(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(n){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,gi(e))return;bi(e)}(e);return di(e.value)}(this,e):di(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,mi(this),ci(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),Ei(this),xi(this,(function(t,n){t.setDirty(),Si(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=fi.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(li(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),fi.push(this.deps),this.deps=null)},e.count=0,e}();function vi(e){var t=si.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),gi(e)?ki(t,e):_i(t,e),t}function yi(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function gi(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function mi(e){xi(e,ki)}function bi(e){xi(e,_i)}function xi(e,t){var n=e.parents.size;if(n)for(var r=li(e.parents),i=0;i<n;++i)t(r[i],e)}function ki(e,t){hi(e.childValues.has(t)),hi(gi(t));var n=!gi(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=fi.pop()||new Set;e.dirtyChildren.add(t),n&&mi(e)}function _i(e,t){hi(e.childValues.has(t)),hi(!gi(t));var n=e.childValues.get(t);0===n.length?e.childValues.set(t,t.value.slice(0)):function(e,t){var n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),wi(e,t),gi(e)||bi(e)}function wi(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(fi.length<100&&fi.push(n),e.dirtyChildren=null))}function Ei(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){Si(e,n)})),e.forgetDeps(),hi(null===e.dirtyChildren)}function Si(e,t){t.parents.delete(e),e.childValues.delete(t),wi(e,t)}var Ti={setDirty:!0,dispose:!0,forget:!0};function Oi(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=si.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"===typeof n&&(ci(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&ui.call(Ti,n)?n:"setDirty";li(r).forEach((function(e){return e[i]()})),t.delete(e),ci(r)}},r}function Ci(){var e=new Kn("function"===typeof WeakMap);return function(){return e.lookupArray(arguments)}}Ci();var Pi=new Set;function Mi(e,t){void 0===t&&(t=Object.create(null));var n=new oi(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||Ci(),a=function(){var a=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===a)return e.apply(null,arguments);var o=n.get(a);o||(n.set(a,o=new pi(e)),o.subscribe=t.subscribe,o.forget=function(){return n.delete(a)});var s=o.recompute(Array.prototype.slice.call(arguments));return n.set(a,o),Pi.add(n),si.hasValue()||(Pi.forEach((function(e){return e.clean()})),Pi.clear()),s};function o(e){var t=n.get(e);t&&t.setDirty()}function s(e){var t=n.get(e);if(t)return t.peek()}function u(e){return n.delete(e)}return Object.defineProperty(a,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),a.dirtyKey=o,a.dirty=function(){o(i.apply(null,arguments))},a.peekKey=s,a.peek=function(){return s(i.apply(null,arguments))},a.forgetKey=u,a.forget=function(){return u(i.apply(null,arguments))},a.makeCacheKey=i,a.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(a)}var Di=new ri,Ii=new WeakMap;function Ai(e){var t=Ii.get(e);return t||Ii.set(e,t={vars:new Set,dep:Oi()}),t}function Ni(e){Ai(e).vars.forEach((function(t){return t.forgetCache(e)}))}function Ri(e){var t=new Set,n=new Set,r=function r(a){if(arguments.length>0){if(e!==a){e=a,t.forEach((function(e){Ai(e).dep.dirty(r),Li(e)}));var o=Array.from(n);n.clear(),o.forEach((function(t){return t(e)}))}}else{var s=Di.getValue();s&&(i(s),Ai(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),Ai(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function Li(e){e.broadcastWatches&&e.broadcastWatches()}var Fi=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=rr(t.resolvers,e)})):this.resolvers=rr(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){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,a=e.onlyRunForcedResolvers,o=void 0!==a&&a;return me(this,void 0,void 0,(function(){return be(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,o).then((function(e){return ye(ye({},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 er(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){Qt(e);var t=Cr([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=at(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return Ut(e)&&"__typename"===e.name.value})))return null}}})),t}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return ye(ye({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),me(this,void 0,void 0,(function(){return be(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return ye(ye({},t),e.exportedVariables)}))]:[2,ye({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return at(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 it}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Ir(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,a){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===a&&(a=!1),me(this,void 0,void 0,(function(){var o,s,u,l,c,f,h,d,p;return be(this,(function(v){return o=Gt(e),s=Yt(e),u=Dt(s),l=o.operation,c=l?l.charAt(0).toUpperCase()+l.slice(1):"Query",h=(f=this).cache,d=f.client,p={fragmentMap:u,context:ye(ye({},n),{cache:h,client:d}),variables:r,fragmentMatcher:i,defaultOperationType:c,exportedVariables:{},onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(o.selectionSet,t,p).then((function(e){return{result:e,exportedVariables:p.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return me(this,void 0,void 0,(function(){var r,i,a,o,s,u=this;return be(this,(function(l){return r=n.fragmentMap,i=n.context,a=n.variables,o=[t],s=function(e){return me(u,void 0,void 0,(function(){var s,u;return be(this,(function(l){return Zn(e,a)?Ut(e)?[2,this.resolveField(e,t,n).then((function(t){var n;"undefined"!==typeof t&&o.push(((n={})[Bt(e)]=t,n))}))]:(Wt(e)?s=e:(s=r[e.name.value],__DEV__?Se(s,"No fragment named ".concat(e.name.value)):Se(s,9)),s&&s.typeCondition&&(u=s.typeCondition.name.value,n.fragmentMatcher(t,u,i))?[2,this.resolveSelectionSet(s.selectionSet,t,n).then((function(e){o.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return ir(o)}))]}))}))},e.prototype.resolveField=function(e,t,n){return me(this,void 0,void 0,(function(){var r,i,a,o,s,u,l,c,f,h=this;return be(this,(function(d){return r=n.variables,i=e.name.value,a=Bt(e),o=i!==a,s=t[a]||t[i],u=Promise.resolve(s),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(l=t.__typename||n.defaultOperationType,(c=this.resolvers&&this.resolvers[l])&&(f=c[o?i:a])&&(u=Promise.resolve(Di.withValue(this.cache,f,[t,zt(e,r),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,u.then((function(t){return void 0===t&&(t=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&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?h.resolveSubSelectedArray(e,t,n):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}(),ji=new(Gn?WeakMap:Map);function Vi(e,t){var n=e[t];"function"===typeof n&&(e[t]=function(){return ji.set(e,(ji.get(e)+1)%1e15),n.apply(this,arguments)})}function zi(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Bi=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.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;ji.has(n)||(ji.set(n,0),Vi(n,"evict"),Vi(n,"modify"),Vi(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||zr.loading;return this.variables&&this.networkStatus!==zr.loading&&!Vn(this.variables,e.variables)&&(t=zr.setVariables),Vn(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(){zi(this),this.lastDiff=void 0,this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&Vn(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},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=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||Vn(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.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():e.reobserve()})):delete this.oqListener)},e.prototype.notify=function(){var e=this;zi(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(qr(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,this.subscriptions.forEach((function(e){return e.unsubscribe()}));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=ye(ye({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&Vn(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===ji.get(this.cache)&&Vn(t,n.variables)&&Vn(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=Vr(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(qi(e,t.errorPolicy)?this.cache.performTransaction((function(i){if(r.shouldWrite(e,t.variables))i.writeQuery({query:r.document,data:e.data,variables:t.variables,overwrite:1===n}),r.lastWrite={result:e,variables:t.variables,dmCount:ji.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete)return void(e.data=r.lastDiff.diff.result);var a=r.getDiffOptions(t.variables),o=i.diff(a);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(o,a),o.complete&&(e.data=o.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=zr.ready},e.prototype.markError=function(e){return this.networkStatus=zr.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function qi(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!_r(e);return!r&&n&&e.data&&(r=!0),r}var Ui=Object.prototype.hasOwnProperty,Wi=function(){function e(e){var t=e.cache,n=e.link,r=e.queryDeduplication,i=void 0!==r&&r,a=e.onBroadcast,o=e.ssrMode,s=void 0!==o&&o,u=e.clientAwareness,l=void 0===u?{}:u,c=e.localState,f=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Gn?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.queryDeduplication=i,this.clientAwareness=l,this.localState=c||new Fi({cache:t}),this.ssrMode=s,this.assumeImmutableResults=!!f,(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(__DEV__?new Ee("QueryManager stopped while query was in flight"):new Ee(11))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,a=e.refetchQueries,o=void 0===a?[]:a,s=e.awaitRefetchQueries,u=void 0!==s&&s,l=e.update,c=e.onQueryUpdated,f=e.errorPolicy,h=void 0===f?"none":f,d=e.fetchPolicy,p=void 0===d?"network-only":d,v=e.keepRootFields,y=e.context;return me(this,void 0,void 0,(function(){var e,a,s;return be(this,(function(f){switch(f.label){case 0:return __DEV__?Se(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):Se(t,12),__DEV__?Se("network-only"===p||"no-cache"===p,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):Se("network-only"===p||"no-cache"===p,13),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,y)]:[3,2];case 1:n=f.sent(),f.label=2;case 2:return a=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:n,loading:!0,error:null}),r&&this.markMutationOptimistic(r,{mutationId:e,document:t,variables:n,fetchPolicy:p,errorPolicy:h,context:y,updateQueries:i,update:l,keepRootFields:v}),this.broadcastQueries(),s=this,[2,new Promise((function(f,d){return kr(s.getObservableFromLink(t,ye(ye({},y),{optimisticResponse:r}),n,!1),(function(f){if(_r(f)&&"none"===h)throw new Br({graphQLErrors:f.errors});a&&(a.loading=!1,a.error=null);var d=ye({},f);return"function"===typeof o&&(o=o(d)),"ignore"===h&&_r(d)&&delete d.errors,s.markMutationResult({mutationId:e,result:d,document:t,variables:n,fetchPolicy:p,errorPolicy:h,context:y,update:l,updateQueries:i,awaitRefetchQueries:u,refetchQueries:o,removeOptimistic:r?e:void 0,onQueryUpdated:c,keepRootFields:v})})).subscribe({next:function(e){s.broadcastQueries(),f(e)},error:function(t){a&&(a.loading=!1,a.error=t),r&&s.cache.removeOptimistic(e),s.broadcastQueries(),d(t instanceof Br?t:new Br({networkError:t}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],a="no-cache"===e.fetchPolicy;if(!a&&qi(r,e.errorPolicy)){i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var o=e.updateQueries;o&&this.queries.forEach((function(e,a){var s=e.observableQuery,u=s&&s.queryName;if(u&&Ui.call(o,u)){var l=o[u],c=n.queries.get(a),f=c.document,h=c.variables,d=t.diff({query:f,variables:h,returnPartialData:!0,optimistic:!1}),p=d.result;if(d.complete&&p){var v=l(p,{mutationResult:r,queryName:f&&$t(f)||void 0,queryVariables:h});v&&i.push({result:v,dataId:"ROOT_QUERY",query:f,variables:h})}}}))}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var s=[];if(this.refetchQueries({updateCache:function(t){a||i.forEach((function(e){return t.write(e)}));var o=e.update;if(o){if(!a){var s=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});s.complete&&(r=ye(ye({},r),{data:s.result}))}o(t,r,{context:e.context,variables:e.variables})}a||e.keepRootFields||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 s.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(s).then((function(){return r}))}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"===typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult(ye(ye({},t),{result:{data:r}}),e)}catch(i){__DEV__&&Se.error(i)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).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){var t,n=this.transformCache;if(!n.has(e)){var r=this.cache.transformDocument(e),i=(t=this.cache.transformForLink(r),Cr([Mr],Qt(t))),a=this.localState.clientQuery(r),o=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:tr(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:a,serverQuery:o,defaultVars:Xt(Ht(r)),asQuery:ye(ye({},r),{definitions:r.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?ye(ye({},e),{operation:"query"}):e}))})},u=function(e){e&&!n.has(e)&&n.set(e,s)};u(e),u(r),u(a),u(o)}return n.get(e)},e.prototype.getVariables=function(e,t){return ye(ye({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){"undefined"===typeof(e=ye(ye({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new Bi(this),n=new Kr({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:e.query,observableQuery:n,variables:e.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?Se(e.query,"query option is required. You must specify your GraphQL document in the query option."):Se(e.query,14),__DEV__?Se("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):Se("Document"===e.query.kind,15),__DEV__?Se(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):Se(!e.returnPartialData,16),__DEV__?Se(!e.pollInterval,"pollInterval option only supported on watchQuery."):Se(!e.pollInterval,17),this.fetchQuery(t,e).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(__DEV__?new Ee("Store reset while query was in flight (not completed in link chain)"):new Ee(18)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=zr.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,i=new Set;return Array.isArray(e)&&e.forEach((function(e){var n;"string"===typeof e?r.set(e,!1):Pt(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):Pt(e)&&e.query&&i.add(e)})),this.queries.forEach((function(t,i){var a=t.observableQuery,o=t.document;if(a){if("all"===e)return void n.set(i,a);var s=a.queryName;if("standby"===a.options.fetchPolicy||"active"===e&&!a.hasObservers())return;("active"===e||s&&r.has(s)||o&&r.has(o))&&(n.set(i,a),s&&r.set(s,!0),o&&r.set(o,!0))}})),i.size&&i.forEach((function(e){var r=Nr("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),a=new Kr({queryManager:t,queryInfo:i,options:ye(ye({},e),{fetchPolicy:"network-only"})});Se(a.queryId===r),i.setObservableQuery(a),n.set(r,a)})),__DEV__&&r.size&&r.forEach((function(e,t){e||__DEV__&&Se.warn("Unknown query ".concat("string"===typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))})),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,i){var a=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==a&&"cache-only"!==a)&&n.push(r.refetch()),t.getQuery(i).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,i=e.errorPolicy,a=e.variables,o=e.context,s=void 0===o?{}:o;n=this.transform(n).document,a=this.getVariables(n,a);var u=function(e){return t.getObservableFromLink(n,s,e).map((function(a){if("no-cache"!==r&&(qi(a,i)&&t.cache.write({query:n,result:a.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),_r(a))throw new Br({graphQLErrors:a.errors});return a}))};if(this.transform(n).hasClientExports){var l=this.localState.addExportedVariables(n,a,s).then(u);return new Ct((function(e){var t=null;return l.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return u(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.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 i,a,o=this;void 0===r&&(r=null!==(i=null===t||void 0===t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var u=this.inFlightLinkObservables,l=this.link,c={query:s,variables:n,operationName:$t(s)||void 0,context:this.prepareContext(ye(ye({},t),{forceFetch:!r}))};if(t=c.context,r){var f=u.get(s)||new Map;u.set(s,f);var h=br(n);if(!(a=f.get(h))){var d=new jr([Dn(l,c)]);f.set(h,a=d),d.cleanup((function(){f.delete(h)&&f.size<1&&u.delete(s)}))}}else a=new jr([Dn(l,c)])}else a=new jr([Ct.of({data:{}})]),t=this.prepareContext(t);var p=this.transform(e).clientQuery;return p&&(a=kr(a,(function(e){return o.localState.runResolvers({document:p,remoteResult:e,context:t,variables:n})}))),a},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return kr(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var a=Vr(i.errors);if(r>=e.lastRequestId){if(a&&"none"===n.errorPolicy)throw e.markError(new Br({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var o={data:i.data,loading:!1,networkStatus:e.networkStatus||zr.ready};return a&&"ignore"!==n.errorPolicy&&(o.errors=i.errors),o}),(function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new Br({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=zr.loading);var i=this.transform(t.query).document,a=this.getVariables(i,t.variables),o=this.getQuery(e),s=t.fetchPolicy,u=void 0===s?"cache-first":s,l=t.errorPolicy,c=void 0===l?"none":l,f=t.returnPartialData,h=void 0!==f&&f,d=t.notifyOnNetworkStatusChange,p=void 0!==d&&d,v=t.context,y=void 0===v?{}:v,g=Object.assign({},t,{query:i,variables:a,fetchPolicy:u,errorPolicy:c,returnPartialData:h,notifyOnNetworkStatusChange:p,context:y}),m=function(e){return g.variables=e,r.fetchQueryByPolicy(o,g,n)};this.fetchCancelFns.set(e,(function(e){setTimeout((function(){return b.cancel(e)}))}));var b=new jr(this.transform(g.query).hasClientExports?this.localState.addExportedVariables(g.query,g.variables,g.context).then(m):m(g.variables));return b.cleanup((function(){r.fetchCancelFns.delete(e),function(e){var t=e.fetchPolicy,n=void 0===t?"cache-first":t,r=e.nextFetchPolicy;r&&(e.fetchPolicy="function"===typeof r?r.call(e,n):r)}(t)})),b},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,a=void 0!==i&&i,o=e.removeOptimistic,s=void 0===o?a?Nr("refetchQueries"):void 0:o,u=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:a&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof Bi&&e.watcher.observableQuery;if(r){if(u){l.delete(r.queryId);var i=u(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&c.set(r,i),i}null!==u&&l.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),l.size&&l.forEach((function(e,n){var r,i=e.oq,a=e.lastDiff,o=e.diff;if(u){if(!o){var s=i.queryInfo;s.reset(),o=s.getDiff()}r=u(i,o,a)}u&&!0!==r||(r=i.refetch()),!1!==r&&c.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),c},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,a=t.variables,o=t.fetchPolicy,s=t.refetchWritePolicy,u=t.errorPolicy,l=t.returnPartialData,c=t.context,f=t.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:i,variables:a,networkStatus:n});var d=function(){return e.getDiff(a)},p=function(t,n){void 0===n&&(n=e.networkStatus||zr.loading);var o=t.result;!__DEV__||l||Vn(o,{})||Xr(t.missing);var s=function(e){return Ct.of(ye({data:e,loading:qr(n),networkStatus:n},t.complete?null:{partial:!0}))};return o&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:o},context:c,variables:a,onlyRunForcedResolvers:!0}).then((function(e){return s(e.data||void 0)})):s(o)},v="no-cache"===o?0:n===zr.refetch&&"merge"!==s?1:2,y=function(){return r.getResultsFromLink(e,v,{variables:a,context:c,fetchPolicy:o,errorPolicy:u})},g=f&&"number"===typeof h&&h!==n&&qr(n);switch(o){default:case"cache-first":return(m=d()).complete?[p(m,e.markReady())]:l||g?[p(m),y()]:[y()];case"cache-and-network":var m;return(m=d()).complete||l||g?[p(m),y()]:[y()];case"cache-only":return[p(d(),e.markReady())];case"network-only":return g?[p(d()),y()]:[y()];case"no-cache":return g?[p(e.getDiff()),y()]:[y()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Bi(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return ye(ye({},t),{clientAwareness:this.clientAwareness})},e}(),Qi=!1;function Hi(e,t){return In(e,t,t.variables&&{variables:ye(ye({},e.variables),t.variables)})}var $i=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,a=e.cache,o=e.ssrMode,s=void 0!==o&&o,u=e.ssrForceFetchDelay,l=void 0===u?0:u,c=e.connectToDevTools,f=void 0===c?"object"===typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:c,h=e.queryDeduplication,d=void 0===h||h,p=e.defaultOptions,v=e.assumeImmutableResults,y=void 0!==v&&v,g=e.resolvers,m=e.typeDefs,b=e.fragmentMatcher,x=e.name,k=e.version,_=e.link;if(_||(_=n?new An({uri:n,credentials:r,headers:i}):nn.empty()),!a)throw __DEV__?new Ee("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new Ee(7);if(this.link=_,this.cache=a,this.disableNetworkFetches=s||l>0,this.queryDeduplication=d,this.defaultOptions=p||{},this.typeDefs=m,l&&setTimeout((function(){return t.disableNetworkFetches=!1}),l),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),f&&"object"===typeof window&&(window.__APOLLO_CLIENT__=this),!Qi&&__DEV__&&(Qi=!0,"undefined"!==typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var w=window.navigator,E=w&&w.userAgent,S=void 0;"string"===typeof E&&(E.indexOf("Chrome/")>-1?S="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":E.indexOf("Firefox/")>-1&&(S="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),S&&__DEV__&&Se.log("Download the Apollo DevTools for a better development experience: "+S)}this.version="3.5.9",this.localState=new Fi({cache:a,client:this,resolvers:g,fragmentMatcher:b}),this.queryManager=new Wi({cache:this.cache,link:this.link,queryDeduplication:d,ssrMode:s,clientAwareness:{name:x,version:k},localState:this.localState,assumeImmutableResults:y,onBroadcast:f?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Hi(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=ye(ye({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Hi(this.defaultOptions.query,e)),__DEV__?Se("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):Se("cache-and-network"!==e.fetchPolicy,8),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=ye(ye({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Hi(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.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Dn(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 i=Promise.all(r);return i.queries=n,i.results=r,i.catch((function(e){__DEV__&&Se.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))})),i},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},e}(),Yi=function(){function e(){this.getFragmentDoc=Mi(Mt)}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.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(ye(ye({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(ye(ye({},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=ge(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,i=e.fragmentName,a=ge(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var r=n.readQuery(e),i=t(r);return void 0===i||null===i?r:(n.writeQuery(ye(ye({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var r=n.readFragment(e),i=t(r);return void 0===i||null===i?r:(n.writeFragment(ye(ye({},e),{data:i})),i)}})},e}(),Ki=function(e,t,n,r){this.message=e,this.path=t,this.query=n,this.variables=r};function Gi(e){var t=new Set([e]);return t.forEach((function(e){Pt(e)&&function(e){if(__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){Pt(e[n])&&t.add(e[n])}))})),e}function Xi(e){return __DEV__&&Gi(e),e}var Ji=Object.create(null),Zi=function(){return Ji},ea=Object.create(null),ta=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 Xi(Nt(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return Nt(e)?n.has(e.__ref):"object"===typeof e},this.toReference=function(e,t){if("string"===typeof e)return At(e);if(Nt(e))return e;var r=n.policies.identify(e)[0];if(r){var i=At(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return ye({},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),sr.call(this.data,e)){var n=this.data[e];if(n&&sr.call(n,t))return n[t]}return"__typename"===t&&sr.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof aa?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),sr.call(this.data,e)?this.data[e]:this instanceof aa?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;Nt(e)&&(e=e.__ref),Nt(t)&&(t=t.__ref);var i="string"===typeof e?this.lookup(n=e):e,a="string"===typeof t?this.lookup(n=t):t;if(a){__DEV__?Se("string"===typeof n,"store.merge expects a string ID"):Se("string"===typeof n,1);var o=new or(sa).merge(i,a);if(this.data[n]=o,o!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(a).forEach((function(e){if(!i||i[e]!==o[e]){s[e]=1;var t=hr(e);t===e||r.policies.hasKeyArgs(o.__typename,t)||(s[t]=1),void 0!==o[e]||r instanceof aa||delete o[e]}})),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[n]!==o.__typename||delete s.__typename,Object.keys(s).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 i=Object.create(null),a=!1,o=!0,s={DELETE:Ji,INVALIDATE:ea,isReference:Nt,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"===typeof t?{fieldName:t,from:r||At(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(u){var l=hr(u),c=r[u];if(void 0!==c){var f="function"===typeof t?t:t[u]||t[l];if(f){var h=f===Zi?Ji:f(Xi(c),ye(ye({},s),{fieldName:l,storeFieldName:u,storage:n.getStorage(e,u)}));h===ea?n.group.dirty(e,u):(h===Ji&&(h=void 0),h!==c&&(i[u]=h,a=!0,c=h))}void 0!==c&&(o=!1)}})),a)return this.merge(e,i),o&&(this instanceof aa?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,i=this.lookup(e);if(i){var a=this.getFieldValue(i,"__typename"),o=t&&n?this.policies.getStoreFieldName({typename:a,fieldName:t,args:n}):t;return this.modify(e,o?((r={})[o]=Zi,r):Zi)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(sr.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof aa&&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){sr.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&&sr.call(e,n)||t.delete(n)})),e){var n=e.__META,r=ge(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 aa?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){sr.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 i=this;i instanceof aa;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!sr.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){Nt(e)&&(t[e.__ref]=!0),Pt(e)&&Object.keys(e).forEach((function(t){var n=e[t];Pt(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),na=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?Oi():null,this.keyMaker=new Kn(Gn)},e.prototype.depend=function(e,t){if(this.d){this.d(ra(e,t));var n=hr(t);n!==t&&this.d(ra(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(ra(e,t),"__exists"===t?"forget":"setDirty")},e}();function ra(e,t){return t+"#"+e}function ia(e,t){ua(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,a=t.seed,o=e.call(this,n,new na(i))||this;return o.stump=new oa(o),o.storageTrie=new Kn(Gn),a&&o.replace(a),o}return ve(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}(ta||(ta={}));var aa=function(e){function t(t,n,r,i){var a=e.call(this,n.policies,i)||this;return a.id=t,a.parent=n,a.replay=r,a.group=i,r(a),a}return ve(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],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach((function(n){Vn(r[n],i[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(i).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 ye(ye({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return sr.call(this.data,t)?ye(ye({},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}(ta),oa=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new na(t.group.caching,t.group))||this}return ve(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(aa);function sa(e,t,n){var r=e[n],i=t[n];return Vn(r,i)?r:i}function ua(e){return!!(e instanceof ta&&e.group.caching)}function la(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var ca=function(){function e(e){var t=this;this.knownResults=new(Gn?WeakMap:Map),this.config=In(e,{addTypename:!1!==e.addTypename,canonizeResults:cr(e)}),this.canon=e.canon||new mr,this.executeSelectionSet=Mi((function(e){var n,r=e.context.canonizeResults,i=la(e);i[3]=!r;var a=(n=t.executeSelectionSet).peek.apply(n,i);return a?r?ye(ye({},a),{result:t.canon.admit(a.result)}):a:(ia(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:la,makeCacheKey:function(e,t,n,r){if(ua(n.store))return n.store.makeCacheKey(e,Nt(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=Mi((function(e){return ia(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(ua(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new mr},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,a=e.variables,o=e.returnPartialData,s=void 0===o||o,u=e.canonizeResults,l=void 0===u?this.config.canonizeResults:u,c=this.config.cache.policies;a=ye(ye({},Xt(Kt(n))),a);var f,h=At(i),d=new or,p=this.executeSelectionSet({selectionSet:Gt(n).selectionSet,objectOrReference:h,enclosingRef:h,context:{store:t,query:n,policies:c,variables:a,varString:br(a),canonizeResults:l,fragmentMap:Dt(Yt(n)),merge:function(e,t){return d.merge(e,t)}}});if(p.missing&&(f=[new Ki(fa(p.missing),p.missing,n,a)],!s))throw f[0];return{result:p.result,complete:!f,missing:f}},e.prototype.isFresh=function(e,t,n,r){if(ua(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,a=e.context;if(Nt(r)&&!a.policies.rootTypenamesById[r.__ref]&&!a.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var o,s=a.variables,u=a.policies,l=a.store.getFieldValue(r,"__typename"),c={};function f(e,t){var n;return e.missing&&(o=a.merge(o,((n={})[t]=e.missing,n))),e.result}this.config.addTypename&&"string"===typeof l&&!u.rootIdsByTypename[l]&&(c={__typename:l});var h=new Set(n.selections);h.forEach((function(e){var n,d;if(Zn(e,s))if(Ut(e)){var p=u.readField({fieldName:e.name.value,field:e,variables:a.variables,from:r},a),v=Bt(e);void 0===p?Pr.added(e)||(o=a.merge(o,((n={})[v]="Can't find field '".concat(e.name.value,"' on ").concat(Nt(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),n))):vr(p)?p=f(t.executeSubSelectedArray({field:e,array:p,enclosingRef:i,context:a}),v):e.selectionSet?null!=p&&(p=f(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:p,enclosingRef:Nt(p)?p:i,context:a}),v)):a.canonizeResults&&(p=t.canon.pass(p)),void 0!==p&&(c=a.merge(c,((d={})[v]=p,d)))}else{var y=It(e,a.fragmentMap);y&&u.fragmentMatches(y,l)&&y.selectionSet.selections.forEach(h.add,h)}}));var d={result:c,missing:o},p=a.canonizeResults?this.canon.admit(d):Xi(d);return p.result&&this.knownResults.set(p.result,n),p},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,a=e.enclosingRef,o=e.context;function s(e,n){var r;return e.missing&&(t=o.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(i=i.filter(o.store.canRead)),i=i.map((function(e,t){return null===e?null:vr(e)?s(n.executeSubSelectedArray({field:r,array:e,enclosingRef:a,context:o}),t):r.selectionSet?s(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:Nt(e)?e:a,context:o}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){Pt(n)&&(__DEV__?Se(!Nt(n),"Missing selection set for object of type ".concat(function(e,t){return Nt(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)," returned for query field ").concat(t.name.value)):Se(!Nt(n),5),Object.values(n).forEach(r.add,r))}))}}(o.store,r,e),e)})),{result:o.canonizeResults?this.canon.admit(i):i,missing:t}},e}();function fa(e){try{JSON.stringify(e,(function(e,t){if("string"===typeof t)throw t;return t}))}catch(t){return t}}var ha=Object.create(null);function da(e){var t=JSON.stringify(e);return ha[t]||(ha[t]=Object.create(null))}function pa(e){var t=da(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=ya(e,(function(e){var i=ba(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&sr.call(t,e[0])&&(i=ba(t,e,ma)),__DEV__?Se(void 0!==i,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):Se(void 0!==i,2),i}));return"".concat(n.typename,":").concat(JSON.stringify(i))})}function va(e){var t=da(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,a=n.fieldName,o=ya(e,(function(e){var n=e[0],a=n.charAt(0);if("@"!==a)if("$"!==a){if(t)return ba(t,e)}else{var o=n.slice(1);if(i&&sr.call(i,o)){var s=e.slice(0);return s[0]=o,ba(i,s)}}else if(r&&Vr(r.directives)){var u=n.slice(1),l=r.directives.find((function(e){return e.name.value===u})),c=l&&zt(l,i);return c&&ba(c,e.slice(1))}})),s=JSON.stringify(o);return(t||"{}"!==s)&&(a+=":"+s),a})}function ya(e,t){var n=new or;return ga(e).reduce((function(e,r){var i,a=t(r);if(void 0!==a){for(var o=r.length-1;o>=0;--o)(i={})[r[o]]=a,a=i;e=n.merge(e,a)}return e}),Object.create(null))}function ga(e){var t=da(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach((function(t,i){vr(t)?(ga(t).forEach((function(e){return n.push(r.concat(e))})),r.length=0):(r.push(t),vr(e[i+1])||(n.push(r.slice(0)),r.length=0))}))}return t.paths}function ma(e,t){return e[t]}function ba(e,t,n){return n=n||ma,xa(t.reduce((function e(t,r){return vr(t)?t.map((function(t){return e(t,r)})):t&&n(t,r)}),e))}function xa(e){return Pt(e)?vr(e)?e.map(xa):ya(Object.keys(e).sort(),(function(t){return ba(e,t)})):e}function ka(e){return void 0!==e.args?e.args:e.field?zt(e.field,e.variables):null}Ft.setStringify(br);var _a=function(){},wa=function(e,t){return t.fieldName},Ea=function(e,t,n){return(0,n.mergeObjects)(e,t)},Sa=function(e,t){return t},Ta=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=ye({dataIdFromObject:ur},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,i=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a,o=t&&t.storeObject||e,s=ye(ye({},t),{typename:i,storeObject:o,readField:t&&t.readField||function(){var e=Ca(arguments,o);return r.readField(e,{store:r.cache.data,variables:e.variables})}}),u=i&&this.getTypePolicy(i),l=u&&u.keyFn||this.config.dataIdFromObject;l;){var c=l(e,s);if(!vr(c)){a=c;break}l=pa(c)}return a=a?String(a):void 0,s.keyObject?[a,s.keyObject]:[a]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,a=r.mutationType,o=r.subscriptionType,s=ge(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),a&&t.setRootTypename("Mutation",n),o&&t.setRootTypename("Subscription",n),sr.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,a=t.fields;function o(e,t){e.merge="function"===typeof t?t:!0===t?Ea:!1===t?Sa:e.merge}o(r,t.merge),r.keyFn=!1===i?_a:vr(i)?pa(i):"function"===typeof i?i:r.keyFn,a&&Object.keys(a).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=a[t];if("function"===typeof i)r.read=i;else{var s=i.keyArgs,u=i.read,l=i.merge;r.keyFn=!1===s?wa:vr(s)?va(s):"function"===typeof s?s:r.keyFn,"function"===typeof u&&(r.read=u),o(r,l)}r.read&&r.merge&&(r.keyFn=r.keyFn||wa)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?Se(!r||r===e,"Cannot change root ".concat(e," __typename more than once")):Se(!r||r===e,3),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(fr);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!sr.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),i=r.fields,a=ge(r,["fields"]);Object.assign(n,a),Object.assign(n.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.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 i=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var o=this.getSupertypeSet(t,!0),s=[o],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},l=!(!n||!this.fuzzySubtypes.size),c=!1,f=0;f<s.length;++f){var h=s[f];if(h.has(a))return o.has(a)||(c&&__DEV__&&Se.warn("Inferring subtype ".concat(t," of supertype ").concat(a)),o.add(a)),!0;h.forEach(u),l&&f===s.length-1&&dr(e.selectionSet,n,r)&&(l=!1,c=!0,this.fuzzySubtypes.forEach((function(e,n){var r=t.match(e);r&&r[0]===t&&u(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,i=this.getFieldPolicy(n,r,!1),a=i&&i.keyFn;if(a&&n)for(var o={typename:n,fieldName:r,field:e.field||null,variables:e.variables},s=ka(e);a;){var u=a(s,o);if(!vr(u)){t=u||r;break}a=va(u)}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 i=r.name,a=r.value;return Rt(n[e.name.value],i,a,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return Rt(r,n,i,t)}))),Ft(e.name.value,r,n)}(e.field,e.variables):Ft(r,ka(e))),!1===t?r:r===hr(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 i=this.getStoreFieldName(e),a=hr(i),o=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,a,!1),u=s&&s.read;if(u){var l=Oa(this,n,e,t,t.store.getStorage(Nt(n)?n.__ref:n,i));return Di.withValue(this.cache,u,[o,l])}return o}},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),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var a=n.field,o=n.typename,s=n.merge;return s===Ea?Pa(r.store)(e,t):s===Sa?t:(r.overwrite&&(e=void 0),s(e,t,Oa(this,void 0,{typename:o,fieldName:a.name.value,field:a,variables:r.variables},r,i||Object.create(null))))},e}();function Oa(e,t,n,r,i){var a=e.getStoreFieldName(n),o=hr(a),s=n.variables||r.variables,u=r.store,l=u.toReference,c=u.canRead;return{args:ka(n),field:n.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:Nt,toReference:l,storage:i,cache:e.cache,canRead:c,readField:function(){return e.readField(Ca(arguments,t,r),r)},mergeObjects:Pa(r.store)}}function Ca(e,t,n){var r,i=e[0],a=e[1],o=e.length;return"string"===typeof i?r={fieldName:i,from:o>1?a:t}:(r=ye({},i),sr.call(r,"from")||(r.from=t)),__DEV__&&void 0===r.from&&__DEV__&&Se.warn("Undefined 'from' passed to readField with arguments ".concat(function(e){var t=Nr("stringifyForDisplay");return JSON.stringify(e,(function(e,n){return void 0===n?t:n})).split(JSON.stringify(t)).join("<undefined>")}(Array.from(e)))),void 0===r.variables&&(r.variables=n),r}function Pa(e){return function(t,n){if(vr(t)||vr(n))throw __DEV__?new Ee("Cannot automatically merge arrays"):new Ee(4);if(Pt(t)&&Pt(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(Nt(t)&&pr(n))return e.merge(t.__ref,n),t;if(pr(t)&&Nt(n))return e.merge(t,n.__ref),n;if(pr(t)&&pr(n))return ye(ye({},t),n)}return n}}function Ma(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:ye(ye({},e),{clientOnly:t,deferred:n})),i}var Da=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,a=t.dataId,o=t.variables,s=t.overwrite,u=Ht(r),l=new or;o=ye(ye({},Xt(u)),o);var c={store:e,written:Object.create(null),merge:function(e,t){return l.merge(e,t)},variables:o,varString:br(o),fragmentMap:Dt(Yt(r)),overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},f=this.processSelectionSet({result:i||Object.create(null),dataId:a,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:c});if(!Nt(f))throw __DEV__?new Ee("Could not identify object ".concat(JSON.stringify(i))):new Ee(6);return c.incomingById.forEach((function(t,r){var i=t.storeObject,a=t.mergeTree,o=t.fieldNodeSet,s=At(r);if(a&&a.map.size){var u=n.applyMerges(a,s,i,c);if(Nt(u))return;i=u}if(__DEV__&&!c.overwrite){var l=Object.create(null);o.forEach((function(e){e.selectionSet&&(l[e.name.value]=!0)}));Object.keys(i).forEach((function(e){(function(e){return!0===l[hr(e)]})(e)&&!function(e){var t=a&&a.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"===typeof t&&t},a=i(e);if(!a)return;var o=i(t);if(!o)return;if(Nt(a))return;if(Vn(a,o))return;if(Object.keys(a).every((function(e){return void 0!==r.getFieldValue(o,e)})))return;var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),u=hr(n),l="".concat(s,".").concat(u);if(Fa.has(l))return;Fa.add(l);var c=[];vr(a)||vr(o)||[a,o].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!==typeof t||c.includes(t)||c.push(t)}));__DEV__&&Se.warn("Cache data may be lost when replacing the ".concat(u," field of a ").concat(s," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(c.length?"either ensure all objects of type "+c.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(l," field, so InMemoryCache can safely merge these objects:\n\n  existing: ").concat(JSON.stringify(a).slice(0,1e3),"\n  incoming: ").concat(JSON.stringify(o).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n  * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n  * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}(s,i,e,c.store)}))}e.merge(r,i)})),e.retain(f.__ref),f},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,a=e.context,o=e.mergeTree,s=this.cache.policies,u=Object.create(null),l=n&&s.rootTypenamesById[n]||qt(r,i,a.fragmentMap)||n&&a.store.get(n,"__typename");"string"===typeof l&&(u.__typename=l);var c=function(){var e=Ca(arguments,u,a.variables);if(Nt(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var n=s.readField(ye(ye({},e),{from:t.storeObject}),a);if(void 0!==n)return n}}return s.readField(e,a)},f=new Set;this.flattenFields(i,r,a,l).forEach((function(e,n){var i,a=Bt(n),h=r[a];if(f.add(n),void 0!==h){var d=s.getStoreFieldName({typename:l,fieldName:n.name.value,field:n,variables:e.variables}),p=Aa(o,d),v=t.processFieldValue(h,n,n.selectionSet?Ma(e,!1,!1):e,p),y=void 0;n.selectionSet&&(Nt(v)||pr(v))&&(y=c("__typename",v));var g=s.getMergeFunction(l,n.name.value,y);g?p.info={field:n,typename:l,merge:g}:La(o,d),u=e.merge(u,((i={})[d]=v,i))}else!__DEV__||e.clientOnly||e.deferred||Pr.added(n)||s.getReadFunction(l,n.name.value)||__DEV__&&Se.error("Missing field '".concat(Bt(n),"' while writing result ").concat(JSON.stringify(r,null,2)).substring(0,1e3))}));try{var h=s.identify(r,{typename:l,selectionSet:i,fragmentMap:a.fragmentMap,storeObject:u,readField:c}),d=h[0],p=h[1];n=n||d,p&&(u=a.merge(u,p))}catch(m){if(!n)throw m}if("string"===typeof n){var v=At(n),y=a.written[n]||(a.written[n]=[]);if(y.indexOf(i)>=0)return v;if(y.push(i),this.reader&&this.reader.isFresh(r,v,i,a))return v;var g=a.incomingById.get(n);return g?(g.storeObject=a.merge(g.storeObject,u),g.mergeTree=Na(g.mergeTree,o),f.forEach((function(e){return g.fieldNodeSet.add(e)}))):a.incomingById.set(n,{storeObject:u,mergeTree:Ra(o)?void 0:o,fieldNodeSet:f}),v}return u},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?vr(e)?e.map((function(e,a){var o=i.processFieldValue(e,t,n,Aa(r,a));return La(r,a),o})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?Wr(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=qt(t,e,n.fragmentMap));var i=new Map,a=this.cache.policies,o=new Kn(!1);return function e(s,u){var l=o.lookup(s,u.clientOnly,u.deferred);l.visited||(l.visited=!0,s.selections.forEach((function(o){if(Zn(o,n.variables)){var s=u.clientOnly,l=u.deferred;if(s&&l||!Vr(o.directives)||o.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var r=zt(e,n.variables);r&&!1===r.if||(l=!0)}})),Ut(o)){var c=i.get(o);c&&(s=s&&c.clientOnly,l=l&&c.deferred),i.set(o,Ma(n,s,l))}else{var f=It(o,n.fragmentMap);f&&a.fragmentMatches(f,r,t,n.variables)&&e(f.selectionSet,Ma(n,s,l))}}})))}(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var a,o=this;if(e.map.size&&!Nt(n)){var s,u=vr(n)||!Nt(t)&&!pr(t)?void 0:t,l=n;u&&!i&&(i=[Nt(u)?u.__ref:u]);var c=function(e,t){return vr(e)?"number"===typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=c(u,t),a=c(l,t);if(void 0!==a){i&&i.push(t);var f=o.applyMerges(e,n,a,r,i);f!==a&&(s=s||new Map).set(t,f),i&&Se(i.pop()===t)}})),s&&(n=vr(l)?l.slice(0):ye({},l),s.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(a=r.store).getStorage.apply(a,i)):n},e}(),Ia=[];function Aa(e,t){var n=e.map;return n.has(t)||n.set(t,Ia.pop()||{map:new Map}),n.get(t)}function Na(e,t){if(e===t||!t||Ra(t))return e;if(!e||Ra(e))return t;var n=e.info&&t.info?ye(ye({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var a=new Set(t.map.keys());e.map.forEach((function(e,n){i.map.set(n,Na(e,t.map.get(n))),a.delete(n)})),a.forEach((function(n){i.map.set(n,Na(t.map.get(n),e.map.get(n)))}))}return i}function Ra(e){return!e||!(e.info||e.map.size)}function La(e,t){var n=e.map,r=n.get(t);r&&Ra(r)&&(Ia.push(r),n.delete(t))}var Fa=new Set;var ja=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=Ri,n.txCount=0,n.config=function(e){return In(lr,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new Ta({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return ve(t,e),t.prototype.init=function(){var e=this.data=new ta.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;this.storeWriter=new Da(this,this.storeReader=new ca({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:cr(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=Mi((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(ua(n)){var r=e.optimistic,i=e.rootId,a=e.variables;return n.makeCacheKey(e.query,e.callback,br({optimistic:r,rootId:i,variables:a}))}}}),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(ye(ye({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(r){if(r instanceof Ki)return null;throw r}},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(sr.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(ye(ye({},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){Ai(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&&Ni(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){br.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},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(Nt(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(t){__DEV__&&Se.warn(t)}},t.prototype.evict=function(e){if(!e.id){if(sr.call(e,"id"))return!1;e=ye(ye({},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(),br.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),Ni(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,i=e.optimistic,a=void 0===i||i,o=e.removeOptimistic,s=e.onWatchUpdated,u=function(e){var i=n,a=i.data,o=i.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=a,n.optimisticData=o}},l=new Set;return s&&!this.txCount&&this.broadcastWatches(ye(ye({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"===typeof a?this.optimisticData=this.optimisticData.addLayer(a,u):!1===a?u(this.data):u(),"string"===typeof o&&(this.optimisticData=this.optimisticData.removeLayer(o)),s&&l.size?(this.broadcastWatches(ye(ye({},e),{onWatchUpdated:function(e,t){var n=s.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){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Pr(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,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&&Vn(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(Yi),Va=Jn?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function za(){var t=e.createContext[Va];return t||(Object.defineProperty(e.createContext,Va,{value:t=e.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t}var Ba=function(t){var n=t.client,r=t.children,i=za();return e.createElement(i.Consumer,null,(function(t){return void 0===t&&(t={}),n&&t.client!==n&&(t=Object.assign({},t,{client:n})),__DEV__?Se(t.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):Se(t.client,26),e.createElement(i.Provider,{value:t},r)}))};var qa,Ua=n(184),Wa=function(e){var t=e.animal,n=e.bgcolor,r="h-60 px-36 border-solid border-2 border-amber-800 ".concat(n," text-4xl rounded-3xl");return(0,Ua.jsx)("div",{className:"bg-charcoal flex-1 flex justify-center",children:(0,Ua.jsx)("button",{className:r,children:t})})};!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(qa||(qa={}));var Qa=new Map;function Ha(e){var t;switch(e){case qa.Query:t="Query";break;case qa.Mutation:t="Mutation";break;case qa.Subscription:t="Subscription"}return t}function $a(e,t){var n=function(e){var t,n,r=Qa.get(e);if(r)return r;__DEV__?Se(!!e&&!!e.kind,"Argument of ".concat(e," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):Se(!!e&&!!e.kind,30);var i=e.definitions.filter((function(e){return"FragmentDefinition"===e.kind})),a=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"query"===e.operation})),o=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})),s=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}));__DEV__?Se(!i.length||a.length||o.length||s.length,"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well"):Se(!i.length||a.length||o.length||s.length,31),__DEV__?Se(a.length+o.length+s.length<=1,"react-apollo only supports a query, subscription, or a mutation per HOC. "+"".concat(e," had ").concat(a.length," queries, ").concat(s.length," ")+"subscriptions and ".concat(o.length," mutations. ")+"You can use 'compose' to join multiple operation types to a component"):Se(a.length+o.length+s.length<=1,32),n=a.length?qa.Query:qa.Mutation,a.length||o.length||(n=qa.Subscription);var u=a.length?a:o.length?o:s;__DEV__?Se(1===u.length,"react-apollo only supports one definition per HOC. ".concat(e," had ")+"".concat(u.length," definitions. ")+"You can use 'compose' to join multiple operation types to a component"):Se(1===u.length,33);var l=u[0];t=l.variableDefinitions||[];var c={name:l.name&&"Name"===l.name.kind?l.name.value:"data",type:n,variables:t};return Qa.set(e,c),c}(e),r=Ha(t),i=Ha(n.type);__DEV__?Se(n.type===t,"Running a ".concat(r," requires a graphql ")+"".concat(r,", but a ").concat(i," was used instead.")):Se(n.type===t,34)}function Ya(t){var n=(0,e.useContext)(za()),r=t||n.client;return __DEV__?Se(!!r,'Could not find "client" in the context or passed in as an option. Wrap the root component in an <ApolloProvider>, or pass an ApolloClient instance in via options.'):Se(!!r,29),r}function Ka(e,t,n){var r;void 0===t&&(t={});var i=t.skip,a=(t.ssr,t.onCompleted,t.onError,t.displayName,ge(t,["skip","ssr","onCompleted","onError","displayName"])),o=ye({query:e},a);return n&&(o=Hi(n,o)),i?o.fetchPolicy="standby":(!(null===(r=o.context)||void 0===r?void 0:r.renderPromises)||"network-only"!==o.fetchPolicy&&"cache-and-network"!==o.fetchPolicy)&&o.fetchPolicy||(o.fetchPolicy="cache-first"),o.variables||(o.variables={}),o}function Ga(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Xa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ja(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}function Za(e){return Za=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Za(e)}function eo(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function to(e){return to="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},to(e)}function no(e,t){if(t&&("object"===to(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Xa(e)}function ro(e){var t=eo();return function(){var n,r=Za(e);if(t){var i=Za(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return no(this,n)}}function io(e,t,n){return io=eo()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&o(i,n.prototype),i},io.apply(null,arguments)}function ao(e){var t="function"===typeof Map?new Map:void 0;return ao=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 io(e,arguments,Za(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o(r,e)},ao(e)}function oo(e){return"object"==typeof e&&null!==e}function so(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}var uo=/\r\n|[\n\r]/g;function lo(e,t){var n,r=0,i=1,a=Ge(e.body.matchAll(uo));try{for(a.s();!(n=a.n()).done;){var o=n.value;if("number"===typeof o.index||so(!1),o.index>=t)break;r=o.index+o[0].length,i+=1}}catch(s){a.e(s)}finally{a.f()}return{line:i,column:t+1-r}}function co(e){return fo(e.source,lo(e.source,e.start))}function fo(e,t){var n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=1===t.line?n:0,u=t.column+s,l="".concat(e.name,":").concat(o,":").concat(u,"\n"),c=r.split(/\r\n|[\n\r]/g),f=c[i];if(f.length>120){for(var h=Math.floor(u/80),d=u%80,p=[],v=0;v<f.length;v+=80)p.push(f.slice(v,v+80));return l+ho([["".concat(o," |"),p[0]]].concat(Qe(p.slice(1,h+1).map((function(e){return["|",e]}))),[["|","^".padStart(d)],["|",p[h+1]]]))}return l+ho([["".concat(o-1," |"),c[i-1]],["".concat(o," |"),f],["|","^".padStart(u)],["".concat(o+1," |"),c[i+1]]])}function ho(e){var t=e.filter((function(e){var t=We(e,2);t[0];return void 0!==t[1]})),n=Math.max.apply(Math,Qe(t.map((function(e){return We(e,1)[0].length}))));return t.map((function(e){var t=We(e,2),r=t[0],i=t[1];return r.padStart(n)+(i?" "+i:"")})).join("\n")}function po(e){var t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var vo,yo,go=function(e,t){Ja(r,e);var n=ro(r);function r(e){var t,i,a,o;je(this,r);for(var s=arguments.length,u=new Array(s>1?s-1:0),l=1;l<s;l++)u[l-1]=arguments[l];var c=po(u),f=c.nodes,h=c.source,d=c.positions,p=c.path,v=c.originalError,y=c.extensions;(t=n.call(this,e)).name="GraphQLError",t.path=null!==p&&void 0!==p?p:void 0,t.originalError=null!==v&&void 0!==v?v:void 0,t.nodes=mo(Array.isArray(f)?f:f?[f]:void 0);var g=mo(null===(i=t.nodes)||void 0===i?void 0:i.map((function(e){return e.loc})).filter((function(e){return null!=e})));t.source=null!==h&&void 0!==h?h:null===g||void 0===g||null===(a=g[0])||void 0===a?void 0:a.source,t.positions=null!==d&&void 0!==d?d:null===g||void 0===g?void 0:g.map((function(e){return e.start})),t.locations=d&&h?d.map((function(e){return lo(h,e)})):null===g||void 0===g?void 0:g.map((function(e){return lo(e.source,e.start)}));var m=oo(null===v||void 0===v?void 0:v.extensions)?null===v||void 0===v?void 0:v.extensions:void 0;return t.extensions=null!==(o=null!==y&&void 0!==y?y:m)&&void 0!==o?o:Object.create(null),Object.defineProperties(Xa(t),{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!==v&&void 0!==v&&v.stack?Object.defineProperty(Xa(t),"stack",{value:v.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(Xa(t),r):Object.defineProperty(Xa(t),"stack",{value:Error().stack,writable:!0,configurable:!0}),t}return ze(r,[{key:t,get:function(){return"GraphQLError"}},{key:"toString",value:function(){var e=this.message;if(this.nodes){var t,n=Ge(this.nodes);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.loc&&(e+="\n\n"+co(r.loc))}}catch(s){n.e(s)}finally{n.f()}}else if(this.source&&this.locations){var i,a=Ge(this.locations);try{for(a.s();!(i=a.n()).done;){var o=i.value;e+="\n\n"+fo(this.source,o)}}catch(s){a.e(s)}finally{a.f()}}return e}},{key:"toJSON",value:function(){var e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}]),r}(ao(Error),Symbol.toStringTag);function mo(e){return void 0===e||0===e.length?void 0:e}function bo(e,t,n){return new go("Syntax Error: ".concat(n),void 0,e,[t])}!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(vo||(vo={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",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.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(yo||(yo={}));var xo=function(e){function t(e){je(this,t);var n=new et(yo.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}return ze(t,[{key:Symbol.toStringTag,get:function(){return"Lexer"}},{key:"advance",value:function(){return this.lastToken=this.token,this.token=this.lookahead()}},{key:"lookahead",value:function(){var e=this.token;if(e.kind!==yo.EOF)do{if(e.next)e=e.next;else{var t=Oo(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===yo.COMMENT);return e}}]),t}();function ko(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function _o(e,t){return wo(e.charCodeAt(t))&&Eo(e.charCodeAt(t+1))}function wo(e){return e>=55296&&e<=56319}function Eo(e){return e>=56320&&e<=57343}function So(e,t){var n=e.source.body.codePointAt(t);if(void 0===n)return yo.EOF;if(n>=32&&n<=126){var r=String.fromCodePoint(n);return'"'===r?"'\"'":'"'.concat(r,'"')}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function To(e,t,n,r,i){var a=e.line,o=1+n-e.lineStart;return new et(t,n,r,a,o,i)}function Oo(e,t){for(var n=e.source.body,r=n.length,i=t;i<r;){var a=n.charCodeAt(i);switch(a){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return Co(e,i);case 33:return To(e,yo.BANG,i,i+1);case 36:return To(e,yo.DOLLAR,i,i+1);case 38:return To(e,yo.AMP,i,i+1);case 40:return To(e,yo.PAREN_L,i,i+1);case 41:return To(e,yo.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return To(e,yo.SPREAD,i,i+3);break;case 58:return To(e,yo.COLON,i,i+1);case 61:return To(e,yo.EQUALS,i,i+1);case 64:return To(e,yo.AT,i,i+1);case 91:return To(e,yo.BRACKET_L,i,i+1);case 93:return To(e,yo.BRACKET_R,i,i+1);case 123:return To(e,yo.BRACE_L,i,i+1);case 124:return To(e,yo.PIPE,i,i+1);case 125:return To(e,yo.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?Fo(e,i):Do(e,i)}if(un(a)||45===a)return Po(e,i,a);if(cn(a))return jo(e,i);throw bo(e.source,i,39===a?"Unexpected single quote character ('), did you mean to use a double quote (\")?":ko(a)||_o(n,i)?"Unexpected character: ".concat(So(e,i),"."):"Invalid character: ".concat(So(e,i),"."))}return To(e,yo.EOF,r,r)}function Co(e,t){for(var n=e.source.body,r=n.length,i=t+1;i<r;){var a=n.charCodeAt(i);if(10===a||13===a)break;if(ko(a))++i;else{if(!_o(n,i))break;i+=2}}return To(e,yo.COMMENT,t,i,n.slice(t+1,i))}function Po(e,t,n){var r=e.source.body,i=t,a=n,o=!1;if(45===a&&(a=r.charCodeAt(++i)),48===a){if(un(a=r.charCodeAt(++i)))throw bo(e.source,i,"Invalid number, unexpected digit after 0: ".concat(So(e,i),"."))}else i=Mo(e,i,a),a=r.charCodeAt(i);if(46===a&&(o=!0,a=r.charCodeAt(++i),i=Mo(e,i,a),a=r.charCodeAt(i)),69!==a&&101!==a||(o=!0,43!==(a=r.charCodeAt(++i))&&45!==a||(a=r.charCodeAt(++i)),i=Mo(e,i,a),a=r.charCodeAt(i)),46===a||cn(a))throw bo(e.source,i,"Invalid number, expected digit but got: ".concat(So(e,i),"."));return To(e,o?yo.FLOAT:yo.INT,t,i,r.slice(t,i))}function Mo(e,t,n){if(!un(n))throw bo(e.source,t,"Invalid number, expected digit but got: ".concat(So(e,t),"."));for(var r=e.source.body,i=t+1;un(r.charCodeAt(i));)++i;return i}function Do(e,t){for(var n=e.source.body,r=n.length,i=t+1,a=i,o="";i<r;){var s=n.charCodeAt(i);if(34===s)return o+=n.slice(a,i),To(e,yo.STRING,t,i+1,o);if(92!==s){if(10===s||13===s)break;if(ko(s))++i;else{if(!_o(n,i))throw bo(e.source,i,"Invalid character within String: ".concat(So(e,i),"."));i+=2}}else{o+=n.slice(a,i);var u=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?Io(e,i):Ao(e,i):Lo(e,i);o+=u.value,a=i+=u.size}}throw bo(e.source,i,"Unterminated string.")}function Io(e,t){for(var n=e.source.body,r=0,i=3;i<12;){var a=n.charCodeAt(t+i++);if(125===a){if(i<5||!ko(r))break;return{value:String.fromCodePoint(r),size:i}}if((r=r<<4|Ro(a))<0)break}throw bo(e.source,t,'Invalid Unicode escape sequence: "'.concat(n.slice(t,t+i),'".'))}function Ao(e,t){var n=e.source.body,r=No(n,t+2);if(ko(r))return{value:String.fromCodePoint(r),size:6};if(wo(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){var i=No(n,t+8);if(Eo(i))return{value:String.fromCodePoint(r,i),size:12}}throw bo(e.source,t,'Invalid Unicode escape sequence: "'.concat(n.slice(t,t+6),'".'))}function No(e,t){return Ro(e.charCodeAt(t))<<12|Ro(e.charCodeAt(t+1))<<8|Ro(e.charCodeAt(t+2))<<4|Ro(e.charCodeAt(t+3))}function Ro(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Lo(e,t){var n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw bo(e.source,t,'Invalid character escape sequence: "'.concat(n.slice(t,t+2),'".'))}function Fo(e,t){for(var n=e.source.body,r=n.length,i=e.lineStart,a=t+3,o=a,s="",u=[];a<r;){var l=n.charCodeAt(a);if(34===l&&34===n.charCodeAt(a+1)&&34===n.charCodeAt(a+2)){s+=n.slice(o,a),u.push(s);var c=To(e,yo.BLOCK_STRING,t,a+3,hn(u).join("\n"));return e.line+=u.length-1,e.lineStart=i,c}if(92!==l||34!==n.charCodeAt(a+1)||34!==n.charCodeAt(a+2)||34!==n.charCodeAt(a+3))if(10!==l&&13!==l)if(ko(l))++a;else{if(!_o(n,a))throw bo(e.source,a,"Invalid character within String: ".concat(So(e,a),"."));a+=2}else s+=n.slice(o,a),u.push(s),13===l&&10===n.charCodeAt(a+1)?a+=2:++a,s="",o=a,i=a;else s+=n.slice(o,a),o=a+1,a+=4}throw bo(e.source,a,"Unterminated string.")}function jo(e,t){for(var n=e.source.body,r=n.length,i=t+1;i<r;){if(!fn(n.charCodeAt(i)))break;++i}return To(e,yo.NAME,t,i,n.slice(t,i))}var Vo=function(){function e(t,n){je(this,e);var r=function(e){return Ye(e,Ke)}(t)?t:new Ke(t);this._lexer=new xo(r),this._options=n}return ze(e,[{key:"parseName",value:function(){var e=this.expectToken(yo.NAME);return this.node(e,{kind:Je.NAME,value:e.value})}},{key:"parseDocument",value:function(){return this.node(this._lexer.token,{kind:Je.DOCUMENT,definitions:this.many(yo.SOF,this.parseDefinition,yo.EOF)})}},{key:"parseDefinition",value:function(){if(this.peek(yo.BRACE_L))return this.parseOperationDefinition();var e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===yo.NAME){switch(t.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()}if(e)throw bo(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}},{key:"parseOperationDefinition",value:function(){var e=this._lexer.token;if(this.peek(yo.BRACE_L))return this.node(e,{kind:Je.OPERATION_DEFINITION,operation:Xe.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});var t,n=this.parseOperationType();return this.peek(yo.NAME)&&(t=this.parseName()),this.node(e,{kind:Je.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseOperationType",value:function(){var e=this.expectToken(yo.NAME);switch(e.value){case"query":return Xe.QUERY;case"mutation":return Xe.MUTATION;case"subscription":return Xe.SUBSCRIPTION}throw this.unexpected(e)}},{key:"parseVariableDefinitions",value:function(){return this.optionalMany(yo.PAREN_L,this.parseVariableDefinition,yo.PAREN_R)}},{key:"parseVariableDefinition",value:function(){return this.node(this._lexer.token,{kind:Je.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(yo.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(yo.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}},{key:"parseVariable",value:function(){var e=this._lexer.token;return this.expectToken(yo.DOLLAR),this.node(e,{kind:Je.VARIABLE,name:this.parseName()})}},{key:"parseSelectionSet",value:function(){return this.node(this._lexer.token,{kind:Je.SELECTION_SET,selections:this.many(yo.BRACE_L,this.parseSelection,yo.BRACE_R)})}},{key:"parseSelection",value:function(){return this.peek(yo.SPREAD)?this.parseFragment():this.parseField()}},{key:"parseField",value:function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(yo.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:Je.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(yo.BRACE_L)?this.parseSelectionSet():void 0})}},{key:"parseArguments",value:function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(yo.PAREN_L,t,yo.PAREN_R)}},{key:"parseArgument",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._lexer.token,n=this.parseName();return this.expectToken(yo.COLON),this.node(t,{kind:Je.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}},{key:"parseConstArgument",value:function(){return this.parseArgument(!0)}},{key:"parseFragment",value:function(){var e=this._lexer.token;this.expectToken(yo.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(yo.NAME)?this.node(e,{kind:Je.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:Je.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseFragmentDefinition",value:function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacyFragmentVariables)?this.node(t,{kind:Je.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:Je.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseFragmentName",value:function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}},{key:"parseValueLiteral",value:function(e){var t=this._lexer.token;switch(t.kind){case yo.BRACKET_L:return this.parseList(e);case yo.BRACE_L:return this.parseObject(e);case yo.INT:return this._lexer.advance(),this.node(t,{kind:Je.INT,value:t.value});case yo.FLOAT:return this._lexer.advance(),this.node(t,{kind:Je.FLOAT,value:t.value});case yo.STRING:case yo.BLOCK_STRING:return this.parseStringLiteral();case yo.NAME:switch(this._lexer.advance(),t.value){case"true":return this.node(t,{kind:Je.BOOLEAN,value:!0});case"false":return this.node(t,{kind:Je.BOOLEAN,value:!1});case"null":return this.node(t,{kind:Je.NULL});default:return this.node(t,{kind:Je.ENUM,value:t.value})}case yo.DOLLAR:if(e){if(this.expectToken(yo.DOLLAR),this._lexer.token.kind===yo.NAME){var n=this._lexer.token.value;throw bo(this._lexer.source,t.start,'Unexpected variable "$'.concat(n,'" in constant value.'))}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}},{key:"parseConstValueLiteral",value:function(){return this.parseValueLiteral(!0)}},{key:"parseStringLiteral",value:function(){var e=this._lexer.token;return this._lexer.advance(),this.node(e,{kind:Je.STRING,value:e.value,block:e.kind===yo.BLOCK_STRING})}},{key:"parseList",value:function(e){var t=this;return this.node(this._lexer.token,{kind:Je.LIST,values:this.any(yo.BRACKET_L,(function(){return t.parseValueLiteral(e)}),yo.BRACKET_R)})}},{key:"parseObject",value:function(e){var t=this;return this.node(this._lexer.token,{kind:Je.OBJECT,fields:this.any(yo.BRACE_L,(function(){return t.parseObjectField(e)}),yo.BRACE_R)})}},{key:"parseObjectField",value:function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(yo.COLON),this.node(t,{kind:Je.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}},{key:"parseDirectives",value:function(e){for(var t=[];this.peek(yo.AT);)t.push(this.parseDirective(e));return t}},{key:"parseConstDirectives",value:function(){return this.parseDirectives(!0)}},{key:"parseDirective",value:function(e){var t=this._lexer.token;return this.expectToken(yo.AT),this.node(t,{kind:Je.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}},{key:"parseTypeReference",value:function(){var e,t=this._lexer.token;if(this.expectOptionalToken(yo.BRACKET_L)){var n=this.parseTypeReference();this.expectToken(yo.BRACKET_R),e=this.node(t,{kind:Je.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(yo.BANG)?this.node(t,{kind:Je.NON_NULL_TYPE,type:e}):e}},{key:"parseNamedType",value:function(){return this.node(this._lexer.token,{kind:Je.NAMED_TYPE,name:this.parseName()})}},{key:"peekDescription",value:function(){return this.peek(yo.STRING)||this.peek(yo.BLOCK_STRING)}},{key:"parseDescription",value:function(){if(this.peekDescription())return this.parseStringLiteral()}},{key:"parseSchemaDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseConstDirectives(),r=this.many(yo.BRACE_L,this.parseOperationTypeDefinition,yo.BRACE_R);return this.node(e,{kind:Je.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}},{key:"parseOperationTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(yo.COLON);var n=this.parseNamedType();return this.node(e,{kind:Je.OPERATION_TYPE_DEFINITION,operation:t,type:n})}},{key:"parseScalarTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:Je.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}},{key:"parseObjectTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:Je.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}},{key:"parseImplementsInterfaces",value:function(){return this.expectOptionalKeyword("implements")?this.delimitedMany(yo.AMP,this.parseNamedType):[]}},{key:"parseFieldsDefinition",value:function(){return this.optionalMany(yo.BRACE_L,this.parseFieldDefinition,yo.BRACE_R)}},{key:"parseFieldDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(yo.COLON);var i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:Je.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:a})}},{key:"parseArgumentDefs",value:function(){return this.optionalMany(yo.PAREN_L,this.parseInputValueDef,yo.PAREN_R)}},{key:"parseInputValueDef",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(yo.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(yo.EQUALS)&&(r=this.parseConstValueLiteral());var a=this.parseConstDirectives();return this.node(e,{kind:Je.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:a})}},{key:"parseInterfaceTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:Je.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}},{key:"parseUnionTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:Je.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}},{key:"parseUnionMemberTypes",value:function(){return this.expectOptionalToken(yo.EQUALS)?this.delimitedMany(yo.PIPE,this.parseNamedType):[]}},{key:"parseEnumTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:Je.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}},{key:"parseEnumValuesDefinition",value:function(){return this.optionalMany(yo.BRACE_L,this.parseEnumValueDefinition,yo.BRACE_R)}},{key:"parseEnumValueDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:Je.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}},{key:"parseEnumValueName",value:function(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw bo(this._lexer.source,this._lexer.token.start,"".concat(zo(this._lexer.token)," is reserved and cannot be used for an enum value."));return this.parseName()}},{key:"parseInputObjectTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:Je.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}},{key:"parseInputFieldsDefinition",value:function(){return this.optionalMany(yo.BRACE_L,this.parseInputValueDef,yo.BRACE_R)}},{key:"parseTypeSystemExtension",value:function(){var e=this._lexer.lookahead();if(e.kind===yo.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)}},{key:"parseSchemaExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseConstDirectives(),n=this.optionalMany(yo.BRACE_L,this.parseOperationTypeDefinition,yo.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:Je.SCHEMA_EXTENSION,directives:t,operationTypes:n})}},{key:"parseScalarTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:Je.SCALAR_TYPE_EXTENSION,name:t,directives:n})}},{key:"parseObjectTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:Je.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}},{key:"parseInterfaceTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:Je.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}},{key:"parseUnionTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:Je.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}},{key:"parseEnumTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:Je.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}},{key:"parseInputObjectTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:Je.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}},{key:"parseDirectiveDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(yo.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var a=this.parseDirectiveLocations();return this.node(e,{kind:Je.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:a})}},{key:"parseDirectiveLocations",value:function(){return this.delimitedMany(yo.PIPE,this.parseDirectiveLocation)}},{key:"parseDirectiveLocation",value:function(){var e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(vo,t.value))return t;throw this.unexpected(e)}},{key:"node",value:function(e,t){var n;return!0!==(null===(n=this._options)||void 0===n?void 0:n.noLocation)&&(t.loc=new Ze(e,this._lexer.lastToken,this._lexer.source)),t}},{key:"peek",value:function(e){return this._lexer.token.kind===e}},{key:"expectToken",value:function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw bo(this._lexer.source,t.start,"Expected ".concat(Bo(e),", found ").concat(zo(t),"."))}},{key:"expectOptionalToken",value:function(e){return this._lexer.token.kind===e&&(this._lexer.advance(),!0)}},{key:"expectKeyword",value:function(e){var t=this._lexer.token;if(t.kind!==yo.NAME||t.value!==e)throw bo(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(zo(t),"."));this._lexer.advance()}},{key:"expectOptionalKeyword",value:function(e){var t=this._lexer.token;return t.kind===yo.NAME&&t.value===e&&(this._lexer.advance(),!0)}},{key:"unexpected",value:function(e){var t=null!==e&&void 0!==e?e:this._lexer.token;return bo(this._lexer.source,t.start,"Unexpected ".concat(zo(t),"."))}},{key:"any",value:function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r}},{key:"optionalMany",value:function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]}},{key:"many",value:function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}},{key:"delimitedMany",value:function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}}]),e}();function zo(e){var t=e.value;return Bo(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function Bo(e){return function(e){return e===yo.BANG||e===yo.DOLLAR||e===yo.AMP||e===yo.PAREN_L||e===yo.PAREN_R||e===yo.SPREAD||e===yo.COLON||e===yo.EQUALS||e===yo.AT||e===yo.BRACKET_L||e===yo.BRACKET_R||e===yo.BRACE_L||e===yo.PIPE||e===yo.BRACE_R}(e)?'"'.concat(e,'"'):e}var qo=new Map,Uo=new Map,Wo=!0,Qo=!1;function Ho(e){return e.replace(/[\s,]+/g," ").trim()}function $o(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=Ho((o=e.loc).source.body.substring(o.start,o.end)),a=Uo.get(r);a&&!a.has(i)?Wo&&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"):a||Uo.set(r,a=new Set),a.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var o})),ye(ye({},e),{definitions:n})}function Yo(e){var t=Ho(e);if(!qo.has(t)){var n=function(e,t){return new Vo(e,t).parseDocument()}(e,{experimentalFragmentVariables:Qo,allowLegacyFragmentVariables:Qo});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");qo.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}($o(n)))}return qo.get(t)}function Ko(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]})),Yo(r)}var Go,Xo=Ko,Jo=function(){qo.clear(),Uo.clear()},Zo=function(){Wo=!1},es=function(){Qo=!0},ts=function(){Qo=!1};(Go=Ko||(Ko={})).gql=Xo,Go.resetCaches=Jo,Go.disableFragmentWarnings=Zo,Go.enableExperimentalFragmentVariables=es,Go.disableExperimentalFragmentVariables=ts,Ko.default=Ko;Ko(ns||(ns=Ga(["\n  query getAllUsers {\n    getAllUsers {\n      id\n      username\n    }\n  }\n"]))),Ko(rs||(rs=Ga(["\n  query getUser($id: ID!) {\n    getUser(id: $id) {\n      id\n      username\n    }\n  }\n"])));var ns,rs,is,as=Ko(is||(is=Ga(["\n  query getMatchup($id: ID!) {\n    getMatchup(id: $id) {\n      id\n      animal_1\n      animal_2\n      hasVoted\n      comments {\n        id\n        user_id\n        matchup_id\n        username\n        color\n        comment\n      }\n      blueVoteCount\n      redVoteCount\n    }\n  }\n"]))),os=function(){var t=We((0,e.useState)(!1),2),n=(t[0],t[1],function(t,n){var r,i=(0,e.useContext)(za()),a=Ya(null===n||void 0===n?void 0:n.client),o=a.defaultOptions.watchQuery;$a(t,qa.Query);var s,u=(0,e.useState)((function(){var e=Ka(t,n,o),r=null;return i.renderPromises&&(r=i.renderPromises.getSSRObservable(e)),r||(r=a.watchQuery(e),i.renderPromises&&i.renderPromises.registerSSRObservable(r,e)),i.renderPromises&&!1!==(null===n||void 0===n?void 0:n.ssr)&&!(null===n||void 0===n?void 0:n.skip)&&r.getCurrentResult().loading&&i.renderPromises.addQueryPromise({getOptions:function(){return Ka(t,n,o)},fetchData:function(){return new Promise((function(e){var t=r.subscribe({next:function(n){n.loading||(e(),t.unsubscribe())},error:function(){e(),t.unsubscribe()},complete:function(){e()}})}))}},(function(){return null})),r})),l=u[0],c=u[1],f=(0,e.useState)((function(){var e,t,r=l.getCurrentResult();return!r.loading&&n&&(r.error?null===(e=n.onError)||void 0===e||e.call(n,r.error):r.data&&(null===(t=n.onCompleted)||void 0===t||t.call(n,r.data))),r})),h=f[0],d=f[1],p=(0,e.useRef)({client:a,query:t,options:n,result:h,previousData:void 0,watchQueryOptions:Ka(t,n,o)});(0,e.useEffect)((function(){var e,r,i,s=Ka(t,n,o);if(p.current.client===a&&Vn(p.current.query,t))Vn(p.current.watchQueryOptions,s)||(l.setOptions(s).catch((function(){})),i=l.getCurrentResult(),p.current.watchQueryOptions=s);else{var u=a.watchQuery(s);c(u),i=u.getCurrentResult()}if(i){var f=p.current.result;f.data&&(p.current.previousData=f.data),d(p.current.result=i),!i.loading&&n&&(i.error?null===(e=n.onError)||void 0===e||e.call(n,i.error):i.data&&(null===(r=n.onCompleted)||void 0===r||r.call(n,i.data)))}Object.assign(p.current,{client:a,query:t})}),[l,a,t,n]),(0,e.useEffect)((function(){if(!i.renderPromises){var e=l.subscribe(t,(function n(r){var i,a,o=l.last;e.unsubscribe();try{l.resetLastResults(),e=l.subscribe(t,n)}finally{l.last=o}if(!r.hasOwnProperty("graphQLErrors"))throw r;var s=p.current.result;(s&&s.loading||!Vn(r,s.error))&&(d(p.current.result={data:s.data,error:r,loading:!1,networkStatus:zr.error}),null===(a=null===(i=p.current.options)||void 0===i?void 0:i.onError)||void 0===a||a.call(i,r))}));return function(){return e.unsubscribe()}}function t(){var e,t,n=p.current.result,r=l.getCurrentResult();n&&n.loading===r.loading&&n.networkStatus===r.networkStatus&&Vn(n.data,r.data)||(n.data&&(p.current.previousData=n.data),d(p.current.result=r),r.loading||null===(t=null===(e=p.current.options)||void 0===e?void 0:e.onCompleted)||void 0===t||t.call(e,r.data))}}),[l,i.renderPromises,a.disableNetworkFetches]),s=(r=h).partial,h=ge(r,["partial"]),!s||!(null===n||void 0===n?void 0:n.partialRefetch)||h.loading||h.data&&0!==Object.keys(h.data).length||"cache-only"===l.options.fetchPolicy||(h=ye(ye({},h),{loading:!0,networkStatus:zr.refetch}),l.refetch()),i.renderPromises&&!1!==(null===n||void 0===n?void 0:n.ssr)&&!(null===n||void 0===n?void 0:n.skip)&&h.loading&&l.setOptions(Ka(t,n,o)).catch((function(){})),Object.assign(p.current,{options:n}),(i.renderPromises||a.disableNetworkFetches)&&!1===(null===n||void 0===n?void 0:n.ssr)?h=p.current.result={loading:!0,data:void 0,error:void 0,networkStatus:zr.loading}:((null===n||void 0===n?void 0:n.skip)||"standby"===(null===n||void 0===n?void 0:n.fetchPolicy))&&(h={loading:!1,data:void 0,error:void 0,networkStatus:zr.ready}),h.errors&&h.errors.length&&(h=ye(ye({},h),{error:h.error||new Br({graphQLErrors:h.errors})}));var v=(0,e.useMemo)((function(){return{refetch:l.refetch.bind(l),fetchMore:l.fetchMore.bind(l),updateQuery:l.updateQuery.bind(l),startPolling:l.startPolling.bind(l),stopPolling:l.stopPolling.bind(l),subscribeToMore:l.subscribeToMore.bind(l)}}),[l]);return ye(ye(ye({},v),{variables:Ka(t,n,o).variables,client:a,called:!0,previousData:p.current.previousData}),h)}(as,{variables:{id:1}})),r=n.loading,i=n.data,a=(null===i||void 0===i?void 0:i.getMatchup)||{};return r?(0,Ua.jsx)("div",{children:"Loading..."}):(console.log(i),(0,Ua.jsxs)("div",{className:"bg-charcoal flex justify-between items-center max-w-5xl h-60 mx-auto",children:[(0,Ua.jsx)(Wa,{animal:a.animal_1,bgcolor:"bg-burntsienna"}),(0,Ua.jsx)("span",{className:"leading-none text-maizecrayola",children:"OR"}),(0,Ua.jsx)(Wa,{animal:a.animal_2,bgcolor:"bg-persiangreen"})]}))},ss=function(){var t=We((0,e.useState)(!1),2);t[0],t[1];return(0,Ua.jsx)("div",{className:"container",children:(0,Ua.jsx)(os,{})})},us=n(513),ls=n.n(us),cs=new(function(){function e(){je(this,e)}return ze(e,[{key:"getProfile",value:function(){return ls()(this.getToken())}},{key:"loggedIn",value:function(){var e=this.getToken();return!!e&&!this.isTokenExpired(e)}},{key:"isTokenExpired",value:function(e){try{return ls()(e).exp<Date.now()/1e3}catch(t){return!1}}},{key:"getToken",value:function(){return localStorage.getItem("id_token")}},{key:"login",value:function(e){localStorage.setItem("id_token",e),window.location.assign("/")}},{key:"logout",value:function(){localStorage.removeItem("id_token"),window.location.assign("/")}}]),e}());var fs=function(){return(0,Ua.jsxs)("header",{className:"flex justify-between px-1 bg-charcoal",children:[(0,Ua.jsx)("h1",{className:"font-brand text-3xl tracking-wide p-2 text-maizecrayola",children:(0,Ua.jsxs)(fe,{to:"/",children:[(0,Ua.jsx)("span",{children:(0,Ua.jsxs)("svg",{id:"emoji",viewBox:"0 0 72 72",xmlns:"http://www.w3.org/2000/svg",className:"w-9 inline",children:[(0,Ua.jsxs)("g",{id:"color",children:[(0,Ua.jsx)("polygon",{fill:"#5c9e31",stroke:"none",points:"11.3803,52.367 13.1303,47.992 15.8183,45.054 19.6933,43.179 24.0053,43.054 30.0813,43.63 48.8353,51.987 58.5053,57.054 58.2553,58.242 44.9513,59.982 24.1773,60.945"}),(0,Ua.jsx)("path",{fill:"#b1cc33",stroke:"none",d:"M18.4553,50.754c0.006,0.548,0.452,0.989,1,0.989h0.011l1.132-0.014c3.9774,0.0945,7.93-0.6507,11.6-2.187 c8.23-3.493,4.665-25.974,4.157-28.931v-0.133c0.0039-3.0745,2.4955-5.5657,5.57-5.569c3.4,0,7.962,2.765,7.962,5.592 c0,3.252-6.458,3.5-6.523,3.5c-0.5521,0.0125-0.9896,0.4702-0.9771,1.0224c0.0014,0.0631,0.0088,0.1259,0.0221,0.1876 c3.074,14.237,1.364,29.705-2.2,31.3c-5.617,2.519-16.071,2.844-23.41,2.081c-1.858-0.193-3.148-0.744-3.833-1.637 c-0.7-0.916-0.881-2.275-0.561-4.279c0.005-0.032-0.006-0.061,0-0.092"})]}),(0,Ua.jsx)("g",{id:"hair"}),(0,Ua.jsx)("g",{id:"skin"}),(0,Ua.jsx)("g",{id:"skin-shadow"}),(0,Ua.jsxs)("g",{id:"line",children:[(0,Ua.jsx)("path",{fill:"none",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M44.9693,59 c2.194,0.007,9.422-0.092,12.491-0.183c0.6551-0.0245,1.1663-0.5754,1.1418-1.2305c-0.016-0.4279-0.2613-0.8141-0.6418-1.0105 l-9.472-3.638"}),(0,Ua.jsx)("path",{fill:"none",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19.4543,50.74 c0.368-0.004,0.7433-0.0087,1.126-0.014c3.8491,0.1018,7.6758-0.6165,11.226-2.107c7.82-3.319,3.549-27.92,3.549-27.92v-0.224 c0-3.6285,2.9415-6.57,6.57-6.57h0c3.628,0,8.962,2.964,8.962,6.592c0,4.333-7.5,4.5-7.5,4.5c2.935,13.6,1.708,30.419-2.772,32.428 c-5.794,2.6-16.262,2.959-23.923,2.163c-5.217-0.542-5.83-3.608-5.278-7.068"}),(0,Ua.jsx)("path",{fill:"none",stroke:"#000000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M29.6873,44.563 c-13.331-5.972-18.322,6.062-18.275,7.957"}),(0,Ua.jsx)("path",{fill:"none",stroke:"#000000",strokeLinecap:"round",strokeLiterlimit:"10",strokeWidth:"2",d:"M48.7393,24.452 c0,0,3.793,4.054,7.585,4.577"}),(0,Ua.jsx)("polyline",{fill:"none",stroke:"#000000",strokeLinecap:"round",strokeLiterlimit:"10",strokeWidth:"2",points:"56.8733,33.606 55.8273,29.029 60.6653,26.806"})]})]})}),"Animal Showdown 2.0"]})}),(0,Ua.jsx)("nav",{children:cs.loggedIn()?(0,Ua.jsx)("ul",{className:"flex justify-end",children:(0,Ua.jsx)("li",{className:"mx-1 text-xl p-2 text-maizecrayola",children:(0,Ua.jsx)("a",{href:"/",onClick:function(){return cs.logout()},children:"Logout"})})}):(0,Ua.jsxs)("ul",{className:"flex justify-end",children:[(0,Ua.jsx)("li",{className:"mx-1 text-xl p-2",children:(0,Ua.jsx)(fe,{to:"/signup",children:"Signup"})}),(0,Ua.jsx)("li",{className:"mx-1 text-xl p-2",children:(0,Ua.jsx)(fe,{to:"/login",children:"Login"})})]})})]})};function hs(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Za(e)););return e}function ds(){return ds="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=hs(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},ds.apply(this,arguments)}var ps="undefined"===typeof window?function(e){return e()}:window.requestAnimationFrame;function vs(e,t,n){var r=n||function(e){return Array.prototype.slice.call(e)},i=!1,a=[];return function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];a=r(o),i||(i=!0,ps.call(window,(function(){i=!1,e.apply(t,a)})))}}var ys=function(e){return"start"===e?"left":"end"===e?"right":"center"},gs=function(e,t,n){return"start"===e?t:"end"===e?n:(t+n)/2};function ms(){}var bs=function(){var e=0;return function(){return e++}}();function xs(e){return null===e||"undefined"===typeof e}function ks(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function _s(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}var ws=function(e){return("number"===typeof e||e instanceof Number)&&isFinite(+e)};function Es(e,t){return ws(e)?e:t}function Ss(e,t){return"undefined"===typeof e?t:e}var Ts=function(e,t){return"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e};function Os(e,t,n){if(e&&"function"===typeof e.call)return e.apply(n,t)}function Cs(e,t,n,r){var i,a,o;if(ks(e))if(a=e.length,r)for(i=a-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<a;i++)t.call(n,e[i],i);else if(_s(e))for(a=(o=Object.keys(e)).length,i=0;i<a;i++)t.call(n,e[o[i]],o[i])}function Ps(e,t){var n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function Ms(e){if(ks(e))return e.map(Ms);if(_s(e)){for(var t=Object.create(null),n=Object.keys(e),r=n.length,i=0;i<r;++i)t[n[i]]=Ms(e[n[i]]);return t}return e}function Ds(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function Is(e,t,n,r){if(Ds(e)){var i=t[e],a=n[e];_s(i)&&_s(a)?As(i,a,r):t[e]=Ms(a)}}function As(e,t,n){var r=ks(t)?t:[t],i=r.length;if(!_s(e))return e;for(var a=(n=n||{}).merger||Is,o=0;o<i;++o)if(_s(t=r[o]))for(var s=Object.keys(t),u=0,l=s.length;u<l;++u)a(s[u],e,t,n);return e}function Ns(e,t){return As(e,t,{merger:Rs})}function Rs(e,t,n){if(Ds(e)){var r=t[e],i=n[e];_s(r)&&_s(i)?Ns(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Ms(i))}}function Ls(e,t){var n=e.indexOf(".",t);return-1===n?e.length:n}function Fs(e,t){if(""===t)return e;for(var n=0,r=Ls(t,n);e&&r>n;)e=e[t.substr(n,r-n)],r=Ls(t,n=r+1);return e}function js(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Vs=function(e){return"undefined"!==typeof e},zs=function(e){return"function"===typeof e},Bs=function(e,t){if(e.size!==t.size)return!1;var n,r=Ge(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!t.has(i))return!1}}catch(a){r.e(a)}finally{r.f()}return!0};var qs=Math.PI,Us=2*qs,Ws=Us+qs,Qs=Number.POSITIVE_INFINITY,Hs=qs/180,$s=qs/2,Ys=qs/4,Ks=2*qs/3,Gs=Math.log10,Xs=Math.sign;function Js(e){var t=Math.round(e);e=eu(e,t,e/1e3)?t:e;var n=Math.pow(10,Math.floor(Gs(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function Zs(e){return!isNaN(parseFloat(e))&&isFinite(e)}function eu(e,t,n){return Math.abs(e-t)<n}function tu(e,t,n){var r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function nu(e){return e*(qs/180)}function ru(e){return e*(180/qs)}function iu(e){if(ws(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}}function au(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n);return a<-.5*qs&&(a+=Us),{angle:a,distance:i}}function ou(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function su(e,t){return(e-t+Ws)%Us-qs}function uu(e){return(e%Us+Us)%Us}function lu(e,t,n,r){var i=uu(e),a=uu(t),o=uu(n),s=uu(a-i),u=uu(o-i),l=uu(i-a),c=uu(i-o);return i===a||i===o||r&&a===o||s>u&&l<c}function cu(e,t,n){return Math.max(t,Math.min(n,e))}function fu(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e-6;return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}var hu=function(e){return 0===e||1===e},du=function(e,t,n){return-Math.pow(2,10*(e-=1))*Math.sin((e-t)*Us/n)},pu=function(e,t,n){return Math.pow(2,-10*e)*Math.sin((e-t)*Us/n)+1},vu={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*$s)},easeOutSine:function(e){return Math.sin(e*$s)},easeInOutSine:function(e){return-.5*(Math.cos(qs*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return hu(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1)))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){return hu(e)?e:du(e,.075,.3)},easeOutElastic:function(e){return hu(e)?e:pu(e,.075,.3)},easeInOutElastic:function(e){var t=.1125;return hu(e)?e:e<.5?.5*du(2*e,t,.45):.5+.5*pu(2*e-1,t,.45)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-vu.easeOutBounce(1-e)},easeOutBounce:function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*vu.easeInBounce(2*e):.5*vu.easeOutBounce(2*e-1)+.5}},yu={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},gu="0123456789ABCDEF",mu=function(e){return gu[15&e]},bu=function(e){return gu[(240&e)>>4]+gu[15&e]},xu=function(e){return(240&e)>>4===(15&e)};function ku(e){var t=function(e){return xu(e.r)&&xu(e.g)&&xu(e.b)&&xu(e.a)}(e)?mu:bu;return e?"#"+t(e.r)+t(e.g)+t(e.b)+(e.a<255?t(e.a):""):e}function _u(e){return e+.5|0}var wu=function(e,t,n){return Math.max(Math.min(e,n),t)};function Eu(e){return wu(_u(2.55*e),0,255)}function Su(e){return wu(_u(255*e),0,255)}function Tu(e){return wu(_u(e/2.55)/100,0,1)}function Ou(e){return wu(_u(100*e),0,100)}var Cu=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;var Pu=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Mu(e,t,n){var r=t*Math.min(n,1-n),i=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+e/30)%12;return n-r*Math.max(Math.min(i-3,9-i,1),-1)};return[i(0),i(8),i(4)]}function Du(e,t,n){var r=function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(r+e/60)%6;return n-n*t*Math.max(Math.min(i,4-i,1),0)};return[r(5),r(3),r(1)]}function Iu(e,t,n){var r,i=Mu(e,1,.5);for(t+n>1&&(t*=r=1/(t+n),n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function Au(e){var t,n,r,i=e.r/255,a=e.g/255,o=e.b/255,s=Math.max(i,a,o),u=Math.min(i,a,o),l=(s+u)/2;return s!==u&&(r=s-u,n=l>.5?r/(2-s-u):r/(s+u),t=60*(t=s===i?(a-o)/r+(a<o?6:0):s===a?(o-i)/r+2:(i-a)/r+4)+.5),[0|t,n||0,l]}function Nu(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Su)}function Ru(e,t,n){return Nu(Mu,e,t,n)}function Lu(e){return(e%360+360)%360}function Fu(e){var t,n=Pu.exec(e),r=255;if(n){n[5]!==t&&(r=n[6]?Eu(+n[5]):Su(+n[5]));var i=Lu(+n[2]),a=+n[3]/100,o=+n[4]/100;return{r:(t="hwb"===n[1]?function(e,t,n){return Nu(Iu,e,t,n)}(i,a,o):"hsv"===n[1]?function(e,t,n){return Nu(Du,e,t,n)}(i,a,o):Ru(i,a,o))[0],g:t[1],b:t[2],a:r}}}var ju,Vu={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},zu={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Bu(e){ju||((ju=function(){var e,t,n,r,i,a={},o=Object.keys(zu),s=Object.keys(Vu);for(e=0;e<o.length;e++){for(r=i=o[e],t=0;t<s.length;t++)n=s[t],i=i.replace(n,Vu[n]);n=parseInt(zu[r],16),a[i]=[n>>16&255,n>>8&255,255&n]}return a}()).transparent=[0,0,0,0]);var t=ju[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}function qu(e,t,n){if(e){var r=Au(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=Ru(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function Uu(e,t){return e?Object.assign(t||{},e):e}function Wu(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Su(e[3]))):(t=Uu(e,{r:0,g:0,b:0,a:1})).a=Su(t.a),t}function Qu(e){return"r"===e.charAt(0)?function(e){var t,n,r,i=Cu.exec(e),a=255;if(i){if(i[7]!==t){var o=+i[7];a=255&(i[8]?Eu(o):255*o)}return t=+i[1],n=+i[3],r=+i[5],{r:t=255&(i[2]?Eu(t):t),g:n=255&(i[4]?Eu(n):n),b:r=255&(i[6]?Eu(r):r),a:a}}}(e):Fu(e)}var Hu=function(){function e(t){if(je(this,e),t instanceof e)return t;var n,r=typeof t;"object"===r?n=Wu(t):"string"===r&&(n=function(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*yu[e[1]],g:255&17*yu[e[2]],b:255&17*yu[e[3]],a:5===n?17*yu[e[4]]:255}:7!==n&&9!==n||(t={r:yu[e[1]]<<4|yu[e[2]],g:yu[e[3]]<<4|yu[e[4]],b:yu[e[5]]<<4|yu[e[6]],a:9===n?yu[e[7]]<<4|yu[e[8]]:255})),t}(t)||Bu(t)||Qu(t)),this._rgb=n,this._valid=!!n}return ze(e,[{key:"valid",get:function(){return this._valid}},{key:"rgb",get:function(){var e=Uu(this._rgb);return e&&(e.a=Tu(e.a)),e},set:function(e){this._rgb=Wu(e)}},{key:"rgbString",value:function(){return this._valid?(e=this._rgb)&&(e.a<255?"rgba(".concat(e.r,", ").concat(e.g,", ").concat(e.b,", ").concat(Tu(e.a),")"):"rgb(".concat(e.r,", ").concat(e.g,", ").concat(e.b,")")):this._rgb;var e}},{key:"hexString",value:function(){return this._valid?ku(this._rgb):this._rgb}},{key:"hslString",value:function(){return this._valid?function(e){if(e){var t=Au(e),n=t[0],r=Ou(t[1]),i=Ou(t[2]);return e.a<255?"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(Tu(e.a),")"):"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)")}}(this._rgb):this._rgb}},{key:"mix",value:function(e,t){var n=this;if(e){var r,i=n.rgb,a=e.rgb,o=t===r?.5:t,s=2*o-1,u=i.a-a.a,l=((s*u===-1?s:(s+u)/(1+s*u))+1)/2;r=1-l,i.r=255&l*i.r+r*a.r+.5,i.g=255&l*i.g+r*a.g+.5,i.b=255&l*i.b+r*a.b+.5,i.a=o*i.a+(1-o)*a.a,n.rgb=i}return n}},{key:"clone",value:function(){return new e(this.rgb)}},{key:"alpha",value:function(e){return this._rgb.a=Su(e),this}},{key:"clearer",value:function(e){return this._rgb.a*=1-e,this}},{key:"greyscale",value:function(){var e=this._rgb,t=_u(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}},{key:"opaquer",value:function(e){return this._rgb.a*=1+e,this}},{key:"negate",value:function(){var e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}},{key:"lighten",value:function(e){return qu(this._rgb,2,e),this}},{key:"darken",value:function(e){return qu(this._rgb,2,-e),this}},{key:"saturate",value:function(e){return qu(this._rgb,1,e),this}},{key:"desaturate",value:function(e){return qu(this._rgb,1,-e),this}},{key:"rotate",value:function(e){return function(e,t){var n=Au(e);n[0]=Lu(n[0]+t),n=Ru(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}]),e}();function $u(e){return new Hu(e)}var Yu=function(e){return e instanceof CanvasGradient||e instanceof CanvasPattern};function Ku(e){return Yu(e)?e:$u(e)}function Gu(e){return Yu(e)?e:$u(e).saturate(.5).darken(.1).hexString()}var Xu=Object.create(null),Ju=Object.create(null);function Zu(e,t){if(!t)return e;for(var n=t.split("."),r=0,i=n.length;r<i;++r){var a=n[r];e=e[a]||(e[a]=Object.create(null))}return e}function el(e,t,n){return"string"===typeof t?As(Zu(e,t),n):As(Zu(e,""),t)}var tl=function(){function e(t){je(this,e),this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=function(e){return e.chart.platform.getDevicePixelRatio()},this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=function(e,t){return Gu(t.backgroundColor)},this.hoverBorderColor=function(e,t){return Gu(t.borderColor)},this.hoverColor=function(e,t){return Gu(t.color)},this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}return ze(e,[{key:"set",value:function(e,t){return el(this,e,t)}},{key:"get",value:function(e){return Zu(this,e)}},{key:"describe",value:function(e,t){return el(Ju,e,t)}},{key:"override",value:function(e,t){return el(Xu,e,t)}},{key:"route",value:function(e,t,n,i){var a,o=Zu(this,e),s=Zu(this,n),u="_"+t;Object.defineProperties(o,(r(a={},u,{value:o[t],writable:!0}),r(a,t,{enumerable:!0,get:function(){var e=this[u],t=s[i];return _s(e)?Object.assign({},t,e):Ss(e,t)},set:function(e){this[u]=e}}),a))}}]),e}(),nl=new tl({_scriptable:function(e){return!e.startsWith("on")},_indexable:function(e){return"events"!==e},hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function rl(e,t,n,r,i){var a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function il(e,t,n,r){var i=(r=r||{}).data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;var o,s,u,l,c,f=0,h=n.length;for(o=0;o<h;o++)if(void 0!==(l=n[o])&&null!==l&&!0!==ks(l))f=rl(e,i,a,f,l);else if(ks(l))for(s=0,u=l.length;s<u;s++)void 0===(c=l[s])||null===c||ks(c)||(f=rl(e,i,a,f,c));e.restore();var d=a.length/2;if(d>n.length){for(o=0;o<d;o++)delete i[a[o]];a.splice(0,d)}return f}function al(e,t,n){var r=e.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function ol(e,t){(t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function sl(e,t,n,r){var i,a,o,s,u,l=t.pointStyle,c=t.rotation,f=t.radius,h=(c||0)*Hs;if(l&&"object"===typeof l&&("[object HTMLImageElement]"===(i=l.toString())||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(n,r),e.rotate(h),e.drawImage(l,-l.width/2,-l.height/2,l.width,l.height),void e.restore();if(!(isNaN(f)||f<=0)){switch(e.beginPath(),l){default:e.arc(n,r,f,0,Us),e.closePath();break;case"triangle":e.moveTo(n+Math.sin(h)*f,r-Math.cos(h)*f),h+=Ks,e.lineTo(n+Math.sin(h)*f,r-Math.cos(h)*f),h+=Ks,e.lineTo(n+Math.sin(h)*f,r-Math.cos(h)*f),e.closePath();break;case"rectRounded":s=f-(u=.516*f),a=Math.cos(h+Ys)*s,o=Math.sin(h+Ys)*s,e.arc(n-a,r-o,u,h-qs,h-$s),e.arc(n+o,r-a,u,h-$s,h),e.arc(n+a,r+o,u,h,h+$s),e.arc(n-o,r+a,u,h+$s,h+qs),e.closePath();break;case"rect":if(!c){s=Math.SQRT1_2*f,e.rect(n-s,r-s,2*s,2*s);break}h+=Ys;case"rectRot":a=Math.cos(h)*f,o=Math.sin(h)*f,e.moveTo(n-a,r-o),e.lineTo(n+o,r-a),e.lineTo(n+a,r+o),e.lineTo(n-o,r+a),e.closePath();break;case"crossRot":h+=Ys;case"cross":a=Math.cos(h)*f,o=Math.sin(h)*f,e.moveTo(n-a,r-o),e.lineTo(n+a,r+o),e.moveTo(n+o,r-a),e.lineTo(n-o,r+a);break;case"star":a=Math.cos(h)*f,o=Math.sin(h)*f,e.moveTo(n-a,r-o),e.lineTo(n+a,r+o),e.moveTo(n+o,r-a),e.lineTo(n-o,r+a),h+=Ys,a=Math.cos(h)*f,o=Math.sin(h)*f,e.moveTo(n-a,r-o),e.lineTo(n+a,r+o),e.moveTo(n+o,r-a),e.lineTo(n-o,r+a);break;case"line":a=Math.cos(h)*f,o=Math.sin(h)*f,e.moveTo(n-a,r-o),e.lineTo(n+a,r+o);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(h)*f,r+Math.sin(h)*f)}e.fill(),t.borderWidth>0&&e.stroke()}}function ul(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function ll(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function cl(e){e.restore()}function fl(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if("middle"===i){var a=(t.x+n.x)/2;e.lineTo(a,t.y),e.lineTo(a,n.y)}else"after"===i!==!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function hl(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function dl(e,t,n,r,i){var a,o,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},u=ks(t)?t:[t],l=s.strokeWidth>0&&""!==s.strokeColor;for(e.save(),e.font=i.string,pl(e,s),a=0;a<u.length;++a)o=u[a],l&&(s.strokeColor&&(e.strokeStyle=s.strokeColor),xs(s.strokeWidth)||(e.lineWidth=s.strokeWidth),e.strokeText(o,n,r,s.maxWidth)),e.fillText(o,n,r,s.maxWidth),vl(e,n,r,o,s),r+=i.lineHeight;e.restore()}function pl(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),xs(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function vl(e,t,n,r,i){if(i.strikethrough||i.underline){var a=e.measureText(r),o=t-a.actualBoundingBoxLeft,s=t+a.actualBoundingBoxRight,u=n-a.actualBoundingBoxAscent,l=n+a.actualBoundingBoxDescent,c=i.strikethrough?(u+l)/2:l;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,c),e.lineTo(s,c),e.stroke()}}function yl(e,t){var n=t.x,r=t.y,i=t.w,a=t.h,o=t.radius;e.arc(n+o.topLeft,r+o.topLeft,o.topLeft,-$s,qs,!0),e.lineTo(n,r+a-o.bottomLeft),e.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,qs,$s,!0),e.lineTo(n+i-o.bottomRight,r+a),e.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,$s,0,!0),e.lineTo(n+i,r+o.topRight),e.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-$s,!0),e.lineTo(n+o.topLeft,r)}var gl=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),ml=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function bl(e,t){var n=(""+e).match(gl);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}function xl(e,t){var n,r={},i=_s(t),a=i?Object.keys(t):t,o=_s(e)?i?function(n){return Ss(e[n],e[t[n]])}:function(t){return e[t]}:function(){return e},s=Ge(a);try{for(s.s();!(n=s.n()).done;){var u=n.value;r[u]=+o(u)||0}}catch(l){s.e(l)}finally{s.f()}return r}function kl(e){return xl(e,{top:"y",right:"x",bottom:"y",left:"x"})}function _l(e){return xl(e,["topLeft","topRight","bottomLeft","bottomRight"])}function wl(e){var t=kl(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function El(e,t){e=e||{},t=t||nl.font;var n=Ss(e.size,t.size);"string"===typeof n&&(n=parseInt(n,10));var r=Ss(e.style,t.style);r&&!(""+r).match(ml)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");var i={family:Ss(e.family,t.family),lineHeight:bl(Ss(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Ss(e.weight,t.weight),string:""};return i.string=function(e){return!e||xs(e.size)||xs(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i}function Sl(e,t,n,r){var i,a,o,s=!0;for(i=0,a=e.length;i<a;++i)if(void 0!==(o=e[i])&&(void 0!==t&&"function"===typeof o&&(o=o(t),s=!1),void 0!==n&&ks(o)&&(o=o[n%o.length],s=!1),void 0!==o))return r&&!s&&(r.cacheable=!1),o}function Tl(e,t){return Object.assign(Object.create(e),t)}function Ol(e,t,n){n=n||function(n){return e[n]<t};for(var r,i=e.length-1,a=0;i-a>1;)n(r=a+i>>1)?a=r:i=r;return{lo:a,hi:i}}var Cl=function(e,t,n){return Ol(e,n,(function(r){return e[r][t]<n}))},Pl=function(e,t,n){return Ol(e,n,(function(r){return e[r][t]>=n}))};var Ml=["push","pop","shift","splice","unshift"];function Dl(e,t){var n=e._chartjs;if(n){var r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(Ml.forEach((function(t){delete e[t]})),delete e._chartjs)}}function Il(e){var t,n,r=new Set;for(t=0,n=e.length;t<n;++t)r.add(e[t]);return r.size===n?e:Array.from(r)}function Al(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return e[0]};Vs(a)||(a=Ql("_fallback",e));var s=(r(t={},Symbol.toStringTag,"Object"),r(t,"_cacheable",!0),r(t,"_scopes",e),r(t,"_rootScopes",i),r(t,"_fallback",a),r(t,"_getTarget",o),r(t,"override",(function(t){return Al([t].concat(Qe(e)),n,i,a)})),t);return new Proxy(s,{deleteProperty:function(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get:function(t,r){return jl(t,r,(function(){return Wl(r,n,e,t)}))},getOwnPropertyDescriptor:function(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e[0])},has:function(e,t){return Hl(e).includes(t)},ownKeys:function(e){return Hl(e)},set:function(e,t,n){var r=e._storage||(e._storage=o());return e[t]=r[t]=n,delete e._keys,!0}})}function Nl(e,t,n,r){var i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Rl(e,r),setContext:function(t){return Nl(e,t,n,r)},override:function(i){return Nl(e.override(i),t,n,r)}};return new Proxy(i,{deleteProperty:function(t,n){return delete t[n],delete e[n],!0},get:function(e,t,n){return jl(e,t,(function(){return function(e,t,n){var r=e._proxy,i=e._context,a=e._subProxy,o=e._descriptors,s=r[t];zs(s)&&o.isScriptable(t)&&(s=function(e,t,n,r){var i=n._proxy,a=n._context,o=n._subProxy,s=n._stack;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e),t=t(a,o||r),s.delete(e),Fl(e,t)&&(t=ql(i._scopes,i,e,t));return t}(t,s,e,n));ks(s)&&s.length&&(s=function(e,t,n,r){var i=n._proxy,a=n._context,o=n._subProxy,s=n._descriptors;if(Vs(a.index)&&r(e))t=t[a.index%t.length];else if(_s(t[0])){var u=t,l=i._scopes.filter((function(e){return e!==u}));t=[];var c,f=Ge(u);try{for(f.s();!(c=f.n()).done;){var h=ql(l,i,e,c.value);t.push(Nl(h,a,o&&o[e],s))}}catch(d){f.e(d)}finally{f.f()}}return t}(t,s,e,o.isIndexable));Fl(t,s)&&(s=Nl(s,i,a&&a[t],o));return s}(e,t,n)}))},getOwnPropertyDescriptor:function(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e)},has:function(t,n){return Reflect.has(e,n)},ownKeys:function(){return Reflect.ownKeys(e)},set:function(t,n,r){return e[n]=r,delete t[n],!0}})}function Rl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0},n=e._scriptable,r=void 0===n?t.scriptable:n,i=e._indexable,a=void 0===i?t.indexable:i,o=e._allKeys,s=void 0===o?t.allKeys:o;return{allKeys:s,scriptable:r,indexable:a,isScriptable:zs(r)?r:function(){return r},isIndexable:zs(a)?a:function(){return a}}}var Ll=function(e,t){return e?e+js(t):t},Fl=function(e,t){return _s(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object)};function jl(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];var r=n();return e[t]=r,r}function Vl(e,t,n){return zs(e)?e(t,n):e}var zl=function(e,t){return!0===e?t:"string"===typeof e?Fs(t,e):void 0};function Bl(e,t,n,r,i){var a,o=Ge(t);try{for(o.s();!(a=o.n()).done;){var s=a.value,u=zl(n,s);if(u){e.add(u);var l=Vl(u._fallback,n,i);if(Vs(l)&&l!==n&&l!==r)return l}else if(!1===u&&Vs(r)&&n!==r)return null}}catch(c){o.e(c)}finally{o.f()}return!1}function ql(e,t,n,r){var i=t._rootScopes,a=Vl(t._fallback,n,r),o=[].concat(Qe(e),Qe(i)),s=new Set;s.add(r);var u=Ul(s,o,n,a||n,r);return null!==u&&((!Vs(a)||a===n||null!==(u=Ul(s,o,a,u,r)))&&Al(Array.from(s),[""],i,a,(function(){return function(e,t,n){var r=e._getTarget();t in r||(r[t]={});var i=r[t];if(ks(i)&&_s(n))return n;return i}(t,n,r)})))}function Ul(e,t,n,r,i){for(;n;)n=Bl(e,t,n,r,i);return n}function Wl(e,t,n,r){var i,a,o=Ge(t);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(i=Ql(Ll(s,e),n),Vs(i))return Fl(e,i)?ql(n,r,e,i):i}}catch(u){o.e(u)}finally{o.f()}}function Ql(e,t){var n,r=Ge(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i){var a=i[e];if(Vs(a))return a}}}catch(o){r.e(o)}finally{r.f()}}function Hl(e){var t=e._keys;return t||(t=e._keys=function(e){var t,n=new Set,r=Ge(e);try{for(r.s();!(t=r.n()).done;){var i,a=t.value,o=Ge(Object.keys(a).filter((function(e){return!e.startsWith("_")})));try{for(o.s();!(i=o.n()).done;){var s=i.value;n.add(s)}}catch(u){o.e(u)}finally{o.f()}}}catch(u){r.e(u)}finally{r.f()}return Array.from(n)}(e._scopes)),t}var $l=Number.EPSILON||1e-14,Yl=function(e,t){return t<e.length&&!e[t].skip&&e[t]},Kl=function(e){return"x"===e?"y":"x"};function Gl(e,t,n,r){var i=e.skip?t:e,a=t,o=n.skip?t:n,s=ou(a,i),u=ou(o,a),l=s/(s+u),c=u/(s+u),f=r*(l=isNaN(l)?0:l),h=r*(c=isNaN(c)?0:c);return{previous:{x:a.x-f*(o.x-i.x),y:a.y-f*(o.y-i.y)},next:{x:a.x+h*(o.x-i.x),y:a.y+h*(o.y-i.y)}}}function Xl(e,t,n){for(var r,i,a,o,s,u=e.length,l=Yl(e,0),c=0;c<u-1;++c)s=l,l=Yl(e,c+1),s&&l&&(eu(t[c],0,$l)?n[c]=n[c+1]=0:(r=n[c]/t[c],i=n[c+1]/t[c],(o=Math.pow(r,2)+Math.pow(i,2))<=9||(a=3/Math.sqrt(o),n[c]=r*a*t[c],n[c+1]=i*a*t[c])))}function Jl(e,t){for(var n,r,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x",o=Kl(a),s=e.length,u=Yl(e,0),l=0;l<s;++l)if(r=i,i=u,u=Yl(e,l+1),i){var c=i[a],f=i[o];r&&(n=(c-r[a])/3,i["cp1".concat(a)]=c-n,i["cp1".concat(o)]=f-n*t[l]),u&&(n=(u[a]-c)/3,i["cp2".concat(a)]=c+n,i["cp2".concat(o)]=f+n*t[l])}}function Zl(e,t,n){return Math.max(Math.min(e,n),t)}function ec(e,t,n,r,i){var a,o,s,u;if(t.spanGaps&&(e=e.filter((function(e){return!e.skip}))),"monotone"===t.cubicInterpolationMode)!function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",a=Kl(i),o=e.length,s=Array(o).fill(0),u=Array(o),l=Yl(e,0);for(t=0;t<o;++t)if(n=r,r=l,l=Yl(e,t+1),r){if(l){var c=l[i]-r[i];s[t]=0!==c?(l[a]-r[a])/c:0}u[t]=n?l?Xs(s[t-1])!==Xs(s[t])?0:(s[t-1]+s[t])/2:s[t-1]:s[t]}Xl(e,s,u),Jl(e,u,i)}(e,i);else{var l=r?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)u=Gl(l,s=e[a],e[Math.min(a+1,o-(r?0:1))%o],t.tension),s.cp1x=u.previous.x,s.cp1y=u.previous.y,s.cp2x=u.next.x,s.cp2y=u.next.y,l=s}t.capBezierPoints&&function(e,t){var n,r,i,a,o,s=ul(e[0],t);for(n=0,r=e.length;n<r;++n)o=a,a=s,s=n<r-1&&ul(e[n+1],t),a&&(i=e[n],o&&(i.cp1x=Zl(i.cp1x,t.left,t.right),i.cp1y=Zl(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=Zl(i.cp2x,t.left,t.right),i.cp2y=Zl(i.cp2y,t.top,t.bottom)))}(e,n)}function tc(){return"undefined"!==typeof window&&"undefined"!==typeof document}function nc(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function rc(e,t,n){var r;return"string"===typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}var ic=function(e){return window.getComputedStyle(e,null)};var ac=["top","right","bottom","left"];function oc(e,t,n){var r={};n=n?"-"+n:"";for(var i=0;i<4;i++){var a=ac[i];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function sc(e,t){var n=t.canvas,r=t.currentDevicePixelRatio,i=ic(n),a="border-box"===i.boxSizing,o=oc(i,"padding"),s=oc(i,"border","width"),u=function(e,t){var n,r,i=e.native||e,a=i.touches,o=a&&a.length?a[0]:i,s=o.offsetX,u=o.offsetY,l=!1;if(function(e,t,n){return(e>0||t>0)&&(!n||!n.shadowRoot)}(s,u,i.target))n=s,r=u;else{var c=t.getBoundingClientRect();n=o.clientX-c.left,r=o.clientY-c.top,l=!0}return{x:n,y:r,box:l}}(e,n),l=u.x,c=u.y,f=u.box,h=o.left+(f&&s.left),d=o.top+(f&&s.top),p=t.width,v=t.height;return a&&(p-=o.width+s.width,v-=o.height+s.height),{x:Math.round((l-h)/p*n.width/r),y:Math.round((c-d)/v*n.height/r)}}var uc=function(e){return Math.round(10*e)/10};function lc(e,t,n,r){var i=ic(e),a=oc(i,"margin"),o=rc(i.maxWidth,e,"clientWidth")||Qs,s=rc(i.maxHeight,e,"clientHeight")||Qs,u=function(e,t,n){var r,i;if(void 0===t||void 0===n){var a=nc(e);if(a){var o=a.getBoundingClientRect(),s=ic(a),u=oc(s,"border","width"),l=oc(s,"padding");t=o.width-l.width-u.width,n=o.height-l.height-u.height,r=rc(s.maxWidth,a,"clientWidth"),i=rc(s.maxHeight,a,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||Qs,maxHeight:i||Qs}}(e,t,n),l=u.width,c=u.height;if("content-box"===i.boxSizing){var f=oc(i,"border","width"),h=oc(i,"padding");l-=h.width+f.width,c-=h.height+f.height}return l=Math.max(0,l-a.width),c=Math.max(0,r?Math.floor(l/r):c-a.height),l=uc(Math.min(l,o,u.maxWidth)),c=uc(Math.min(c,s,u.maxHeight)),l&&!c&&(c=uc(l/2)),{width:l,height:c}}function cc(e,t,n){var r=t||1,i=Math.floor(e.height*r),a=Math.floor(e.width*r);e.height=i/r,e.width=a/r;var o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height="".concat(e.height,"px"),o.style.width="".concat(e.width,"px")),(e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a)&&(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0)}var fc=function(){var e=!1;try{var t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(n){}return e}();function hc(e,t){var n=function(e,t){return ic(e).getPropertyValue(t)}(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function dc(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function pc(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function vc(e,t,n,r){var i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=dc(e,i,n),s=dc(i,a,n),u=dc(a,t,n),l=dc(o,s,n),c=dc(s,u,n);return dc(l,c,n)}var yc=new Map;function gc(e,t,n){return function(e,t){t=t||{};var n=e+JSON.stringify(t),r=yc.get(n);return r||(r=new Intl.NumberFormat(e,t),yc.set(n,r)),r}(t,n).format(e)}function mc(e,t,n){return e?function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}}(t,n):{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}}function bc(e,t){var n,r;"ltr"!==t&&"rtl"!==t||(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function xc(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function kc(e){return"angle"===e?{between:lu,compare:su,normalize:uu}:{between:fu,compare:function(e,t){return e-t},normalize:function(e){return e}}}function _c(e){var t=e.start,n=e.end,r=e.count;return{start:t%r,end:n%r,loop:e.loop&&(n-t+1)%r===0,style:e.style}}function wc(e,t,n){if(!n)return[e];for(var r,i,a,o=n.property,s=n.start,u=n.end,l=t.length,c=kc(o),f=c.compare,h=c.between,d=c.normalize,p=function(e,t,n){var r,i,a=n.property,o=n.start,s=n.end,u=kc(a),l=u.between,c=u.normalize,f=t.length,h=e.start,d=e.end,p=e.loop;if(p){for(h+=f,d+=f,r=0,i=f;r<i&&l(c(t[h%f][a]),o,s);++r)h--,d--;h%=f,d%=f}return d<h&&(d+=f),{start:h,end:d,loop:p,style:e.style}}(e,t,n),v=p.start,y=p.end,g=p.loop,m=p.style,b=[],x=!1,k=null,_=function(){return x||h(s,a,r)&&0!==f(s,a)},w=function(){return!x||0===f(u,r)||h(u,a,r)},E=v,S=v;E<=y;++E)(i=t[E%l]).skip||(r=d(i[o]))!==a&&(x=h(r,s,u),null===k&&_()&&(k=0===f(r,s)?E:S),null!==k&&w()&&(b.push(_c({start:k,end:E,loop:g,count:l,style:m})),k=null),S=E,a=r);return null!==k&&b.push(_c({start:k,end:y,loop:g,count:l,style:m})),b}function Ec(e,t){for(var n=[],r=e.segments,i=0;i<r.length;i++){var a=wc(r[i],e.points,t);a.length&&n.push.apply(n,Qe(a))}return n}function Sc(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){var i=e._chart.getContext(),a=Tc(e.options),o=e._datasetIndex,s=e.options.spanGaps,u=n.length,l=[],c=a,f=t[0].start,h=f;function d(e,t,r,i){var a=s?-1:1;if(e!==t){for(e+=u;n[e%u].skip;)e-=a;for(;n[t%u].skip;)t+=a;e%u!==t%u&&(l.push({start:e%u,end:t%u,loop:r,style:i}),c=i,f=t%u)}}var p,v=Ge(t);try{for(v.s();!(p=v.n()).done;){var y=p.value;f=s?f:y.start;var g=n[f%u],m=void 0;for(h=f+1;h<=y.end;h++){var b=n[h%u];Oc(m=Tc(r.setContext(Tl(i,{type:"segment",p0:g,p1:b,p0DataIndex:(h-1)%u,p1DataIndex:h%u,datasetIndex:o}))),c)&&d(f,h-1,y.loop,c),g=b,c=m}f<h-1&&d(f,h-1,y.loop,c)}}catch(x){v.e(x)}finally{v.f()}return l}(e,t,n,r):t}function Tc(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Oc(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}var Cc=function(){function e(){je(this,e),this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}return ze(e,[{key:"_notify",value:function(e,t,n,r){var i=t.listeners[r],a=t.duration;i.forEach((function(r){return r({chart:e,initial:t.initial,numSteps:a,currentStep:Math.min(n-t.start,a)})}))}},{key:"_refresh",value:function(){var e=this;this._request||(this._running=!0,this._request=ps.call(window,(function(){e._update(),e._request=null,e._running&&e._refresh()})))}},{key:"_update",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),n=0;this._charts.forEach((function(r,i){if(r.running&&r.items.length){for(var a,o=r.items,s=o.length-1,u=!1;s>=0;--s)(a=o[s])._active?(a._total>r.duration&&(r.duration=a._total),a.tick(t),u=!0):(o[s]=o[o.length-1],o.pop());u&&(i.draw(),e._notify(i,r,t,"progress")),o.length||(r.running=!1,e._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}})),this._lastDate=t,0===n&&(this._running=!1)}},{key:"_getAnims",value:function(e){var t=this._charts,n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}},{key:"listen",value:function(e,t,n){this._getAnims(e).listeners[t].push(n)}},{key:"add",value:function(e,t){var n;t&&t.length&&(n=this._getAnims(e).items).push.apply(n,Qe(t))}},{key:"has",value:function(e){return this._getAnims(e).items.length>0}},{key:"start",value:function(e){var t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((function(e,t){return Math.max(e,t._duration)}),0),this._refresh())}},{key:"running",value:function(e){if(!this._running)return!1;var t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}},{key:"stop",value:function(e){var t=this._charts.get(e);if(t&&t.items.length){for(var n=t.items,r=n.length-1;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}}},{key:"remove",value:function(e){return this._charts.delete(e)}}]),e}(),Pc=new Cc,Mc="transparent",Dc={boolean:function(e,t,n){return n>.5?t:e},color:function(e,t,n){var r=Ku(e||Mc),i=r.valid&&Ku(t||Mc);return i&&i.valid?i.mix(r,n).hexString():t},number:function(e,t,n){return e+(t-e)*n}},Ic=function(){function e(t,n,r,i){je(this,e);var a=n[r];i=Sl([t.to,i,a,t.from]);var o=Sl([t.from,a,i]);this._active=!0,this._fn=t.fn||Dc[t.type||typeof o],this._easing=vu[t.easing]||vu.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=o,this._to=i,this._promises=void 0}return ze(e,[{key:"active",value:function(){return this._active}},{key:"update",value:function(e,t,n){if(this._active){this._notify(!1);var r=this._target[this._prop],i=n-this._start,a=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=Sl([e.to,t,r,e.from]),this._from=Sl([e.from,r,t])}}},{key:"cancel",value:function(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}},{key:"tick",value:function(e){var t,n=e-this._start,r=this._duration,i=this._prop,a=this._from,o=this._loop,s=this._to;if(this._active=a!==s&&(o||n<r),!this._active)return this._target[i]=s,void this._notify(!0);n<0?this._target[i]=a:(t=n/r%2,t=o&&t>1?2-t:t,t=this._easing(Math.min(1,Math.max(0,t))),this._target[i]=this._fn(a,s,t))}},{key:"wait",value:function(){var e=this._promises||(this._promises=[]);return new Promise((function(t,n){e.push({res:t,rej:n})}))}},{key:"_notify",value:function(e){for(var t=e?"res":"rej",n=this._promises||[],r=0;r<n.length;r++)n[r][t]()}}]),e}();nl.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});var Ac=Object.keys(nl.animation);nl.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:function(e){return"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}}),nl.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),nl.describe("animations",{_fallback:"animation"}),nl.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:function(e){return 0|e}}}}});var Nc=function(){function e(t,n){je(this,e),this._chart=t,this._properties=new Map,this.configure(n)}return ze(e,[{key:"configure",value:function(e){if(_s(e)){var t=this._properties;Object.getOwnPropertyNames(e).forEach((function(n){var r=e[n];if(_s(r)){var i,a={},o=Ge(Ac);try{for(o.s();!(i=o.n()).done;){var s=i.value;a[s]=r[s]}}catch(u){o.e(u)}finally{o.f()}(ks(r.properties)&&r.properties||[n]).forEach((function(e){e!==n&&t.has(e)||t.set(e,a)}))}}))}}},{key:"_animateOptions",value:function(e,t){var n=t.options,r=function(e,t){if(!t)return;var n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!r)return[];var i=this._createAnimations(r,n);return n.$shared&&function(e,t){for(var n=[],r=Object.keys(t),i=0;i<r.length;i++){var a=e[r[i]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}(e.options.$animations,n).then((function(){e.options=n}),(function(){})),i}},{key:"_createAnimations",value:function(e,t){var n,r=this._properties,i=[],a=e.$animations||(e.$animations={}),o=Object.keys(t),s=Date.now();for(n=o.length-1;n>=0;--n){var u=o[n];if("$"!==u.charAt(0))if("options"!==u){var l=t[u],c=a[u],f=r.get(u);if(c){if(f&&c.active()){c.update(f,l,s);continue}c.cancel()}f&&f.duration?(a[u]=c=new Ic(f,e,u,l),i.push(c)):e[u]=l}else i.push.apply(i,Qe(this._animateOptions(e,t)))}return i}},{key:"update",value:function(e,t){if(0!==this._properties.size){var n=this._createAnimations(e,t);return n.length?(Pc.add(this._chart,n),!0):void 0}Object.assign(e,t)}}]),e}();function Rc(e,t){var n=e&&e.options||{},r=n.reverse,i=void 0===n.min?t:0,a=void 0===n.max?t:0;return{start:r?a:i,end:r?i:a}}function Lc(e,t){var n,r,i=[],a=e._getSortedDatasetMetas(t);for(n=0,r=a.length;n<r;++n)i.push(a[n].index);return i}function Fc(e,t,n){var r,i,a,o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=e.keys,l="single"===s.mode;if(null!==t){for(r=0,i=u.length;r<i;++r){if((a=+u[r])===n){if(s.all)continue;break}o=e.values[a],ws(o)&&(l||0===t||Xs(t)===Xs(o))&&(t+=o)}return t}}function jc(e,t){var n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function Vc(e,t,n){var r=e[t]||(e[t]={});return r[n]||(r[n]={})}function zc(e,t,n,r){var i,a=Ge(t.getMatchingVisibleMetas(r).reverse());try{for(a.s();!(i=a.n()).done;){var o=i.value,s=e[o.index];if(n&&s>0||!n&&s<0)return o.index}}catch(u){a.e(u)}finally{a.f()}return null}function Bc(e,t){for(var n,r=e.chart,i=e._cachedMeta,a=r._stacks||(r._stacks={}),o=i.iScale,s=i.vScale,u=i.index,l=o.axis,c=s.axis,f=function(e,t,n){return"".concat(e.id,".").concat(t.id,".").concat(n.stack||n.type)}(o,s,i),h=t.length,d=0;d<h;++d){var p=t[d],v=p[l],y=p[c];(n=(p._stacks||(p._stacks={}))[c]=Vc(a,f,v))[u]=y,n._top=zc(n,s,!0,i.type),n._bottom=zc(n,s,!1,i.type)}}function qc(e,t){var n=e.scales;return Object.keys(n).filter((function(e){return n[e].axis===t})).shift()}function Uc(e,t){var n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){var i,a=Ge(t=t||e._parsed);try{for(a.s();!(i=a.n()).done;){var o=i.value._stacks;if(!o||void 0===o[r]||void 0===o[r][n])return;delete o[r][n]}}catch(s){a.e(s)}finally{a.f()}}}var Wc=function(e){return"reset"===e||"none"===e},Qc=function(e,t){return t?e:Object.assign({},e)},Hc=function(){function e(t,n){je(this,e),this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.$context=void 0,this._syncList=[],this.initialize()}return ze(e,[{key:"initialize",value:function(){var e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=jc(e.vScale,e),this.addElements()}},{key:"updateIndex",value:function(e){this.index!==e&&Uc(this._cachedMeta),this.index=e}},{key:"linkScales",value:function(){var e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=function(e,t,n,r){return"x"===e?t:"r"===e?r:n},i=t.xAxisID=Ss(n.xAxisID,qc(e,"x")),a=t.yAxisID=Ss(n.yAxisID,qc(e,"y")),o=t.rAxisID=Ss(n.rAxisID,qc(e,"r")),s=t.indexAxis,u=t.iAxisID=r(s,i,a,o),l=t.vAxisID=r(s,a,i,o);t.xScale=this.getScaleForId(i),t.yScale=this.getScaleForId(a),t.rScale=this.getScaleForId(o),t.iScale=this.getScaleForId(u),t.vScale=this.getScaleForId(l)}},{key:"getDataset",value:function(){return this.chart.data.datasets[this.index]}},{key:"getMeta",value:function(){return this.chart.getDatasetMeta(this.index)}},{key:"getScaleForId",value:function(e){return this.chart.scales[e]}},{key:"_getOtherScale",value:function(e){var t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}},{key:"reset",value:function(){this._update("reset")}},{key:"_destroy",value:function(){var e=this._cachedMeta;this._data&&Dl(this._data,this),e._stacked&&Uc(e)}},{key:"_dataCheck",value:function(){var e,t,n=this.getDataset(),r=n.data||(n.data=[]),i=this._data;if(_s(r))this._data=function(e){var t,n,r,i=Object.keys(e),a=new Array(i.length);for(t=0,n=i.length;t<n;++t)r=i[t],a[t]={x:r,y:e[r]};return a}(r);else if(i!==r){if(i){Dl(i,this);var a=this._cachedMeta;Uc(a),a._parsed=[]}r&&Object.isExtensible(r)&&(t=this,(e=r)._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Ml.forEach((function(t){var n="_onData"+js(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];var o=r.apply(this,i);return e._chartjs.listeners.forEach((function(e){"function"===typeof e[n]&&e[n].apply(e,i)})),o}})})))),this._syncList=[],this._data=r}}},{key:"addElements",value:function(){var e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}},{key:"buildOrUpdateElements",value:function(e){var t=this._cachedMeta,n=this.getDataset(),r=!1;this._dataCheck();var i=t._stacked;t._stacked=jc(t.vScale,t),t.stack!==n.stack&&(r=!0,Uc(t),t.stack=n.stack),this._resyncElements(e),(r||i!==t._stacked)&&Bc(this,t._parsed)}},{key:"configure",value:function(){var e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}},{key:"parse",value:function(e,t){var n,r,i,a=this._cachedMeta,o=this._data,s=a.iScale,u=a._stacked,l=s.axis,c=0===e&&t===o.length||a._sorted,f=e>0&&a._parsed[e-1];if(!1===this._parsing)a._parsed=o,a._sorted=!0,i=o;else{i=ks(o[e])?this.parseArrayData(a,o,e,t):_s(o[e])?this.parseObjectData(a,o,e,t):this.parsePrimitiveData(a,o,e,t);for(n=0;n<t;++n)a._parsed[n+e]=r=i[n],c&&((null===r[l]||f&&r[l]<f[l])&&(c=!1),f=r);a._sorted=c}u&&Bc(this,i)}},{key:"parsePrimitiveData",value:function(e,t,n,i){var a,o,s,u=e.iScale,l=e.vScale,c=u.axis,f=l.axis,h=u.getLabels(),d=u===l,p=new Array(i);for(a=0,o=i;a<o;++a){var v;s=a+n,p[a]=(r(v={},c,d||u.parse(h[s],s)),r(v,f,l.parse(t[s],s)),v)}return p}},{key:"parseArrayData",value:function(e,t,n,r){var i,a,o,s,u=e.xScale,l=e.yScale,c=new Array(r);for(i=0,a=r;i<a;++i)s=t[o=i+n],c[i]={x:u.parse(s[0],o),y:l.parse(s[1],o)};return c}},{key:"parseObjectData",value:function(e,t,n,r){var i,a,o,s,u=e.xScale,l=e.yScale,c=this._parsing,f=c.xAxisKey,h=void 0===f?"x":f,d=c.yAxisKey,p=void 0===d?"y":d,v=new Array(r);for(i=0,a=r;i<a;++i)s=t[o=i+n],v[i]={x:u.parse(Fs(s,h),o),y:l.parse(Fs(s,p),o)};return v}},{key:"getParsed",value:function(e){return this._cachedMeta._parsed[e]}},{key:"getDataElement",value:function(e){return this._cachedMeta.data[e]}},{key:"applyStack",value:function(e,t,n){var r=this.chart,i=this._cachedMeta,a=t[e.axis];return Fc({keys:Lc(r,!0),values:t._stacks[e.axis]},a,i.index,{mode:n})}},{key:"updateRangeFromParsed",value:function(e,t,n,r){var i=n[t.axis],a=null===i?NaN:i,o=r&&n._stacks[t.axis];r&&o&&(r.values=o,a=Fc(r,i,this._cachedMeta.index)),e.min=Math.min(e.min,a),e.max=Math.max(e.max,a)}},{key:"getMinMax",value:function(e,t){var n,r,i=this._cachedMeta,a=i._parsed,o=i._sorted&&e===i.iScale,s=a.length,u=this._getOtherScale(e),l=function(e,t,n){return e&&!t.hidden&&t._stacked&&{keys:Lc(n,!0),values:null}}(t,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},f=function(e){var t=e.getUserBounds(),n=t.min,r=t.max,i=t.minDefined,a=t.maxDefined;return{min:i?n:Number.NEGATIVE_INFINITY,max:a?r:Number.POSITIVE_INFINITY}}(u),h=f.min,d=f.max;function p(){var t=(r=a[n])[u.axis];return!ws(r[e.axis])||h>t||d<t}for(n=0;n<s&&(p()||(this.updateRangeFromParsed(c,e,r,l),!o));++n);if(o)for(n=s-1;n>=0;--n)if(!p()){this.updateRangeFromParsed(c,e,r,l);break}return c}},{key:"getAllParsedValues",value:function(e){var t,n,r,i=this._cachedMeta._parsed,a=[];for(t=0,n=i.length;t<n;++t)r=i[t][e.axis],ws(r)&&a.push(r);return a}},{key:"getMaxOverflow",value:function(){return!1}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=t.iScale,r=t.vScale,i=this.getParsed(e);return{label:n?""+n.getLabelForValue(i[n.axis]):"",value:r?""+r.getLabelForValue(i[r.axis]):""}}},{key:"_update",value:function(e){var t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){var t,n,r,i;return _s(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:!1===e}}(Ss(this.options.clip,function(e,t,n){if(!1===n)return!1;var r=Rc(e,n),i=Rc(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}},{key:"update",value:function(e){}},{key:"draw",value:function(){var e,t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],a=n.chartArea,o=[],s=this._drawStart||0,u=this._drawCount||i.length-s,l=this.options.drawActiveElementsOnTop;for(r.dataset&&r.dataset.draw(t,a,s,u),e=s;e<s+u;++e){var c=i[e];c.hidden||(c.active&&l?o.push(c):c.draw(t,a))}for(e=0;e<o.length;++e)o[e].draw(t,a)}},{key:"getStyle",value:function(e,t){var n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}},{key:"getContext",value:function(e,t,n){var r,i=this.getDataset();if(e>=0&&e<this._cachedMeta.data.length){var a=this._cachedMeta.data[e];r=a.$context||(a.$context=function(e,t,n){return Tl(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,a)),r.parsed=this.getParsed(e),r.raw=i.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=function(e,t){return Tl(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!t,r.mode=n,r}},{key:"resolveDatasetElementOptions",value:function(e){return this._resolveElementOptions(this.datasetElementType.id,e)}},{key:"resolveDataElementOptions",value:function(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}},{key:"_resolveElementOptions",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2?arguments[2]:void 0,i="active"===n,a=this._cachedDataOpts,o=e+"-"+n,s=a[o],u=this.enableOptionSharing&&Vs(r);if(s)return Qc(s,u);var l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),f=i?["".concat(e,"Hover"),"hover",e,""]:[e,""],h=l.getOptionScopes(this.getDataset(),c),d=Object.keys(nl.elements[e]),p=function(){return t.getContext(r,i)},v=l.resolveNamedOptions(h,d,p,f);return v.$shared&&(v.$shared=u,a[o]=Object.freeze(Qc(v,u))),v}},{key:"_resolveAnimations",value:function(e,t,n){var r,i=this.chart,a=this._cachedDataOpts,o="animation-".concat(t),s=a[o];if(s)return s;if(!1!==i.options.animation){var u=this.chart.config,l=u.datasetAnimationScopeKeys(this._type,t),c=u.getOptionScopes(this.getDataset(),l);r=u.createResolver(c,this.getContext(e,n,t))}var f=new Nc(i,r&&r.animations);return r&&r._cacheable&&(a[o]=Object.freeze(f)),f}},{key:"getSharedOptions",value:function(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}},{key:"includeOptions",value:function(e,t){return!t||Wc(e)||this.chart._animationsDisabled}},{key:"updateElement",value:function(e,t,n,r){Wc(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}},{key:"updateSharedOptions",value:function(e,t,n){e&&!Wc(t)&&this._resolveAnimations(void 0,t).update(e,n)}},{key:"_setStyle",value:function(e,t,n,r){e.active=r;var i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}},{key:"removeHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!1)}},{key:"setHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!0)}},{key:"_removeDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}},{key:"_setDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}},{key:"_resyncElements",value:function(e){var t,n=this._data,r=this._cachedMeta.data,i=Ge(this._syncList);try{for(i.s();!(t=i.n()).done;){var a=We(t.value,3),o=a[0],s=a[1],u=a[2];this[o](s,u)}}catch(h){i.e(h)}finally{i.f()}this._syncList=[];var l=r.length,c=n.length,f=Math.min(c,l);f&&this.parse(0,f),c>l?this._insertElements(l,c-l,e):c<l&&this._removeElements(c,l-c)}},{key:"_insertElements",value:function(e,t){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this._cachedMeta,a=i.data,o=e+t,s=function(e){for(e.length+=t,n=e.length-1;n>=o;n--)e[n]=e[n-t]};for(s(a),n=e;n<o;++n)a[n]=new this.dataElementType;this._parsing&&s(i._parsed),this.parse(e,t),r&&this.updateElements(a,e,t,"reset")}},{key:"updateElements",value:function(e,t,n,r){}},{key:"_removeElements",value:function(e,t){var n=this._cachedMeta;if(this._parsing){var r=n._parsed.splice(e,t);n._stacked&&Uc(n,r)}n.data.splice(e,t)}},{key:"_sync",value:function(e){if(this._parsing)this._syncList.push(e);else{var t=We(e,3),n=t[0],r=t[1],i=t[2];this[n](r,i)}this.chart._dataChanges.push([this.index].concat(Qe(e)))}},{key:"_onDataPush",value:function(){var e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}},{key:"_onDataPop",value:function(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}},{key:"_onDataShift",value:function(){this._sync(["_removeElements",0,1])}},{key:"_onDataSplice",value:function(e,t){t&&this._sync(["_removeElements",e,t]);var n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}},{key:"_onDataUnshift",value:function(){this._sync(["_insertElements",0,arguments.length])}}]),e}();function $c(e){var t,n,r,i,a=e.iScale,o=function(e,t){if(!e._cache.$bar){for(var n=e.getMatchingVisibleMetas(t),r=[],i=0,a=n.length;i<a;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=Il(r.sort((function(e,t){return e-t})))}return e._cache.$bar}(a,e.type),s=a._length,u=function(){32767!==r&&-32768!==r&&(Vs(i)&&(s=Math.min(s,Math.abs(r-i)||s)),i=r)};for(t=0,n=o.length;t<n;++t)r=a.getPixelForValue(o[t]),u();for(i=void 0,t=0,n=a.ticks.length;t<n;++t)r=a.getPixelForTick(t),u();return s}function Yc(e,t,n,r){return ks(e)?function(e,t,n,r){var i=n.parse(e[0],r),a=n.parse(e[1],r),o=Math.min(i,a),s=Math.max(i,a),u=o,l=s;Math.abs(o)>Math.abs(s)&&(u=s,l=o),t[n.axis]=l,t._custom={barStart:u,barEnd:l,start:i,end:a,min:o,max:s}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Kc(e,t,n,r){var i,a,o,s,u=e.iScale,l=e.vScale,c=u.getLabels(),f=u===l,h=[];for(i=n,a=n+r;i<a;++i)s=t[i],(o={})[u.axis]=f||u.parse(c[i],i),h.push(Yc(s,o,l,i));return h}function Gc(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function Xc(e,t,n,r){var i=t.borderSkipped,a={};if(i){var o=function(e){var t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",a="start"):(i="start",a="end"),{start:n,end:r,reverse:t,top:i,bottom:a}}(e),s=o.start,u=o.end,l=o.reverse,c=o.top,f=o.bottom;"middle"===i&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=f:(a[Jc(f,s,u,l)]=!0,i=c)),a[Jc(i,s,u,l)]=!0,e.borderSkipped=a}else e.borderSkipped=a}function Jc(e,t,n,r){var i,a,o;return r?(o=n,e=Zc(e=(i=e)===(a=t)?o:i===o?a:i,n,t)):e=Zc(e,t,n),e}function Zc(e,t,n){return"start"===e?t:"end"===e?n:e}function ef(e,t,n){var r=t.inflateAmount;e.inflateAmount="auto"===r?1===n?.33:0:r}Hc.defaults={},Hc.prototype.datasetElementType=null,Hc.prototype.dataElementType=null;var tf=function(e){Ja(n,e);var t=ro(n);function n(){return je(this,n),t.apply(this,arguments)}return ze(n,[{key:"parsePrimitiveData",value:function(e,t,n,r){return Kc(e,t,n,r)}},{key:"parseArrayData",value:function(e,t,n,r){return Kc(e,t,n,r)}},{key:"parseObjectData",value:function(e,t,n,r){var i,a,o,s,u=e.iScale,l=e.vScale,c=this._parsing,f=c.xAxisKey,h=void 0===f?"x":f,d=c.yAxisKey,p=void 0===d?"y":d,v="x"===u.axis?h:p,y="x"===l.axis?h:p,g=[];for(i=n,a=n+r;i<a;++i)s=t[i],(o={})[u.axis]=u.parse(Fs(s,v),i),g.push(Yc(Fs(s,y),o,l,i));return g}},{key:"updateRangeFromParsed",value:function(e,t,r,i){ds(Za(n.prototype),"updateRangeFromParsed",this).call(this,e,t,r,i);var a=r._custom;a&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,a.min),e.max=Math.max(e.max,a.max))}},{key:"getMaxOverflow",value:function(){return 0}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=t.iScale,r=t.vScale,i=this.getParsed(e),a=i._custom,o=Gc(a)?"["+a.start+", "+a.end+"]":""+r.getLabelForValue(i[r.axis]);return{label:""+n.getLabelForValue(i[n.axis]),value:o}}},{key:"initialize",value:function(){this.enableOptionSharing=!0,ds(Za(n.prototype),"initialize",this).call(this),this._cachedMeta.stack=this.getDataset().stack}},{key:"update",value:function(e){var t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}},{key:"updateElements",value:function(e,t,n,r){var i="reset"===r,a=this.index,o=this._cachedMeta.vScale,s=o.getBasePixel(),u=o.isHorizontal(),l=this._getRuler(),c=this.resolveDataElementOptions(t,r),f=this.getSharedOptions(c),h=this.includeOptions(r,f);this.updateSharedOptions(f,r,c);for(var d=t;d<t+n;d++){var p=this.getParsed(d),v=i||xs(p[o.axis])?{base:s,head:s}:this._calculateBarValuePixels(d),y=this._calculateBarIndexPixels(d,l),g=(p._stacks||{})[o.axis],m={horizontal:u,base:v.base,enableBorderRadius:!g||Gc(p._custom)||a===g._top||a===g._bottom,x:u?v.head:y.center,y:u?y.center:v.head,height:u?y.size:Math.abs(v.size),width:u?Math.abs(v.size):y.size};h&&(m.options=f||this.resolveDataElementOptions(d,e[d].active?"active":r));var b=m.options||e[d].options;Xc(m,b,g,a),ef(m,b,l.ratio),this.updateElement(e[d],d,m,r)}}},{key:"_getStacks",value:function(e,t){var n,r,i=this._cachedMeta.iScale,a=i.getMatchingVisibleMetas(this._type),o=i.options.stacked,s=a.length,u=[];for(n=0;n<s;++n)if((r=a[n]).controller.options.grouped){if("undefined"!==typeof t){var l=r.controller.getParsed(t)[r.controller._cachedMeta.vScale.axis];if(xs(l)||isNaN(l))continue}if((!1===o||-1===u.indexOf(r.stack)||void 0===o&&void 0===r.stack)&&u.push(r.stack),r.index===e)break}return u.length||u.push(void 0),u}},{key:"_getStackCount",value:function(e){return this._getStacks(void 0,e).length}},{key:"_getStackIndex",value:function(e,t,n){var r=this._getStacks(e,n),i=void 0!==t?r.indexOf(t):-1;return-1===i?r.length-1:i}},{key:"_getRuler",value:function(){var e,t,n=this.options,r=this._cachedMeta,i=r.iScale,a=[];for(e=0,t=r.data.length;e<t;++e)a.push(i.getPixelForValue(this.getParsed(e)[i.axis],e));var o=n.barThickness;return{min:o||$c(r),pixels:a,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:n.grouped,ratio:o?1:n.categoryPercentage*n.barPercentage}}},{key:"_calculateBarValuePixels",value:function(e){var t,n,r=this._cachedMeta,i=r.vScale,a=r._stacked,o=this.options,s=o.base,u=o.minBarLength,l=s||0,c=this.getParsed(e),f=c._custom,h=Gc(f),d=c[i.axis],p=0,v=a?this.applyStack(i,c,a):d;v!==d&&(p=v-d,v=d),h&&(d=f.barStart,v=f.barEnd-f.barStart,0!==d&&Xs(d)!==Xs(f.barEnd)&&(p=0),p+=d);var y=xs(s)||h?p:s,g=i.getPixelForValue(y);if(n=(t=this.chart.getDataVisibility(e)?i.getPixelForValue(p+v):g)-g,Math.abs(n)<u&&(n=function(e,t,n){return 0!==e?Xs(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(n,i,l)*u,d===l&&(g-=n/2),t=g+n),g===i.getPixelForValue(l)){var m=Xs(n)*i.getLineWidthForValue(l)/2;g+=m,n-=m}return{size:n,base:g,head:t,center:t+n/2}}},{key:"_calculateBarIndexPixels",value:function(e,t){var n,r,i=t.scale,a=this.options,o=a.skipNull,s=Ss(a.maxBarThickness,1/0);if(t.grouped){var u=o?this._getStackCount(e):t.stackCount,l="flex"===a.barThickness?function(e,t,n,r){var i=t.pixels,a=i[e],o=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null,u=n.categoryPercentage;null===o&&(o=a-(null===s?t.end-t.start:s-a)),null===s&&(s=a+a-o);var l=a-(a-Math.min(o,s))/2*u;return{chunk:Math.abs(s-o)/2*u/r,ratio:n.barPercentage,start:l}}(e,t,a,u):function(e,t,n,r){var i,a,o=n.barThickness;return xs(o)?(i=t.min*n.categoryPercentage,a=n.barPercentage):(i=o*r,a=1),{chunk:i/r,ratio:a,start:t.pixels[e]-i/2}}(e,t,a,u),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?e:void 0);n=l.start+l.chunk*c+l.chunk/2,r=Math.min(s,l.chunk*l.ratio)}else n=i.getPixelForValue(this.getParsed(e)[i.axis],e),r=Math.min(s,t.min*t.ratio);return{base:n-r/2,head:n+r/2,center:n,size:r}}},{key:"draw",value:function(){for(var e=this._cachedMeta,t=e.vScale,n=e.data,r=n.length,i=0;i<r;++i)null!==this.getParsed(i)[t.axis]&&n[i].draw(this._ctx)}}]),n}(Hc);tf.id="bar",tf.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},tf.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};var nf=function(e){Ja(n,e);var t=ro(n);function n(){return je(this,n),t.apply(this,arguments)}return ze(n,[{key:"initialize",value:function(){this.enableOptionSharing=!0,ds(Za(n.prototype),"initialize",this).call(this)}},{key:"parsePrimitiveData",value:function(e,t,r,i){for(var a=ds(Za(n.prototype),"parsePrimitiveData",this).call(this,e,t,r,i),o=0;o<a.length;o++)a[o]._custom=this.resolveDataElementOptions(o+r).radius;return a}},{key:"parseArrayData",value:function(e,t,r,i){for(var a=ds(Za(n.prototype),"parseArrayData",this).call(this,e,t,r,i),o=0;o<a.length;o++){var s=t[r+o];a[o]._custom=Ss(s[2],this.resolveDataElementOptions(o+r).radius)}return a}},{key:"parseObjectData",value:function(e,t,r,i){for(var a=ds(Za(n.prototype),"parseObjectData",this).call(this,e,t,r,i),o=0;o<a.length;o++){var s=t[r+o];a[o]._custom=Ss(s&&s.r&&+s.r,this.resolveDataElementOptions(o+r).radius)}return a}},{key:"getMaxOverflow",value:function(){for(var e=this._cachedMeta.data,t=0,n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=t.xScale,r=t.yScale,i=this.getParsed(e),a=n.getLabelForValue(i.x),o=r.getLabelForValue(i.y),s=i._custom;return{label:t.label,value:"("+a+", "+o+(s?", "+s:"")+")"}}},{key:"update",value:function(e){var t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i="reset"===r,a=this._cachedMeta,o=a.iScale,s=a.vScale,u=this.resolveDataElementOptions(t,r),l=this.getSharedOptions(u),c=this.includeOptions(r,l),f=o.axis,h=s.axis,d=t;d<t+n;d++){var p=e[d],v=!i&&this.getParsed(d),y={},g=y[f]=i?o.getPixelForDecimal(.5):o.getPixelForValue(v[f]),m=y[h]=i?s.getBasePixel():s.getPixelForValue(v[h]);y.skip=isNaN(g)||isNaN(m),c&&(y.options=this.resolveDataElementOptions(d,p.active?"active":r),i&&(y.options.radius=0)),this.updateElement(p,d,y,r)}this.updateSharedOptions(l,r,u)}},{key:"resolveDataElementOptions",value:function(e,t){var r=this.getParsed(e),i=ds(Za(n.prototype),"resolveDataElementOptions",this).call(this,e,t);i.$shared&&(i=Object.assign({},i,{$shared:!1}));var a=i.radius;return"active"!==t&&(i.radius=0),i.radius+=Ss(r&&r._custom,a),i}}]),n}(Hc);nf.id="bubble",nf.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},nf.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:function(){return""}}}}};var rf=function(e){Ja(n,e);var t=ro(n);function n(e,r){var i;return je(this,n),(i=t.call(this,e,r)).enableOptionSharing=!0,i.innerRadius=void 0,i.outerRadius=void 0,i.offsetX=void 0,i.offsetY=void 0,i}return ze(n,[{key:"linkScales",value:function(){}},{key:"parse",value:function(e,t){var n=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=n;else{var i,a,o=function(e){return+n[e]};if(_s(n[e])){var s=this._parsing.key,u=void 0===s?"value":s;o=function(e){return+Fs(n[e],u)}}for(i=e,a=e+t;i<a;++i)r._parsed[i]=o(i)}}},{key:"_getRotation",value:function(){return nu(this.options.rotation-90)}},{key:"_getCircumference",value:function(){return nu(this.options.circumference)}},{key:"_getRotationExtents",value:function(){for(var e=Us,t=-Us,n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){var r=this.chart.getDatasetMeta(n).controller,i=r._getRotation(),a=r._getCircumference();e=Math.min(e,i),t=Math.max(t,i+a)}return{rotation:e,circumference:t-e}}},{key:"update",value:function(e){var t,n,r=this.chart.chartArea,i=this._cachedMeta,a=i.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-o)/2,0),u=Math.min((t=this.options.cutout,n=s,"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100:t/n),1),l=this._getRingWeight(this.index),c=this._getRotationExtents(),f=c.circumference,h=function(e,t,n){var r=1,i=1,a=0,o=0;if(t<Us){var s=e,u=s+t,l=Math.cos(s),c=Math.sin(s),f=Math.cos(u),h=Math.sin(u),d=function(e,t,r){return lu(e,s,u,!0)?1:Math.max(t,t*n,r,r*n)},p=function(e,t,r){return lu(e,s,u,!0)?-1:Math.min(t,t*n,r,r*n)},v=d(0,l,f),y=d($s,c,h),g=p(qs,l,f),m=p(qs+$s,c,h);r=(v-g)/2,i=(y-m)/2,a=-(v+g)/2,o=-(y+m)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}(c.rotation,f,u),d=h.ratioX,p=h.ratioY,v=h.offsetX,y=h.offsetY,g=(r.width-o)/d,m=(r.height-o)/p,b=Math.max(Math.min(g,m)/2,0),x=Ts(this.options.radius,b),k=(x-Math.max(x*u,0))/this._getVisibleDatasetWeightTotal();this.offsetX=v*x,this.offsetY=y*x,i.total=this.calculateTotal(),this.outerRadius=x-k*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-k*l,0),this.updateElements(a,0,a.length,e)}},{key:"_circumference",value:function(e,t){var n=this.options,r=this._cachedMeta,i=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===r._parsed[e]||r.data[e].hidden?0:this.calculateCircumference(r._parsed[e]*i/Us)}},{key:"updateElements",value:function(e,t,n,r){var i,a="reset"===r,o=this.chart,s=o.chartArea,u=o.options.animation,l=(s.left+s.right)/2,c=(s.top+s.bottom)/2,f=a&&u.animateScale,h=f?0:this.innerRadius,d=f?0:this.outerRadius,p=this.resolveDataElementOptions(t,r),v=this.getSharedOptions(p),y=this.includeOptions(r,v),g=this._getRotation();for(i=0;i<t;++i)g+=this._circumference(i,a);for(i=t;i<t+n;++i){var m=this._circumference(i,a),b=e[i],x={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+m,circumference:m,outerRadius:d,innerRadius:h};y&&(x.options=v||this.resolveDataElementOptions(i,b.active?"active":r)),g+=m,this.updateElement(b,i,x,r)}this.updateSharedOptions(v,r,p)}},{key:"calculateTotal",value:function(){var e,t=this._cachedMeta,n=t.data,r=0;for(e=0;e<n.length;e++){var i=t._parsed[e];null===i||isNaN(i)||!this.chart.getDataVisibility(e)||n[e].hidden||(r+=Math.abs(i))}return r}},{key:"calculateCircumference",value:function(e){var t=this._cachedMeta.total;return t>0&&!isNaN(e)?Us*(Math.abs(e)/t):0}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=gc(t._parsed[e],n.options.locale);return{label:r[e]||"",value:i}}},{key:"getMaxBorderWidth",value:function(e){var t,n,r,i,a,o=0,s=this.chart;if(!e)for(t=0,n=s.data.datasets.length;t<n;++t)if(s.isDatasetVisible(t)){e=(r=s.getDatasetMeta(t)).data,i=r.controller;break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)"inner"!==(a=i.resolveDataElementOptions(t)).borderAlign&&(o=Math.max(o,a.borderWidth||0,a.hoverBorderWidth||0));return o}},{key:"getMaxOffset",value:function(e){for(var t=0,n=0,r=e.length;n<r;++n){var i=this.resolveDataElementOptions(n);t=Math.max(t,i.offset||0,i.hoverOffset||0)}return t}},{key:"_getRingWeightOffset",value:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}},{key:"_getRingWeight",value:function(e){return Math.max(Ss(this.chart.data.datasets[e].weight,1),0)}},{key:"_getVisibleDatasetWeightTotal",value:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}]),n}(Hc);rf.id="doughnut",rf.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},rf.descriptors={_scriptable:function(e){return"spacing"!==e},_indexable:function(e){return"spacing"!==e}},rf.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels:function(e){var t=e.data;if(t.labels.length&&t.datasets.length){var n=e.legend.options.labels.pointStyle;return t.labels.map((function(t,r){var i=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick:function(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:function(){return""},label:function(e){var t=e.label,n=": "+e.formattedValue;return ks(t)?(t=t.slice())[0]+=n:t+=n,t}}}}};var af=function(e){Ja(n,e);var t=ro(n);function n(){return je(this,n),t.apply(this,arguments)}return ze(n,[{key:"initialize",value:function(){this.enableOptionSharing=!0,ds(Za(n.prototype),"initialize",this).call(this)}},{key:"update",value:function(e){var t=this._cachedMeta,n=t.dataset,r=t.data,i=void 0===r?[]:r,a=t._dataset,o=this.chart._animationsDisabled,s=function(e,t,n){var r=t.length,i=0,a=r;if(e._sorted){var o=e.iScale,s=e._parsed,u=o.axis,l=o.getUserBounds(),c=l.min,f=l.max,h=l.minDefined,d=l.maxDefined;h&&(i=cu(Math.min(Cl(s,o.axis,c).lo,n?r:Cl(t,u,o.getPixelForValue(c)).lo),0,r-1)),a=d?cu(Math.max(Cl(s,o.axis,f).hi+1,n?0:Cl(t,u,o.getPixelForValue(f)).hi+1),i,r)-i:r-i}return{start:i,count:a}}(t,i,o),u=s.start,l=s.count;this._drawStart=u,this._drawCount=l,function(e){var t=e.xScale,n=e.yScale,r=e._scaleRanges,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;var a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}(t)&&(u=0,l=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!a._decimated,n.points=i;var c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(n,void 0,{animated:!o,options:c},e),this.updateElements(i,u,l,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i="reset"===r,a=this._cachedMeta,o=a.iScale,s=a.vScale,u=a._stacked,l=a._dataset,c=this.resolveDataElementOptions(t,r),f=this.getSharedOptions(c),h=this.includeOptions(r,f),d=o.axis,p=s.axis,v=this.options,y=v.spanGaps,g=v.segment,m=Zs(y)?y:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||i||"none"===r,x=t>0&&this.getParsed(t-1),k=t;k<t+n;++k){var _=e[k],w=this.getParsed(k),E=b?_:{},S=xs(w[p]),T=E[d]=o.getPixelForValue(w[d],k),O=E[p]=i||S?s.getBasePixel():s.getPixelForValue(u?this.applyStack(s,w,u):w[p],k);E.skip=isNaN(T)||isNaN(O)||S,E.stop=k>0&&w[d]-x[d]>m,g&&(E.parsed=w,E.raw=l.data[k]),h&&(E.options=f||this.resolveDataElementOptions(k,_.active?"active":r)),b||this.updateElement(_,k,E,r),x=w}this.updateSharedOptions(f,r,c)}},{key:"getMaxOverflow",value:function(){var e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;var i=r[0].size(this.resolveDataElementOptions(0)),a=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,a)/2}},{key:"draw",value:function(){var e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),ds(Za(n.prototype),"draw",this).call(this)}}]),n}(Hc);af.id="line",af.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},af.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};var of=function(e){Ja(n,e);var t=ro(n);function n(e,r){var i;return je(this,n),(i=t.call(this,e,r)).innerRadius=void 0,i.outerRadius=void 0,i}return ze(n,[{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=gc(t._parsed[e].r,n.options.locale);return{label:r[e]||"",value:i}}},{key:"update",value:function(e){var t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}},{key:"_updateRadius",value:function(){var e=this.chart,t=e.chartArea,n=e.options,r=Math.min(t.right-t.left,t.bottom-t.top),i=Math.max(r/2,0),a=(i-Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=i-a*this.index,this.innerRadius=this.outerRadius-a}},{key:"updateElements",value:function(e,t,n,r){var i,a="reset"===r,o=this.chart,s=this.getDataset(),u=o.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,f=l.yCenter,h=l.getIndexAngle(0)-.5*qs,d=h,p=360/this.countVisibleElements();for(i=0;i<t;++i)d+=this._computeAngle(i,r,p);for(i=t;i<t+n;i++){var v=e[i],y=d,g=d+this._computeAngle(i,r,p),m=o.getDataVisibility(i)?l.getDistanceFromCenterForValue(s.data[i]):0;d=g,a&&(u.animateScale&&(m=0),u.animateRotate&&(y=g=h));var b={x:c,y:f,innerRadius:0,outerRadius:m,startAngle:y,endAngle:g,options:this.resolveDataElementOptions(i,v.active?"active":r)};this.updateElement(v,i,b,r)}}},{key:"countVisibleElements",value:function(){var e=this,t=this.getDataset(),n=this._cachedMeta,r=0;return n.data.forEach((function(n,i){!isNaN(t.data[i])&&e.chart.getDataVisibility(i)&&r++})),r}},{key:"_computeAngle",value:function(e,t,n){return this.chart.getDataVisibility(e)?nu(this.resolveDataElementOptions(e,t).angle||n):0}}]),n}(Hc);of.id="polarArea",of.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},of.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels:function(e){var t=e.data;if(t.labels.length&&t.datasets.length){var n=e.legend.options.labels.pointStyle;return t.labels.map((function(t,r){var i=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick:function(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:function(){return""},label:function(e){return e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};var sf=function(e){Ja(n,e);var t=ro(n);function n(){return je(this,n),t.apply(this,arguments)}return ze(n)}(rf);sf.id="pie",sf.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};var uf=function(e){Ja(n,e);var t=ro(n);function n(){return je(this,n),t.apply(this,arguments)}return ze(n,[{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}},{key:"update",value:function(e){var t=this._cachedMeta,n=t.dataset,r=t.data||[],i=t.iScale.getLabels();if(n.points=r,"resize"!==e){var a=this.resolveDatasetElementOptions(e);this.options.showLine||(a.borderWidth=0);var o={_loop:!0,_fullLoop:i.length===r.length,options:a};this.updateElement(n,void 0,o,e)}this.updateElements(r,0,r.length,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i=this.getDataset(),a=this._cachedMeta.rScale,o="reset"===r,s=t;s<t+n;s++){var u=e[s],l=this.resolveDataElementOptions(s,u.active?"active":r),c=a.getPointPositionForValue(s,i.data[s]),f=o?a.xCenter:c.x,h=o?a.yCenter:c.y,d={x:f,y:h,angle:c.angle,skip:isNaN(f)||isNaN(h),options:l};this.updateElement(u,s,d,r)}}}]),n}(Hc);uf.id="radar",uf.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},uf.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};var lf=function(e){Ja(n,e);var t=ro(n);function n(){return je(this,n),t.apply(this,arguments)}return ze(n)}(af);lf.id="scatter",lf.defaults={showLine:!1,fill:!1},lf.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:function(){return""},label:function(e){return"("+e.label+", "+e.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};function cf(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var ff=function(){function e(t){je(this,e),this.options=t||{}}return ze(e,[{key:"formats",value:function(){return cf()}},{key:"parse",value:function(e,t){return cf()}},{key:"format",value:function(e,t){return cf()}},{key:"add",value:function(e,t,n){return cf()}},{key:"diff",value:function(e,t,n){return cf()}},{key:"startOf",value:function(e,t,n){return cf()}},{key:"endOf",value:function(e,t){return cf()}}]),e}();ff.override=function(e){Object.assign(ff.prototype,e)};var hf={_date:ff};function df(e,t){return"native"in e?{x:e.x,y:e.y}:sc(e,t)}function pf(e,t,n,r){var i=e.controller,a=e.data,o=e._sorted,s=i._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&o&&a.length){var u=s._reversePixels?Pl:Cl;if(!r)return u(a,t,n);if(i._sharedOptions){var l=a[0],c="function"===typeof l.getRange&&l.getRange(t);if(c){var f=u(a,t,n-c),h=u(a,t,n+c);return{lo:f.lo,hi:h.hi}}}}return{lo:0,hi:a.length-1}}function vf(e,t,n,r,i){for(var a=e.getSortedVisibleDatasetMetas(),o=n[t],s=0,u=a.length;s<u;++s)for(var l=a[s],c=l.index,f=l.data,h=pf(a[s],t,o,i),d=h.lo,p=h.hi,v=d;v<=p;++v){var y=f[v];y.skip||r(y,c,v)}}function yf(e,t,n,r){var i=[];if(!ul(t,e.chartArea,e._minPadding))return i;return vf(e,n,t,(function(e,n,a){e.inRange(t.x,t.y,r)&&i.push({element:e,datasetIndex:n,index:a})}),!0),i}function gf(e,t,n,r,i){var a=[],o=function(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){var i=t?Math.abs(e.x-r.x):0,a=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(a,2))}}(n),s=Number.POSITIVE_INFINITY;return vf(e,n,t,(function(n,u,l){var c=n.inRange(t.x,t.y,i);if(!r||c){var f=n.getCenterPoint(i);if(ul(f,e.chartArea,e._minPadding)||c){var h=o(t,f);h<s?(a=[{element:n,datasetIndex:u,index:l}],s=h):h===s&&a.push({element:n,datasetIndex:u,index:l})}}})),a}function mf(e,t,n,r,i){return ul(t,e.chartArea,e._minPadding)?"r"!==n||r?gf(e,t,n,r,i):function(e,t,n,r){var i=[];return vf(e,n,t,(function(e,n,a){var o=e.getProps(["startAngle","endAngle"],r),s=o.startAngle,u=o.endAngle;lu(au(e,{x:t.x,y:t.y}).angle,s,u)&&i.push({element:e,datasetIndex:n,index:a})})),i}(e,t,n,i):[]}function bf(e,t,n,r){var i=df(t,e),a=[],o=n.axis,s="x"===o?"inXRange":"inYRange",u=!1;return function(e,t){for(var n,r,i,a=e.getSortedVisibleDatasetMetas(),o=0,s=a.length;o<s;++o){var u=a[o];n=u.index;for(var l=0,c=(r=u.data).length;l<c;++l)(i=r[l]).skip||t(i,n,l)}}(e,(function(e,t,n){e[s](i[o],r)&&a.push({element:e,datasetIndex:t,index:n}),e.inRange(i.x,i.y,r)&&(u=!0)})),n.intersect&&!u?[]:a}var xf={modes:{index:function(e,t,n,r){var i=df(t,e),a=n.axis||"x",o=n.intersect?yf(e,i,a,r):mf(e,i,a,!1,r),s=[];return o.length?(e.getSortedVisibleDatasetMetas().forEach((function(e){var t=o[0].index,n=e.data[t];n&&!n.skip&&s.push({element:n,datasetIndex:e.index,index:t})})),s):[]},dataset:function(e,t,n,r){var i=df(t,e),a=n.axis||"xy",o=n.intersect?yf(e,i,a,r):mf(e,i,a,!1,r);if(o.length>0){var s=o[0].datasetIndex,u=e.getDatasetMeta(s).data;o=[];for(var l=0;l<u.length;++l)o.push({element:u[l],datasetIndex:s,index:l})}return o},point:function(e,t,n,r){return yf(e,df(t,e),n.axis||"xy",r)},nearest:function(e,t,n,r){return mf(e,df(t,e),n.axis||"xy",n.intersect,r)},x:function(e,t,n,r){return bf(e,t,{axis:"x",intersect:n.intersect},r)},y:function(e,t,n,r){return bf(e,t,{axis:"y",intersect:n.intersect},r)}}},kf=["left","top","right","bottom"];function _f(e,t){return e.filter((function(e){return e.pos===t}))}function wf(e,t){return e.filter((function(e){return-1===kf.indexOf(e.pos)&&e.box.axis===t}))}function Ef(e,t){return e.sort((function(e,n){var r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight}))}function Sf(e,t){var n,r,i,a=function(e){var t,n={},r=Ge(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,a=i.stack,o=i.pos,s=i.stackWeight;if(a&&kf.includes(o)){var u=n[a]||(n[a]={count:0,placed:0,weight:0,size:0});u.count++,u.weight+=s}}}catch(l){r.e(l)}finally{r.f()}return n}(e),o=t.vBoxMaxWidth,s=t.hBoxMaxHeight;for(n=0,r=e.length;n<r;++n){var u=(i=e[n]).box.fullSize,l=a[i.stack],c=l&&i.stackWeight/l.weight;i.horizontal?(i.width=c?c*o:u&&t.availableWidth,i.height=s):(i.width=o,i.height=c?c*s:u&&t.availableHeight)}return a}function Tf(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Of(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Cf(e,t,n,r){var i=n.pos,a=n.box,o=e.maxPadding;if(!_s(i)){n.size&&(e[i]-=n.size);var s=r[n.stack]||{size:0,count:1};s.size=Math.max(s.size,n.horizontal?a.height:a.width),n.size=s.size/s.count,e[i]+=n.size}a.getPadding&&Of(o,a.getPadding());var u=Math.max(0,t.outerWidth-Tf(o,e,"left","right")),l=Math.max(0,t.outerHeight-Tf(o,e,"top","bottom")),c=u!==e.w,f=l!==e.h;return e.w=u,e.h=l,n.horizontal?{same:c,other:f}:{same:f,other:c}}function Pf(e,t){var n=t.maxPadding;function r(e){var r={left:0,top:0,right:0,bottom:0};return e.forEach((function(e){r[e]=Math.max(t[e],n[e])})),r}return r(e?["left","right"]:["top","bottom"])}function Mf(e,t,n,r){var i,a,o,s,u,l,c=[];for(i=0,a=e.length,u=0;i<a;++i){(s=(o=e[i]).box).update(o.width||t.w,o.height||t.h,Pf(o.horizontal,t));var f=Cf(t,n,o,r),h=f.same,d=f.other;u|=h&&c.length,l=l||d,s.fullSize||c.push(o)}return u&&Mf(c,t,n,r)||l}function Df(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function If(e,t,n,r){var i,a=n.padding,o=t.x,s=t.y,u=Ge(e);try{for(u.s();!(i=u.n()).done;){var l=i.value,c=l.box,f=r[l.stack]||{count:1,placed:0,weight:1},h=l.stackWeight/f.weight||1;if(l.horizontal){var d=t.w*h,p=f.size||c.height;Vs(f.start)&&(s=f.start),c.fullSize?Df(c,a.left,s,n.outerWidth-a.right-a.left,p):Df(c,t.left+f.placed,s,d,p),f.start=s,f.placed+=d,s=c.bottom}else{var v=t.h*h,y=f.size||c.width;Vs(f.start)&&(o=f.start),c.fullSize?Df(c,o,a.top,y,n.outerHeight-a.bottom-a.top):Df(c,o,t.top+f.placed,y,v),f.start=o,f.placed+=v,o=c.right}}}catch(g){u.e(g)}finally{u.f()}t.x=o,t.y=s}nl.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Af=function(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(e){t.draw(e)}}]},e.boxes.push(t)},Nf=function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},Rf=function(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},Lf=function(e,t,n,r){if(e){var i=wl(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(n-i.height,0),s=function(e){var t=function(e){var t,n,r,i,a,o,s=[];for(t=0,n=(e||[]).length;t<n;++t){var u=r=e[t];i=u.position;var l=u.options;a=l.stack;var c=l.stackWeight;o=void 0===c?1:c,s.push({index:t,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:a&&i+a,stackWeight:o})}return s}(e),n=Ef(t.filter((function(e){return e.box.fullSize})),!0),r=Ef(_f(t,"left"),!0),i=Ef(_f(t,"right")),a=Ef(_f(t,"top"),!0),o=Ef(_f(t,"bottom")),s=wf(t,"x"),u=wf(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(u).concat(o).concat(s),chartArea:_f(t,"chartArea"),vertical:r.concat(i).concat(u),horizontal:a.concat(o).concat(s)}}(e.boxes),u=s.vertical,l=s.horizontal;Cs(e.boxes,(function(e){"function"===typeof e.beforeLayout&&e.beforeLayout()}));var c=u.reduce((function(e,t){return t.box.options&&!1===t.box.options.display?e:e+1}),0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/c,hBoxMaxHeight:o/2}),h=Object.assign({},i);Of(h,wl(r));var d=Object.assign({maxPadding:h,w:a,h:o,x:i.left,y:i.top},i),p=Sf(u.concat(l),f);Mf(s.fullSize,d,f,p),Mf(u,d,f,p),Mf(l,d,f,p)&&Mf(u,d,f,p),function(e){var t=e.maxPadding;function n(n){var r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(d),If(s.leftAndTop,d,f,p),d.x+=d.w,d.y+=d.h,If(s.rightAndBottom,d,f,p),e.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h,height:d.h,width:d.w},Cs(s.chartArea,(function(t){var n=t.box;Object.assign(n,e.chartArea),n.update(d.w,d.h,{left:0,top:0,right:0,bottom:0})}))}},Ff=function(){function e(){je(this,e)}return ze(e,[{key:"acquireContext",value:function(e,t){}},{key:"releaseContext",value:function(e){return!1}},{key:"addEventListener",value:function(e,t,n){}},{key:"removeEventListener",value:function(e,t,n){}},{key:"getDevicePixelRatio",value:function(){return 1}},{key:"getMaximumSize",value:function(e,t,n,r){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}},{key:"isAttached",value:function(e){return!0}},{key:"updateConfig",value:function(e){}}]),e}(),jf=function(e){Ja(n,e);var t=ro(n);function n(){return je(this,n),t.apply(this,arguments)}return ze(n,[{key:"acquireContext",value:function(e){return e&&e.getContext&&e.getContext("2d")||null}},{key:"updateConfig",value:function(e){e.options.animation=!1}}]),n}(Ff),Vf={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},zf=function(e){return null===e||""===e};var Bf=!!fc&&{passive:!0};function qf(e,t,n){e.canvas.removeEventListener(t,n,Bf)}function Uf(e,t){var n,r=Ge(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i===t||i.contains(t))return!0}}catch(a){r.e(a)}finally{r.f()}}function Wf(e,t,n){var r=e.canvas,i=new MutationObserver((function(e){var t,i=!1,a=Ge(e);try{for(a.s();!(t=a.n()).done;){var o=t.value;i=(i=i||Uf(o.addedNodes,r))&&!Uf(o.removedNodes,r)}}catch(s){a.e(s)}finally{a.f()}i&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}function Qf(e,t,n){var r=e.canvas,i=new MutationObserver((function(e){var t,i=!1,a=Ge(e);try{for(a.s();!(t=a.n()).done;){var o=t.value;i=(i=i||Uf(o.removedNodes,r))&&!Uf(o.addedNodes,r)}}catch(s){a.e(s)}finally{a.f()}i&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}var Hf=new Map,$f=0;function Yf(){var e=window.devicePixelRatio;e!==$f&&($f=e,Hf.forEach((function(t,n){n.currentDevicePixelRatio!==e&&t()})))}function Kf(e,t,n){var r=e.canvas,i=r&&nc(r);if(i){var a=vs((function(e,t){var r=i.clientWidth;n(e,t),r<i.clientWidth&&n()}),window),o=new ResizeObserver((function(e){var t=e[0],n=t.contentRect.width,r=t.contentRect.height;0===n&&0===r||a(n,r)}));return o.observe(i),function(e,t){Hf.size||window.addEventListener("resize",Yf),Hf.set(e,t)}(e,a),o}}function Gf(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){Hf.delete(e),Hf.size||window.removeEventListener("resize",Yf)}(e)}function Xf(e,t,n){var r=e.canvas,i=vs((function(t){null!==e.ctx&&n(function(e,t){var n=Vf[e.type]||e.type,r=sc(e,t),i=r.x,a=r.y;return{type:n,chart:t,native:e,x:void 0!==i?i:null,y:void 0!==a?a:null}}(t,e))}),e,(function(e){var t=e[0];return[t,t.offsetX,t.offsetY]}));return function(e,t,n){e.addEventListener(t,n,Bf)}(r,t,i),i}var Jf=function(e){Ja(n,e);var t=ro(n);function n(){return je(this,n),t.apply(this,arguments)}return ze(n,[{key:"acquireContext",value:function(e,t){var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){var n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e.$chartjs={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",zf(i)){var a=hc(e,"width");void 0!==a&&(e.width=a)}if(zf(r))if(""===e.style.height)e.height=e.width/(t||2);else{var o=hc(e,"height");void 0!==o&&(e.height=o)}}(e,t),n):null}},{key:"releaseContext",value:function(e){var t=e.canvas;if(!t.$chartjs)return!1;var n=t.$chartjs.initial;["height","width"].forEach((function(e){var r=n[e];xs(r)?t.removeAttribute(e):t.setAttribute(e,r)}));var r=n.style||{};return Object.keys(r).forEach((function(e){t.style[e]=r[e]})),t.width=t.width,delete t.$chartjs,!0}},{key:"addEventListener",value:function(e,t,n){this.removeEventListener(e,t);var r=e.$proxies||(e.$proxies={}),i={attach:Wf,detach:Qf,resize:Kf}[t]||Xf;r[t]=i(e,t,n)}},{key:"removeEventListener",value:function(e,t){var n=e.$proxies||(e.$proxies={}),r=n[t];r&&(({attach:Gf,detach:Gf,resize:Gf}[t]||qf)(e,t,r),n[t]=void 0)}},{key:"getDevicePixelRatio",value:function(){return window.devicePixelRatio}},{key:"getMaximumSize",value:function(e,t,n,r){return lc(e,t,n,r)}},{key:"isAttached",value:function(e){var t=nc(e);return!(!t||!t.isConnected)}}]),n}(Ff);var Zf=function(){function e(){je(this,e),this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}return ze(e,[{key:"tooltipPosition",value:function(e){var t=this.getProps(["x","y"],e);return{x:t.x,y:t.y}}},{key:"hasValue",value:function(){return Zs(this.x)&&Zs(this.y)}},{key:"getProps",value:function(e,t){var n=this,r=this.$animations;if(!t||!r)return this;var i={};return e.forEach((function(e){i[e]=r[e]&&r[e].active()?r[e]._to:n[e]})),i}}]),e}();Zf.defaults={},Zf.defaultRoutes=void 0;var eh={values:function(e){return ks(e)?e:""+e},numeric:function(e,t,n){if(0===e)return"0";var r,i=this.chart.options.locale,a=e;if(n.length>1){var o=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(o<1e-4||o>1e15)&&(r="scientific"),a=function(e,t){var n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}var s=Gs(Math.abs(a)),u=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:r,minimumFractionDigits:u,maximumFractionDigits:u};return Object.assign(l,this.options.ticks.format),gc(e,i,l)},logarithmic:function(e,t,n){if(0===e)return"0";var r=e/Math.pow(10,Math.floor(Gs(e)));return 1===r||2===r||5===r?eh.numeric.call(this,e,t,n):""}};var th={formatters:eh};function nh(e,t){var n=e.options.ticks,r=n.maxTicksLimit||function(e){var t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}(e),i=n.major.enabled?function(e){var t,n,r=[];for(t=0,n=e.length;t<n;t++)e[t].major&&r.push(t);return r}(t):[],a=i.length,o=i[0],s=i[a-1],u=[];if(a>r)return function(e,t,n,r){var i,a=0,o=n[0];for(r=Math.ceil(r),i=0;i<e.length;i++)i===o&&(t.push(e[i]),o=n[++a*r])}(t,u,i,a/r),u;var l=function(e,t,n){var r=function(e){var t,n,r=e.length;if(r<2)return!1;for(n=e[0],t=1;t<r;++t)if(e[t]-e[t-1]!==n)return!1;return n}(e),i=t.length/n;if(!r)return Math.max(i,1);for(var a=function(e){var t,n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t===0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((function(e,t){return e-t})).pop(),n}(r),o=0,s=a.length-1;o<s;o++){var u=a[o];if(u>i)return u}return Math.max(i,1)}(i,t,r);if(a>0){var c,f,h=a>1?Math.round((s-o)/(a-1)):null;for(rh(t,u,l,xs(h)?0:o-h,o),c=0,f=a-1;c<f;c++)rh(t,u,l,i[c],i[c+1]);return rh(t,u,l,s,xs(h)?t.length:s+h),u}return rh(t,u,l),u}function rh(e,t,n,r,i){var a,o,s,u=Ss(r,0),l=Math.min(Ss(i,e.length),e.length),c=0;for(n=Math.ceil(n),i&&(n=(a=i-r)/Math.floor(a/n)),s=u;s<0;)c++,s=Math.round(u+c*n);for(o=Math.max(u,0);o<l;o++)o===s&&(t.push(e[o]),c++,s=Math.round(u+c*n))}nl.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:function(e,t){return t.lineWidth},tickColor:function(e,t){return t.color},offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:th.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),nl.route("scale.ticks","color","","color"),nl.route("scale.grid","color","","borderColor"),nl.route("scale.grid","borderColor","","borderColor"),nl.route("scale.title","color","","color"),nl.describe("scale",{_fallback:!1,_scriptable:function(e){return!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e},_indexable:function(e){return"borderDash"!==e&&"tickBorderDash"!==e}}),nl.describe("scales",{_fallback:"scale"}),nl.describe("scale.ticks",{_scriptable:function(e){return"backdropPadding"!==e&&"callback"!==e},_indexable:function(e){return"backdropPadding"!==e}});var ih=function(e,t,n){return"top"===t||"left"===t?e[t]+n:e[t]-n};function ah(e,t){for(var n=[],r=e.length/t,i=e.length,a=0;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function oh(e,t,n){var r,i=e.ticks.length,a=Math.min(t,i-1),o=e._startPixel,s=e._endPixel,u=1e-6,l=e.getPixelForTick(a);if(!(n&&(r=1===i?Math.max(l-o,s-l):0===t?(e.getPixelForTick(1)-l)/2:(l-e.getPixelForTick(a-1))/2,(l+=a<t?r:-r)<o-u||l>s+u)))return l}function sh(e){return e.drawTicks?e.tickLength:0}function uh(e,t){if(!e.display)return 0;var n=El(e.font,t),r=wl(e.padding);return(ks(e.text)?e.text.length:1)*n.lineHeight+r.height}function lh(e,t,n){var r=ys(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=function(e){return"left"===e?"right":"right"===e?"left":e}(r)),r}var ch=function(e){Ja(n,e);var t=ro(n);function n(e){var r;return je(this,n),(r=t.call(this)).id=e.id,r.type=e.type,r.options=void 0,r.ctx=e.ctx,r.chart=e.chart,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.width=void 0,r.height=void 0,r._margins={left:0,right:0,top:0,bottom:0},r.maxWidth=void 0,r.maxHeight=void 0,r.paddingTop=void 0,r.paddingBottom=void 0,r.paddingLeft=void 0,r.paddingRight=void 0,r.axis=void 0,r.labelRotation=void 0,r.min=void 0,r.max=void 0,r._range=void 0,r.ticks=[],r._gridLineItems=null,r._labelItems=null,r._labelSizes=null,r._length=0,r._maxLength=0,r._longestTextCache={},r._startPixel=void 0,r._endPixel=void 0,r._reversePixels=!1,r._userMax=void 0,r._userMin=void 0,r._suggestedMax=void 0,r._suggestedMin=void 0,r._ticksLength=0,r._borderValue=0,r._cache={},r._dataLimitsCached=!1,r.$context=void 0,r}return ze(n,[{key:"init",value:function(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}},{key:"parse",value:function(e,t){return e}},{key:"getUserBounds",value:function(){var e=this._userMin,t=this._userMax,n=this._suggestedMin,r=this._suggestedMax;return e=Es(e,Number.POSITIVE_INFINITY),t=Es(t,Number.NEGATIVE_INFINITY),n=Es(n,Number.POSITIVE_INFINITY),r=Es(r,Number.NEGATIVE_INFINITY),{min:Es(e,n),max:Es(t,r),minDefined:ws(e),maxDefined:ws(t)}}},{key:"getMinMax",value:function(e){var t,n=this.getUserBounds(),r=n.min,i=n.max,a=n.minDefined,o=n.maxDefined;if(a&&o)return{min:r,max:i};for(var s=this.getMatchingVisibleMetas(),u=0,l=s.length;u<l;++u)t=s[u].controller.getMinMax(this,e),a||(r=Math.min(r,t.min)),o||(i=Math.max(i,t.max));return{min:Es(r=o&&r>i?i:r,Es(i=a&&r>i?r:i,r)),max:Es(i,Es(r,i))}}},{key:"getPadding",value:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}},{key:"getTicks",value:function(){return this.ticks}},{key:"getLabels",value:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}},{key:"beforeLayout",value:function(){this._cache={},this._dataLimitsCached=!1}},{key:"beforeUpdate",value:function(){Os(this.options.beforeUpdate,[this])}},{key:"update",value:function(e,t,n){var r=this.options,i=r.beginAtZero,a=r.grace,o=r.ticks,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){var r=e.min,i=e.max,a=Ts(t,(i-r)/2),o=function(e,t){return n&&0===e?0:e+t};return{min:o(r,-Math.abs(a)),max:o(i,a)}}(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();var u=s<this.ticks.length;this._convertTicksToLabels(u?ah(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=nh(this,this.ticks),this._labelSizes=null),u&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}},{key:"configure",value:function(){var e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}},{key:"afterUpdate",value:function(){Os(this.options.afterUpdate,[this])}},{key:"beforeSetDimensions",value:function(){Os(this.options.beforeSetDimensions,[this])}},{key:"setDimensions",value:function(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}},{key:"afterSetDimensions",value:function(){Os(this.options.afterSetDimensions,[this])}},{key:"_callHooks",value:function(e){this.chart.notifyPlugins(e,this.getContext()),Os(this.options[e],[this])}},{key:"beforeDataLimits",value:function(){this._callHooks("beforeDataLimits")}},{key:"determineDataLimits",value:function(){}},{key:"afterDataLimits",value:function(){this._callHooks("afterDataLimits")}},{key:"beforeBuildTicks",value:function(){this._callHooks("beforeBuildTicks")}},{key:"buildTicks",value:function(){return[]}},{key:"afterBuildTicks",value:function(){this._callHooks("afterBuildTicks")}},{key:"beforeTickToLabelConversion",value:function(){Os(this.options.beforeTickToLabelConversion,[this])}},{key:"generateTickLabels",value:function(e){var t,n,r,i=this.options.ticks;for(t=0,n=e.length;t<n;t++)(r=e[t]).label=Os(i.callback,[r.value,t,e],this)}},{key:"afterTickToLabelConversion",value:function(){Os(this.options.afterTickToLabelConversion,[this])}},{key:"beforeCalculateLabelRotation",value:function(){Os(this.options.beforeCalculateLabelRotation,[this])}},{key:"calculateLabelRotation",value:function(){var e,t,n,r=this.options,i=r.ticks,a=this.ticks.length,o=i.minRotation||0,s=i.maxRotation,u=o;if(!this._isVisible()||!i.display||o>=s||a<=1||!this.isHorizontal())this.labelRotation=o;else{var l=this._getLabelSizes(),c=l.widest.width,f=l.highest.height,h=cu(this.chart.width-c,0,this.maxWidth);c+6>(e=r.offset?this.maxWidth/a:h/(a-1))&&(e=h/(a-(r.offset?.5:1)),t=this.maxHeight-sh(r.grid)-i.padding-uh(r.title,this.chart.options.font),n=Math.sqrt(c*c+f*f),u=ru(Math.min(Math.asin(cu((l.highest.height+6)/e,-1,1)),Math.asin(cu(t/n,-1,1))-Math.asin(cu(f/n,-1,1)))),u=Math.max(o,Math.min(s,u))),this.labelRotation=u}}},{key:"afterCalculateLabelRotation",value:function(){Os(this.options.afterCalculateLabelRotation,[this])}},{key:"beforeFit",value:function(){Os(this.options.beforeFit,[this])}},{key:"fit",value:function(){var e={width:0,height:0},t=this.chart,n=this.options,r=n.ticks,i=n.title,a=n.grid,o=this._isVisible(),s=this.isHorizontal();if(o){var u=uh(i,t.options.font);if(s?(e.width=this.maxWidth,e.height=sh(a)+u):(e.height=this.maxHeight,e.width=sh(a)+u),r.display&&this.ticks.length){var l=this._getLabelSizes(),c=l.first,f=l.last,h=l.widest,d=l.highest,p=2*r.padding,v=nu(this.labelRotation),y=Math.cos(v),g=Math.sin(v);if(s){var m=r.mirror?0:g*h.width+y*d.height;e.height=Math.min(this.maxHeight,e.height+m+p)}else{var b=r.mirror?0:y*h.width+g*d.height;e.width=Math.min(this.maxWidth,e.width+b+p)}this._calculatePadding(c,f,g,y)}}this._handleMargins(),s?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}},{key:"_calculatePadding",value:function(e,t,n,r){var i=this.options,a=i.ticks,o=a.align,s=a.padding,u=i.position,l=0!==this.labelRotation,c="top"!==u&&"x"===this.axis;if(this.isHorizontal()){var f=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1),d=0,p=0;l?c?(d=r*e.width,p=n*t.height):(d=n*e.height,p=r*t.width):"start"===o?p=t.width:"end"===o?d=e.width:(d=e.width/2,p=t.width/2),this.paddingLeft=Math.max((d-f+s)*this.width/(this.width-f),0),this.paddingRight=Math.max((p-h+s)*this.width/(this.width-h),0)}else{var v=t.height/2,y=e.height/2;"start"===o?(v=0,y=e.height):"end"===o&&(v=t.height,y=0),this.paddingTop=v+s,this.paddingBottom=y+s}}},{key:"_handleMargins",value:function(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}},{key:"afterFit",value:function(){Os(this.options.afterFit,[this])}},{key:"isHorizontal",value:function(){var e=this.options,t=e.axis,n=e.position;return"top"===n||"bottom"===n||"x"===t}},{key:"isFullSize",value:function(){return this.options.fullSize}},{key:"_convertTicksToLabels",value:function(e){var t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)xs(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}},{key:"_getLabelSizes",value:function(){var e=this._labelSizes;if(!e){var t=this.options.ticks.sampleSize,n=this.ticks;t<n.length&&(n=ah(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length)}return e}},{key:"_computeLabelSizes",value:function(e,t){var n,r,i,a,o,s,u,l,c,f,h,d=this.ctx,p=this._longestTextCache,v=[],y=[],g=0,m=0;for(n=0;n<t;++n){if(a=e[n].label,o=this._resolveTickFontOptions(n),d.font=s=o.string,u=p[s]=p[s]||{data:{},gc:[]},l=o.lineHeight,c=f=0,xs(a)||ks(a)){if(ks(a))for(r=0,i=a.length;r<i;++r)xs(h=a[r])||ks(h)||(c=rl(d,u.data,u.gc,c,h),f+=l)}else c=rl(d,u.data,u.gc,c,a),f=l;v.push(c),y.push(f),g=Math.max(c,g),m=Math.max(f,m)}!function(e,t){Cs(e,(function(e){var n,r=e.gc,i=r.length/2;if(i>t){for(n=0;n<i;++n)delete e.data[r[n]];r.splice(0,i)}}))}(p,t);var b=v.indexOf(g),x=y.indexOf(m),k=function(e){return{width:v[e]||0,height:y[e]||0}};return{first:k(0),last:k(t-1),widest:k(b),highest:k(x),widths:v,heights:y}}},{key:"getLabelForValue",value:function(e){return e}},{key:"getPixelForValue",value:function(e,t){return NaN}},{key:"getValueForPixel",value:function(e){}},{key:"getPixelForTick",value:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}},{key:"getPixelForDecimal",value:function(e){this._reversePixels&&(e=1-e);var t=this._startPixel+e*this._length;return cu(this._alignToPixels?al(this.chart,t,0):t,-32768,32767)}},{key:"getDecimalForPixel",value:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}},{key:"getBasePixel",value:function(){return this.getPixelForValue(this.getBaseValue())}},{key:"getBaseValue",value:function(){var e=this.min,t=this.max;return e<0&&t<0?t:e>0&&t>0?e:0}},{key:"getContext",value:function(e){var t=this.ticks||[];if(e>=0&&e<t.length){var n=t[e];return n.$context||(n.$context=function(e,t,n){return Tl(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=Tl(this.chart.getContext(),{scale:this,type:"scale"}))}},{key:"_tickSize",value:function(){var e=this.options.ticks,t=nu(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),i=this._getLabelSizes(),a=e.autoSkipPadding||0,o=i?i.widest.width+a:0,s=i?i.highest.height+a:0;return this.isHorizontal()?s*n>o*r?o/n:s/r:s*r<o*n?s/n:o/r}},{key:"_isVisible",value:function(){var e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}},{key:"_computeGridLineItems",value:function(e){var t,n,r,i,a,o,s,u,l,c,f,h,d=this.axis,p=this.chart,v=this.options,y=v.grid,g=v.position,m=y.offset,b=this.isHorizontal(),x=this.ticks.length+(m?1:0),k=sh(y),_=[],w=y.setContext(this.getContext()),E=w.drawBorder?w.borderWidth:0,S=E/2,T=function(e){return al(p,e,E)};if("top"===g)t=T(this.bottom),o=this.bottom-k,u=t-S,c=T(e.top)+S,h=e.bottom;else if("bottom"===g)t=T(this.top),c=e.top,h=T(e.bottom)-S,o=t+S,u=this.top+k;else if("left"===g)t=T(this.right),a=this.right-k,s=t-S,l=T(e.left)+S,f=e.right;else if("right"===g)t=T(this.left),l=e.left,f=T(e.right)-S,a=t+S,s=this.left+k;else if("x"===d){if("center"===g)t=T((e.top+e.bottom)/2+.5);else if(_s(g)){var O=Object.keys(g)[0],C=g[O];t=T(this.chart.scales[O].getPixelForValue(C))}c=e.top,h=e.bottom,u=(o=t+S)+k}else if("y"===d){if("center"===g)t=T((e.left+e.right)/2);else if(_s(g)){var P=Object.keys(g)[0],M=g[P];t=T(this.chart.scales[P].getPixelForValue(M))}s=(a=t-S)-k,l=e.left,f=e.right}var D=Ss(v.ticks.maxTicksLimit,x),I=Math.max(1,Math.ceil(x/D));for(n=0;n<x;n+=I){var A=y.setContext(this.getContext(n)),N=A.lineWidth,R=A.color,L=y.borderDash||[],F=A.borderDashOffset,j=A.tickWidth,V=A.tickColor,z=A.tickBorderDash||[],B=A.tickBorderDashOffset;void 0!==(r=oh(this,n,m))&&(i=al(p,r,N),b?a=s=l=f=i:o=u=c=h=i,_.push({tx1:a,ty1:o,tx2:s,ty2:u,x1:l,y1:c,x2:f,y2:h,width:N,color:R,borderDash:L,borderDashOffset:F,tickWidth:j,tickColor:V,tickBorderDash:z,tickBorderDashOffset:B}))}return this._ticksLength=x,this._borderValue=t,_}},{key:"_computeLabelItems",value:function(e){var t,n,r,i,a,o,s,u,l,c,f,h=this.axis,d=this.options,p=d.position,v=d.ticks,y=this.isHorizontal(),g=this.ticks,m=v.align,b=v.crossAlign,x=v.padding,k=v.mirror,_=sh(d.grid),w=_+x,E=k?-x:w,S=-nu(this.labelRotation),T=[],O="middle";if("top"===p)a=this.bottom-E,o=this._getXAxisLabelAlignment();else if("bottom"===p)a=this.top+E,o=this._getXAxisLabelAlignment();else if("left"===p){var C=this._getYAxisLabelAlignment(_);o=C.textAlign,i=C.x}else if("right"===p){var P=this._getYAxisLabelAlignment(_);o=P.textAlign,i=P.x}else if("x"===h){if("center"===p)a=(e.top+e.bottom)/2+w;else if(_s(p)){var M=Object.keys(p)[0],D=p[M];a=this.chart.scales[M].getPixelForValue(D)+w}o=this._getXAxisLabelAlignment()}else if("y"===h){if("center"===p)i=(e.left+e.right)/2-w;else if(_s(p)){var I=Object.keys(p)[0],A=p[I];i=this.chart.scales[I].getPixelForValue(A)}o=this._getYAxisLabelAlignment(_).textAlign}"y"===h&&("start"===m?O="top":"end"===m&&(O="bottom"));var N=this._getLabelSizes();for(t=0,n=g.length;t<n;++t){r=g[t].label;var R=v.setContext(this.getContext(t));s=this.getPixelForTick(t)+v.labelOffset,l=(u=this._resolveTickFontOptions(t)).lineHeight;var L=(c=ks(r)?r.length:1)/2,F=R.color,j=R.textStrokeColor,V=R.textStrokeWidth;y?(i=s,f="top"===p?"near"===b||0!==S?-c*l+l/2:"center"===b?-N.highest.height/2-L*l+l:-N.highest.height+l/2:"near"===b||0!==S?l/2:"center"===b?N.highest.height/2-L*l:N.highest.height-c*l,k&&(f*=-1)):(a=s,f=(1-c)*l/2);var z=void 0;if(R.showLabelBackdrop){var B=wl(R.backdropPadding),q=N.heights[t],U=N.widths[t],W=a+f-B.top,Q=i-B.left;switch(O){case"middle":W-=q/2;break;case"bottom":W-=q}switch(o){case"center":Q-=U/2;break;case"right":Q-=U}z={left:Q,top:W,width:U+B.width,height:q+B.height,color:R.backdropColor}}T.push({rotation:S,label:r,font:u,color:F,strokeColor:j,strokeWidth:V,textOffset:f,textAlign:o,textBaseline:O,translation:[i,a],backdrop:z})}return T}},{key:"_getXAxisLabelAlignment",value:function(){var e=this.options,t=e.position,n=e.ticks;if(-nu(this.labelRotation))return"top"===t?"left":"right";var r="center";return"start"===n.align?r="left":"end"===n.align&&(r="right"),r}},{key:"_getYAxisLabelAlignment",value:function(e){var t,n,r=this.options,i=r.position,a=r.ticks,o=a.crossAlign,s=a.mirror,u=a.padding,l=e+u,c=this._getLabelSizes().widest.width;return"left"===i?s?(n=this.right+u,"near"===o?t="left":"center"===o?(t="center",n+=c/2):(t="right",n+=c)):(n=this.right-l,"near"===o?t="right":"center"===o?(t="center",n-=c/2):(t="left",n=this.left)):"right"===i?s?(n=this.left+u,"near"===o?t="right":"center"===o?(t="center",n-=c/2):(t="left",n-=c)):(n=this.left+l,"near"===o?t="left":"center"===o?(t="center",n+=c/2):(t="right",n=this.right)):t="right",{textAlign:t,x:n}}},{key:"_computeLabelArea",value:function(){if(!this.options.ticks.mirror){var e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}}},{key:"drawBackground",value:function(){var e=this.ctx,t=this.options.backgroundColor,n=this.left,r=this.top,i=this.width,a=this.height;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,i,a),e.restore())}},{key:"getLineWidthForValue",value:function(e){var t=this.options.grid;if(!this._isVisible()||!t.display)return 0;var n=this.ticks.findIndex((function(t){return t.value===e}));return n>=0?t.setContext(this.getContext(n)).lineWidth:0}},{key:"drawGrid",value:function(e){var t,n,r=this.options.grid,i=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e)),o=function(e,t,n){n.width&&n.color&&(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(e.x,e.y),i.lineTo(t.x,t.y),i.stroke(),i.restore())};if(r.display)for(t=0,n=a.length;t<n;++t){var s=a[t];r.drawOnChartArea&&o({x:s.x1,y:s.y1},{x:s.x2,y:s.y2},s),r.drawTicks&&o({x:s.tx1,y:s.ty1},{x:s.tx2,y:s.ty2},{color:s.tickColor,width:s.tickWidth,borderDash:s.tickBorderDash,borderDashOffset:s.tickBorderDashOffset})}}},{key:"drawBorder",value:function(){var e=this.chart,t=this.ctx,n=this.options.grid,r=n.setContext(this.getContext()),i=n.drawBorder?r.borderWidth:0;if(i){var a,o,s,u,l=n.setContext(this.getContext(0)).lineWidth,c=this._borderValue;this.isHorizontal()?(a=al(e,this.left,i)-i/2,o=al(e,this.right,l)+l/2,s=u=c):(s=al(e,this.top,i)-i/2,u=al(e,this.bottom,l)+l/2,a=o=c),t.save(),t.lineWidth=r.borderWidth,t.strokeStyle=r.borderColor,t.beginPath(),t.moveTo(a,s),t.lineTo(o,u),t.stroke(),t.restore()}}},{key:"drawLabels",value:function(e){if(this.options.ticks.display){var t=this.ctx,n=this._computeLabelArea();n&&ll(t,n);var r,i,a=this._labelItems||(this._labelItems=this._computeLabelItems(e));for(r=0,i=a.length;r<i;++r){var o=a[r],s=o.font,u=o.label;o.backdrop&&(t.fillStyle=o.backdrop.color,t.fillRect(o.backdrop.left,o.backdrop.top,o.backdrop.width,o.backdrop.height)),dl(t,u,0,o.textOffset,s,o)}n&&cl(t)}}},{key:"drawTitle",value:function(){var e=this.ctx,t=this.options,n=t.position,r=t.title,i=t.reverse;if(r.display){var a=El(r.font),o=wl(r.padding),s=r.align,u=a.lineHeight/2;"bottom"===n||"center"===n||_s(n)?(u+=o.bottom,ks(r.text)&&(u+=a.lineHeight*(r.text.length-1))):u+=o.top;var l=function(e,t,n,r){var i,a,o,s=e.top,u=e.left,l=e.bottom,c=e.right,f=e.chart,h=f.chartArea,d=f.scales,p=0,v=l-s,y=c-u;if(e.isHorizontal()){if(a=gs(r,u,c),_s(n)){var g=Object.keys(n)[0],m=n[g];o=d[g].getPixelForValue(m)+v-t}else o="center"===n?(h.bottom+h.top)/2+v-t:ih(e,n,t);i=c-u}else{if(_s(n)){var b=Object.keys(n)[0],x=n[b];a=d[b].getPixelForValue(x)-y+t}else a="center"===n?(h.left+h.right)/2-y+t:ih(e,n,t);o=gs(r,l,s),p="left"===n?-$s:$s}return{titleX:a,titleY:o,maxWidth:i,rotation:p}}(this,u,n,s),c=l.titleX,f=l.titleY,h=l.maxWidth,d=l.rotation;dl(e,r.text,0,0,a,{color:r.color,maxWidth:h,rotation:d,textAlign:lh(s,n,i),textBaseline:"middle",translation:[c,f]})}}},{key:"draw",value:function(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}},{key:"_layers",value:function(){var e=this,t=this.options,r=t.ticks&&t.ticks.z||0,i=Ss(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===n.prototype.draw?[{z:i,draw:function(t){e.drawBackground(),e.drawGrid(t),e.drawTitle()}},{z:i+1,draw:function(){e.drawBorder()}},{z:r,draw:function(t){e.drawLabels(t)}}]:[{z:r,draw:function(t){e.draw(t)}}]}},{key:"getMatchingVisibleMetas",value:function(e){var t,n,r=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",a=[];for(t=0,n=r.length;t<n;++t){var o=r[t];o[i]!==this.id||e&&o.type!==e||a.push(o)}return a}},{key:"_resolveTickFontOptions",value:function(e){return El(this.options.ticks.setContext(this.getContext(e)).font)}},{key:"_maxDigits",value:function(){var e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}]),n}(Zf),fh=function(){function e(t,n,r){je(this,e),this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}return ze(e,[{key:"isForType",value:function(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}},{key:"register",value:function(e){var t,n=Object.getPrototypeOf(e);(function(e){return"id"in e&&"defaults"in e})(n)&&(t=this.register(n));var r=this.items,i=e.id,a=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in r||(r[i]=e,function(e,t,n){var r=As(Object.create(null),[n?nl.get(n):{},nl.get(t),e.defaults]);nl.set(t,r),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((function(n){var r=n.split("."),i=r.pop(),a=[e].concat(r).join("."),o=t[n].split("."),s=o.pop(),u=o.join(".");nl.route(a,i,u,s)}))}(t,e.defaultRoutes);e.descriptors&&nl.describe(t,e.descriptors)}(e,a,t),this.override&&nl.override(e.id,e.overrides)),a}},{key:"get",value:function(e){return this.items[e]}},{key:"unregister",value:function(e){var t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in nl[r]&&(delete nl[r][n],this.override&&delete Xu[n])}}]),e}();var hh=function(){function e(){je(this,e),this.controllers=new fh(Hc,"datasets",!0),this.elements=new fh(Zf,"elements"),this.plugins=new fh(Object,"plugins"),this.scales=new fh(ch,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}return ze(e,[{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t)}},{key:"remove",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t)}},{key:"addControllers",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.controllers)}},{key:"addElements",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.elements)}},{key:"addPlugins",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.plugins)}},{key:"addScales",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.scales)}},{key:"getController",value:function(e){return this._get(e,this.controllers,"controller")}},{key:"getElement",value:function(e){return this._get(e,this.elements,"element")}},{key:"getPlugin",value:function(e){return this._get(e,this.plugins,"plugin")}},{key:"getScale",value:function(e){return this._get(e,this.scales,"scale")}},{key:"removeControllers",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.controllers)}},{key:"removeElements",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.elements)}},{key:"removePlugins",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.plugins)}},{key:"removeScales",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.scales)}},{key:"_each",value:function(e,t,n){var r=this;Qe(t).forEach((function(t){var i=n||r._getRegistryForType(t);n||i.isForType(t)||i===r.plugins&&t.id?r._exec(e,i,t):Cs(t,(function(t){var i=n||r._getRegistryForType(t);r._exec(e,i,t)}))}))}},{key:"_exec",value:function(e,t,n){var r=js(e);Os(n["before"+r],[],n),t[e](n),Os(n["after"+r],[],n)}},{key:"_getRegistryForType",value:function(e){for(var t=0;t<this._typedRegistries.length;t++){var n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}},{key:"_get",value:function(e,t,n){var r=t.get(e);if(void 0===r)throw new Error('"'+e+'" is not a registered '+n+".");return r}}]),e}(),dh=new hh,ph=function(){function e(){je(this,e),this._init=[]}return ze(e,[{key:"notify",value:function(e,t,n,r){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));var i=r?this._descriptors(e).filter(r):this._descriptors(e),a=this._notify(i,e,t,n);return"afterDestroy"===t&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall")),a}},{key:"_notify",value:function(e,t,n,r){r=r||{};var i,a=Ge(e);try{for(a.s();!(i=a.n()).done;){var o=i.value,s=o.plugin;if(!1===Os(s[n],[t,r,o.options],s)&&r.cancelable)return!1}}catch(u){a.e(u)}finally{a.f()}return!0}},{key:"invalidate",value:function(){xs(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}},{key:"_descriptors",value:function(e){if(this._cache)return this._cache;var t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}},{key:"_createDescriptors",value:function(e,t){var n=e&&e.config,r=Ss(n.options&&n.options.plugins,{}),i=function(e){for(var t=[],n=Object.keys(dh.plugins.items),r=0;r<n.length;r++)t.push(dh.getPlugin(n[r]));for(var i=e.plugins||[],a=0;a<i.length;a++){var o=i[a];-1===t.indexOf(o)&&t.push(o)}return t}(n);return!1!==r||t?function(e,t,n,r){for(var i=[],a=e.getContext(),o=0;o<t.length;o++){var s=t[o],u=vh(n[s.id],r);null!==u&&i.push({plugin:s,options:yh(e.config,s,u,a)})}return i}(e,i,r,t):[]}},{key:"_notifyStateChanges",value:function(e){var t=this._oldCache||[],n=this._cache,r=function(e,t){return e.filter((function(e){return!t.some((function(t){return e.plugin.id===t.plugin.id}))}))};this._notify(r(t,n),e,"stop"),this._notify(r(n,t),e,"start")}}]),e}();function vh(e,t){return t||!1!==e?!0===e?{}:e:null}function yh(e,t,n,r){var i=e.pluginScopeKeys(t),a=e.getOptionScopes(n,i);return e.createResolver(a,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function gh(e,t){var n=nl.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function mh(e,t){return"x"===e||"y"===e?e:t.axis||("top"===(n=t.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||e.charAt(0).toLowerCase();var n}function bh(e){var t=e.options||(e.options={});t.plugins=Ss(t.plugins,{}),t.scales=function(e,t){var n=Xu[e.type]||{scales:{}},r=t.scales||{},i=gh(e.type,t),a=Object.create(null),o=Object.create(null);return Object.keys(r).forEach((function(e){var t=r[e];if(!_s(t))return console.error("Invalid scale configuration for scale: ".concat(e));if(t._proxy)return console.warn("Ignoring resolver passed as options for scale: ".concat(e));var s=mh(e,t),u=function(e,t){return e===t?"_index_":"_value_"}(s,i),l=n.scales||{};a[s]=a[s]||e,o[e]=Ns(Object.create(null),[{axis:s},t,l[s],l[u]])})),e.data.datasets.forEach((function(n){var i=n.type||e.type,s=n.indexAxis||gh(i,t),u=(Xu[i]||{}).scales||{};Object.keys(u).forEach((function(e){var t=function(e,t){var n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,s),i=n[t+"AxisID"]||a[t]||t;o[i]=o[i]||Object.create(null),Ns(o[i],[{axis:t},r[i],u[e]])}))})),Object.keys(o).forEach((function(e){var t=o[e];Ns(t,[nl.scales[t.type],nl.scale])})),o}(e,t)}function xh(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}var kh=new Map,_h=new Set;function wh(e,t){var n=kh.get(e);return n||(n=t(),kh.set(e,n),_h.add(n)),n}var Eh=function(e,t,n){var r=Fs(t,n);void 0!==r&&e.add(r)},Sh=function(){function e(t){je(this,e),this._config=function(e){return(e=e||{}).data=xh(e.data),bh(e),e}(t),this._scopeCache=new Map,this._resolverCache=new Map}return ze(e,[{key:"platform",get:function(){return this._config.platform}},{key:"type",get:function(){return this._config.type},set:function(e){this._config.type=e}},{key:"data",get:function(){return this._config.data},set:function(e){this._config.data=xh(e)}},{key:"options",get:function(){return this._config.options},set:function(e){this._config.options=e}},{key:"plugins",get:function(){return this._config.plugins}},{key:"update",value:function(){var e=this._config;this.clearCache(),bh(e)}},{key:"clearCache",value:function(){this._scopeCache.clear(),this._resolverCache.clear()}},{key:"datasetScopeKeys",value:function(e){return wh(e,(function(){return[["datasets.".concat(e),""]]}))}},{key:"datasetAnimationScopeKeys",value:function(e,t){return wh("".concat(e,".transition.").concat(t),(function(){return[["datasets.".concat(e,".transitions.").concat(t),"transitions.".concat(t)],["datasets.".concat(e),""]]}))}},{key:"datasetElementScopeKeys",value:function(e,t){return wh("".concat(e,"-").concat(t),(function(){return[["datasets.".concat(e,".elements.").concat(t),"datasets.".concat(e),"elements.".concat(t),""]]}))}},{key:"pluginScopeKeys",value:function(e){var t=e.id,n=this.type;return wh("".concat(n,"-plugin-").concat(t),(function(){return[["plugins.".concat(t)].concat(Qe(e.additionalOptionScopes||[]))]}))}},{key:"_cachedScopes",value:function(e,t){var n=this._scopeCache,r=n.get(e);return r&&!t||(r=new Map,n.set(e,r)),r}},{key:"getOptionScopes",value:function(e,t,n){var r=this.options,i=this.type,a=this._cachedScopes(e,n),o=a.get(t);if(o)return o;var s=new Set;t.forEach((function(t){e&&(s.add(e),t.forEach((function(t){return Eh(s,e,t)}))),t.forEach((function(e){return Eh(s,r,e)})),t.forEach((function(e){return Eh(s,Xu[i]||{},e)})),t.forEach((function(e){return Eh(s,nl,e)})),t.forEach((function(e){return Eh(s,Ju,e)}))}));var u=Array.from(s);return 0===u.length&&u.push(Object.create(null)),_h.has(t)&&a.set(t,u),u}},{key:"chartOptionScopes",value:function(){var e=this.options,t=this.type;return[e,Xu[t]||{},nl.datasets[t]||{},{type:t},nl,Ju]}},{key:"resolveNamedOptions",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""],i={$shared:!0},a=Th(this._resolverCache,e,r),o=a.resolver,s=a.subPrefixes,u=o;if(Ch(o,t)){i.$shared=!1,n=zs(n)?n():n;var l=this.createResolver(e,n,s);u=Nl(o,n,l)}var c,f=Ge(t);try{for(f.s();!(c=f.n()).done;){var h=c.value;i[h]=u[h]}}catch(d){f.e(d)}finally{f.f()}return i}},{key:"createResolver",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""],r=arguments.length>3?arguments[3]:void 0,i=Th(this._resolverCache,e,n),a=i.resolver;return _s(t)?Nl(a,t,void 0,r):a}}]),e}();function Th(e,t,n){var r=e.get(t);r||(r=new Map,e.set(t,r));var i=n.join(),a=r.get(i);a||(a={resolver:Al(t,n),subPrefixes:n.filter((function(e){return!e.toLowerCase().includes("hover")}))},r.set(i,a));return a}var Oh=function(e){return _s(e)&&Object.getOwnPropertyNames(e).reduce((function(t,n){return t||zs(e[n])}),!1)};function Ch(e,t){var n,r=Rl(e),i=r.isScriptable,a=r.isIndexable,o=Ge(t);try{for(o.s();!(n=o.n()).done;){var s=n.value,u=i(s),l=a(s),c=(l||u)&&e[s];if(u&&(zs(c)||Oh(c))||l&&ks(c))return!0}}catch(f){o.e(f)}finally{o.f()}return!1}var Ph=["top","bottom","left","right","chartArea"];function Mh(e,t){return"top"===e||"bottom"===e||-1===Ph.indexOf(e)&&"x"===t}function Dh(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Ih(e){var t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Os(n&&n.onComplete,[e],t)}function Ah(e){var t=e.chart,n=t.options.animation;Os(n&&n.onProgress,[e],t)}function Nh(e){return tc()&&"string"===typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var Rh={},Lh=function(e){var t=Nh(e);return Object.values(Rh).filter((function(e){return e.canvas===t})).pop()};function Fh(e,t,n){for(var r=0,i=Object.keys(e);r<i.length;r++){var a=i[r],o=+a;if(o>=t){var s=e[a];delete e[a],(n>0||o>t)&&(e[o+n]=s)}}}var jh=function(){function e(t,n){var r=this;je(this,e);var i=this.config=new Sh(n),a=Nh(t),o=Lh(a);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas can be reused.");var s=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(e){return!tc()||"undefined"!==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?jf:Jf}(a)),this.platform.updateConfig(i);var u=this.platform.acquireContext(a,s.aspectRatio),l=u&&u.canvas,c=l&&l.height,f=l&&l.width;this.id=bs(),this.ctx=u,this.canvas=l,this.width=f,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new ph,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){var n;return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}((function(e){return r.update(e)}),s.resizeDelay||0),this._dataChanges=[],Rh[this.id]=this,u&&l?(Pc.listen(this,"complete",Ih),Pc.listen(this,"progress",Ah),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}return ze(e,[{key:"aspectRatio",get:function(){var e=this.options,t=e.aspectRatio,n=e.maintainAspectRatio,r=this.width,i=this.height,a=this._aspectRatio;return xs(t)?n&&a?a:i?r/i:null:t}},{key:"data",get:function(){return this.config.data},set:function(e){this.config.data=e}},{key:"options",get:function(){return this._options},set:function(e){this.config.options=e}},{key:"_initialize",value:function(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():cc(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}},{key:"clear",value:function(){return ol(this.canvas,this.ctx),this}},{key:"stop",value:function(){return Pc.stop(this),this}},{key:"resize",value:function(e,t){Pc.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}},{key:"_resize",value:function(e,t){var n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,e,t,i),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,cc(this,o,!0)&&(this.notifyPlugins("resize",{size:a}),Os(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}},{key:"ensureScalesHaveIDs",value:function(){Cs(this.options.scales||{},(function(e,t){e.id=t}))}},{key:"buildOrUpdateScales",value:function(){var e=this,t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((function(e,t){return e[t]=!1,e}),{}),a=[];n&&(a=a.concat(Object.keys(n).map((function(e){var t=n[e],r=mh(e,t),i="r"===r,a="x"===r;return{options:t,dposition:i?"chartArea":a?"bottom":"left",dtype:i?"radialLinear":a?"category":"linear"}})))),Cs(a,(function(n){var a=n.options,o=a.id,s=mh(o,a),u=Ss(a.type,n.dtype);void 0!==a.position&&Mh(a.position,s)===Mh(n.dposition)||(a.position=n.dposition),i[o]=!0;var l=null;o in r&&r[o].type===u?l=r[o]:(l=new(dh.getScale(u))({id:o,type:u,ctx:e.ctx,chart:e}),r[l.id]=l);l.init(a,t)})),Cs(i,(function(e,t){e||delete r[t]})),Cs(r,(function(t){Rf(e,t,t.options),Af(e,t)}))}},{key:"_updateMetasets",value:function(){var e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((function(e,t){return e.index-t.index})),n>t){for(var r=t;r<n;++r)this._destroyDatasetMeta(r);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(Dh("order","index"))}},{key:"_removeUnreferencedMetasets",value:function(){var e=this,t=this._metasets,n=this.data.datasets;t.length>n.length&&delete this._stacks,t.forEach((function(t,r){0===n.filter((function(e){return e===t._dataset})).length&&e._destroyDatasetMeta(r)}))}},{key:"buildOrUpdateControllers",value:function(){var e,t,n=[],r=this.data.datasets;for(this._removeUnreferencedMetasets(),e=0,t=r.length;e<t;e++){var i=r[e],a=this.getDatasetMeta(e),o=i.type||this.config.type;if(a.type&&a.type!==o&&(this._destroyDatasetMeta(e),a=this.getDatasetMeta(e)),a.type=o,a.indexAxis=i.indexAxis||gh(o,this.options),a.order=i.order||0,a.index=e,a.label=""+i.label,a.visible=this.isDatasetVisible(e),a.controller)a.controller.updateIndex(e),a.controller.linkScales();else{var s=dh.getController(o),u=nl.datasets[o],l=u.datasetElementType,c=u.dataElementType;Object.assign(s.prototype,{dataElementType:dh.getElement(c),datasetElementType:l&&dh.getElement(l)}),a.controller=new s(this,e),n.push(a.controller)}}return this._updateMetasets(),n}},{key:"_resetElements",value:function(){var e=this;Cs(this.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.reset()}),this)}},{key:"reset",value:function(){this._resetElements(),this.notifyPlugins("reset")}},{key:"update",value:function(e){var t=this.config;t.update();var n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1!==this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})){var i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");for(var a=0,o=0,s=this.data.datasets.length;o<s;o++){var u=this.getDatasetMeta(o).controller,l=!r&&-1===i.indexOf(u);u.buildOrUpdateElements(l),a=Math.max(+u.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),r||Cs(i,(function(e){e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Dh("z","_idx"));var c=this._active,f=this._lastEvent;f?this._eventHandler(f,!0):c.length&&this._updateHoverStyles(c,c,!0),this.render()}}},{key:"_updateScales",value:function(){var e=this;Cs(this.scales,(function(t){Nf(e,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}},{key:"_checkEventBindings",value:function(){var e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);Bs(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}},{key:"_updateHiddenIndices",value:function(){var e,t=this._hiddenIndices,n=Ge(this._getUniformDataChanges()||[]);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=r.method,a=r.start,o=r.count;Fh(t,a,"_removeElements"===i?-o:o)}}catch(s){n.e(s)}finally{n.f()}}},{key:"_getUniformDataChanges",value:function(){var e=this._dataChanges;if(e&&e.length){this._dataChanges=[];for(var t=this.data.datasets.length,n=function(t){return new Set(e.filter((function(e){return e[0]===t})).map((function(e,t){return t+","+e.splice(1).join(",")})))},r=n(0),i=1;i<t;i++)if(!Bs(r,n(i)))return;return Array.from(r).map((function(e){return e.split(",")})).map((function(e){return{method:e[1],start:+e[2],count:+e[3]}}))}}},{key:"_updateLayout",value:function(e){var t=this;if(!1!==this.notifyPlugins("beforeLayout",{cancelable:!0})){Lf(this,this.width,this.height,e);var n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Cs(this.boxes,(function(e){var n;r&&"chartArea"===e.position||(e.configure&&e.configure(),(n=t._layers).push.apply(n,Qe(e._layers())))}),this),this._layers.forEach((function(e,t){e._idx=t})),this.notifyPlugins("afterLayout")}}},{key:"_updateDatasets",value:function(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(var t=0,n=this.data.datasets.length;t<n;++t)this.getDatasetMeta(t).controller.configure();for(var r=0,i=this.data.datasets.length;r<i;++r)this._updateDataset(r,zs(e)?e({datasetIndex:r}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}},{key:"_updateDataset",value:function(e,t){var n=this.getDatasetMeta(e),r={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(t),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}},{key:"render",value:function(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Pc.has(this)?this.attached&&!Pc.running(this)&&Pc.start(this):(this.draw(),Ih({chart:this})))}},{key:"draw",value:function(){var e;if(this._resizeBeforeDraw){var t=this._resizeBeforeDraw,n=t.width,r=t.height;this._resize(n,r),this._resizeBeforeDraw=null}if(this.clear(),!(this.width<=0||this.height<=0)&&!1!==this.notifyPlugins("beforeDraw",{cancelable:!0})){var i=this._layers;for(e=0;e<i.length&&i[e].z<=0;++e)i[e].draw(this.chartArea);for(this._drawDatasets();e<i.length;++e)i[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}}},{key:"_getSortedDatasetMetas",value:function(e){var t,n,r=this._sortedMetasets,i=[];for(t=0,n=r.length;t<n;++t){var a=r[t];e&&!a.visible||i.push(a)}return i}},{key:"getSortedVisibleDatasetMetas",value:function(){return this._getSortedDatasetMetas(!0)}},{key:"_drawDatasets",value:function(){if(!1!==this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})){for(var e=this.getSortedVisibleDatasetMetas(),t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}}},{key:"_drawDataset",value:function(e){var t=this.ctx,n=e._clip,r=!n.disabled,i=this.chartArea,a={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(r&&ll(t,{left:!1===n.left?0:i.left-n.left,right:!1===n.right?this.width:i.right+n.right,top:!1===n.top?0:i.top-n.top,bottom:!1===n.bottom?this.height:i.bottom+n.bottom}),e.controller.draw(),r&&cl(t),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}},{key:"getElementsAtEventForMode",value:function(e,t,n,r){var i=xf.modes[t];return"function"===typeof i?i(this,e,n,r):[]}},{key:"getDatasetMeta",value:function(e){var t=this.data.datasets[e],n=this._metasets,r=n.filter((function(e){return e&&e._dataset===t})).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}},{key:"getContext",value:function(){return this.$context||(this.$context=Tl(null,{chart:this,type:"chart"}))}},{key:"getVisibleDatasetCount",value:function(){return this.getSortedVisibleDatasetMetas().length}},{key:"isDatasetVisible",value:function(e){var t=this.data.datasets[e];if(!t)return!1;var n=this.getDatasetMeta(e);return"boolean"===typeof n.hidden?!n.hidden:!t.hidden}},{key:"setDatasetVisibility",value:function(e,t){this.getDatasetMeta(e).hidden=!t}},{key:"toggleDataVisibility",value:function(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}},{key:"getDataVisibility",value:function(e){return!this._hiddenIndices[e]}},{key:"_updateVisibility",value:function(e,t,n){var r=n?"show":"hide",i=this.getDatasetMeta(e),a=i.controller._resolveAnimations(void 0,r);Vs(t)?(i.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),a.update(i,{visible:n}),this.update((function(t){return t.datasetIndex===e?r:void 0})))}},{key:"hide",value:function(e,t){this._updateVisibility(e,t,!1)}},{key:"show",value:function(e,t){this._updateVisibility(e,t,!0)}},{key:"_destroyDatasetMeta",value:function(e){var t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}},{key:"_stop",value:function(){var e,t;for(this.stop(),Pc.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}},{key:"destroy",value:function(){this.notifyPlugins("beforeDestroy");var e=this.canvas,t=this.ctx;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),ol(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete Rh[this.id],this.notifyPlugins("afterDestroy")}},{key:"toBase64Image",value:function(){var e;return(e=this.canvas).toDataURL.apply(e,arguments)}},{key:"bindEvents",value:function(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}},{key:"bindUserEvents",value:function(){var e=this,t=this._listeners,n=this.platform,r=function(t,n,r){t.offsetX=n,t.offsetY=r,e._eventHandler(t)};Cs(this.options.events,(function(i){return function(r,i){n.addEventListener(e,r,i),t[r]=i}(i,r)}))}},{key:"bindResponsiveEvents",value:function(){var e=this;this._responsiveListeners||(this._responsiveListeners={});var t,n=this._responsiveListeners,r=this.platform,i=function(t,i){r.addEventListener(e,t,i),n[t]=i},a=function(t,i){n[t]&&(r.removeEventListener(e,t,i),delete n[t])},o=function(t,n){e.canvas&&e.resize(t,n)},s=function n(){a("attach",n),e.attached=!0,e.resize(),i("resize",o),i("detach",t)};t=function(){e.attached=!1,a("resize",o),e._stop(),e._resize(0,0),i("attach",s)},r.isAttached(this.canvas)?s():t()}},{key:"unbindEvents",value:function(){var e=this;Cs(this._listeners,(function(t,n){e.platform.removeEventListener(e,n,t)})),this._listeners={},Cs(this._responsiveListeners,(function(t,n){e.platform.removeEventListener(e,n,t)})),this._responsiveListeners=void 0}},{key:"updateHoverStyle",value:function(e,t,n){var r,i,a,o=n?"set":"remove";for("dataset"===t&&this.getDatasetMeta(e[0].datasetIndex).controller["_"+o+"DatasetHoverStyle"](),i=0,a=e.length;i<a;++i){var s=(r=e[i])&&this.getDatasetMeta(r.datasetIndex).controller;s&&s[o+"HoverStyle"](r.element,r.datasetIndex,r.index)}}},{key:"getActiveElements",value:function(){return this._active||[]}},{key:"setActiveElements",value:function(e){var t=this,n=this._active||[],r=e.map((function(e){var n=e.datasetIndex,r=e.index,i=t.getDatasetMeta(n);if(!i)throw new Error("No dataset found at index "+n);return{datasetIndex:n,element:i.data[r],index:r}}));!Ps(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}},{key:"notifyPlugins",value:function(e,t,n){return this._plugins.notify(this,e,t,n)}},{key:"_updateHoverStyles",value:function(e,t,n){var r=this.options.hover,i=function(e,t){return e.filter((function(e){return!t.some((function(t){return e.datasetIndex===t.datasetIndex&&e.index===t.index}))}))},a=i(t,e),o=n?e:i(e,t);a.length&&this.updateHoverStyle(a,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}},{key:"_eventHandler",value:function(e,t){var n=this,r={event:e,replay:t,cancelable:!0,inChartArea:ul(e,this.chartArea,this._minPadding)},i=function(t){return(t.options.events||n.options.events).includes(e.native.type)};if(!1!==this.notifyPlugins("beforeEvent",r,i)){var a=this._handleEvent(e,t,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(a||r.changed)&&this.render(),this}}},{key:"_handleEvent",value:function(e,t,n){var r=this._active,i=void 0===r?[]:r,a=this.options,o=t,s=this._getActiveElements(e,i,n,o),u=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,r){return n&&"mouseout"!==e.type?r?t:e:null}(e,this._lastEvent,n,u);n&&(this._lastEvent=null,Os(a.onHover,[e,s,this],this),u&&Os(a.onClick,[e,s,this],this));var c=!Ps(s,i);return(c||t)&&(this._active=s,this._updateHoverStyles(s,i,t)),this._lastEvent=l,c}},{key:"_getActiveElements",value:function(e,t,n,r){if("mouseout"===e.type)return[];if(!n)return t;var i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}}]),e}(),Vh=function(){return Cs(jh.instances,(function(e){return e._plugins.invalidate()}))},zh=!0;function Bh(e,t,n){var r=t.startAngle,i=t.pixelMargin,a=t.x,o=t.y,s=t.outerRadius,u=t.innerRadius,l=i/s;e.beginPath(),e.arc(a,o,s,r-l,n+l),u>i?(l=i/u,e.arc(a,o,u,n+l,r-l,!0)):e.arc(a,o,i,n+$s,r-$s),e.closePath(),e.clip()}function qh(e,t,n,r){var i=xl(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),a=(n-t)/2,o=Math.min(a,r*t/2),s=function(e){var t=(n-Math.min(a,e))*r/2;return cu(e,0,Math.min(a,t))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:cu(i.innerStart,0,o),innerEnd:cu(i.innerEnd,0,o)}}function Uh(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Wh(e,t,n,r,i){var a=t.x,o=t.y,s=t.startAngle,u=t.pixelMargin,l=t.innerRadius,c=Math.max(t.outerRadius+r+n-u,0),f=l>0?l+r+n+u:0,h=0,d=i-s;if(r){var p=((l>0?l-r:0)+(c>0?c-r:0))/2;h=(d-(0!==p?d*p/(p+r):d))/2}var v=(d-Math.max(.001,d*c-n/qs)/c)/2,y=s+v+h,g=i-v-h,m=qh(t,f,c,g-y),b=m.outerStart,x=m.outerEnd,k=m.innerStart,_=m.innerEnd,w=c-b,E=c-x,S=y+b/w,T=g-x/E,O=f+k,C=f+_,P=y+k/O,M=g-_/C;if(e.beginPath(),e.arc(a,o,c,S,T),x>0){var D=Uh(E,T,a,o);e.arc(D.x,D.y,x,T,g+$s)}var I=Uh(C,g,a,o);if(e.lineTo(I.x,I.y),_>0){var A=Uh(C,M,a,o);e.arc(A.x,A.y,_,g+$s,M+Math.PI)}if(e.arc(a,o,f,g-_/f,y+k/f,!0),k>0){var N=Uh(O,P,a,o);e.arc(N.x,N.y,k,P+Math.PI,y-$s)}var R=Uh(w,y,a,o);if(e.lineTo(R.x,R.y),b>0){var L=Uh(w,S,a,o);e.arc(L.x,L.y,b,y-$s,S)}e.closePath()}function Qh(e,t,n,r,i){var a=t.options,o=a.borderWidth,s=a.borderJoinStyle,u="inner"===a.borderAlign;o&&(u?(e.lineWidth=2*o,e.lineJoin=s||"round"):(e.lineWidth=o,e.lineJoin=s||"bevel"),t.fullCircles&&function(e,t,n){var r,i=t.x,a=t.y,o=t.startAngle,s=t.pixelMargin,u=t.fullCircles,l=Math.max(t.outerRadius-s,0),c=t.innerRadius+s;for(n&&Bh(e,t,o+Us),e.beginPath(),e.arc(i,a,c,o+Us,o,!0),r=0;r<u;++r)e.stroke();for(e.beginPath(),e.arc(i,a,l,o,o+Us),r=0;r<u;++r)e.stroke()}(e,t,u),u&&Bh(e,t,i),Wh(e,t,n,r,i),e.stroke())}Object.defineProperties(jh,{defaults:{enumerable:zh,value:nl},instances:{enumerable:zh,value:Rh},overrides:{enumerable:zh,value:Xu},registry:{enumerable:zh,value:dh},version:{enumerable:zh,value:"3.7.1"},getChart:{enumerable:zh,value:Lh},register:{enumerable:zh,value:function(){dh.add.apply(dh,arguments),Vh()}},unregister:{enumerable:zh,value:function(){dh.remove.apply(dh,arguments),Vh()}}});var Hh=function(e){Ja(n,e);var t=ro(n);function n(e){var r;return je(this,n),(r=t.call(this)).options=void 0,r.circumference=void 0,r.startAngle=void 0,r.endAngle=void 0,r.innerRadius=void 0,r.outerRadius=void 0,r.pixelMargin=0,r.fullCircles=0,e&&Object.assign(Xa(r),e),r}return ze(n,[{key:"inRange",value:function(e,t,n){var r=au(this.getProps(["x","y"],n),{x:e,y:t}),i=r.angle,a=r.distance,o=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),s=o.startAngle,u=o.endAngle,l=o.innerRadius,c=o.outerRadius,f=o.circumference,h=this.options.spacing/2,d=Ss(f,u-s)>=Us||lu(i,s,u),p=fu(a,l+h,c+h);return d&&p}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),n=t.x,r=t.y,i=t.startAngle,a=t.endAngle,o=t.innerRadius,s=t.outerRadius,u=this.options,l=u.offset,c=(i+a)/2,f=(o+s+u.spacing+l)/2;return{x:n+Math.cos(c)*f,y:r+Math.sin(c)*f}}},{key:"tooltipPosition",value:function(e){return this.getCenterPoint(e)}},{key:"draw",value:function(e){var t=this.options,n=this.circumference,r=(t.offset||0)/2,i=(t.spacing||0)/2;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>Us?Math.floor(n/Us):0,!(0===n||this.innerRadius<0||this.outerRadius<0)){e.save();var a=0;if(r){a=r/2;var o=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(o)*a,Math.sin(o)*a),this.circumference>=qs&&(a=r)}e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor;var s=function(e,t,n,r){var i=t.fullCircles,a=t.startAngle,o=t.circumference,s=t.endAngle;if(i){Wh(e,t,n,r,a+Us);for(var u=0;u<i;++u)e.fill();isNaN(o)||(s=a+o%Us,o%Us===0&&(s+=Us))}return Wh(e,t,n,r,s),e.fill(),s}(e,this,a,i);Qh(e,this,a,i,s),e.restore()}}}]),n}(Zf);function $h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;e.lineCap=Ss(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ss(n.borderDash,t.borderDash)),e.lineDashOffset=Ss(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ss(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ss(n.borderWidth,t.borderWidth),e.strokeStyle=Ss(n.borderColor,t.borderColor)}function Yh(e,t,n){e.lineTo(n.x,n.y)}function Kh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.length,i=n.start,a=void 0===i?0:i,o=n.end,s=void 0===o?r-1:o,u=t.start,l=t.end,c=Math.max(a,u),f=Math.min(s,l),h=a<u&&s<u||a>l&&s>l;return{count:r,start:c,loop:t.loop,ilen:f<c&&!h?r+f-c:f-c}}function Gh(e,t,n,r){var i,a,o,s=t.points,u=t.options,l=Kh(s,n,r),c=l.count,f=l.start,h=l.loop,d=l.ilen,p=function(e){return e.stepped?fl:e.tension||"monotone"===e.cubicInterpolationMode?hl:Yh}(u),v=r||{},y=v.move,g=void 0===y||y,m=v.reverse;for(i=0;i<=d;++i)(a=s[(f+(m?d-i:i))%c]).skip||(g?(e.moveTo(a.x,a.y),g=!1):p(e,o,a,m,u.stepped),o=a);return h&&p(e,o,a=s[(f+(m?d:0))%c],m,u.stepped),!!h}function Xh(e,t,n,r){var i,a,o,s,u,l,c=t.points,f=Kh(c,n,r),h=f.count,d=f.start,p=f.ilen,v=r||{},y=v.move,g=void 0===y||y,m=v.reverse,b=0,x=0,k=function(e){return(d+(m?p-e:e))%h},_=function(){s!==u&&(e.lineTo(b,u),e.lineTo(b,s),e.lineTo(b,l))};for(g&&(a=c[k(0)],e.moveTo(a.x,a.y)),i=0;i<=p;++i)if(!(a=c[k(i)]).skip){var w=a.x,E=a.y,S=0|w;S===o?(E<s?s=E:E>u&&(u=E),b=(x*b+w)/++x):(_(),e.lineTo(w,E),o=S,x=0,s=u=E),l=E}_()}function Jh(e){var t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&"monotone"!==t.cubicInterpolationMode&&!t.stepped&&!n?Xh:Gh}Hh.id="arc",Hh.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},Hh.defaultRoutes={backgroundColor:"backgroundColor"};var Zh="function"===typeof Path2D;function ed(e,t,n,r){Zh&&!t.options.segment?function(e,t,n,r){var i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),$h(e,t.options),e.stroke(i)}(e,t,n,r):function(e,t,n,r){var i,a=t.segments,o=t.options,s=Jh(t),u=Ge(a);try{for(u.s();!(i=u.n()).done;){var l=i.value;$h(e,o,l.style),e.beginPath(),s(e,t,l,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}}catch(c){u.e(c)}finally{u.f()}}(e,t,n,r)}var td=function(e){Ja(n,e);var t=ro(n);function n(e){var r;return je(this,n),(r=t.call(this)).animated=!0,r.options=void 0,r._chart=void 0,r._loop=void 0,r._fullLoop=void 0,r._path=void 0,r._points=void 0,r._segments=void 0,r._decimated=!1,r._pointsUpdated=!1,r._datasetIndex=void 0,e&&Object.assign(Xa(r),e),r}return ze(n,[{key:"updateControlPoints",value:function(e,t){var n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){var r=n.spanGaps?this._loop:this._fullLoop;ec(this._points,n,e,r,t),this._pointsUpdated=!0}}},{key:"points",get:function(){return this._points},set:function(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}},{key:"segments",get:function(){return this._segments||(this._segments=function(e,t){var n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];var a=!!e._loop,o=function(e,t,n,r){var i=0,a=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(a+=i);a>i&&e[a%t].skip;)a--;return{start:i,end:a%=t}}(n,i,a,r),s=o.start,u=o.end;return Sc(e,!0===r?[{start:s,end:u,loop:a}]:function(e,t,n,r){var i,a=e.length,o=[],s=t,u=e[t];for(i=t+1;i<=n;++i){var l=e[i%a];l.skip||l.stop?u.skip||(r=!1,o.push({start:t%a,end:(i-1)%a,loop:r}),t=s=l.stop?i:null):(s=i,u.skip&&(t=i)),u=l}return null!==s&&o.push({start:t%a,end:s%a,loop:r}),o}(n,s,u<s?u+i:u,!!e._fullLoop&&0===s&&u===i-1),n,t)}(this,this.options.segment))}},{key:"first",value:function(){var e=this.segments,t=this.points;return e.length&&t[e[0].start]}},{key:"last",value:function(){var e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}},{key:"interpolate",value:function(e,t){var n=this.options,r=e[t],i=this.points,a=Ec(this,{property:t,start:r,end:r});if(a.length){var o,s,u=[],l=function(e){return e.stepped?pc:e.tension||"monotone"===e.cubicInterpolationMode?vc:dc}(n);for(o=0,s=a.length;o<s;++o){var c=a[o],f=c.start,h=c.end,d=i[f],p=i[h];if(d!==p){var v=l(d,p,Math.abs((r-d[t])/(p[t]-d[t])),n.stepped);v[t]=e[t],u.push(v)}else u.push(d)}return 1===u.length?u[0]:u}}},{key:"pathSegment",value:function(e,t,n){return Jh(this)(e,this,t,n)}},{key:"path",value:function(e,t,n){var r=this.segments,i=Jh(this),a=this._loop;t=t||0,n=n||this.points.length-t;var o,s=Ge(r);try{for(s.s();!(o=s.n()).done;){a&=i(e,this,o.value,{start:t,end:t+n-1})}}catch(u){s.e(u)}finally{s.f()}return!!a}},{key:"draw",value:function(e,t,n,r){var i=this.options||{};(this.points||[]).length&&i.borderWidth&&(e.save(),ed(e,this,n,r),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}]),n}(Zf);function nd(e,t,n,r){var i=e.options,a=e.getProps([n],r)[n];return Math.abs(t-a)<i.radius+i.hitRadius}td.id="line",td.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},td.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},td.descriptors={_scriptable:!0,_indexable:function(e){return"borderDash"!==e&&"fill"!==e}};var rd=function(e){Ja(n,e);var t=ro(n);function n(e){var r;return je(this,n),(r=t.call(this)).options=void 0,r.parsed=void 0,r.skip=void 0,r.stop=void 0,e&&Object.assign(Xa(r),e),r}return ze(n,[{key:"inRange",value:function(e,t,n){var r=this.options,i=this.getProps(["x","y"],n),a=i.x,o=i.y;return Math.pow(e-a,2)+Math.pow(t-o,2)<Math.pow(r.hitRadius+r.radius,2)}},{key:"inXRange",value:function(e,t){return nd(this,e,"x",t)}},{key:"inYRange",value:function(e,t){return nd(this,e,"y",t)}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y"],e);return{x:t.x,y:t.y}}},{key:"size",value:function(e){var t=(e=e||this.options||{}).radius||0;return 2*((t=Math.max(t,t&&e.hoverRadius||0))+(t&&e.borderWidth||0))}},{key:"draw",value:function(e,t){var n=this.options;this.skip||n.radius<.1||!ul(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,sl(e,n,this.x,this.y))}},{key:"getRange",value:function(){var e=this.options||{};return e.radius+e.hitRadius}}]),n}(Zf);function id(e,t){var n,r,i,a,o,s=e.getProps(["x","y","base","width","height"],t),u=s.x,l=s.y,c=s.base,f=s.width,h=s.height;return e.horizontal?(o=h/2,n=Math.min(u,c),r=Math.max(u,c),i=l-o,a=l+o):(n=u-(o=f/2),r=u+o,i=Math.min(l,c),a=Math.max(l,c)),{left:n,top:i,right:r,bottom:a}}function ad(e,t,n,r){return e?0:cu(t,n,r)}function od(e){var t=id(e),n=t.right-t.left,r=t.bottom-t.top,i=function(e,t,n){var r=e.options.borderWidth,i=e.borderSkipped,a=kl(r);return{t:ad(i.top,a.top,0,n),r:ad(i.right,a.right,0,t),b:ad(i.bottom,a.bottom,0,n),l:ad(i.left,a.left,0,t)}}(e,n/2,r/2),a=function(e,t,n){var r=e.getProps(["enableBorderRadius"]).enableBorderRadius,i=e.options.borderRadius,a=_l(i),o=Math.min(t,n),s=e.borderSkipped,u=r||_s(i);return{topLeft:ad(!u||s.top||s.left,a.topLeft,0,o),topRight:ad(!u||s.top||s.right,a.topRight,0,o),bottomLeft:ad(!u||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:ad(!u||s.bottom||s.right,a.bottomRight,0,o)}}(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:a},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function sd(e,t,n,r){var i=null===t,a=null===n,o=e&&!(i&&a)&&id(e,r);return o&&(i||fu(t,o.left,o.right))&&(a||fu(n,o.top,o.bottom))}function ud(e,t){e.rect(t.x,t.y,t.w,t.h)}function ld(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,a=(e.x+e.w!==n.x+n.w?t:0)-r,o=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+a,h:e.h+o,radius:e.radius}}rd.id="point",rd.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},rd.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var cd=function(e){Ja(n,e);var t=ro(n);function n(e){var r;return je(this,n),(r=t.call(this)).options=void 0,r.horizontal=void 0,r.base=void 0,r.width=void 0,r.height=void 0,r.inflateAmount=void 0,e&&Object.assign(Xa(r),e),r}return ze(n,[{key:"draw",value:function(e){var t,n=this.inflateAmount,r=this.options,i=r.borderColor,a=r.backgroundColor,o=od(this),s=o.inner,u=o.outer,l=(t=u.radius).topLeft||t.topRight||t.bottomLeft||t.bottomRight?yl:ud;e.save(),u.w===s.w&&u.h===s.h||(e.beginPath(),l(e,ld(u,n,s)),e.clip(),l(e,ld(s,-n,u)),e.fillStyle=i,e.fill("evenodd")),e.beginPath(),l(e,ld(s,n)),e.fillStyle=a,e.fill(),e.restore()}},{key:"inRange",value:function(e,t,n){return sd(this,e,t,n)}},{key:"inXRange",value:function(e,t){return sd(this,e,null,t)}},{key:"inYRange",value:function(e,t){return sd(this,null,e,t)}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y","base","horizontal"],e),n=t.x,r=t.y,i=t.base,a=t.horizontal;return{x:a?(n+i)/2:n,y:a?r:(r+i)/2}}},{key:"getRange",value:function(e){return"x"===e?this.width/2:this.height/2}}]),n}(Zf);cd.id="bar",cd.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},cd.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var fd=function(e,t){var n=e.boxHeight,r=void 0===n?t:n,i=e.boxWidth,a=void 0===i?t:i;return e.usePointStyle&&(r=Math.min(r,t),a=Math.min(a,t)),{boxWidth:a,boxHeight:r,itemHeight:Math.max(t,r)}},hd=function(e){Ja(n,e);var t=ro(n);function n(e){var r;return je(this,n),(r=t.call(this))._added=!1,r.legendHitBoxes=[],r._hoveredItem=null,r.doughnutMode=!1,r.chart=e.chart,r.options=e.options,r.ctx=e.ctx,r.legendItems=void 0,r.columnSizes=void 0,r.lineWidths=void 0,r.maxHeight=void 0,r.maxWidth=void 0,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.height=void 0,r.width=void 0,r._margins=void 0,r.position=void 0,r.weight=void 0,r.fullSize=void 0,r}return ze(n,[{key:"update",value:function(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}},{key:"setDimensions",value:function(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}},{key:"buildLabels",value:function(){var e=this,t=this.options.labels||{},n=Os(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter((function(n){return t.filter(n,e.chart.data)}))),t.sort&&(n=n.sort((function(n,r){return t.sort(n,r,e.chart.data)}))),this.options.reverse&&n.reverse(),this.legendItems=n}},{key:"fit",value:function(){var e=this.options,t=this.ctx;if(e.display){var n,r,i=e.labels,a=El(i.font),o=a.size,s=this._computeTitleHeight(),u=fd(i,o),l=u.boxWidth,c=u.itemHeight;t.font=a.string,this.isHorizontal()?(n=this.maxWidth,r=this._fitRows(s,o,l,c)+10):(r=this.maxHeight,n=this._fitCols(s,o,l,c)+10),this.width=Math.min(n,e.maxWidth||this.maxWidth),this.height=Math.min(r,e.maxHeight||this.maxHeight)}else this.width=this.height=0}},{key:"_fitRows",value:function(e,t,n,r){var i=this.ctx,a=this.maxWidth,o=this.options.labels.padding,s=this.legendHitBoxes=[],u=this.lineWidths=[0],l=r+o,c=e;i.textAlign="left",i.textBaseline="middle";var f=-1,h=-l;return this.legendItems.forEach((function(e,d){var p=n+t/2+i.measureText(e.text).width;(0===d||u[u.length-1]+p+2*o>a)&&(c+=l,u[u.length-(d>0?0:1)]=0,h+=l,f++),s[d]={left:0,top:h,row:f,width:p,height:r},u[u.length-1]+=p+o})),c}},{key:"_fitCols",value:function(e,t,n,r){var i=this.ctx,a=this.maxHeight,o=this.options.labels.padding,s=this.legendHitBoxes=[],u=this.columnSizes=[],l=a-e,c=o,f=0,h=0,d=0,p=0;return this.legendItems.forEach((function(e,a){var v=n+t/2+i.measureText(e.text).width;a>0&&h+r+2*o>l&&(c+=f+o,u.push({width:f,height:h}),d+=f+o,p++,f=h=0),s[a]={left:d,top:h,col:p,width:v,height:r},f=Math.max(f,v),h+=r+o})),c+=f,u.push({width:f,height:h}),c}},{key:"adjustHitBoxes",value:function(){if(this.options.display){var e=this._computeTitleHeight(),t=this.legendHitBoxes,n=this.options,r=n.align,i=n.labels.padding,a=mc(n.rtl,this.left,this.width);if(this.isHorizontal()){var o,s=0,u=gs(r,this.left+i,this.right-this.lineWidths[s]),l=Ge(t);try{for(l.s();!(o=l.n()).done;){var c=o.value;s!==c.row&&(s=c.row,u=gs(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+e+i,c.left=a.leftForLtr(a.x(u),c.width),u+=c.width+i}}catch(y){l.e(y)}finally{l.f()}}else{var f,h=0,d=gs(r,this.top+e+i,this.bottom-this.columnSizes[h].height),p=Ge(t);try{for(p.s();!(f=p.n()).done;){var v=f.value;v.col!==h&&(h=v.col,d=gs(r,this.top+e+i,this.bottom-this.columnSizes[h].height)),v.top=d,v.left+=this.left+i,v.left=a.leftForLtr(a.x(v.left),v.width),d+=v.height+i}}catch(y){p.e(y)}finally{p.f()}}}}},{key:"isHorizontal",value:function(){return"top"===this.options.position||"bottom"===this.options.position}},{key:"draw",value:function(){if(this.options.display){var e=this.ctx;ll(e,this),this._draw(),cl(e)}}},{key:"_draw",value:function(){var e,t=this,n=this.options,r=this.columnSizes,i=this.lineWidths,a=this.ctx,o=n.align,s=n.labels,u=nl.color,l=mc(n.rtl,this.left,this.width),c=El(s.font),f=s.color,h=s.padding,d=c.size,p=d/2;this.drawTitle(),a.textAlign=l.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=c.string;var v=fd(s,d),y=v.boxWidth,g=v.boxHeight,m=v.itemHeight,b=this.isHorizontal(),x=this._computeTitleHeight();e=b?{x:gs(o,this.left+h,this.right-i[0]),y:this.top+h+x,line:0}:{x:this.left+h,y:gs(o,this.top+x+h,this.bottom-r[0].height),line:0},bc(this.ctx,n.textDirection);var k=m+h;this.legendItems.forEach((function(v,_){a.strokeStyle=v.fontColor||f,a.fillStyle=v.fontColor||f;var w=a.measureText(v.text).width,E=l.textAlign(v.textAlign||(v.textAlign=s.textAlign)),S=y+p+w,T=e.x,O=e.y;l.setWidth(t.width),b?_>0&&T+S+h>t.right&&(O=e.y+=k,e.line++,T=e.x=gs(o,t.left+h,t.right-i[e.line])):_>0&&O+k>t.bottom&&(T=e.x=T+r[e.line].width+h,e.line++,O=e.y=gs(o,t.top+x+h,t.bottom-r[e.line].height)),function(e,t,n){if(!(isNaN(y)||y<=0||isNaN(g)||g<0)){a.save();var r=Ss(n.lineWidth,1);if(a.fillStyle=Ss(n.fillStyle,u),a.lineCap=Ss(n.lineCap,"butt"),a.lineDashOffset=Ss(n.lineDashOffset,0),a.lineJoin=Ss(n.lineJoin,"miter"),a.lineWidth=r,a.strokeStyle=Ss(n.strokeStyle,u),a.setLineDash(Ss(n.lineDash,[])),s.usePointStyle){var i={radius:y*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},o=l.xPlus(e,y/2);sl(a,i,o,t+p)}else{var c=t+Math.max((d-g)/2,0),f=l.leftForLtr(e,y),h=_l(n.borderRadius);a.beginPath(),Object.values(h).some((function(e){return 0!==e}))?yl(a,{x:f,y:c,w:y,h:g,radius:h}):a.rect(f,c,y,g),a.fill(),0!==r&&a.stroke()}a.restore()}}(l.x(T),O,v),T=function(e,t,n,r){return e===(r?"left":"right")?n:"center"===e?(t+n)/2:t}(E,T+y+p,b?T+S:t.right,n.rtl),function(e,t,n){dl(a,n.text,e,t+m/2,c,{strikethrough:n.hidden,textAlign:l.textAlign(n.textAlign)})}(l.x(T),O,v),b?e.x+=S+h:e.y+=k})),xc(this.ctx,n.textDirection)}},{key:"drawTitle",value:function(){var e=this.options,t=e.title,n=El(t.font),r=wl(t.padding);if(t.display){var i,a=mc(e.rtl,this.left,this.width),o=this.ctx,s=t.position,u=n.size/2,l=r.top+u,c=this.left,f=this.width;if(this.isHorizontal())f=Math.max.apply(Math,Qe(this.lineWidths)),i=this.top+l,c=gs(e.align,c,this.right-f);else{var h=this.columnSizes.reduce((function(e,t){return Math.max(e,t.height)}),0);i=l+gs(e.align,this.top,this.bottom-h-e.labels.padding-this._computeTitleHeight())}var d=gs(s,c,c+f);o.textAlign=a.textAlign(ys(s)),o.textBaseline="middle",o.strokeStyle=t.color,o.fillStyle=t.color,o.font=n.string,dl(o,t.text,d,i,n)}}},{key:"_computeTitleHeight",value:function(){var e=this.options.title,t=El(e.font),n=wl(e.padding);return e.display?t.lineHeight+n.height:0}},{key:"_getLegendItemAt",value:function(e,t){var n,r,i;if(fu(e,this.left,this.right)&&fu(t,this.top,this.bottom))for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(fu(e,(r=i[n]).left,r.left+r.width)&&fu(t,r.top,r.top+r.height))return this.legendItems[n];return null}},{key:"handleEvent",value:function(e){var t=this.options;if(function(e,t){if("mousemove"===e&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t)){var n,r,i=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type){var a=this._hoveredItem,o=(r=i,null!==(n=a)&&null!==r&&n.datasetIndex===r.datasetIndex&&n.index===r.index);a&&!o&&Os(t.onLeave,[e,a,this],this),this._hoveredItem=i,i&&!o&&Os(t.onHover,[e,i,this],this)}else i&&Os(t.onClick,[e,i,this],this)}}}]),n}(Zf);var dd={id:"legend",_element:hd,start:function(e,t,n){var r=e.legend=new hd({ctx:e.ctx,options:n,chart:e});Rf(e,r,n),Af(e,r)},stop:function(e){Nf(e,e.legend),delete e.legend},beforeUpdate:function(e,t,n){var r=e.legend;Rf(e,r,n),r.options=n},afterUpdate:function(e){var t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent:function(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick:function(e,t,n){var r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:function(e){return e.chart.options.color},boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.legend.options.labels,r=n.usePointStyle,i=n.pointStyle,a=n.textAlign,o=n.color;return e._getSortedDatasetMetas().map((function(e){var n=e.controller.getStyle(r?0:void 0),s=wl(n.borderWidth);return{text:t[e.index].label,fillStyle:n.backgroundColor,fontColor:o,hidden:!e.visible,lineCap:n.borderCapStyle,lineDash:n.borderDash,lineDashOffset:n.borderDashOffset,lineJoin:n.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:n.borderColor,pointStyle:i||n.pointStyle,rotation:n.rotation,textAlign:a||n.textAlign,borderRadius:0,datasetIndex:e.index}}),this)}},title:{color:function(e){return e.chart.options.color},display:!1,position:"center",text:""}},descriptors:{_scriptable:function(e){return!e.startsWith("on")},labels:{_scriptable:function(e){return!["generateLabels","filter","sort"].includes(e)}}}};new WeakMap;var pd={average:function(e){if(!e.length)return!1;var t,n,r=0,i=0,a=0;for(t=0,n=e.length;t<n;++t){var o=e[t].element;if(o&&o.hasValue()){var s=o.tooltipPosition();r+=s.x,i+=s.y,++a}}return{x:r/a,y:i/a}},nearest:function(e,t){if(!e.length)return!1;var n,r,i,a=t.x,o=t.y,s=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){var u=e[n].element;if(u&&u.hasValue()){var l=ou(t,u.getCenterPoint());l<s&&(s=l,i=u)}}if(i){var c=i.tooltipPosition();a=c.x,o=c.y}return{x:a,y:o}}};function vd(e,t){return t&&(ks(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function yd(e){return("string"===typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function gd(e,t){var n=t.element,r=t.datasetIndex,i=t.index,a=e.getDatasetMeta(r).controller,o=a.getLabelAndValue(i),s=o.label,u=o.value;return{chart:e,label:s,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:u,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function md(e,t){var n=e.chart.ctx,r=e.body,i=e.footer,a=e.title,o=t.boxWidth,s=t.boxHeight,u=El(t.bodyFont),l=El(t.titleFont),c=El(t.footerFont),f=a.length,h=i.length,d=r.length,p=wl(t.padding),v=p.height,y=0,g=r.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);(g+=e.beforeBody.length+e.afterBody.length,f&&(v+=f*l.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),g)&&(v+=d*(t.displayColors?Math.max(s,u.lineHeight):u.lineHeight)+(g-d)*u.lineHeight+(g-1)*t.bodySpacing);h&&(v+=t.footerMarginTop+h*c.lineHeight+(h-1)*t.footerSpacing);var m=0,b=function(e){y=Math.max(y,n.measureText(e).width+m)};return n.save(),n.font=l.string,Cs(e.title,b),n.font=u.string,Cs(e.beforeBody.concat(e.afterBody),b),m=t.displayColors?o+2+t.boxPadding:0,Cs(r,(function(e){Cs(e.before,b),Cs(e.lines,b),Cs(e.after,b)})),m=0,n.font=c.string,Cs(e.footer,b),n.restore(),{width:y+=p.width,height:v}}function bd(e,t,n,r){var i=n.x,a=n.width,o=e.width,s=e.chartArea,u=s.left,l=s.right,c="center";return"center"===r?c=i<=(u+l)/2?"left":"right":i<=a/2?c="left":i>=o-a/2&&(c="right"),function(e,t,n,r){var i=r.x,a=r.width,o=n.caretSize+n.caretPadding;return"left"===e&&i+a+o>t.width||"right"===e&&i-a-o<0||void 0}(c,e,t,n)&&(c="center"),c}function xd(e,t,n){var r=n.yAlign||t.yAlign||function(e,t){var n=t.y,r=t.height;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||bd(e,t,n,r),yAlign:r}}function kd(e,t,n,r){var i=e.caretSize,a=e.caretPadding,o=e.cornerRadius,s=n.xAlign,u=n.yAlign,l=i+a,c=_l(o),f=c.topLeft,h=c.topRight,d=c.bottomLeft,p=c.bottomRight,v=function(e,t){var n=e.x,r=e.width;return"right"===t?n-=r:"center"===t&&(n-=r/2),n}(t,s),y=function(e,t,n){var r=e.y,i=e.height;return"top"===t?r+=n:r-="bottom"===t?i+n:i/2,r}(t,u,l);return"center"===u?"left"===s?v+=l:"right"===s&&(v-=l):"left"===s?v-=Math.max(f,d)+i:"right"===s&&(v+=Math.max(h,p)+i),{x:cu(v,0,r.width-t.width),y:cu(y,0,r.height-t.height)}}function _d(e,t,n){var r=wl(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function wd(e){return vd([],yd(e))}function Ed(e,t){var n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var Sd=function(e){Ja(n,e);var t=ro(n);function n(e){var r;return je(this,n),(r=t.call(this)).opacity=0,r._active=[],r._eventPosition=void 0,r._size=void 0,r._cachedAnimations=void 0,r._tooltipItems=[],r.$animations=void 0,r.$context=void 0,r.chart=e.chart||e._chart,r._chart=r.chart,r.options=e.options,r.dataPoints=void 0,r.title=void 0,r.beforeBody=void 0,r.body=void 0,r.afterBody=void 0,r.footer=void 0,r.xAlign=void 0,r.yAlign=void 0,r.x=void 0,r.y=void 0,r.height=void 0,r.width=void 0,r.caretX=void 0,r.caretY=void 0,r.labelColors=void 0,r.labelPointStyles=void 0,r.labelTextColors=void 0,r}return ze(n,[{key:"initialize",value:function(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}},{key:"_resolveAnimations",value:function(){var e=this._cachedAnimations;if(e)return e;var t=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&t.options.animation&&n.animations,i=new Nc(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}},{key:"getContext",value:function(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,Tl(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}},{key:"getTitle",value:function(e,t){var n=t.callbacks,r=n.beforeTitle.apply(this,[e]),i=n.title.apply(this,[e]),a=n.afterTitle.apply(this,[e]),o=[];return o=vd(o,yd(r)),o=vd(o,yd(i)),o=vd(o,yd(a))}},{key:"getBeforeBody",value:function(e,t){return wd(t.callbacks.beforeBody.apply(this,[e]))}},{key:"getBody",value:function(e,t){var n=this,r=t.callbacks,i=[];return Cs(e,(function(e){var t={before:[],lines:[],after:[]},a=Ed(r,e);vd(t.before,yd(a.beforeLabel.call(n,e))),vd(t.lines,a.label.call(n,e)),vd(t.after,yd(a.afterLabel.call(n,e))),i.push(t)})),i}},{key:"getAfterBody",value:function(e,t){return wd(t.callbacks.afterBody.apply(this,[e]))}},{key:"getFooter",value:function(e,t){var n=t.callbacks,r=n.beforeFooter.apply(this,[e]),i=n.footer.apply(this,[e]),a=n.afterFooter.apply(this,[e]),o=[];return o=vd(o,yd(r)),o=vd(o,yd(i)),o=vd(o,yd(a))}},{key:"_createItems",value:function(e){var t,n,r=this,i=this._active,a=this.chart.data,o=[],s=[],u=[],l=[];for(t=0,n=i.length;t<n;++t)l.push(gd(this.chart,i[t]));return e.filter&&(l=l.filter((function(t,n,r){return e.filter(t,n,r,a)}))),e.itemSort&&(l=l.sort((function(t,n){return e.itemSort(t,n,a)}))),Cs(l,(function(t){var n=Ed(e.callbacks,t);o.push(n.labelColor.call(r,t)),s.push(n.labelPointStyle.call(r,t)),u.push(n.labelTextColor.call(r,t))})),this.labelColors=o,this.labelPointStyles=s,this.labelTextColors=u,this.dataPoints=l,l}},{key:"update",value:function(e,t){var n,r=this.options.setContext(this.getContext()),i=this._active,a=[];if(i.length){var o=pd[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);var s=this._size=md(this,r),u=Object.assign({},o,s),l=xd(this.chart,r,u),c=kd(r,u,l,this.chart);this.xAlign=l.xAlign,this.yAlign=l.yAlign,n={opacity:1,x:c.x,y:c.y,width:s.width,height:s.height,caretX:o.x,caretY:o.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=a,this.$context=void 0,n&&this._resolveAnimations().update(this,n),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:t})}},{key:"drawCaret",value:function(e,t,n,r){var i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}},{key:"getCaretPosition",value:function(e,t,n){var r,i,a,o,s,u,l=this.xAlign,c=this.yAlign,f=n.caretSize,h=_l(n.cornerRadius),d=h.topLeft,p=h.topRight,v=h.bottomLeft,y=h.bottomRight,g=e.x,m=e.y,b=t.width,x=t.height;return"center"===c?(s=m+x/2,"left"===l?(i=(r=g)-f,o=s+f,u=s-f):(i=(r=g+b)+f,o=s-f,u=s+f),a=r):(i="left"===l?g+Math.max(d,v)+f:"right"===l?g+b-Math.max(p,y)-f:this.caretX,"top"===c?(s=(o=m)-f,r=i-f,a=i+f):(s=(o=m+x)+f,r=i+f,a=i-f),u=o),{x1:r,x2:i,x3:a,y1:o,y2:s,y3:u}}},{key:"drawTitle",value:function(e,t,n){var r,i,a,o=this.title,s=o.length;if(s){var u=mc(n.rtl,this.x,this.width);for(e.x=_d(this,n.titleAlign,n),t.textAlign=u.textAlign(n.titleAlign),t.textBaseline="middle",r=El(n.titleFont),i=n.titleSpacing,t.fillStyle=n.titleColor,t.font=r.string,a=0;a<s;++a)t.fillText(o[a],u.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+i,a+1===s&&(e.y+=n.titleMarginBottom-i)}}},{key:"_drawColorBox",value:function(e,t,n,r,i){var a=this.labelColors[n],o=this.labelPointStyles[n],s=i.boxHeight,u=i.boxWidth,l=i.boxPadding,c=El(i.bodyFont),f=_d(this,"left",i),h=r.x(f),d=s<c.lineHeight?(c.lineHeight-s)/2:0,p=t.y+d;if(i.usePointStyle){var v={radius:Math.min(u,s)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},y=r.leftForLtr(h,u)+u/2,g=p+s/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,sl(e,v,y,g),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,sl(e,v,y,g)}else{e.lineWidth=a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;var m=r.leftForLtr(h,u-l),b=r.leftForLtr(r.xPlus(h,1),u-l-2),x=_l(a.borderRadius);Object.values(x).some((function(e){return 0!==e}))?(e.beginPath(),e.fillStyle=i.multiKeyBackground,yl(e,{x:m,y:p,w:u,h:s,radius:x}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),yl(e,{x:b,y:p+1,w:u-2,h:s-2,radius:x}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(m,p,u,s),e.strokeRect(m,p,u,s),e.fillStyle=a.backgroundColor,e.fillRect(b,p+1,u-2,s-2))}e.fillStyle=this.labelTextColors[n]}},{key:"drawBody",value:function(e,t,n){var r,i,a,o,s,u,l,c=this.body,f=n.bodySpacing,h=n.bodyAlign,d=n.displayColors,p=n.boxHeight,v=n.boxWidth,y=n.boxPadding,g=El(n.bodyFont),m=g.lineHeight,b=0,x=mc(n.rtl,this.x,this.width),k=function(n){t.fillText(n,x.x(e.x+b),e.y+m/2),e.y+=m+f},_=x.textAlign(h);for(t.textAlign=h,t.textBaseline="middle",t.font=g.string,e.x=_d(this,_,n),t.fillStyle=n.bodyColor,Cs(this.beforeBody,k),b=d&&"right"!==_?"center"===h?v/2+y:v+2+y:0,o=0,u=c.length;o<u;++o){for(r=c[o],i=this.labelTextColors[o],t.fillStyle=i,Cs(r.before,k),a=r.lines,d&&a.length&&(this._drawColorBox(t,e,o,x,n),m=Math.max(g.lineHeight,p)),s=0,l=a.length;s<l;++s)k(a[s]),m=g.lineHeight;Cs(r.after,k)}b=0,m=g.lineHeight,Cs(this.afterBody,k),e.y-=f}},{key:"drawFooter",value:function(e,t,n){var r,i,a=this.footer,o=a.length;if(o){var s=mc(n.rtl,this.x,this.width);for(e.x=_d(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",r=El(n.footerFont),t.fillStyle=n.footerColor,t.font=r.string,i=0;i<o;++i)t.fillText(a[i],s.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+n.footerSpacing}}},{key:"drawBackground",value:function(e,t,n,r){var i=this.xAlign,a=this.yAlign,o=e.x,s=e.y,u=n.width,l=n.height,c=_l(r.cornerRadius),f=c.topLeft,h=c.topRight,d=c.bottomLeft,p=c.bottomRight;t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(o+f,s),"top"===a&&this.drawCaret(e,t,n,r),t.lineTo(o+u-h,s),t.quadraticCurveTo(o+u,s,o+u,s+h),"center"===a&&"right"===i&&this.drawCaret(e,t,n,r),t.lineTo(o+u,s+l-p),t.quadraticCurveTo(o+u,s+l,o+u-p,s+l),"bottom"===a&&this.drawCaret(e,t,n,r),t.lineTo(o+d,s+l),t.quadraticCurveTo(o,s+l,o,s+l-d),"center"===a&&"left"===i&&this.drawCaret(e,t,n,r),t.lineTo(o,s+f),t.quadraticCurveTo(o,s,o+f,s),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}},{key:"_updateAnimationTarget",value:function(e){var t=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){var a=pd[e.position].call(this,this._active,this._eventPosition);if(!a)return;var o=this._size=md(this,e),s=Object.assign({},a,this._size),u=xd(t,e,s),l=kd(e,s,u,t);r._to===l.x&&i._to===l.y||(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=o.width,this.height=o.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,l))}}},{key:"draw",value:function(e){var t=this.options.setContext(this.getContext()),n=this.opacity;if(n){this._updateAnimationTarget(t);var r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;var a=wl(t.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&o&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,r,t),bc(e,t.textDirection),i.y+=a.top,this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),xc(e,t.textDirection),e.restore())}}},{key:"getActiveElements",value:function(){return this._active||[]}},{key:"setActiveElements",value:function(e,t){var n=this,r=this._active,i=e.map((function(e){var t=e.datasetIndex,r=e.index,i=n.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[r],index:r}})),a=!Ps(r,i),o=this._positionChanged(i,t);(a||o)&&(this._active=i,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}},{key:"handleEvent",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;var r=this.options,i=this._active||[],a=this._getActiveElements(e,i,t,n),o=this._positionChanged(a,e),s=t||!Ps(a,i)||o;return s&&(this._active=a,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}},{key:"_getActiveElements",value:function(e,t,n,r){var i=this.options;if("mouseout"===e.type)return[];if(!r)return t;var a=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&a.reverse(),a}},{key:"_positionChanged",value:function(e,t){var n=this.caretX,r=this.caretY,i=this.options,a=pd[i.position].call(this,e,t);return!1!==a&&(n!==a.x||r!==a.y)}}]),n}(Zf);Sd.positioners=pd;var Td={id:"tooltip",_element:Sd,positioners:pd,afterInit:function(e,t,n){n&&(e.tooltip=new Sd({chart:e,options:n}))},beforeUpdate:function(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset:function(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw:function(e){var t=e.tooltip,n={tooltip:t};!1!==e.notifyPlugins("beforeTooltipDraw",n)&&(t&&t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n))},afterEvent:function(e,t){if(e.tooltip){var n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:function(e,t){return t.bodyFont.size},boxWidth:function(e,t){return t.bodyFont.size},multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:ms,title:function(e){if(e.length>0){var t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:ms,beforeBody:ms,beforeLabel:ms,label:function(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;var t=e.dataset.label||"";t&&(t+=": ");var n=e.formattedValue;return xs(n)||(t+=n),t},labelColor:function(e){var t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor:function(){return this.options.bodyColor},labelPointStyle:function(e){var t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:ms,afterBody:ms,beforeFooter:ms,footer:ms,afterFooter:ms}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:function(e){return"filter"!==e&&"itemSort"!==e&&"external"!==e},_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function Od(e,t,n,r){var i=e.indexOf(t);return-1===i?function(e,t,n,r){return"string"===typeof t?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n}(e,t,n,r):i!==e.lastIndexOf(t)?n:i}var Cd=function(e){Ja(n,e);var t=ro(n);function n(e){var r;return je(this,n),(r=t.call(this,e))._startValue=void 0,r._valueRange=0,r._addedLabels=[],r}return ze(n,[{key:"init",value:function(e){var t=this._addedLabels;if(t.length){var r,i=this.getLabels(),a=Ge(t);try{for(a.s();!(r=a.n()).done;){var o=r.value,s=o.index,u=o.label;i[s]===u&&i.splice(s,1)}}catch(l){a.e(l)}finally{a.f()}this._addedLabels=[]}ds(Za(n.prototype),"init",this).call(this,e)}},{key:"parse",value:function(e,t){if(xs(e))return null;var n=this.getLabels();return function(e,t){return null===e?null:cu(Math.round(e),0,t)}(t=isFinite(t)&&n[t]===e?t:Od(n,e,Ss(t,e),this._addedLabels),n.length-1)}},{key:"determineDataLimits",value:function(){var e=this.getUserBounds(),t=e.minDefined,n=e.maxDefined,r=this.getMinMax(!0),i=r.min,a=r.max;"ticks"===this.options.bounds&&(t||(i=0),n||(a=this.getLabels().length-1)),this.min=i,this.max=a}},{key:"buildTicks",value:function(){var e=this.min,t=this.max,n=this.options.offset,r=[],i=this.getLabels();i=0===e&&t===i.length-1?i:i.slice(e,t+1),this._valueRange=Math.max(i.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(var a=e;a<=t;a++)r.push({value:a});return r}},{key:"getLabelForValue",value:function(e){var t=this.getLabels();return e>=0&&e<t.length?t[e]:e}},{key:"configure",value:function(){ds(Za(n.prototype),"configure",this).call(this),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}},{key:"getPixelForValue",value:function(e){return"number"!==typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}},{key:"getPixelForTick",value:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}},{key:"getValueForPixel",value:function(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}},{key:"getBasePixel",value:function(){return this.bottom}}]),n}(ch);function Pd(e,t){var n,r,i,a,o=[],s=e.bounds,u=e.step,l=e.min,c=e.max,f=e.precision,h=e.count,d=e.maxTicks,p=e.maxDigits,v=e.includeBounds,y=u||1,g=d-1,m=t.min,b=t.max,x=!xs(l),k=!xs(c),_=!xs(h),w=(b-m)/(p+1),E=Js((b-m)/g/y)*y;if(E<1e-14&&!x&&!k)return[{value:m},{value:b}];(a=Math.ceil(b/E)-Math.floor(m/E))>g&&(E=Js(a*E/g/y)*y),xs(f)||(n=Math.pow(10,f),E=Math.ceil(E*n)/n),"ticks"===s?(r=Math.floor(m/E)*E,i=Math.ceil(b/E)*E):(r=m,i=b),x&&k&&u&&function(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e}((c-l)/u,E/1e3)?(E=(c-l)/(a=Math.round(Math.min((c-l)/E,d))),r=l,i=c):_?E=((i=k?c:i)-(r=x?l:r))/(a=h-1):a=eu(a=(i-r)/E,Math.round(a),E/1e3)?Math.round(a):Math.ceil(a);var S=Math.max(iu(E),iu(r));n=Math.pow(10,xs(f)?S:f),r=Math.round(r*n)/n,i=Math.round(i*n)/n;var T=0;for(x&&(v&&r!==l?(o.push({value:l}),r<l&&T++,eu(Math.round((r+T*E)*n)/n,l,Md(l,w,e))&&T++):r<l&&T++);T<a;++T)o.push({value:Math.round((r+T*E)*n)/n});return k&&v&&i!==c?o.length&&eu(o[o.length-1].value,c,Md(c,w,e))?o[o.length-1].value=c:o.push({value:c}):k&&i!==c||o.push({value:i}),o}function Md(e,t,n){var r=n.horizontal,i=nu(n.minRotation),a=(r?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/a,o)}Cd.id="category",Cd.defaults={ticks:{callback:Cd.prototype.getLabelForValue}};var Dd=function(e){Ja(n,e);var t=ro(n);function n(e){var r;return je(this,n),(r=t.call(this,e)).start=void 0,r.end=void 0,r._startValue=void 0,r._endValue=void 0,r._valueRange=0,r}return ze(n,[{key:"parse",value:function(e,t){return xs(e)||("number"===typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}},{key:"handleTickRangeOptions",value:function(){var e=this.options.beginAtZero,t=this.getUserBounds(),n=t.minDefined,r=t.maxDefined,i=this.min,a=this.max,o=function(e){return i=n?i:e},s=function(e){return a=r?a:e};if(e){var u=Xs(i),l=Xs(a);u<0&&l<0?s(0):u>0&&l>0&&o(0)}if(i===a){var c=1;(a>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(c=Math.abs(.05*a)),s(a+c),e||o(i-c)}this.min=i,this.max=a}},{key:"getTickLimit",value:function(){var e,t=this.options.ticks,n=t.maxTicksLimit,r=t.stepSize;return r?(e=Math.ceil(this.max/r)-Math.floor(this.min/r)+1)>1e3&&(console.warn("scales.".concat(this.id,".ticks.stepSize: ").concat(r," would result generating up to ").concat(e," ticks. Limiting to 1000.")),e=1e3):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}},{key:"computeTickLimit",value:function(){return Number.POSITIVE_INFINITY}},{key:"buildTicks",value:function(){var e=this.options,t=e.ticks,n=this.getTickLimit(),r=Pd({maxTicks:n=Math.max(2,n),bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&tu(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}},{key:"configure",value:function(){var e=this.ticks,t=this.min,r=this.max;if(ds(Za(n.prototype),"configure",this).call(this),this.options.offset&&e.length){var i=(r-t)/Math.max(e.length-1,1)/2;t-=i,r+=i}this._startValue=t,this._endValue=r,this._valueRange=r-t}},{key:"getLabelForValue",value:function(e){return gc(e,this.chart.options.locale,this.options.ticks.format)}}]),n}(ch),Id=function(e){Ja(n,e);var t=ro(n);function n(){return je(this,n),t.apply(this,arguments)}return ze(n,[{key:"determineDataLimits",value:function(){var e=this.getMinMax(!0),t=e.min,n=e.max;this.min=ws(t)?t:0,this.max=ws(n)?n:1,this.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){var e=this.isHorizontal(),t=e?this.width:this.height,n=nu(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,i.lineHeight/r))}},{key:"getPixelForValue",value:function(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}},{key:"getValueForPixel",value:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}]),n}(Dd);function Ad(e){return 1===e/Math.pow(10,Math.floor(Gs(e)))}Id.id="linear",Id.defaults={ticks:{callback:th.formatters.numeric}};var Nd=function(e){Ja(n,e);var t=ro(n);function n(e){var r;return je(this,n),(r=t.call(this,e)).start=void 0,r.end=void 0,r._startValue=void 0,r._valueRange=0,r}return ze(n,[{key:"parse",value:function(e,t){var n=Dd.prototype.parse.apply(this,[e,t]);if(0!==n)return ws(n)&&n>0?n:null;this._zero=!0}},{key:"determineDataLimits",value:function(){var e=this.getMinMax(!0),t=e.min,n=e.max;this.min=ws(t)?Math.max(0,t):null,this.max=ws(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}},{key:"handleTickRangeOptions",value:function(){var e=this.getUserBounds(),t=e.minDefined,n=e.maxDefined,r=this.min,i=this.max,a=function(e){return r=t?r:e},o=function(e){return i=n?i:e},s=function(e,t){return Math.pow(10,Math.floor(Gs(e))+t)};r===i&&(r<=0?(a(1),o(10)):(a(s(r,-1)),o(s(i,1)))),r<=0&&a(s(i,-1)),i<=0&&o(s(r,1)),this._zero&&this.min!==this._suggestedMin&&r===s(this.min,0)&&a(s(r,-1)),this.min=r,this.max=i}},{key:"buildTicks",value:function(){var e=this.options,t=function(e,t){var n=Math.floor(Gs(t.max)),r=Math.ceil(t.max/Math.pow(10,n)),i=[],a=Es(e.min,Math.pow(10,Math.floor(Gs(t.min)))),o=Math.floor(Gs(a)),s=Math.floor(a/Math.pow(10,o)),u=o<0?Math.pow(10,Math.abs(o)):1;do{i.push({value:a,major:Ad(a)}),10===++s&&(s=1,u=++o>=0?1:u),a=Math.round(s*Math.pow(10,o)*u)/u}while(o<n||o===n&&s<r);var l=Es(e.max,a);return i.push({value:l,major:Ad(a)}),i}({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&tu(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}},{key:"getLabelForValue",value:function(e){return void 0===e?"0":gc(e,this.chart.options.locale,this.options.ticks.format)}},{key:"configure",value:function(){var e=this.min;ds(Za(n.prototype),"configure",this).call(this),this._startValue=Gs(e),this._valueRange=Gs(this.max)-Gs(e)}},{key:"getPixelForValue",value:function(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Gs(e)-this._startValue)/this._valueRange)}},{key:"getValueForPixel",value:function(e){var t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}]),n}(ch);function Rd(e){var t=e.ticks;if(t.display&&e.display){var n=wl(t.backdropPadding);return Ss(t.font&&t.font.size,nl.font.size)+n.height}return 0}function Ld(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function Fd(e){for(var t,n,r,i={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},a=Object.assign({},i),o=[],s=[],u=e._pointLabels.length,l=e.options.pointLabels,c=l.centerPointLabels?qs/u:0,f=0;f<u;f++){var h=l.setContext(e.getPointLabelContext(f));s[f]=h.padding;var d=e.getPointPosition(f,e.drawingArea+s[f],c),p=El(h.font),v=(t=e.ctx,n=p,r=ks(r=e._pointLabels[f])?r:[r],{w:il(t,n.string,r),h:r.length*n.lineHeight});o[f]=v;var y=uu(e.getIndexAngle(f)+c),g=Math.round(ru(y));jd(a,i,y,Ld(g,d.x,v.w,0,180),Ld(g,d.y,v.h,90,270))}e.setCenterPoint(i.l-a.l,a.r-i.r,i.t-a.t,a.b-i.b),e._pointLabelItems=function(e,t,n){for(var r=[],i=e._pointLabels.length,a=e.options,o=Rd(a)/2,s=e.drawingArea,u=a.pointLabels.centerPointLabels?qs/i:0,l=0;l<i;l++){var c=e.getPointPosition(l,s+o+n[l],u),f=Math.round(ru(uu(c.angle+$s))),h=t[l],d=Bd(c.y,h.h,f),p=Vd(f),v=zd(c.x,h.w,p);r.push({x:c.x,y:d,textAlign:p,left:v,top:d,right:v+h.w,bottom:d+h.h})}return r}(e,o,s)}function jd(e,t,n,r,i){var a=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n)),s=0,u=0;r.start<t.l?(s=(t.l-r.start)/a,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),i.start<t.t?(u=(t.t-i.start)/o,e.t=Math.min(e.t,t.t-u)):i.end>t.b&&(u=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+u))}function Vd(e){return 0===e||180===e?"center":e<180?"left":"right"}function zd(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function Bd(e,t,n){return 90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t),e}function qd(e,t,n,r){var i=e.ctx;if(n)i.arc(e.xCenter,e.yCenter,t,0,Us);else{var a=e.getPointPosition(0,t);i.moveTo(a.x,a.y);for(var o=1;o<r;o++)a=e.getPointPosition(o,t),i.lineTo(a.x,a.y)}}Nd.id="logarithmic",Nd.defaults={ticks:{callback:th.formatters.logarithmic,major:{enabled:!0}}};var Ud=function(e){Ja(n,e);var t=ro(n);function n(e){var r;return je(this,n),(r=t.call(this,e)).xCenter=void 0,r.yCenter=void 0,r.drawingArea=void 0,r._pointLabels=[],r._pointLabelItems=[],r}return ze(n,[{key:"setDimensions",value:function(){var e=this._padding=wl(Rd(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}},{key:"determineDataLimits",value:function(){var e=this.getMinMax(!1),t=e.min,n=e.max;this.min=ws(t)&&!isNaN(t)?t:0,this.max=ws(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){return Math.ceil(this.drawingArea/Rd(this.options))}},{key:"generateTickLabels",value:function(e){var t=this;Dd.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((function(e,n){var r=Os(t.options.pointLabels.callback,[e,n],t);return r||0===r?r:""})).filter((function(e,n){return t.chart.getDataVisibility(n)}))}},{key:"fit",value:function(){var e=this.options;e.display&&e.pointLabels.display?Fd(this):this.setCenterPoint(0,0,0,0)}},{key:"setCenterPoint",value:function(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}},{key:"getIndexAngle",value:function(e){return uu(e*(Us/(this._pointLabels.length||1))+nu(this.options.startAngle||0))}},{key:"getDistanceFromCenterForValue",value:function(e){if(xs(e))return NaN;var t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}},{key:"getValueForDistanceFromCenter",value:function(e){if(xs(e))return NaN;var t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}},{key:"getPointLabelContext",value:function(e){var t=this._pointLabels||[];if(e>=0&&e<t.length){var n=t[e];return function(e,t,n){return Tl(e,{label:n,index:t,type:"pointLabel"})}(this.getContext(),e,n)}}},{key:"getPointPosition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.getIndexAngle(e)-$s+n;return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter,angle:r}}},{key:"getPointPositionForValue",value:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}},{key:"getBasePosition",value:function(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}},{key:"getPointLabelPosition",value:function(e){var t=this._pointLabelItems[e];return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}},{key:"drawBackground",value:function(){var e=this.options,t=e.backgroundColor,n=e.grid.circular;if(t){var r=this.ctx;r.save(),r.beginPath(),qd(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}},{key:"drawGrid",value:function(){var e,t,n,r=this,i=this.ctx,a=this.options,o=a.angleLines,s=a.grid,u=this._pointLabels.length;if(a.pointLabels.display&&function(e,t){for(var n=e.ctx,r=e.options.pointLabels,i=t-1;i>=0;i--){var a=r.setContext(e.getPointLabelContext(i)),o=El(a.font),s=e._pointLabelItems[i],u=s.x,l=s.y,c=s.textAlign,f=s.left,h=s.top,d=s.right,p=s.bottom,v=a.backdropColor;if(!xs(v)){var y=wl(a.backdropPadding);n.fillStyle=v,n.fillRect(f-y.left,h-y.top,d-f+y.width,p-h+y.height)}dl(n,e._pointLabels[i],u,l+o.lineHeight/2,o,{color:a.color,textAlign:c,textBaseline:"middle"})}}(this,u),s.display&&this.ticks.forEach((function(e,n){if(0!==n){t=r.getDistanceFromCenterForValue(e.value);var i=s.setContext(r.getContext(n-1));!function(e,t,n,r){var i=e.ctx,a=t.circular,o=t.color,s=t.lineWidth;!a&&!r||!o||!s||n<0||(i.save(),i.strokeStyle=o,i.lineWidth=s,i.setLineDash(t.borderDash),i.lineDashOffset=t.borderDashOffset,i.beginPath(),qd(e,n,a,r),i.closePath(),i.stroke(),i.restore())}(r,i,t,u)}})),o.display){for(i.save(),e=u-1;e>=0;e--){var l=o.setContext(this.getPointLabelContext(e)),c=l.color,f=l.lineWidth;f&&c&&(i.lineWidth=f,i.strokeStyle=c,i.setLineDash(l.borderDash),i.lineDashOffset=l.borderDashOffset,t=this.getDistanceFromCenterForValue(a.ticks.reverse?this.min:this.max),n=this.getPointPosition(e,t),i.beginPath(),i.moveTo(this.xCenter,this.yCenter),i.lineTo(n.x,n.y),i.stroke())}i.restore()}}},{key:"drawBorder",value:function(){}},{key:"drawLabels",value:function(){var e=this,t=this.ctx,n=this.options,r=n.ticks;if(r.display){var i,a,o=this.getIndexAngle(0);t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((function(o,s){if(0!==s||n.reverse){var u=r.setContext(e.getContext(s)),l=El(u.font);if(i=e.getDistanceFromCenterForValue(e.ticks[s].value),u.showLabelBackdrop){t.font=l.string,a=t.measureText(o.label).width,t.fillStyle=u.backdropColor;var c=wl(u.backdropPadding);t.fillRect(-a/2-c.left,-i-l.size/2-c.top,a+c.width,l.size+c.height)}dl(t,o.label,0,-i,l,{color:u.color})}})),t.restore()}}},{key:"drawTitle",value:function(){}}]),n}(Dd);Ud.id="radialLinear",Ud.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:th.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:function(e){return e},padding:5,centerPointLabels:!1}},Ud.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Ud.descriptors={angleLines:{_fallback:"grid"}};var Wd={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Qd=Object.keys(Wd);function Hd(e,t){return e-t}function $d(e,t){if(xs(t))return null;var n=e._adapter,r=e._parseOpts,i=r.parser,a=r.round,o=r.isoWeekday,s=t;return"function"===typeof i&&(s=i(s)),ws(s)||(s="string"===typeof i?n.parse(s,i):n.parse(s)),null===s?null:(a&&(s="week"!==a||!Zs(o)&&!0!==o?n.startOf(s,a):n.startOf(s,"isoWeek",o)),+s)}function Yd(e,t,n,r){for(var i=Qd.length,a=Qd.indexOf(e);a<i-1;++a){var o=Wd[Qd[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(s*o.size))<=r)return Qd[a]}return Qd[i-1]}function Kd(e,t,n){if(n){if(n.length){var r=Ol(n,t),i=r.lo,a=r.hi;e[n[i]>=t?n[i]:n[a]]=!0}}else e[t]=!0}function Gd(e,t,n){var r,i,a=[],o={},s=t.length;for(r=0;r<s;++r)o[i=t[r]]=r,a.push({value:i,major:!1});return 0!==s&&n?function(e,t,n,r){var i,a,o=e._adapter,s=+o.startOf(t[0].value,r),u=t[t.length-1].value;for(i=s;i<=u;i=+o.add(i,1,r))(a=n[i])>=0&&(t[a].major=!0);return t}(e,a,o,n):a}var Xd=function(e){Ja(n,e);var t=ro(n);function n(e){var r;return je(this,n),(r=t.call(this,e))._cache={data:[],labels:[],all:[]},r._unit="day",r._majorUnit=void 0,r._offsets={},r._normalized=!1,r._parseOpts=void 0,r}return ze(n,[{key:"init",value:function(e,t){var r=e.time||(e.time={}),i=this._adapter=new hf._date(e.adapters.date);Ns(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},ds(Za(n.prototype),"init",this).call(this,e),this._normalized=t.normalized}},{key:"parse",value:function(e,t){return void 0===e?null:$d(this,e)}},{key:"beforeLayout",value:function(){ds(Za(n.prototype),"beforeLayout",this).call(this),this._cache={data:[],labels:[],all:[]}}},{key:"determineDataLimits",value:function(){var e=this.options,t=this._adapter,n=e.time.unit||"day",r=this.getUserBounds(),i=r.min,a=r.max,o=r.minDefined,s=r.maxDefined;function u(e){o||isNaN(e.min)||(i=Math.min(i,e.min)),s||isNaN(e.max)||(a=Math.max(a,e.max))}o&&s||(u(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||u(this.getMinMax(!1))),i=ws(i)&&!isNaN(i)?i:+t.startOf(Date.now(),n),a=ws(a)&&!isNaN(a)?a:+t.endOf(Date.now(),n)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}},{key:"_getLabelBounds",value:function(){var e=this.getLabelTimestamps(),t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}},{key:"buildTicks",value:function(){var e=this.options,t=e.time,n=e.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);var i=this.min,a=function(e,t,n){for(var r=0,i=e.length;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}(r,i,this.max);return this._unit=t.unit||(n.autoSkip?Yd(t.minUnit,this.min,this.max,this._getLabelCapacity(i)):function(e,t,n,r,i){for(var a=Qd.length-1;a>=Qd.indexOf(n);a--){var o=Qd[a];if(Wd[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return Qd[n?Qd.indexOf(n):0]}(this,a.length,t.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(e){for(var t=Qd.indexOf(e)+1,n=Qd.length;t<n;++t)if(Wd[Qd[t]].common)return Qd[t]}(this._unit):void 0,this.initOffsets(r),e.reverse&&a.reverse(),Gd(this,a,this._majorUnit)}},{key:"initOffsets",value:function(e){var t,n,r=0,i=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),r=1===e.length?1-t:(this.getDecimalForValue(e[1])-t)/2,n=this.getDecimalForValue(e[e.length-1]),i=1===e.length?n:(n-this.getDecimalForValue(e[e.length-2]))/2);var a=e.length<3?.5:.25;r=cu(r,0,a),i=cu(i,0,a),this._offsets={start:r,end:i,factor:1/(r+1+i)}}},{key:"_generate",value:function(){var e,t,n=this._adapter,r=this.min,i=this.max,a=this.options,o=a.time,s=o.unit||Yd(o.minUnit,r,i,this._getLabelCapacity(r)),u=Ss(o.stepSize,1),l="week"===s&&o.isoWeekday,c=Zs(l)||!0===l,f={},h=r;if(c&&(h=+n.startOf(h,"isoWeek",l)),h=+n.startOf(h,c?"day":s),n.diff(i,r,s)>1e5*u)throw new Error(r+" and "+i+" are too far apart with stepSize of "+u+" "+s);var d="data"===a.ticks.source&&this.getDataTimestamps();for(e=h,t=0;e<i;e=+n.add(e,u,s),t++)Kd(f,e,d);return e!==i&&"ticks"!==a.bounds&&1!==t||Kd(f,e,d),Object.keys(f).sort((function(e,t){return e-t})).map((function(e){return+e}))}},{key:"getLabelForValue",value:function(e){var t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}},{key:"_tickFormatFunction",value:function(e,t,n,r){var i=this.options,a=i.time.displayFormats,o=this._unit,s=this._majorUnit,u=o&&a[o],l=s&&a[s],c=n[t],f=s&&l&&c&&c.major,h=this._adapter.format(e,r||(f?l:u)),d=i.ticks.callback;return d?Os(d,[h,t,n],this):h}},{key:"generateTickLabels",value:function(e){var t,n,r;for(t=0,n=e.length;t<n;++t)(r=e[t]).label=this._tickFormatFunction(r.value,t,e)}},{key:"getDecimalForValue",value:function(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}},{key:"getPixelForValue",value:function(e){var t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}},{key:"getValueForPixel",value:function(e){var t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}},{key:"_getLabelSize",value:function(e){var t=this.options.ticks,n=this.ctx.measureText(e).width,r=nu(this.isHorizontal()?t.maxRotation:t.minRotation),i=Math.cos(r),a=Math.sin(r),o=this._resolveTickFontOptions(0).size;return{w:n*i+o*a,h:n*a+o*i}}},{key:"_getLabelCapacity",value:function(e){var t=this.options.time,n=t.displayFormats,r=n[t.unit]||n.millisecond,i=this._tickFormatFunction(e,0,Gd(this,[e],this._majorUnit),r),a=this._getLabelSize(i),o=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return o>0?o:1}},{key:"getDataTimestamps",value:function(){var e,t,n=this._cache.data||[];if(n.length)return n;var r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(e=0,t=r.length;e<t;++e)n=n.concat(r[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}},{key:"getLabelTimestamps",value:function(){var e,t,n=this._cache.labels||[];if(n.length)return n;var r=this.getLabels();for(e=0,t=r.length;e<t;++e)n.push($d(this,r[e]));return this._cache.labels=this._normalized?n:this.normalize(n)}},{key:"normalize",value:function(e){return Il(e.sort(Hd))}}]),n}(ch);function Jd(e,t,n){var r,i,a,o,s=0,u=e.length-1;if(n){if(t>=e[s].pos&&t<=e[u].pos){var l=Cl(e,"pos",t);s=l.lo,u=l.hi}var c=e[s];r=c.pos,a=c.time;var f=e[u];i=f.pos,o=f.time}else{if(t>=e[s].time&&t<=e[u].time){var h=Cl(e,"time",t);s=h.lo,u=h.hi}var d=e[s];r=d.time,a=d.pos;var p=e[u];i=p.time,o=p.pos}var v=i-r;return v?a+(o-a)*(t-r)/v:a}Xd.id="time",Xd.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};var Zd=function(e){Ja(n,e);var t=ro(n);function n(e){var r;return je(this,n),(r=t.call(this,e))._table=[],r._minPos=void 0,r._tableRange=void 0,r}return ze(n,[{key:"initOffsets",value:function(){var e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=Jd(t,this.min),this._tableRange=Jd(t,this.max)-this._minPos,ds(Za(n.prototype),"initOffsets",this).call(this,e)}},{key:"buildLookupTable",value:function(e){var t,n,r,i,a,o=this.min,s=this.max,u=[],l=[];for(t=0,n=e.length;t<n;++t)(i=e[t])>=o&&i<=s&&u.push(i);if(u.length<2)return[{time:o,pos:0},{time:s,pos:1}];for(t=0,n=u.length;t<n;++t)a=u[t+1],r=u[t-1],i=u[t],Math.round((a+r)/2)!==i&&l.push({time:i,pos:t/(n-1)});return l}},{key:"_getTimestampsForTable",value:function(){var e=this._cache.all||[];if(e.length)return e;var t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e}},{key:"getDecimalForValue",value:function(e){return(Jd(this._table,e)-this._minPos)/this._tableRange}},{key:"getValueForPixel",value:function(e){var t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return Jd(this._table,n*this._tableRange+this._minPos,!0)}}]),n}(Xd);Zd.id="timeseries",Zd.defaults=Xd.defaults;var ep=["height","width","redraw","datasetIdKey","type","data","options","plugins","fallbackContent"],tp="label";function np(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function rp(e,t){e.labels=t}function ip(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tp,r=[];e.datasets=t.map((function(t){var i=e.datasets.find((function(e){return e[n]===t[n]}));return i&&t.data&&!r.includes(i)?(r.push(i),Object.assign(i,t),i):a({},t)}))}function ap(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tp,n={labels:[],datasets:[]};return rp(n,e.labels),ip(n,e.datasets,t),n}function op(t,n){var r=t.height,i=void 0===r?150:r,o=t.width,s=void 0===o?300:o,u=t.redraw,l=void 0!==u&&u,c=t.datasetIdKey,f=t.type,h=t.data,d=t.options,p=t.plugins,v=void 0===p?[]:p,y=t.fallbackContent,g=function(e,t){if(null==e)return{};var n,r,i=W(e,t);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)&&(i[n]=e[n])}return i}(t,ep),m=(0,e.useRef)(null),b=(0,e.useRef)(),x=function(){m.current&&(b.current=new jh(m.current,{type:f,data:ap(h,c),options:d,plugins:v}),np(n,b.current))},k=function(){np(n,null),b.current&&(b.current.destroy(),b.current=null)};return(0,e.useEffect)((function(){var e,t;!l&&b.current&&d&&(e=b.current,t=d,e.options=a({},t))}),[l,d]),(0,e.useEffect)((function(){!l&&b.current&&rp(b.current.config.data,h.labels)}),[l,h.labels]),(0,e.useEffect)((function(){!l&&b.current&&h.datasets&&ip(b.current.config.data,h.datasets,c)}),[l,h.datasets]),(0,e.useEffect)((function(){b.current&&(l?(k(),setTimeout(x)):b.current.update())}),[l,d,h.labels,h.datasets]),(0,e.useEffect)((function(){return x(),function(){return k()}}),[]),e.createElement("canvas",Object.assign({ref:m,role:"img",height:i,width:s},g),y)}var sp=(0,e.forwardRef)(op);function up(t,n){return jh.register(n),(0,e.forwardRef)((function(n,r){return e.createElement(sp,Object.assign({},n,{ref:r,type:t}))}))}var lp=up("pie",sf);function cp(){return(0,Ua.jsxs)("div",{className:"bg-charcoal",children:[(0,Ua.jsx)("h1",{children:"Vote Count"}),(0,Ua.jsx)(lp,{data:{labels:["Red","Blue"],datasets:[{label:"# of votes",data:[5,20],backgroundColor:["red","blue"]}]}})]})}function fp(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function hp(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){fp(a,r,i,o,s,"next",e)}function s(e){fp(a,r,i,o,s,"throw",e)}o(void 0)}))}}jh.register(Hh,Td,dd);var dp,pp,vp,yp,gp=n(757),mp=n.n(gp);function bp(t,n){var r=Ya(null===n||void 0===n?void 0:n.client);$a(t,qa.Mutation);var i=(0,e.useState)({called:!1,loading:!1,client:r}),a=i[0],o=i[1],s=(0,e.useRef)({result:a,mutationId:0,isMounted:!0,client:r,mutation:t,options:n});Object.assign(s.current,{client:r,options:n,mutation:t});var u=(0,e.useCallback)((function(e){void 0===e&&(e={});var t=s.current,n=t.client,r=t.options,i=t.mutation,a=ye(ye({},r),{mutation:i});s.current.result.loading||a.ignoreResults||o(s.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:n});var u=++s.current.mutationId,l=Hi(a,e);return n.mutate(l).then((function(t){var r,i,c=t.data,f=t.errors,h=f&&f.length>0?new Br({graphQLErrors:f}):void 0;if(u===s.current.mutationId&&!l.ignoreResults){var d={called:!0,loading:!1,data:c,error:h,client:n};s.current.isMounted&&!Vn(s.current.result,d)&&o(s.current.result=d)}return null===(r=a.onCompleted)||void 0===r||r.call(a,t.data),null===(i=e.onCompleted)||void 0===i||i.call(e,t.data),t})).catch((function(t){var r,i;if(u===s.current.mutationId&&s.current.isMounted){var c={loading:!1,error:t,data:void 0,called:!0,client:n};Vn(s.current.result,c)||o(s.current.result=c)}if(a.onError||l.onError)return null===(r=a.onError)||void 0===r||r.call(a,t),null===(i=e.onError)||void 0===i||i.call(e,t),{data:void 0,errors:t};throw t}))}),[]),l=(0,e.useCallback)((function(){o({called:!1,loading:!1,client:r})}),[]);return(0,e.useEffect)((function(){return function(){s.current.isMounted=!1}}),[]),[u,ye({reset:l},a)]}var xp=Ko(dp||(dp=Ga(["\n  mutation login($username: String!, $password: String!) {\n    login(username: $username, password: $password) {\n      token\n      user {\n        id\n        username\n      }\n    }\n  }\n"]))),kp=Ko(pp||(pp=Ga(["\n  mutation addUser($username: String!, $password: String!) {\n    addUser(username: $username, password: $password) {\n      token\n      user {\n        id\n        username\n      }\n    }\n  }\n"]))),_p=(Ko(vp||(vp=Ga(["\n  mutation vote($vote: Int!, $matchup_id: Int!) {\n    vote(vote: $vote, matchup_id: $matchup_id) {\n      id\n      vote\n      matchup_id\n      user_id\n    }\n  }\n"]))),Ko(yp||(yp=Ga(["\n  mutation comment($comment: String!, $color: Int!, $matchup_id: Int!) {\n    comment(comment: $comment, color: $color, matchup_id: $matchup_id) {\n      id\n      comment\n      color\n      matchup_id\n      user_id\n      username\n    }\n  }\n"]))),function(){var t=We((0,e.useState)({username:"",password:""}),2),n=t[0],i=t[1],o=We(bp(xp),1)[0],s=We(bp(kp),1)[0],u=function(e){var t=e.target,o=t.name,s=t.value;i(a(a({},n),{},r({},o,s)))},l=function(){var e=hp(mp().mark((function e(t){var r,o;return mp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.prev=1,e.next=4,s({variables:a({},n)});case 4:r=e.sent,o=r.data,cs.login(o.addUser.token),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),console.error(e.t0);case 12:i({username:"",password:""});case 13:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(t){return e.apply(this,arguments)}}(),c=function(){var e=hp(mp().mark((function e(t){var r,s;return mp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.prev=1,e.next=4,o({variables:a({},n)});case 4:r=e.sent,s=r.data,cs.login(s.login.token),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),console.error(e.t0);case 12:i({username:"",password:""});case 13:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(t){return e.apply(this,arguments)}}();return(0,Ua.jsxs)("form",{className:"bg-charcoal",children:[(0,Ua.jsx)("h2",{className:"font-login text-2xl text-maizecrayola text-center",children:"Register for the Battle!"}),(0,Ua.jsxs)("div",{children:[(0,Ua.jsx)("label",{className:"sr-only",htmlFor:"username",children:"Username:"}),(0,Ua.jsx)("input",{type:"text",name:"username",id:"username",value:n.username,onChange:u,placeholder:"USERNAME",className:"box-border w-full bg-zinc-400 placeholder:text-slate-500 placeholder:text-center py-5 px-12 my-3 rounded-none"})]}),(0,Ua.jsxs)("div",{children:[(0,Ua.jsx)("label",{className:"sr-only",htmlFor:"password",children:"Password:"}),(0,Ua.jsx)("input",{type:"password",name:"password",id:"password",value:n.password,onChange:u,placeholder:"PASSWORD",className:"box-border w-full bg-zinc-400 placeholder:text-slate-500 placeholder:text-center py-5 px-12 my-3 rounded-none"})]}),(0,Ua.jsxs)("div",{className:"flex mt-3",children:[(0,Ua.jsx)("button",{type:"button",onClick:c,className:"font-login font-bold mr-4 bg-maizecrayola py-5 pl-10 pr-10",children:"LOGIN"}),(0,Ua.jsx)("button",{type:"button",onClick:l,className:"font-login font-bold bg-maizecrayola py-5 pl-9 pr-8",children:"SIGN UP"})]})]})}),wp=function(){return(0,Ua.jsx)("section",{className:"flex flex-1",children:(0,Ua.jsxs)("div",{className:"flex w-full flex-row lg:flex-row",children:[(0,Ua.jsx)("div",{className:"w-full lg:w-1/2 lion"}),(0,Ua.jsx)("div",{className:"w-full lg:w-1/2 flex justify-center items-center flex-1",children:(0,Ua.jsx)("div",{children:(0,Ua.jsx)(_p,{})})})]})})};var Ep,Sp=function(){return(0,Ua.jsx)("footer",{className:"bg-charcoal p-2 flex justify-end",children:(0,Ua.jsxs)("p",{children:["\xa9 2022"," ",(0,Ua.jsx)("a",{href:"https://github.com/cerihaf/react-showdown",children:"Made with \u2764\ufe0f"})]})})},Tp=Mn({uri:"/graphql"}),Op=new $i({link:(Ep=function(e,t){var n=t.headers,r=localStorage.getItem("id_token");return{headers:a(a({},n),{},{authorization:r?"Bearer ".concat(r):""})}},new nn((function(e,t){var n=ge(e,[]);return new Ct((function(r){var i,a=!1;return Promise.resolve(n).then((function(t){return Ep(t,e.getContext())})).then(e.setContext).then((function(){a||(i=t(e).subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}))})).catch(r.error.bind(r)),function(){a=!0,i&&i.unsubscribe()}}))}))).concat(Tp),cache:new ja});var Cp=function(){return(0,Ua.jsx)(Ba,{client:Op,children:(0,Ua.jsx)(ae,{children:(0,Ua.jsxs)("div",{className:"flex flex-col min-h-screen",children:[(0,Ua.jsx)(fs,{}),(0,Ua.jsx)("main",{className:"flex-1 flex justify-center bg-charcoal",children:(0,Ua.jsxs)(ie,{children:[(0,Ua.jsx)(J,{exact:!0,path:"/",component:ss}),(0,Ua.jsx)(J,{exact:!0,path:"/chart",component:cp}),(0,Ua.jsx)(J,{exact:!0,path:"/login",component:wp})]})}),(0,Ua.jsx)(Sp,{})]})})})},Pp=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function Mp(e,t){navigator.serviceWorker.register(e).then((function(e){e.onupdatefound=function(){var n=e.installing;null!=n&&(n.onstatechange=function(){"installed"===n.state&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://bit.ly/CRA-PWA."),t&&t.onUpdate&&t.onUpdate(e)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(e)))})}})).catch((function(e){console.error("Error during service worker registration:",e)}))}t.render((0,Ua.jsx)(e.StrictMode,{children:(0,Ua.jsx)(Cp,{})}),document.getElementById("root")),function(e){if("serviceWorker"in navigator){if(new URL("",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(function(){var t="".concat("","/service-worker.js");Pp?(!function(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then((function(n){var r=n.headers.get("content-type");404===n.status||null!=r&&-1===r.indexOf("javascript")?navigator.serviceWorker.ready.then((function(e){e.unregister().then((function(){window.location.reload()}))})):Mp(e,t)})).catch((function(){console.log("No internet connection found. App is running in offline mode.")}))}(t,e),navigator.serviceWorker.ready.then((function(){console.log("This web app is being served cache-first by a service worker. To learn more, visit https://bit.ly/CRA-PWA")}))):Mp(t,e)}))}}()}()}();
  //# sourceMappingURL=main.159f75d2.js.map