@daoyi/nmtl-ui 1.1.24 → 1.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import t,{Component as r,useRef as n,useState as o,useEffect as a,forwardRef as i,useCallback as s,createElement as c,useLayoutEffect as u,useMemo as l}from"react";import f from"prop-types";import{B as m}from"./react-router-dom-6469c1df.js";import{i as d,_ as p,a as h,b as v,c as g}from"./isObjectLike-4a391d5d.js";import{c as y,g as b}from"./index-767b2843.js";import*as E from"react-dom";import{createPortal as w}from"react-dom";import{u as _,n as x,T as O,_ as k,g as j,m as R,d as C,w as S,a as T,b as A,c as L,e as M,f as D,h as N}from"./capitalize-e92d0507.js";import{S as P}from"./Slide-ef2f2933.js";import{u as I,T as B,g as q}from"./utils-256c7d92.js";import{u as U}from"./useForkRef-58783e4b.js";import{o as F}from"./ownerDocument-e276d08d.js";import{u as z}from"./useEventCallback-8817ed1c.js";import{S as H}from"./SvgIcon-ae419ec7.js";import{i as $,T as W,_ as V,M as G,a as Z,I as X,b as K,c as Y,f as J,g as Q,F as ee,E as te,d as re,D as ne,e as oe,h as ae,j as ie,k as se,P as ce,l as ue,o as le,s as fe,m as me,n as de,p as pe,R as he,q as ve,u as ge,L as ye}from"./muiNotifcationReducer-75669c4f.js";import be from"http";import Ee from"https";import we from"url";import _e from"stream";import xe from"assert";import Oe from"tty";import ke from"util";import je from"fs";import Re from"net";import Ce from"zlib";import Se from"./Loading.js";import"react-is";import{useRouteMatch as Te,useHistory as Ae,Switch as Le,Route as Me}from"react-router";import"./debounce-65582d84.js";import"./style-inject.es-1f59c1d0.js";import"./CircularProgress-537ad812.js";var De=function(){this.__data__=[],this.size=0};var Ne=function(e,t){return e===t||e!=e&&t!=t};var Pe=function(e,t){for(var r=e.length;r--;)if(Ne(e[r][0],t))return r;return-1},Ie=Array.prototype.splice;var Be=function(e){var t=this.__data__,r=Pe(t,e);return!(r<0)&&(r==t.length-1?t.pop():Ie.call(t,r,1),--this.size,!0)};var qe=function(e){var t=this.__data__,r=Pe(t,e);return r<0?void 0:t[r][1]};var Ue=function(e){return Pe(this.__data__,e)>-1};var Fe=function(e,t){var r=this.__data__,n=Pe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function ze(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ze.prototype.clear=De,ze.prototype.delete=Be,ze.prototype.get=qe,ze.prototype.has=Ue,ze.prototype.set=Fe;var He=ze;var $e=function(){this.__data__=new He,this.size=0};var We=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var Ve=function(e){return this.__data__.get(e)};var Ge=function(e){return this.__data__.has(e)};var Ze,Xe=function(e){if(!d(e))return!1;var t=p(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Ke=h["__core-js_shared__"],Ye=(Ze=/[^.]+$/.exec(Ke&&Ke.keys&&Ke.keys.IE_PROTO||""))?"Symbol(src)_1."+Ze:"";var Je=function(e){return!!Ye&&Ye in e},Qe=Function.prototype.toString;var et=function(e){if(null!=e){try{return Qe.call(e)}catch(e){}try{return e+""}catch(e){}}return""},tt=/^\[object .+?Constructor\]$/,rt=Function.prototype,nt=Object.prototype,ot=rt.toString,at=nt.hasOwnProperty,it=RegExp("^"+ot.call(at).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var st=function(e){return!(!d(e)||Je(e))&&(Xe(e)?it:tt).test(et(e))};var ct=function(e,t){return null==e?void 0:e[t]};var ut=function(e,t){var r=ct(e,t);return st(r)?r:void 0},lt=ut(h,"Map"),ft=ut(Object,"create");var mt=function(){this.__data__=ft?ft(null):{},this.size=0};var dt=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pt=Object.prototype.hasOwnProperty;var ht=function(e){var t=this.__data__;if(ft){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return pt.call(t,e)?t[e]:void 0},vt=Object.prototype.hasOwnProperty;var gt=function(e){var t=this.__data__;return ft?void 0!==t[e]:vt.call(t,e)};var yt=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ft&&void 0===t?"__lodash_hash_undefined__":t,this};function bt(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}bt.prototype.clear=mt,bt.prototype.delete=dt,bt.prototype.get=ht,bt.prototype.has=gt,bt.prototype.set=yt;var Et=bt;var wt=function(){this.size=0,this.__data__={hash:new Et,map:new(lt||He),string:new Et}};var _t=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var xt=function(e,t){var r=e.__data__;return _t(t)?r["string"==typeof t?"string":"hash"]:r.map};var Ot=function(e){var t=xt(this,e).delete(e);return this.size-=t?1:0,t};var kt=function(e){return xt(this,e).get(e)};var jt=function(e){return xt(this,e).has(e)};var Rt=function(e,t){var r=xt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Ct(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ct.prototype.clear=wt,Ct.prototype.delete=Ot,Ct.prototype.get=kt,Ct.prototype.has=jt,Ct.prototype.set=Rt;var St=Ct;var Tt=function(e,t){var r=this.__data__;if(r instanceof He){var n=r.__data__;if(!lt||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new St(n)}return r.set(e,t),this.size=r.size,this};function At(e){var t=this.__data__=new He(e);this.size=t.size}At.prototype.clear=$e,At.prototype.delete=We,At.prototype.get=Ve,At.prototype.has=Ge,At.prototype.set=Tt;var Lt=At,Mt=function(){try{var e=ut(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Dt=function(e,t,r){"__proto__"==t&&Mt?Mt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};var Nt=function(e,t,r){(void 0!==r&&!Ne(e[t],r)||void 0===r&&!(t in e))&&Dt(e,t,r)};var Pt=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var c=i[e?s:++o];if(!1===r(a[c],c,a))break}return t}}(),It=y((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?h.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=a?a(r):new e.constructor(r);return e.copy(n),n}})),Bt=h.Uint8Array;var qt=function(e){var t=new e.constructor(e.byteLength);return new Bt(t).set(new Bt(e)),t};var Ut=function(e,t){var r=t?qt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)};var Ft=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},zt=Object.create,Ht=function(){function e(){}return function(t){if(!d(t))return{};if(zt)return zt(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var $t=function(e,t){return function(r){return e(t(r))}}(Object.getPrototypeOf,Object),Wt=Object.prototype;var Vt=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Wt)};var Gt=function(e){return"function"!=typeof e.constructor||Vt(e)?{}:Ht($t(e))};var Zt=function(e){return v(e)&&"[object Arguments]"==p(e)},Xt=Object.prototype,Kt=Xt.hasOwnProperty,Yt=Xt.propertyIsEnumerable,Jt=Zt(function(){return arguments}())?Zt:function(e){return v(e)&&Kt.call(e,"callee")&&!Yt.call(e,"callee")},Qt=Array.isArray;var er=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var tr=function(e){return null!=e&&er(e.length)&&!Xe(e)};var rr=function(e){return v(e)&&tr(e)};var nr=function(){return!1},or=y((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?h.Buffer:void 0,a=(o?o.isBuffer:void 0)||nr;e.exports=a})),ar=Function.prototype,ir=Object.prototype,sr=ar.toString,cr=ir.hasOwnProperty,ur=sr.call(Object);var lr=function(e){if(!v(e)||"[object Object]"!=p(e))return!1;var t=$t(e);if(null===t)return!0;var r=cr.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&sr.call(r)==ur},fr={};fr["[object Float32Array]"]=fr["[object Float64Array]"]=fr["[object Int8Array]"]=fr["[object Int16Array]"]=fr["[object Int32Array]"]=fr["[object Uint8Array]"]=fr["[object Uint8ClampedArray]"]=fr["[object Uint16Array]"]=fr["[object Uint32Array]"]=!0,fr["[object Arguments]"]=fr["[object Array]"]=fr["[object ArrayBuffer]"]=fr["[object Boolean]"]=fr["[object DataView]"]=fr["[object Date]"]=fr["[object Error]"]=fr["[object Function]"]=fr["[object Map]"]=fr["[object Number]"]=fr["[object Object]"]=fr["[object RegExp]"]=fr["[object Set]"]=fr["[object String]"]=fr["[object WeakMap]"]=!1;var mr=function(e){return v(e)&&er(e.length)&&!!fr[p(e)]};var dr=function(e){return function(t){return e(t)}},pr=y((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r&&g.process,a=function(){try{var e=n&&n.require&&n.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a})),hr=pr&&pr.isTypedArray,vr=hr?dr(hr):mr;var gr=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},yr=Object.prototype.hasOwnProperty;var br=function(e,t,r){var n=e[t];yr.call(e,t)&&Ne(n,r)&&(void 0!==r||t in e)||Dt(e,t,r)};var Er=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var s=t[a],c=n?n(r[s],e[s],s,r,e):void 0;void 0===c&&(c=e[s]),o?Dt(r,s,c):br(r,s,c)}return r};var wr=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},_r=/^(?:0|[1-9]\d*)$/;var xr=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&_r.test(e))&&e>-1&&e%1==0&&e<t},Or=Object.prototype.hasOwnProperty;var kr=function(e,t){var r=Qt(e),n=!r&&Jt(e),o=!r&&!n&&or(e),a=!r&&!n&&!o&&vr(e),i=r||n||o||a,s=i?wr(e.length,String):[],c=s.length;for(var u in e)!t&&!Or.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||xr(u,c))||s.push(u);return s};var jr=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},Rr=Object.prototype.hasOwnProperty;var Cr=function(e){if(!d(e))return jr(e);var t=Vt(e),r=[];for(var n in e)("constructor"!=n||!t&&Rr.call(e,n))&&r.push(n);return r};var Sr=function(e){return tr(e)?kr(e,!0):Cr(e)};var Tr=function(e){return Er(e,Sr(e))};var Ar=function(e,t,r,n,o,a,i){var s=gr(e,r),c=gr(t,r),u=i.get(c);if(u)Nt(e,r,u);else{var l=a?a(s,c,r+"",e,t,i):void 0,f=void 0===l;if(f){var m=Qt(c),p=!m&&or(c),h=!m&&!p&&vr(c);l=c,m||p||h?Qt(s)?l=s:rr(s)?l=Ft(s):p?(f=!1,l=It(c,!0)):h?(f=!1,l=Ut(c,!0)):l=[]:lr(c)||Jt(c)?(l=s,Jt(s)?l=Tr(s):d(s)&&!Xe(s)||(l=Gt(c))):f=!1}f&&(i.set(c,l),o(l,c,n,a,i),i.delete(c)),Nt(e,r,l)}};var Lr=function e(t,r,n,o,a){t!==r&&Pt(r,(function(i,s){if(a||(a=new Lt),d(i))Ar(t,r,s,n,e,o,a);else{var c=o?o(gr(t,s),i,s+"",t,r,a):void 0;void 0===c&&(c=i),Nt(t,s,c)}}),Sr)};var Mr=function(e){return e};var Dr=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},Nr=Math.max;var Pr=function(e,t,r){return t=Nr(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=Nr(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(i),Dr(e,this,s)}};var Ir=function(e){return function(){return e}},Br=Mt?function(e,t){return Mt(e,"toString",{configurable:!0,enumerable:!1,value:Ir(t),writable:!0})}:Mr,qr=Date.now;var Ur=function(e){var t=0,r=0;return function(){var n=qr(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Br);var Fr=function(e,t){return Ur(Pr(e,t,Mr),e+"")};var zr=function(e,t,r){if(!d(r))return!1;var n=typeof t;return!!("number"==n?tr(r)&&xr(t,r.length):"string"==n&&t in r)&&Ne(r[t],e)};var Hr=function(e){return Fr((function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&zr(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,a)}return t}))}((function(e,t,r){Lr(e,t,r)}));function $r(e){var r=e.children,n=e.theme,o=_(),a=t.useMemo((function(){var e=null===o?n:function(e,t){return"function"==typeof t?t(e):k({},e,t)}(o,n);return null!=e&&(e[x]=null!==o),e}),[n,o]);return t.createElement(O.Provider,{value:a},r)}function Wr(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=_(),o=j({theme:n,name:"MuiUseMediaQuery",props:{}}),a="function"==typeof t?t(n):t;a=a.replace(/^@media( ?)/m,"");var i="undefined"!=typeof window&&void 0!==window.matchMedia,s=k({},o,r),c=s.defaultMatches,u=void 0!==c&&c,l=s.matchMedia,f=void 0===l?i?window.matchMedia:null:l,m=s.noSsr,d=void 0!==m&&m,p=s.ssrMatchMedia,h=void 0===p?null:p,v=e.useState((function(){return d&&i?f(a).matches:h?h(a).matches:u})),g=v[0],y=v[1];return e.useEffect((function(){var e=!0;if(i){var t=f(a),r=function(){e&&y(t.matches)};return r(),t.addListener(r),function(){e=!1,t.removeListener(r)}}}),[a,f,i]),g}function Vr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return R(e,k({defaultTheme:C},t))}var Gr={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},Zr=function(e){return k({color:e.palette.text.primary},e.typography.body2,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white}})};var Xr=S((function(e){return{"@global":{html:Gr,"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:k({margin:0},Zr(e),{"&::backdrop":{backgroundColor:e.palette.background.default}})}}}),{name:"MuiCssBaseline"})((function(t){var r=t.children,n=void 0===r?null:r;return t.classes,e.createElement(e.Fragment,null,n)})),Kr=e.forwardRef((function(t,r){var n=t.children,o=t.classes,a=t.className,i=t.collapsedHeight,s=t.collapsedSize,c=void 0===s?"0px":s,u=t.component,l=void 0===u?"div":u,f=t.disableStrictModeCompat,m=void 0!==f&&f,d=t.in,p=t.onEnter,h=t.onEntered,v=t.onEntering,g=t.onExit,y=t.onExited,b=t.onExiting,E=t.style,w=t.timeout,_=void 0===w?T.standard:w,x=t.TransitionComponent,O=void 0===x?B:x,j=A(t,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),R=I(),C=e.useRef(),S=e.useRef(null),D=e.useRef(),N="number"==typeof(i||c)?"".concat(i||c,"px"):i||c;e.useEffect((function(){return function(){clearTimeout(C.current)}}),[]);var P=R.unstable_strictMode&&!m,F=e.useRef(null),z=U(r,P?F:void 0),H=function(e){return function(t,r){if(e){var n=P?[F.current,t]:[t,r],o=M(n,2),a=o[0],i=o[1];void 0===i?e(a):e(a,i)}}},$=H((function(e,t){e.style.height=N,p&&p(e,t)})),W=H((function(e,t){var r=S.current?S.current.clientHeight:0,n=q({style:E,timeout:_},{mode:"enter"}).duration;if("auto"===_){var o=R.transitions.getAutoHeightDuration(r);e.style.transitionDuration="".concat(o,"ms"),D.current=o}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style.height="".concat(r,"px"),v&&v(e,t)})),V=H((function(e,t){e.style.height="auto",h&&h(e,t)})),G=H((function(e){var t=S.current?S.current.clientHeight:0;e.style.height="".concat(t,"px"),g&&g(e)})),Z=H(y),X=H((function(e){var t=S.current?S.current.clientHeight:0,r=q({style:E,timeout:_},{mode:"exit"}).duration;if("auto"===_){var n=R.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(n,"ms"),D.current=n}else e.style.transitionDuration="string"==typeof r?r:"".concat(r,"ms");e.style.height=N,b&&b(e)}));return e.createElement(O,k({in:d,onEnter:$,onEntered:V,onEntering:W,onExit:G,onExited:Z,onExiting:X,addEndListener:function(e,t){var r=P?e:t;"auto"===_&&(C.current=setTimeout(r,D.current||0))},nodeRef:P?F:void 0,timeout:"auto"===_?null:_},j),(function(t,r){return e.createElement(l,k({className:L(o.root,o.container,a,{entered:o.entered,exited:!d&&"0px"===N&&o.hidden}[t]),style:k({minHeight:N},E),ref:z},r),e.createElement("div",{className:o.wrapper,ref:S},e.createElement("div",{className:o.wrapperInner},n)))}))}));Kr.muiSupportAuto=!0;var Yr=S((function(e){return{root:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(Kr);function Jr(e){return e.substring(2).toLowerCase()}function Qr(t){var r=t.children,n=t.disableReactTree,o=void 0!==n&&n,a=t.mouseEvent,i=void 0===a?"onClick":a,s=t.onClickAway,c=t.touchEvent,u=void 0===c?"onTouchEnd":c,l=e.useRef(!1),f=e.useRef(null),m=e.useRef(!1),d=e.useRef(!1);e.useEffect((function(){return setTimeout((function(){m.current=!0}),0),function(){m.current=!1}}),[]);var p=e.useCallback((function(e){f.current=E.findDOMNode(e)}),[]),h=U(r.ref,p),v=z((function(e){var t=d.current;if(d.current=!1,m.current&&f.current&&!function(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}(e))if(l.current)l.current=!1;else{var r;if(e.composedPath)r=e.composedPath().indexOf(f.current)>-1;else r=!F(f.current).documentElement.contains(e.target)||f.current.contains(e.target);r||!o&&t||s(e)}})),g=function(e){return function(t){d.current=!0;var n=r.props[e];n&&n(t)}},y={ref:h};return!1!==u&&(y[u]=g(u)),e.useEffect((function(){if(!1!==u){var e=Jr(u),t=F(f.current),r=function(){l.current=!0};return t.addEventListener(e,v),t.addEventListener("touchmove",r),function(){t.removeEventListener(e,v),t.removeEventListener("touchmove",r)}}}),[v,u]),!1!==i&&(y[i]=g(i)),e.useEffect((function(){if(!1!==i){var e=Jr(i),t=F(f.current);return t.addEventListener(e,v),function(){t.removeEventListener(e,v)}}}),[v,i]),e.createElement(e.Fragment,null,e.cloneElement(r,y))}function en(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function tn(){return tn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tn.apply(this,arguments)}function rn(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var nn=t.createContext(),on={root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},an={containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}},sn={default:20,dense:4},cn={default:6,dense:2},un={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:P,transitionDuration:{enter:225,exit:195}},ln=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},fn=function(e){return Object.keys(e).filter((function(e){return!an[e]})).reduce((function(t,r){var n;return tn({},t,((n={})[r]=e[r],n))}),{})},mn={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},dn=function(e){return"containerAnchorOrigin"+e},pn=function(e){var t=e.vertical,r=e.horizontal;return"anchorOrigin"+ln(t)+ln(r)},hn=function(e){return"variant"+ln(e)},vn=function(e){return!!e||0===e},gn=function(e){return"number"==typeof e||null===e};function yn(e,t,r){return void 0===e&&(e={}),void 0===t&&(t={}),void 0===r&&(r={}),tn({},r,{},t,{},e)}var bn=function(e){var t;return{root:(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[e.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t)}},En=i((function(e,r){var n=e.classes,o=e.className,a=rn(e,["classes","className"]);return t.createElement("div",Object.assign({ref:r,className:L(n.root,o)},a))})),wn=S(bn)(En),_n={right:"left",left:"right",bottom:"up",top:"down"},xn=function(e){return"center"!==e.horizontal?_n[e.horizontal]:_n[e.vertical]},On=function(e){return t.createElement(H,Object.assign({},e),t.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},kn=function(e){return t.createElement(H,Object.assign({},e),t.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},jn=function(e){return t.createElement(H,Object.assign({},e),t.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},Rn=function(e){return t.createElement(H,Object.assign({},e),t.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},Cn={fontSize:20,marginInlineEnd:8},Sn={default:void 0,success:t.createElement(On,{style:Cn}),warning:t.createElement(kn,{style:Cn}),error:t.createElement(jn,{style:Cn}),info:t.createElement(Rn,{style:Cn})};function Tn(e,t){return e.reduce((function(e,r){return null==r?e:function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];var i=[].concat(o);t&&-1===i.indexOf(t)&&i.push(t),e.apply(this,i),r.apply(this,i)}}),(function(){}))}var An="undefined"!=typeof window?u:a;function Ln(e){var t=n(e);return An((function(){t.current=e})),s((function(){return t.current.apply(void 0,arguments)}),[])}var Mn=i((function(e,t){var r=e.children,o=e.autoHideDuration,i=e.ClickAwayListenerProps,u=e.disableWindowBlurListener,l=void 0!==u&&u,f=e.onClose,m=e.onMouseEnter,d=e.onMouseLeave,p=e.open,h=e.resumeHideDuration,v=rn(e,["children","autoHideDuration","ClickAwayListenerProps","disableWindowBlurListener","onClose","onMouseEnter","onMouseLeave","open","resumeHideDuration"]),g=n(),y=Ln((function(){f&&f.apply(void 0,arguments)})),b=Ln((function(e){f&&null!=e&&(clearTimeout(g.current),g.current=setTimeout((function(){y(null,mn.TIMEOUT)}),e))}));a((function(){return p&&b(o),function(){clearTimeout(g.current)}}),[p,o,b]);var E=function(){clearTimeout(g.current)},w=s((function(){null!=o&&b(null!=h?h:.5*o)}),[o,h,b]);return a((function(){if(!l&&p)return window.addEventListener("focus",w),window.addEventListener("blur",E),function(){window.removeEventListener("focus",w),window.removeEventListener("blur",E)}}),[l,w,p]),c(Qr,tn({onClickAway:function(e){f&&f(e,mn.CLICKAWAY)}},i),c("div",tn({onMouseEnter:function(e){m&&m(e),E()},onMouseLeave:function(e){d&&d(e),w()},ref:t},v),r))})),Dn=function(e){var r=e.classes,i=rn(e,["classes"]),s=n(),c=o(!0),u=c[0],l=c[1];a((function(){return function(){s.current&&clearTimeout(s.current)}}),[]);var f=Tn([i.snack.onClose,i.onClose],i.snack.key),m=i.style,d=i.ariaAttributes,p=i.className,h=i.hideIconVariant,v=i.iconVariant,g=i.snack,y=i.action,b=i.content,E=i.TransitionComponent,w=i.TransitionProps,_=i.transitionDuration,x=rn(i,["style","dense","ariaAttributes","className","hideIconVariant","iconVariant","snack","action","content","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),O=g.key,k=g.open,j=g.className,R=g.variant,C=g.content,S=g.action,T=g.ariaAttributes,A=g.anchorOrigin,M=g.message,D=g.TransitionComponent,N=g.TransitionProps,P=g.transitionDuration,I=rn(g,["persist","key","open","entered","requestClose","className","variant","content","action","ariaAttributes","anchorOrigin","message","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),B=tn({},Sn,{},v)[R],q=tn({"aria-describedby":"notistack-snackbar"},yn(T,d)),U=D||E||un.TransitionComponent,F=yn(P,_,un.transitionDuration),z=tn({direction:xn(A)},yn(N,w)),H=S||y;"function"==typeof H&&(H=H(O));var $=C||b;"function"==typeof $&&($=$(O,g.message));var W=["onEnter","onEntering","onEntered","onExit","onExiting","onExited"].reduce((function(e,t){var r;return tn({},e,((r={})[t]=Tn([i.snack[t],i[t]],i.snack.key),r))}),{});return t.createElement(Yr,{unmountOnExit:!0,timeout:175,in:u,onExited:W.onExited},t.createElement(Mn,Object.assign({},x,I,{open:k,className:L(r.root,r.wrappedRoot,r[pn(A)]),onClose:f}),t.createElement(U,Object.assign({appear:!0,in:k,timeout:F},z,{onExit:W.onExit,onExiting:W.onExiting,onExited:function(){s.current=setTimeout((function(){l(!u)}),125)},onEnter:W.onEnter,onEntering:W.onEntering,onEntered:Tn([W.onEntered,function(){i.snack.requestClose&&f(null,mn.INSTRCUTED)}])}),$||t.createElement(wn,Object.assign({},q,{role:"alert",style:m,className:L(r.contentRoot,r[hn(R)],p,j,!h&&B&&r.lessPadding)}),t.createElement("div",{id:q["aria-describedby"],className:r.message},h?null:B,M),H&&t.createElement("div",{className:r.action},H)))))},Nn=S((function(e){var t=e.palette.mode||e.palette.type,r=D(e.palette.background.default,"light"===t?.8:.98);return tn({},on,{contentRoot:tn({},e.typography.body2,{backgroundColor:r,color:e.palette.getContrastText(r),alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}),lessPadding:{paddingLeft:20},variantSuccess:{backgroundColor:"#43a047",color:"#fff"},variantError:{backgroundColor:"#d32f2f",color:"#fff"},variantInfo:{backgroundColor:"#2196f3",color:"#fff"},variantWarning:{backgroundColor:"#ff9800",color:"#fff"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8},wrappedRoot:{position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0}})}))(Dn),Pn="& > .MuiCollapse-container, & > .MuiCollapse-root",In="& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper",Bn=Vr((function(e){var t,r,n,o,a;return{root:(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:e.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[Pn]={pointerEvents:"all"},t[In]={padding:cn.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+2*sn.default+"px)",t[e.breakpoints.down("xs")]={width:"100%",maxWidth:"calc(100% - 32px)"},t),rootDense:(r={},r[In]={padding:cn.dense+"px 0px"},r),top:{top:sn.default-cn.default,flexDirection:"column"},bottom:{bottom:sn.default-cn.default,flexDirection:"column-reverse"},left:(n={left:sn.default},n[e.breakpoints.up("sm")]={alignItems:"flex-start"},n[e.breakpoints.down("xs")]={left:"16px"},n),right:(o={right:sn.default},o[e.breakpoints.up("sm")]={alignItems:"flex-end"},o[e.breakpoints.down("xs")]={right:"16px"},o),center:(a={left:"50%",transform:"translateX(-50%)"},a[e.breakpoints.up("sm")]={alignItems:"center"},a)}})),qn=function(e){var r=Bn(),n=e.className,o=e.anchorOrigin,a=e.dense,i=rn(e,["className","anchorOrigin","dense"]),s=L(r[o.vertical],r[o.horizontal],r.root,n,a&&r.rootDense);return t.createElement("div",Object.assign({className:s},i))},Un=t.memo(qn),Fn=function(e){var r,n,o,a,i;function s(t){var r;return(r=e.call(this,t)||this).enqueueSnackbar=function(e,t){void 0===t&&(t={});var n=t,o=n.key,a=n.preventDuplicate,i=rn(n,["key","preventDuplicate"]),s=vn(o),c=s?o:(new Date).getTime()+Math.random(),u=function(e,t,r){return function(n){return"autoHideDuration"===n?gn(e.autoHideDuration)?e.autoHideDuration:gn(t.autoHideDuration)?t.autoHideDuration:un.autoHideDuration:e[n]||t[n]||r[n]}}(i,r.props,un),l=tn({key:c},i,{message:e,open:!0,entered:!1,requestClose:!1,variant:u("variant"),anchorOrigin:u("anchorOrigin"),autoHideDuration:u("autoHideDuration")});return i.persist&&(l.autoHideDuration=void 0),r.setState((function(t){if(void 0===a&&r.props.preventDuplicate||a){var n=function(t){return s?t.key===o:t.message===e},i=t.queue.findIndex(n)>-1,c=t.snacks.findIndex(n)>-1;if(i||c)return t}return r.handleDisplaySnack(tn({},t,{queue:[].concat(t.queue,[l])}))})),c},r.handleDisplaySnack=function(e){return e.snacks.length>=r.maxSnack?r.handleDismissOldest(e):r.processQueue(e)},r.processQueue=function(e){var t=e.queue,r=e.snacks;return t.length>0?tn({},e,{snacks:[].concat(r,[t[0]]),queue:t.slice(1,t.length)}):e},r.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,n=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===r.maxSnack&&(n=!0);var o=e.snacks.map((function(e){return t||e.persist&&!n?tn({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,mn.MAXSNACK,e.key),r.props.onClose&&r.props.onClose(null,mn.MAXSNACK,e.key),tn({},e,{open:!1})):tn({},e,{requestClose:!0}))}));return tn({},e,{snacks:o})},r.handleEnteredSnack=function(e,t,n){if(!vn(n))throw new Error("handleEnteredSnack Cannot be called with undefined key");r.setState((function(e){return{snacks:e.snacks.map((function(e){return e.key===n?tn({},e,{entered:!0}):tn({},e)}))}}))},r.handleCloseSnack=function(e,t,n){if(r.props.onClose&&r.props.onClose(e,t,n),t!==mn.CLICKAWAY){var o=void 0===n;r.setState((function(e){var t=e.snacks,r=e.queue;return{snacks:t.map((function(e){return o||e.key===n?e.entered?tn({},e,{open:!1}):tn({},e,{requestClose:!0}):tn({},e)})),queue:r.filter((function(e){return e.key!==n}))}}))}},r.closeSnackbar=function(e){var t=r.state.snacks.find((function(t){return t.key===e}));vn(e)&&t&&t.onClose&&t.onClose(null,mn.INSTRUCTED,e),r.handleCloseSnack(null,mn.INSTRUCTED,e)},r.handleExitedSnack=function(e,t,n){var o=t||n;if(!vn(o))throw new Error("handleExitedSnack Cannot be called with undefined key");r.setState((function(e){var t=r.processQueue(tn({},e,{snacks:e.snacks.filter((function(e){return e.key!==o}))}));return 0===t.queue.length?t:r.handleDismissOldest(t)}))},r.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:r.enqueueSnackbar,closeSnackbar:r.closeSnackbar}},r}return n=e,(r=s).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,s.prototype.render=function(){var e=this,r=this.state.contextValue,n=this.props,o=n.iconVariant,a=n.dense,i=void 0===a?un.dense:a,s=n.hideIconVariant,c=void 0===s?un.hideIconVariant:s,u=n.domRoot,l=n.children,f=n.classes,m=void 0===f?{}:f,d=rn(n,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),p=this.state.snacks.reduce((function(e,t){var r,n,o=(n=t.anchorOrigin,""+ln(n.vertical)+ln(n.horizontal)),a=e[o]||[];return tn({},e,((r={})[o]=[].concat(a,[t]),r))}),{}),h=Object.keys(p).map((function(r){var n=p[r];return t.createElement(Un,{key:r,dense:i,anchorOrigin:n[0].anchorOrigin,className:L(m.containerRoot,m[dn(r)])},n.map((function(r){return t.createElement(Nn,Object.assign({},d,{key:r.key,snack:r,dense:i,iconVariant:o,hideIconVariant:c,classes:fn(m),onClose:e.handleCloseSnack,onExited:Tn([e.handleExitedSnack,e.props.onExited]),onEntered:Tn([e.handleEnteredSnack,e.props.onEntered])}))})))}));return t.createElement(nn.Provider,{value:r},l,u?w(h,u):h)},o=s,(a=[{key:"maxSnack",get:function(){return this.props.maxSnack||un.maxSnack}}])&&en(o.prototype,a),i&&en(o,i),s}(r);const zn={primaryColor:"#0087dc",primaryColorFocus:"#339fe3",secondaryColor:"#ffc400"};function Hn(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=V({timeZone:t},e[n]),r}),{})}function $n(e,t){return Object.keys(V(V({},e),t)).reduce((function(r,n){return r[n]=V(V({},e[n]||{}),t[n]||{}),r}),{})}function Wn(e,t){if(!t)return e;var r=X.formats;return V(V(V({},r),e),{date:$n(Hn(r.date,t),Hn(e.date||{},t)),time:$n(Hn(r.time,t),Hn(e.time||{},t))})}function Vn(e,t,r,n,o){var a=e.locale,i=e.formats,s=e.messages,c=e.defaultLocale,u=e.defaultFormats,l=e.onError,f=e.timeZone,m=e.defaultRichTextElements;void 0===r&&(r={id:""});var d=r.id,p=r.defaultMessage;$(!!d,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var h=String(d),v=s&&Object.prototype.hasOwnProperty.call(s,h)&&s[h];if(Array.isArray(v)&&1===v.length&&v[0].type===W.literal)return v[0].value;if(!n&&v&&"string"==typeof v&&!m)return v.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=V(V({},m),n||{}),i=Wn(i,f),u=Wn(u,f),!v){if((!p||a&&a.toLowerCase()!==c.toLowerCase())&&l(new G(r,a)),p)try{return t.getMessageFormat(p,c,u,o).format(n)}catch(e){return l(new Z('Error formatting default message for: "'+h+'", rendering default message verbatim',a,r,e)),"string"==typeof p?p:h}return h}try{return t.getMessageFormat(v,a,i,V({formatters:t},o||{})).format(n)}catch(e){l(new Z('Error formatting message: "'+h+'", using '+(p?"default message":"id")+" as fallback.",a,r,e))}if(p)try{return t.getMessageFormat(p,c,u,o).format(n)}catch(e){l(new Z('Error formatting the default message for: "'+h+'", rendering message verbatim',a,r,e))}return"string"==typeof v?v:"string"==typeof p?p:h}var Gn=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function Zn(e,t,r,n){var o=e.locale,a=e.formats,i=e.onError,s=e.timeZone;void 0===n&&(n={});var c=n.format,u=V(V({},s&&{timeZone:s}),c&&Q(a,t,c,i)),l=J(n,Gn,u);return"time"!==t||l.hour||l.minute||l.second||l.timeStyle||l.dateStyle||(l=V(V({},l),{hour:"numeric",minute:"numeric"})),r(o,l)}function Xn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],a=r[1],i=void 0===a?{}:a,s="string"==typeof o?new Date(o||0):o;try{return Zn(e,"date",t,i).format(s)}catch(t){e.onError(new K(Y.FORMAT_ERROR,"Error formatting date.",t))}return String(s)}function Kn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],a=r[1],i=void 0===a?{}:a,s="string"==typeof o?new Date(o||0):o;try{return Zn(e,"time",t,i).format(s)}catch(t){e.onError(new K(Y.FORMAT_ERROR,"Error formatting time.",t))}return String(s)}function Yn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],a=r[1],i=r[2],s=void 0===i?{}:i,c=e.timeZone,u=e.locale,l=e.onError,f=J(s,Gn,c?{timeZone:c}:{});try{return t(u,f).formatRange(o,a)}catch(e){l(new K(Y.FORMAT_ERROR,"Error formatting date time range.",e))}return String(o)}function Jn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],a=r[1],i=void 0===a?{}:a,s="string"==typeof o?new Date(o||0):o;try{return Zn(e,"date",t,i).formatToParts(s)}catch(t){e.onError(new K(Y.FORMAT_ERROR,"Error formatting date.",t))}return[]}function Qn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],a=r[1],i=void 0===a?{}:a,s="string"==typeof o?new Date(o||0):o;try{return Zn(e,"time",t,i).formatToParts(s)}catch(t){e.onError(new K(Y.FORMAT_ERROR,"Error formatting time.",t))}return[]}var eo=["localeMatcher","style","type","fallback"];function to(e,t,r,n){var o=e.locale,a=e.onError;Intl.DisplayNames||a(new ee('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',te.MISSING_INTL_API));var i=J(n,eo);try{return t(o,i).of(r)}catch(e){a(new K(Y.FORMAT_ERROR,"Error formatting display name.",e))}}var ro=["localeMatcher","type","style"],no=Date.now();function oo(e,t,r,n){void 0===n&&(n={});var o=ao(e,t,r,n).reduce((function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]);return 1===o.length?o[0]:o}function ao(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.ListFormat||a(new ee('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',te.MISSING_INTL_API));var i=J(n,ro);try{var s={},c=r.map((function(e,t){if("object"==typeof e){var r=function(e){return no+"_"+e+"_"+no}(t);return s[r]=e,r}return String(e)}));return t(o,i).formatToParts(c).map((function(e){return"literal"===e.type?e:V(V({},e),{value:s[e.value]||e.value})}))}catch(e){a(new K(Y.FORMAT_ERROR,"Error formatting list.",e))}return r}var io=["localeMatcher","type"];function so(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.PluralRules||a(new ee('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',te.MISSING_INTL_API));var i=J(n,io);try{return t(o,i).select(r)}catch(e){a(new Z("Error formatting plural.",e))}return"other"}var co=["numeric","style"];function uo(e,t,r,n,o){void 0===o&&(o={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new ee('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',te.MISSING_INTL_API));try{return function(e,t,r){var n=e.locale,o=e.formats,a=e.onError;void 0===r&&(r={});var i=r.format,s=!!i&&Q(o,"relative",i,a)||{};return t(n,J(r,co,s))}(e,t,o).format(r,n)}catch(t){e.onError(new Z("Error formatting relative time.",t))}return String(r)}var lo=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function fo(e,t,r){var n=e.locale,o=e.formats,a=e.onError;void 0===r&&(r={});var i=r.format,s=i&&Q(o,"number",i,a)||{};return t(n,J(r,lo,s))}function mo(e,t,r,n){void 0===n&&(n={});try{return fo(e,t,n).format(r)}catch(t){e.onError(new K(Y.FORMAT_ERROR,"Error formatting number.",t))}return String(r)}function po(e,t,r,n){void 0===n&&(n={});try{return fo(e,t,n).formatToParts(r)}catch(t){e.onError(new K(Y.FORMAT_ERROR,"Error formatting number.",t))}return[]}function ho(e){var t;e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&console.warn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}var vo,go=(vo=function(e,t){return vo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},vo(e,t)},function(e,t){function r(){this.constructor=e}vo(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),yo=function(){return yo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yo.apply(this,arguments)},bo=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Eo=le||fe;function wo(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function _o(e){return e?Object.keys(e).reduce((function(t,r){var n=e[r];return t[r]=me(n)?de(n):n,t}),{}):e}var xo=function(t,r,n,o){var a=Vn(t,r,n,_o(o));return Array.isArray(a)?e.Children.toArray(a):a},Oo=function(e,t){var r=e.defaultRichTextElements,n=bo(e,["defaultRichTextElements"]),o=_o(r),a=function(e,t){var r=re(t),n=V(V({},ne),e),o=n.locale,a=n.defaultLocale,i=n.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&i?i(new ae('Missing locale data for locale: "'+o+'" in Intl.NumberFormat. Using default locale: "'+a+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&i&&i(new ae('Missing locale data for locale: "'+o+'" in Intl.DateTimeFormat. Using default locale: "'+a+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):(i&&i(new oe('"locale" was not configured, using "'+a+'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')),n.locale=n.defaultLocale||"en"),ho(n),V(V({},n),{formatters:r,formatNumber:mo.bind(null,n,r.getNumberFormat),formatNumberToParts:po.bind(null,n,r.getNumberFormat),formatRelativeTime:uo.bind(null,n,r.getRelativeTimeFormat),formatDate:Xn.bind(null,n,r.getDateTimeFormat),formatDateToParts:Jn.bind(null,n,r.getDateTimeFormat),formatTime:Kn.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:Yn.bind(null,n,r.getDateTimeFormat),formatTimeToParts:Qn.bind(null,n,r.getDateTimeFormat),formatPlural:so.bind(null,n,r.getPluralRules),formatMessage:Vn.bind(null,n,r),formatList:oo.bind(null,n,r.getListFormat),formatListToParts:ao.bind(null,n,r.getListFormat),formatDisplayName:to.bind(null,n,r.getDisplayNames)})}(yo(yo({},ue),n),t);return yo(yo({},a),{formatMessage:xo.bind(null,{locale:a.locale,timeZone:a.timeZone,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:o},a.formatters)})},ko=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache=ie(),e.state={cache:e.cache,intl:Oo(wo(e.props),e.cache),prevConfig:wo(e.props)},e}return go(r,t),r.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,o=wo(e);return Eo(r,o)?null:{intl:Oo(o,n),prevConfig:o}},r.prototype.render=function(){return se(this.state.intl),e.createElement(ce,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=ue,r}(e.PureComponent);function jo(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ro="function"==typeof Symbol&&Symbol.observable||"@@observable",Co=function(){return Math.random().toString(36).substring(7).split("").join(".")},So={INIT:"@@redux/INIT"+Co(),REPLACE:"@@redux/REPLACE"+Co(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Co()}};function To(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Ao(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(jo(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(jo(1));return r(Ao)(e,t)}if("function"!=typeof e)throw new Error(jo(2));var o=e,a=t,i=[],s=i,c=!1;function u(){s===i&&(s=i.slice())}function l(){if(c)throw new Error(jo(3));return a}function f(e){if("function"!=typeof e)throw new Error(jo(4));if(c)throw new Error(jo(5));var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error(jo(6));t=!1,u();var r=s.indexOf(e);s.splice(r,1),i=null}}}function m(e){if(!To(e))throw new Error(jo(7));if(void 0===e.type)throw new Error(jo(8));if(c)throw new Error(jo(9));try{c=!0,a=o(a,e)}finally{c=!1}for(var t=i=s,r=0;r<t.length;r++){(0,t[r])()}return e}function d(e){if("function"!=typeof e)throw new Error(jo(10));o=e,m({type:So.REPLACE})}function p(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(jo(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[Ro]=function(){return this},e}return m({type:So.INIT}),(n={dispatch:m,subscribe:f,getState:l,replaceReducer:d})[Ro]=p,n}function Lo(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];"function"==typeof e[o]&&(r[o]=e[o])}var a,i=Object.keys(r);try{!function(e){Object.keys(e).forEach((function(t){var r=e[t];if(void 0===r(void 0,{type:So.INIT}))throw new Error(jo(12));if(void 0===r(void 0,{type:So.PROBE_UNKNOWN_ACTION()}))throw new Error(jo(13))}))}(r)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var n=!1,o={},s=0;s<i.length;s++){var c=i[s],u=r[c],l=e[c],f=u(l,t);if(void 0===f)throw t&&t.type,new Error(jo(14));o[c]=f,n=n||f!==l}return(n=n||i.length!==Object.keys(e).length)?o:e}}var Mo={notify:function(){},get:function(){return[]}};function Do(e,t){var r,n=Mo;function o(){i.onStateChange&&i.onStateChange()}function a(){var a,i,s;r||(r=t?t.addNestedSub(o):e.subscribe(o),a=pe(),i=null,s=null,n={clear:function(){i=null,s=null},notify:function(){a((function(){for(var e=i;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],t=i;t;)e.push(t),t=t.next;return e},subscribe:function(e){var t=!0,r=s={callback:e,next:null,prev:s};return r.prev?r.prev.next=r:i=r,function(){t&&null!==i&&(t=!1,r.next?r.next.prev=r.prev:s=r.prev,r.prev?r.prev.next=r.next:i=r.next)}}})}var i={addNestedSub:function(e){return a(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(r)},trySubscribe:a,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=Mo)},getListeners:function(){return n}};return i}var No="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?u:a;function Po(e){var r=e.store,n=e.context,o=e.children,a=l((function(){var e=Do(r);return e.onStateChange=e.notifyNestedSubs,{store:r,subscription:e}}),[r]),i=l((function(){return r.getState()}),[r]);No((function(){var e=a.subscription;return e.trySubscribe(),i!==r.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,i]);var s=n||he;return t.createElement(s.Provider,{value:a},o)}var Io=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}},Bo=Object.prototype.toString;function qo(e){return"[object Array]"===Bo.call(e)}function Uo(e){return void 0===e}function Fo(e){return null!==e&&"object"==typeof e}function zo(e){if("[object Object]"!==Bo.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function Ho(e){return"[object Function]"===Bo.call(e)}function $o(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),qo(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var Wo={isArray:qo,isArrayBuffer:function(e){return"[object ArrayBuffer]"===Bo.call(e)},isBuffer:function(e){return null!==e&&!Uo(e)&&null!==e.constructor&&!Uo(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:Fo,isPlainObject:zo,isUndefined:Uo,isDate:function(e){return"[object Date]"===Bo.call(e)},isFile:function(e){return"[object File]"===Bo.call(e)},isBlob:function(e){return"[object Blob]"===Bo.call(e)},isFunction:Ho,isStream:function(e){return Fo(e)&&Ho(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:$o,merge:function e(){var t={};function r(r,n){zo(t[n])&&zo(r)?t[n]=e(t[n],r):zo(r)?t[n]=e({},r):qo(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)$o(arguments[n],r);return t},extend:function(e,t,r){return $o(t,(function(t,n){e[n]=r&&"function"==typeof t?Io(t,r):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}};function Vo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Go=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(Wo.isURLSearchParams(t))n=t.toString();else{var o=[];Wo.forEach(t,(function(e,t){null!=e&&(Wo.isArray(e)?t+="[]":e=[e],Wo.forEach(e,(function(e){Wo.isDate(e)?e=e.toISOString():Wo.isObject(e)&&(e=JSON.stringify(e)),o.push(Vo(t)+"="+Vo(e))})))})),n=o.join("&")}if(n){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e};function Zo(){this.handlers=[]}Zo.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},Zo.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Zo.prototype.forEach=function(e){Wo.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var Xo=Zo,Ko=function(e,t,r){return Wo.forEach(r,(function(r){e=r(e,t)})),e},Yo=function(e){return!(!e||!e.__CANCEL__)},Jo=function(e,t){Wo.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},Qo=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e},ea=function(e,t,r,n,o){var a=new Error(e);return Qo(a,t,r,n,o)},ta=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(ea("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)},ra=Wo.isStandardBrowserEnv()?{write:function(e,t,r,n,o,a){var i=[];i.push(e+"="+encodeURIComponent(t)),Wo.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),Wo.isString(n)&&i.push("path="+n),Wo.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},na=function(e,t){return e&&!function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t},oa=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],aa=Wo.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=Wo.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},ia=function(e){return new Promise((function(t,r){var n=e.data,o=e.headers;Wo.isFormData(n)&&delete o["Content-Type"];var a=new XMLHttpRequest;if(e.auth){var i=e.auth.username||"",s=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(i+":"+s)}var c=na(e.baseURL,e.url);if(a.open(e.method.toUpperCase(),Go(c,e.params,e.paramsSerializer),!0),a.timeout=e.timeout,a.onreadystatechange=function(){if(a&&4===a.readyState&&(0!==a.status||a.responseURL&&0===a.responseURL.indexOf("file:"))){var n,o,i,s,c,u="getAllResponseHeaders"in a?(n=a.getAllResponseHeaders(),c={},n?(Wo.forEach(n.split("\n"),(function(e){if(s=e.indexOf(":"),o=Wo.trim(e.substr(0,s)).toLowerCase(),i=Wo.trim(e.substr(s+1)),o){if(c[o]&&oa.indexOf(o)>=0)return;c[o]="set-cookie"===o?(c[o]?c[o]:[]).concat([i]):c[o]?c[o]+", "+i:i}})),c):c):null,l={data:e.responseType&&"text"!==e.responseType?a.response:a.responseText,status:a.status,statusText:a.statusText,headers:u,config:e,request:a};ta(t,r,l),a=null}},a.onabort=function(){a&&(r(ea("Request aborted",e,"ECONNABORTED",a)),a=null)},a.onerror=function(){r(ea("Network Error",e,null,a)),a=null},a.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(ea(t,e,"ECONNABORTED",a)),a=null},Wo.isStandardBrowserEnv()){var u=(e.withCredentials||aa(c))&&e.xsrfCookieName?ra.read(e.xsrfCookieName):void 0;u&&(o[e.xsrfHeaderName]=u)}if("setRequestHeader"in a&&Wo.forEach(o,(function(e,t){void 0===n&&"content-type"===t.toLowerCase()?delete o[t]:a.setRequestHeader(t,e)})),Wo.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),e.responseType)try{a.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&a.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&a.upload&&a.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){a&&(a.abort(),r(e),a=null)})),n||(n=null),a.send(n)}))},sa=1e3,ca=60*sa,ua=60*ca,la=24*ua,fa=365.25*la,ma=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*fa;case"days":case"day":case"d":return r*la;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ua;case"minutes":case"minute":case"mins":case"min":case"m":return r*ca;case"seconds":case"second":case"secs":case"sec":case"s":return r*sa;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(e);if("number"===r&&!1===isNaN(e))return t.long?function(e){return da(e,la,"day")||da(e,ua,"hour")||da(e,ca,"minute")||da(e,sa,"second")||e+" ms"}(e):function(e){if(e>=la)return Math.round(e/la)+"d";if(e>=ua)return Math.round(e/ua)+"h";if(e>=ca)return Math.round(e/ca)+"m";if(e>=sa)return Math.round(e/sa)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function da(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}var pa=y((function(e,t){var r;function n(e){function n(){if(n.enabled){var e=n,o=+new Date,a=o-(r||o);e.diff=a,e.prev=r,e.curr=o,r=o;for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var c=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(r,n){if("%%"===r)return r;c++;var o=t.formatters[n];if("function"==typeof o){var a=i[c];r=o.call(e,a),i.splice(c,1),c--}return r})),t.formatArgs.call(e,i);var u=n.log||t.log||console.log.bind(console);u.apply(e,i)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var r,n=0;for(r in e)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=n.debug=n.default=n).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length,o=0;o<n;o++)r[o]&&("-"===(e=r[o].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=ma,t.names=[],t.skips=[],t.formatters={}}));pa.coerce,pa.disable,pa.enable,pa.enabled,pa.humanize,pa.names,pa.skips,pa.formatters;var ha=y((function(e,t){function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=pa).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var o=0,a=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(o++,"%c"===e&&(a=o))})),e.splice(a,0,n)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())}));ha.log,ha.formatArgs,ha.save,ha.load,ha.useColors,ha.storage,ha.colors;var va=y((function(e,t){(t=e.exports=pa).init=function(e){e.inspectOpts={};for(var r=Object.keys(t.inspectOpts),n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(){return n.write(ke.format.apply(ke,arguments)+"\n")},t.formatArgs=function(e){var r=this.namespace;if(this.useColors){var n=this.color,o=" [3"+n+";1m"+r+" [0m";e[0]=o+e[0].split("\n").join("\n"+o),e.push("[3"+n+"m+"+t.humanize(this.diff)+"[0m")}else e[0]=(new Date).toUTCString()+" "+r+" "+e[0]},t.save=function(e){null==e?delete process.env.DEBUG:process.env.DEBUG=e},t.load=o,t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):Oe.isatty(r)},t.colors=[6,2,3,4,5,1],t.inspectOpts=Object.keys(process.env).filter((function(e){return/^debug_/i.test(e)})).reduce((function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(function(e,t){return t.toUpperCase()})),n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e}),{});var r=parseInt(process.env.DEBUG_FD,10)||2;1!==r&&2!==r&&ke.deprecate((function(){}),"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();var n=1===r?process.stdout:2===r?process.stderr:function(e){var t;switch(process.binding("tty_wrap").guessHandleType(e)){case"TTY":(t=new Oe.WriteStream(e))._type="tty",t._handle&&t._handle.unref&&t._handle.unref();break;case"FILE":(t=new je.SyncWriteStream(e,{autoClose:!1}))._type="fs";break;case"PIPE":case"TCP":(t=new Re.Socket({fd:e,readable:!1,writable:!0})).readable=!1,t.read=null,t._type="pipe",t._handle&&t._handle.unref&&t._handle.unref();break;default:throw new Error("Implement me. Unknown stream file type!")}return t.fd=e,t._isStdio=!0,t}(r);function o(){return process.env.DEBUG}t.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,ke.inspect(e,this.inspectOpts).split("\n").map((function(e){return e.trim()})).join(" ")},t.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,ke.inspect(e,this.inspectOpts)},t.enable(o())}));va.init,va.log,va.formatArgs,va.save,va.load,va.useColors,va.colors,va.inspectOpts;var ga,ya=y((function(e){"undefined"!=typeof process&&"renderer"===process.type?e.exports=ha:e.exports=va})),ba=function(){if(!ga){try{ga=ya("follow-redirects")}catch(e){}"function"!=typeof ga&&(ga=function(){})}ga.apply(null,arguments)},Ea=we.URL,wa=_e.Writable,_a=["abort","aborted","connect","error","socket","timeout"],xa=Object.create(null);_a.forEach((function(e){xa[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var Oa=Ma("ERR_FR_REDIRECTION_FAILURE",""),ka=Ma("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),ja=Ma("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Ra=Ma("ERR_STREAM_WRITE_AFTER_END","write after end");function Ca(e,t){wa.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(e){r._processResponse(e)},this._performRequest()}function Sa(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach((function(n){var o=n+":",a=r[o]=e[n],i=t[n]=Object.create(a);Object.defineProperties(i,{request:{value:function(e,n,a){if("string"==typeof e){var i=e;try{e=Aa(new Ea(i))}catch(t){e=we.parse(i)}}else Ea&&e instanceof Ea?e=Aa(e):(a=n,n=e,e={protocol:o});return"function"==typeof n&&(a=n,n=null),(n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n)).nativeProtocols=r,xe.equal(n.protocol,o,"protocol mismatch"),ba("options",n),new Ca(n,a)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var n=i.request(e,t,r);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),t}function Ta(){}function Aa(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=Number(e.port)),t}function La(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r}function Ma(e,t){function r(e){Error.captureStackTrace(this,this.constructor),this.message=e||t}return r.prototype=new Error,r.prototype.constructor=r,r.prototype.name="Error ["+e+"]",r.prototype.code=e,r}function Da(e){for(var t=0;t<_a.length;t++)e.removeListener(_a[t],xa[_a[t]]);e.on("error",Ta),e.abort()}Ca.prototype=Object.create(wa.prototype),Ca.prototype.abort=function(){Da(this._currentRequest),this.emit("abort")},Ca.prototype.write=function(e,t,r){if(this._ending)throw new Ra;if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");"function"==typeof t&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new ja),this.abort()):r&&r()},Ca.prototype.end=function(e,t,r){if("function"==typeof e?(r=e,e=t=null):"function"==typeof t&&(r=t,t=null),e){var n=this,o=this._currentRequest;this.write(e,t,(function(){n._ended=!0,o.end(null,null,r)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},Ca.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},Ca.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},Ca.prototype.setTimeout=function(e,t){var r=this;function n(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function o(t){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout((function(){r.emit("timeout"),a()}),e),n(t)}function a(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.once("response",a),this.once("error",a),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){Ca.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(Ca.prototype,e,{get:function(){return this._currentRequest[e]}})})),Ca.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},Ca.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=we.format(this._options),n._redirectable=this;for(var o=0;o<_a.length;o++)n.on(_a[o],xa[_a[o]]);if(this._isRedirect){var a=0,i=this,s=this._requestBodyBuffers;!function e(t){if(n===i._currentRequest)if(t)i.emit("error",t);else if(a<s.length){var r=s[a++];n.finished||n.write(r.data,r.encoding,e)}else i._ended&&n.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},Ca.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(r&&!1!==this._options.followRedirects&&t>=300&&t<400){if(Da(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new ka);((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],La(/^content-/i,this._options.headers));var n=La(/^host$/i,this._options.headers)||we.parse(this._currentUrl).hostname,o=we.resolve(this._currentUrl,r);ba("redirecting to",o),this._isRedirect=!0;var a=we.parse(o);if(Object.assign(this._options,a),a.hostname!==n&&La(/^authorization$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var i={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,i)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){var s=new Oa("Redirected request failed: "+e.message);s.cause=e,this.emit("error",s)}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]};var Na=Sa({http:be,https:Ee}),Pa=Sa;Na.wrap=Pa;var Ia="Promise based HTTP client for the browser and node.js",Ba={test:"grunt test && bundlesize",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},qa={type:"git",url:"https://github.com/axios/axios.git"},Ua=["xhr","http","ajax","promise","node"],Fa={url:"https://github.com/axios/axios/issues"},za="https://github.com/axios/axios",Ha={bundlesize:"^0.17.0",coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.0.2","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^20.1.0","grunt-karma":"^2.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^1.3.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.2.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^5.2.0",sinon:"^4.5.0",typescript:"^2.8.1","url-search-params":"^0.10.0",webpack:"^1.13.1","webpack-dev-server":"^1.14.1"},$a={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},Wa="dist/axios.min.js",Va={"follow-redirects":"^1.10.0"},Ga=[{path:"./dist/axios.min.js",threshold:"5kB"}],Za={name:"axios",version:"0.21.1",description:Ia,main:"index.js",scripts:Ba,repository:qa,keywords:Ua,author:"Matt Zabriskie",license:"MIT",bugs:Fa,homepage:za,devDependencies:Ha,browser:$a,jsdelivr:"dist/axios.min.js",unpkg:Wa,typings:"./index.d.ts",dependencies:Va,bundlesize:Ga},Xa=b(Object.freeze({__proto__:null,name:"axios",version:"0.21.1",description:Ia,main:"index.js",scripts:Ba,repository:qa,keywords:Ua,author:"Matt Zabriskie",license:"MIT",bugs:Fa,homepage:za,devDependencies:Ha,browser:$a,jsdelivr:"dist/axios.min.js",unpkg:Wa,typings:"./index.d.ts",dependencies:Va,bundlesize:Ga,default:Za})),Ka=Na.http,Ya=Na.https,Ja=/https:?/;function Qa(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(e){e.headers.host=e.host,Qa(e,t,e.href)}}var ei=function(e){return new Promise((function(t,r){var n=function(e){t(e)},o=function(e){r(e)},a=e.data,i=e.headers;if(i["User-Agent"]||i["user-agent"]||(i["User-Agent"]="axios/"+Xa.version),a&&!Wo.isStream(a)){if(Buffer.isBuffer(a));else if(Wo.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else{if(!Wo.isString(a))return o(ea("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));a=Buffer.from(a,"utf-8")}i["Content-Length"]=a.length}var s=void 0;e.auth&&(s=(e.auth.username||"")+":"+(e.auth.password||""));var c=na(e.baseURL,e.url),u=we.parse(c),l=u.protocol||"http:";if(!s&&u.auth){var f=u.auth.split(":");s=(f[0]||"")+":"+(f[1]||"")}s&&delete i.Authorization;var m=Ja.test(l),d=m?e.httpsAgent:e.httpAgent,p={path:Go(u.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:i,agent:d,agents:{http:e.httpAgent,https:e.httpsAgent},auth:s};e.socketPath?p.socketPath=e.socketPath:(p.hostname=u.hostname,p.port=u.port);var h,v=e.proxy;if(!v&&!1!==v){var g=l.slice(0,-1)+"_proxy",y=process.env[g]||process.env[g.toUpperCase()];if(y){var b=we.parse(y),E=process.env.no_proxy||process.env.NO_PROXY,w=!0;if(E){var _=E.split(",").map((function(e){return e.trim()}));w=!_.some((function(e){return!!e&&("*"===e||("."===e[0]&&u.hostname.substr(u.hostname.length-e.length)===e||u.hostname===e))}))}if(w&&(v={host:b.hostname,port:b.port,protocol:b.protocol},b.auth)){var x=b.auth.split(":");v.auth={username:x[0],password:x[1]}}}}v&&(p.headers.host=u.hostname+(u.port?":"+u.port:""),Qa(p,v,l+"//"+u.hostname+(u.port?":"+u.port:"")+p.path));var O=m&&(!v||Ja.test(v.protocol));e.transport?h=e.transport:0===e.maxRedirects?h=O?Ee:be:(e.maxRedirects&&(p.maxRedirects=e.maxRedirects),h=O?Ya:Ka),e.maxBodyLength>-1&&(p.maxBodyLength=e.maxBodyLength);var k=h.request(p,(function(t){if(!k.aborted){var r=t,a=t.req||k;if(204!==t.statusCode&&"HEAD"!==a.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(Ce.createUnzip()),delete t.headers["content-encoding"]}var i={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:a};if("stream"===e.responseType)i.data=r,ta(n,o,i);else{var s=[];r.on("data",(function(t){s.push(t),e.maxContentLength>-1&&Buffer.concat(s).length>e.maxContentLength&&(r.destroy(),o(ea("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,a)))})),r.on("error",(function(t){k.aborted||o(Qo(t,e,null,a))})),r.on("end",(function(){var t=Buffer.concat(s);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=Wo.stripBOM(t))),i.data=t,ta(n,o,i)}))}}}));k.on("error",(function(t){k.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||o(Qo(t,e,null,k))})),e.timeout&&k.setTimeout(e.timeout,(function(){k.abort(),o(ea("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",k))})),e.cancelToken&&e.cancelToken.promise.then((function(e){k.aborted||(k.abort(),o(e))})),Wo.isStream(a)?a.on("error",(function(t){o(Qo(t,e,null,k))})).pipe(k):k.end(a)}))},ti={"Content-Type":"application/x-www-form-urlencoded"};function ri(e,t){!Wo.isUndefined(e)&&Wo.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var ni,oi={adapter:("undefined"!=typeof XMLHttpRequest?ni=ia:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(ni=ei),ni),transformRequest:[function(e,t){return Jo(t,"Accept"),Jo(t,"Content-Type"),Wo.isFormData(e)||Wo.isArrayBuffer(e)||Wo.isBuffer(e)||Wo.isStream(e)||Wo.isFile(e)||Wo.isBlob(e)?e:Wo.isArrayBufferView(e)?e.buffer:Wo.isURLSearchParams(e)?(ri(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Wo.isObject(e)?(ri(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};oi.headers={common:{Accept:"application/json, text/plain, */*"}},Wo.forEach(["delete","get","head"],(function(e){oi.headers[e]={}})),Wo.forEach(["post","put","patch"],(function(e){oi.headers[e]=Wo.merge(ti)}));var ai=oi;function ii(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var si=function(e){return ii(e),e.headers=e.headers||{},e.data=Ko(e.data,e.headers,e.transformRequest),e.headers=Wo.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Wo.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||ai.adapter)(e).then((function(t){return ii(e),t.data=Ko(t.data,t.headers,e.transformResponse),t}),(function(t){return Yo(t)||(ii(e),t&&t.response&&(t.response.data=Ko(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},ci=function(e,t){t=t||{};var r={},n=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],i=["validateStatus"];function s(e,t){return Wo.isPlainObject(e)&&Wo.isPlainObject(t)?Wo.merge(e,t):Wo.isPlainObject(t)?Wo.merge({},t):Wo.isArray(t)?t.slice():t}function c(n){Wo.isUndefined(t[n])?Wo.isUndefined(e[n])||(r[n]=s(void 0,e[n])):r[n]=s(e[n],t[n])}Wo.forEach(n,(function(e){Wo.isUndefined(t[e])||(r[e]=s(void 0,t[e]))})),Wo.forEach(o,c),Wo.forEach(a,(function(n){Wo.isUndefined(t[n])?Wo.isUndefined(e[n])||(r[n]=s(void 0,e[n])):r[n]=s(void 0,t[n])})),Wo.forEach(i,(function(n){n in t?r[n]=s(e[n],t[n]):n in e&&(r[n]=s(void 0,e[n]))}));var u=n.concat(o).concat(a).concat(i),l=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return Wo.forEach(l,c),r};function ui(e){this.defaults=e,this.interceptors={request:new Xo,response:new Xo}}ui.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=ci(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[si,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)r=r.then(t.shift(),t.shift());return r},ui.prototype.getUri=function(e){return e=ci(this.defaults,e),Go(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},Wo.forEach(["delete","get","head","options"],(function(e){ui.prototype[e]=function(t,r){return this.request(ci(r||{},{method:e,url:t,data:(r||{}).data}))}})),Wo.forEach(["post","put","patch"],(function(e){ui.prototype[e]=function(t,r,n){return this.request(ci(n||{},{method:e,url:t,data:r}))}}));var li=ui;function fi(e){this.message=e}fi.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},fi.prototype.__CANCEL__=!0;var mi=fi;function di(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;e((function(e){r.reason||(r.reason=new mi(e),t(r.reason))}))}di.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},di.source=function(){var e;return{token:new di((function(t){e=t})),cancel:e}};var pi=di;function hi(e){var t=new li(e),r=Io(li.prototype.request,t);return Wo.extend(r,li.prototype,t),Wo.extend(r,t),r}var vi=hi(ai);vi.Axios=li,vi.create=function(e){return hi(ci(vi.defaults,e))},vi.Cancel=mi,vi.CancelToken=pi,vi.isCancel=Yo,vi.all=function(e){return Promise.all(e)},vi.spread=function(e){return function(t){return e.apply(null,t)}},vi.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError};var gi=vi,yi=vi;gi.default=yi;var bi=gi;const Ei=[{value:"zh-tw",label:"繁體中文"}],wi=e=>Ei.some((({value:t})=>t===e))?e:Ei[0].value;var _i={"common.action.failed":"操作失敗","common.action.error":"操作錯誤","common.action.success":"操作成功","common.confirm":"確認","common.enter":"請輸入","common.submit":"送出","common.cancel":"取消","common.export":"匯出","common.export.type":"匯出種類","common.has.problem":"我有問題","common.sex":"性別","common.other":"其他","common.content":"內容","common.click.refresh":"點擊刷新","common.provide.information":"我有資料要提供","common.form.name":"姓名","common.form.phone":"電話","common.form.age":"年齡","common.form.job":"職業","common.form.author":"作者","common.form.dataname":"資料名稱","common.form.datadate":"資料日期","common.form.providername":"提供者名稱","common.form.subject":"主旨","common.form.selectQuetionType":"請選擇一個問題類型","common.form.dataProvide":"資料提供","common.form.valid.error.email":"您輸入無效的 e-mail!","common.form.male":"男","common.form.female":"女","common.form.dataname.placeholder":"可填書名、期刊名等","common.form.provider.notice":"(此名稱將會顯示於此網站上)","common.form.code":"驗證碼","common.form.code.error":"驗證碼錯誤","common.form.attachment":"附件上傳","common.form.attachment.valid.error":"附件上傳上限為2MB","common.form.attachment.hint":"上傳附件大小限制:2MB","common.form.contactUs":"聯繫我們","common.form.error":"表單尚未完成 請檢察必填項目"},xi={"common.action.failed":"操作失敗","common.action.error":"操作錯誤","common.action.success":"操作成功","common.confirm":"確認","common.enter":"請輸入","common.submit":"送出","common.cancel":"取消","common.export":"匯出","common.export.type":"匯出種類","common.has.problem":"我有問題","common.sex":"性別","common.other":"其他","common.content":"內容","common.click.refresh":"點擊刷新","common.provide.information":"我有資料要提供","common.form.name":"姓名","common.form.phone":"電話","common.form.age":"年齡","common.form.job":"職業","common.form.author":"作者","common.form.dataname":"資料名稱","common.form.datadate":"資料日期","common.form.providername":"提供者名稱","common.form.subject":"主旨","common.form.selectQuetionType":"請選擇一個問題類型","common.form.dataProvide":"資料提供","common.form.valid.error.email":"您輸入無效的 e-mail!","common.form.male":"男","common.form.female":"女","common.form.dataname.placeholder":"可填書名、期刊名等","common.form.provider.notice":"(此名稱將會顯示於此網站上)","common.form.code":"驗證碼","common.form.code.error":"驗證碼錯誤","common.form.attachment":"附件上傳","common.form.attachment.hint":"上傳附件大小限制:2MB","common.form.attachment.valid.error":"附件上傳上限為2MB","common.form.contactUs":"聯繫我們","common.form.error":"表單尚未完成 請檢察必填項目"},Oi={"common.action.failed":"操作失敗","common.action.error":"操作錯誤","common.action.success":"操作成功","common.confirm":"確認","common.enter":"請輸入","common.submit":"送出","common.cancel":"取消","common.export":"匯出","common.export.type":"匯出種類","common.has.problem":"我有問題","common.sex":"性別","common.other":"其他","common.content":"內容","common.click.refresh":"點擊刷新","common.provide.information":"我有資料要提供","common.form.name":"姓名","common.form.phone":"電話","common.form.age":"年齡","common.form.job":"職業","common.form.author":"作者","common.form.dataname":"資料名稱","common.form.datadate":"資料日期","common.form.providername":"提供者名稱","common.form.subject":"主旨","common.form.selectQuetionType":"請選擇一個問題類型","common.form.dataProvide":"資料提供","common.form.valid.error.email":"您輸入無效的 e-mail!","common.form.male":"男","common.form.female":"女","common.form.dataname.placeholder":"可填書名、期刊名等","common.form.provider.notice":"(此名稱將會顯示於此網站上)","common.form.code":"驗證碼","common.form.code.error":"驗證碼錯誤","common.form.attachment":"附件上傳","common.form.attachment.valid.error":"附件上傳上限為2MB","common.form.attachment.hint":"上傳附件大小限制:2MB","common.form.contactUs":"聯繫我們","common.form.error":"表單尚未完成 請檢察必填項目"};const ki=e=>Ao(Lo({muiNotifcation:ve,...e}),window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__()),ji=({children:e,reducers:r})=>{const[n,i]=o(),{params:{locale:s}}=Te(),c=Ae();return a((()=>{if(s&&s.length<9&&Ei.some((({value:e})=>e===s))){const e={en:_i,zhtw:xi,zhcn:Oi}[s.replace("-","")];bi.get(`/locales/${s}.json`).then((t=>i({locale:s,messages:{...e,...t.data}}))).catch((()=>{bi.get("/locales/en.json").then((e=>i({locale:"en",messages:{..._i,...e.data}}))).catch((()=>i({locale:s,messages:e})))}))}else(({history:e,currentLanguage:t,nextLanguage:r})=>{const{location:{pathname:n,search:o}}=e;if(t&&n.startsWith(`/${t}`))e.push({pathname:n.replace(`/${t}`,`/${wi(r)}`),search:o});else{const t=(navigator.languages?navigator.languages[0]:navigator.language||navigator.userLanguage).toLowerCase();e.push({pathname:`/${wi(t)}`})}})({history:c})}),[s]),n?t.createElement(Po,{store:ki(r)},t.createElement(ko,{locale:n.locale,messages:n.messages},e)):t.createElement(Se,null)};ji.defaultProps={reducers:{}},ji.propTypes={children:f.objectOf(f.any).isRequired,reducers:f.objectOf(f.any)};const Ri=({children:e,enqueueSnackbar:r,closeSnackbar:n})=>{const o=ge();return a((()=>{r&&n&&o({type:ye,enqueueSnackbar:r,closeSnackbar:n})}),[r,n]),t.createElement(t.Fragment,null,e)};Ri.defaultProps={children:void 0,enqueueSnackbar:void 0,closeSnackbar:void 0},Ri.propTypes={children:f.node,enqueueSnackbar:f.func,closeSnackbar:f.func};var Ci=function(e){var r=e.children,n=e.reducers,o=e.theme,a=e.darkMode,i=Hr((({darkMode:e})=>{const{primaryColor:t,secondaryColor:r}=zn,n=e?"#8c8c8c":"#d9d9d9";return N({typography:{button:{textTransform:"none"}},palette:e?{type:"dark",primary:{main:t},secondary:{main:r}}:{type:"light",primary:{main:t},secondary:{main:r}},shape:{borderRadius:3},props:{MuiButton:{variant:"contained",color:"primary"},MuiSelect:{MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null}}},overrides:{MuiPaper:{root:{background:"white",minWidth:300}},MuiSelect:{root:{padding:8}},MuiButton:{root:{padding:"4px 8px","&$outlined":{padding:"4px 8px"}}},MuiInput:{root:{width:"100%",border:`1px solid ${n}`,borderRadius:3,padding:"2px 8px 0"},underline:{"&::before":{display:"none"},"&::after":{display:"none"}}},MuiAutocomplete:{inputRoot:{paddingRight:"4px !important",backgroundColor:e?"#303030":"#fff","&:hover .MuiOutlinedInput-notchedOutline":{borderColor:t}},endAdornment:{display:"none"}},MuiChip:{root:{height:"28px",borderRadius:"2px",backgroundColor:e?"#595959":"#f5f5f5",border:"1px solid",borderColor:n}},MuiOutlinedInput:{root:{borderColor:n,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:"1px",boxShadow:"0 0 0 2px rgb(24 144 255 / 20%)"}}},MuiRadio:{colorSecondary:{"&.Mui-checked":{color:t}}},MuiTypography:{root:{color:e?"#fff":"#595959"}},MuiTableHead:{root:{background:"#fafafa"}},MuiTableContainer:{root:{boxShadow:"initial",border:"1px solid #e0e0e0",borderBottom:0}},MuiDialogTitle:{root:{padding:"0 0 0 12px",background:t,color:"white"}},MuiDialogContent:{root:{padding:12,"&:first-child":"initial"}},MuiDialogActions:{root:{padding:12,borderTop:`1px solid ${n}`}}}})})({darkMode:void 0===a?Wr("(prefers-color-scheme: light)"):a}),o),s=t.createRef();return t.createElement(Fn,{ref:s,maxSnack:3},t.createElement(m,null,t.createElement(Le,null,t.createElement(Me,{path:"/:locale?",render:function(){return t.createElement(ji,{test:!0,reducers:n},t.createElement(Ri,{enqueueSnackbar:s.current&&s.current.enqueueSnackbar,closeSnackbar:s.current&&s.current.closeSnackbar},t.createElement($r,{theme:i},t.createElement(Xr,null),r)))}}))))};Ci.defaultProps={children:void 0,reducers:void 0,theme:void 0,darkMode:void 0},Ci.propTypes={children:f.node,reducers:f.objectOf(f.any),theme:f.objectOf(f.any),darkMode:f.bool};export{Ci as default};
|
|
1
|
+
import*as e from"react";import t,{Component as r,useRef as n,useState as o,useEffect as a,forwardRef as i,useCallback as s,createElement as c,useLayoutEffect as u,useMemo as l}from"react";import f from"prop-types";import{B as m}from"./react-router-dom-6469c1df.js";import{i as d,_ as p,a as h,b as v,c as g}from"./isObjectLike-4a391d5d.js";import{c as y,g as b}from"./index-767b2843.js";import*as E from"react-dom";import{createPortal as w}from"react-dom";import{u as _,n as x,T as O,_ as k,g as j,m as R,d as C,w as S,a as T,b as A,c as L,e as M,f as D,h as N}from"./capitalize-e92d0507.js";import{S as P}from"./Slide-ef2f2933.js";import{u as I,T as B,g as q}from"./utils-256c7d92.js";import{u as U}from"./useForkRef-58783e4b.js";import{o as F}from"./ownerDocument-e276d08d.js";import{u as z}from"./useEventCallback-8817ed1c.js";import{S as H}from"./SvgIcon-ae419ec7.js";import{i as $,T as W,_ as V,M as G,a as Z,I as X,b as K,c as Y,f as J,g as Q,F as ee,E as te,d as re,D as ne,e as oe,h as ae,j as ie,k as se,P as ce,l as ue,o as le,s as fe,m as me,n as de,p as pe,R as he,q as ve,u as ge,L as ye}from"./muiNotifcationReducer-75669c4f.js";import be from"http";import Ee from"https";import we from"url";import _e from"stream";import xe from"assert";import Oe from"tty";import ke from"util";import je from"fs";import Re from"net";import Ce from"zlib";import Se from"./Loading.js";import"react-is";import{useRouteMatch as Te,useHistory as Ae,Switch as Le,Route as Me}from"react-router";import"./debounce-65582d84.js";import"./style-inject.es-1f59c1d0.js";import"./CircularProgress-537ad812.js";var De=function(){this.__data__=[],this.size=0};var Ne=function(e,t){return e===t||e!=e&&t!=t};var Pe=function(e,t){for(var r=e.length;r--;)if(Ne(e[r][0],t))return r;return-1},Ie=Array.prototype.splice;var Be=function(e){var t=this.__data__,r=Pe(t,e);return!(r<0)&&(r==t.length-1?t.pop():Ie.call(t,r,1),--this.size,!0)};var qe=function(e){var t=this.__data__,r=Pe(t,e);return r<0?void 0:t[r][1]};var Ue=function(e){return Pe(this.__data__,e)>-1};var Fe=function(e,t){var r=this.__data__,n=Pe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function ze(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ze.prototype.clear=De,ze.prototype.delete=Be,ze.prototype.get=qe,ze.prototype.has=Ue,ze.prototype.set=Fe;var He=ze;var $e=function(){this.__data__=new He,this.size=0};var We=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var Ve=function(e){return this.__data__.get(e)};var Ge=function(e){return this.__data__.has(e)};var Ze,Xe=function(e){if(!d(e))return!1;var t=p(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Ke=h["__core-js_shared__"],Ye=(Ze=/[^.]+$/.exec(Ke&&Ke.keys&&Ke.keys.IE_PROTO||""))?"Symbol(src)_1."+Ze:"";var Je=function(e){return!!Ye&&Ye in e},Qe=Function.prototype.toString;var et=function(e){if(null!=e){try{return Qe.call(e)}catch(e){}try{return e+""}catch(e){}}return""},tt=/^\[object .+?Constructor\]$/,rt=Function.prototype,nt=Object.prototype,ot=rt.toString,at=nt.hasOwnProperty,it=RegExp("^"+ot.call(at).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var st=function(e){return!(!d(e)||Je(e))&&(Xe(e)?it:tt).test(et(e))};var ct=function(e,t){return null==e?void 0:e[t]};var ut=function(e,t){var r=ct(e,t);return st(r)?r:void 0},lt=ut(h,"Map"),ft=ut(Object,"create");var mt=function(){this.__data__=ft?ft(null):{},this.size=0};var dt=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pt=Object.prototype.hasOwnProperty;var ht=function(e){var t=this.__data__;if(ft){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return pt.call(t,e)?t[e]:void 0},vt=Object.prototype.hasOwnProperty;var gt=function(e){var t=this.__data__;return ft?void 0!==t[e]:vt.call(t,e)};var yt=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ft&&void 0===t?"__lodash_hash_undefined__":t,this};function bt(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}bt.prototype.clear=mt,bt.prototype.delete=dt,bt.prototype.get=ht,bt.prototype.has=gt,bt.prototype.set=yt;var Et=bt;var wt=function(){this.size=0,this.__data__={hash:new Et,map:new(lt||He),string:new Et}};var _t=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var xt=function(e,t){var r=e.__data__;return _t(t)?r["string"==typeof t?"string":"hash"]:r.map};var Ot=function(e){var t=xt(this,e).delete(e);return this.size-=t?1:0,t};var kt=function(e){return xt(this,e).get(e)};var jt=function(e){return xt(this,e).has(e)};var Rt=function(e,t){var r=xt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Ct(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ct.prototype.clear=wt,Ct.prototype.delete=Ot,Ct.prototype.get=kt,Ct.prototype.has=jt,Ct.prototype.set=Rt;var St=Ct;var Tt=function(e,t){var r=this.__data__;if(r instanceof He){var n=r.__data__;if(!lt||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new St(n)}return r.set(e,t),this.size=r.size,this};function At(e){var t=this.__data__=new He(e);this.size=t.size}At.prototype.clear=$e,At.prototype.delete=We,At.prototype.get=Ve,At.prototype.has=Ge,At.prototype.set=Tt;var Lt=At,Mt=function(){try{var e=ut(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Dt=function(e,t,r){"__proto__"==t&&Mt?Mt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};var Nt=function(e,t,r){(void 0!==r&&!Ne(e[t],r)||void 0===r&&!(t in e))&&Dt(e,t,r)};var Pt=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var c=i[e?s:++o];if(!1===r(a[c],c,a))break}return t}}(),It=y((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?h.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=a?a(r):new e.constructor(r);return e.copy(n),n}})),Bt=h.Uint8Array;var qt=function(e){var t=new e.constructor(e.byteLength);return new Bt(t).set(new Bt(e)),t};var Ut=function(e,t){var r=t?qt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)};var Ft=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},zt=Object.create,Ht=function(){function e(){}return function(t){if(!d(t))return{};if(zt)return zt(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var $t=function(e,t){return function(r){return e(t(r))}}(Object.getPrototypeOf,Object),Wt=Object.prototype;var Vt=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Wt)};var Gt=function(e){return"function"!=typeof e.constructor||Vt(e)?{}:Ht($t(e))};var Zt=function(e){return v(e)&&"[object Arguments]"==p(e)},Xt=Object.prototype,Kt=Xt.hasOwnProperty,Yt=Xt.propertyIsEnumerable,Jt=Zt(function(){return arguments}())?Zt:function(e){return v(e)&&Kt.call(e,"callee")&&!Yt.call(e,"callee")},Qt=Array.isArray;var er=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var tr=function(e){return null!=e&&er(e.length)&&!Xe(e)};var rr=function(e){return v(e)&&tr(e)};var nr=function(){return!1},or=y((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?h.Buffer:void 0,a=(o?o.isBuffer:void 0)||nr;e.exports=a})),ar=Function.prototype,ir=Object.prototype,sr=ar.toString,cr=ir.hasOwnProperty,ur=sr.call(Object);var lr=function(e){if(!v(e)||"[object Object]"!=p(e))return!1;var t=$t(e);if(null===t)return!0;var r=cr.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&sr.call(r)==ur},fr={};fr["[object Float32Array]"]=fr["[object Float64Array]"]=fr["[object Int8Array]"]=fr["[object Int16Array]"]=fr["[object Int32Array]"]=fr["[object Uint8Array]"]=fr["[object Uint8ClampedArray]"]=fr["[object Uint16Array]"]=fr["[object Uint32Array]"]=!0,fr["[object Arguments]"]=fr["[object Array]"]=fr["[object ArrayBuffer]"]=fr["[object Boolean]"]=fr["[object DataView]"]=fr["[object Date]"]=fr["[object Error]"]=fr["[object Function]"]=fr["[object Map]"]=fr["[object Number]"]=fr["[object Object]"]=fr["[object RegExp]"]=fr["[object Set]"]=fr["[object String]"]=fr["[object WeakMap]"]=!1;var mr=function(e){return v(e)&&er(e.length)&&!!fr[p(e)]};var dr=function(e){return function(t){return e(t)}},pr=y((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r&&g.process,a=function(){try{var e=n&&n.require&&n.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a})),hr=pr&&pr.isTypedArray,vr=hr?dr(hr):mr;var gr=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},yr=Object.prototype.hasOwnProperty;var br=function(e,t,r){var n=e[t];yr.call(e,t)&&Ne(n,r)&&(void 0!==r||t in e)||Dt(e,t,r)};var Er=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var s=t[a],c=n?n(r[s],e[s],s,r,e):void 0;void 0===c&&(c=e[s]),o?Dt(r,s,c):br(r,s,c)}return r};var wr=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},_r=/^(?:0|[1-9]\d*)$/;var xr=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&_r.test(e))&&e>-1&&e%1==0&&e<t},Or=Object.prototype.hasOwnProperty;var kr=function(e,t){var r=Qt(e),n=!r&&Jt(e),o=!r&&!n&&or(e),a=!r&&!n&&!o&&vr(e),i=r||n||o||a,s=i?wr(e.length,String):[],c=s.length;for(var u in e)!t&&!Or.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||xr(u,c))||s.push(u);return s};var jr=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},Rr=Object.prototype.hasOwnProperty;var Cr=function(e){if(!d(e))return jr(e);var t=Vt(e),r=[];for(var n in e)("constructor"!=n||!t&&Rr.call(e,n))&&r.push(n);return r};var Sr=function(e){return tr(e)?kr(e,!0):Cr(e)};var Tr=function(e){return Er(e,Sr(e))};var Ar=function(e,t,r,n,o,a,i){var s=gr(e,r),c=gr(t,r),u=i.get(c);if(u)Nt(e,r,u);else{var l=a?a(s,c,r+"",e,t,i):void 0,f=void 0===l;if(f){var m=Qt(c),p=!m&&or(c),h=!m&&!p&&vr(c);l=c,m||p||h?Qt(s)?l=s:rr(s)?l=Ft(s):p?(f=!1,l=It(c,!0)):h?(f=!1,l=Ut(c,!0)):l=[]:lr(c)||Jt(c)?(l=s,Jt(s)?l=Tr(s):d(s)&&!Xe(s)||(l=Gt(c))):f=!1}f&&(i.set(c,l),o(l,c,n,a,i),i.delete(c)),Nt(e,r,l)}};var Lr=function e(t,r,n,o,a){t!==r&&Pt(r,(function(i,s){if(a||(a=new Lt),d(i))Ar(t,r,s,n,e,o,a);else{var c=o?o(gr(t,s),i,s+"",t,r,a):void 0;void 0===c&&(c=i),Nt(t,s,c)}}),Sr)};var Mr=function(e){return e};var Dr=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},Nr=Math.max;var Pr=function(e,t,r){return t=Nr(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=Nr(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(i),Dr(e,this,s)}};var Ir=function(e){return function(){return e}},Br=Mt?function(e,t){return Mt(e,"toString",{configurable:!0,enumerable:!1,value:Ir(t),writable:!0})}:Mr,qr=Date.now;var Ur=function(e){var t=0,r=0;return function(){var n=qr(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Br);var Fr=function(e,t){return Ur(Pr(e,t,Mr),e+"")};var zr=function(e,t,r){if(!d(r))return!1;var n=typeof t;return!!("number"==n?tr(r)&&xr(t,r.length):"string"==n&&t in r)&&Ne(r[t],e)};var Hr=function(e){return Fr((function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&zr(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,a)}return t}))}((function(e,t,r){Lr(e,t,r)}));function $r(e){var r=e.children,n=e.theme,o=_(),a=t.useMemo((function(){var e=null===o?n:function(e,t){return"function"==typeof t?t(e):k({},e,t)}(o,n);return null!=e&&(e[x]=null!==o),e}),[n,o]);return t.createElement(O.Provider,{value:a},r)}function Wr(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=_(),o=j({theme:n,name:"MuiUseMediaQuery",props:{}}),a="function"==typeof t?t(n):t;a=a.replace(/^@media( ?)/m,"");var i="undefined"!=typeof window&&void 0!==window.matchMedia,s=k({},o,r),c=s.defaultMatches,u=void 0!==c&&c,l=s.matchMedia,f=void 0===l?i?window.matchMedia:null:l,m=s.noSsr,d=void 0!==m&&m,p=s.ssrMatchMedia,h=void 0===p?null:p,v=e.useState((function(){return d&&i?f(a).matches:h?h(a).matches:u})),g=v[0],y=v[1];return e.useEffect((function(){var e=!0;if(i){var t=f(a),r=function(){e&&y(t.matches)};return r(),t.addListener(r),function(){e=!1,t.removeListener(r)}}}),[a,f,i]),g}function Vr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return R(e,k({defaultTheme:C},t))}var Gr={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},Zr=function(e){return k({color:e.palette.text.primary},e.typography.body2,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white}})};var Xr=S((function(e){return{"@global":{html:Gr,"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:k({margin:0},Zr(e),{"&::backdrop":{backgroundColor:e.palette.background.default}})}}}),{name:"MuiCssBaseline"})((function(t){var r=t.children,n=void 0===r?null:r;return t.classes,e.createElement(e.Fragment,null,n)})),Kr=e.forwardRef((function(t,r){var n=t.children,o=t.classes,a=t.className,i=t.collapsedHeight,s=t.collapsedSize,c=void 0===s?"0px":s,u=t.component,l=void 0===u?"div":u,f=t.disableStrictModeCompat,m=void 0!==f&&f,d=t.in,p=t.onEnter,h=t.onEntered,v=t.onEntering,g=t.onExit,y=t.onExited,b=t.onExiting,E=t.style,w=t.timeout,_=void 0===w?T.standard:w,x=t.TransitionComponent,O=void 0===x?B:x,j=A(t,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),R=I(),C=e.useRef(),S=e.useRef(null),D=e.useRef(),N="number"==typeof(i||c)?"".concat(i||c,"px"):i||c;e.useEffect((function(){return function(){clearTimeout(C.current)}}),[]);var P=R.unstable_strictMode&&!m,F=e.useRef(null),z=U(r,P?F:void 0),H=function(e){return function(t,r){if(e){var n=P?[F.current,t]:[t,r],o=M(n,2),a=o[0],i=o[1];void 0===i?e(a):e(a,i)}}},$=H((function(e,t){e.style.height=N,p&&p(e,t)})),W=H((function(e,t){var r=S.current?S.current.clientHeight:0,n=q({style:E,timeout:_},{mode:"enter"}).duration;if("auto"===_){var o=R.transitions.getAutoHeightDuration(r);e.style.transitionDuration="".concat(o,"ms"),D.current=o}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style.height="".concat(r,"px"),v&&v(e,t)})),V=H((function(e,t){e.style.height="auto",h&&h(e,t)})),G=H((function(e){var t=S.current?S.current.clientHeight:0;e.style.height="".concat(t,"px"),g&&g(e)})),Z=H(y),X=H((function(e){var t=S.current?S.current.clientHeight:0,r=q({style:E,timeout:_},{mode:"exit"}).duration;if("auto"===_){var n=R.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(n,"ms"),D.current=n}else e.style.transitionDuration="string"==typeof r?r:"".concat(r,"ms");e.style.height=N,b&&b(e)}));return e.createElement(O,k({in:d,onEnter:$,onEntered:V,onEntering:W,onExit:G,onExited:Z,onExiting:X,addEndListener:function(e,t){var r=P?e:t;"auto"===_&&(C.current=setTimeout(r,D.current||0))},nodeRef:P?F:void 0,timeout:"auto"===_?null:_},j),(function(t,r){return e.createElement(l,k({className:L(o.root,o.container,a,{entered:o.entered,exited:!d&&"0px"===N&&o.hidden}[t]),style:k({minHeight:N},E),ref:z},r),e.createElement("div",{className:o.wrapper,ref:S},e.createElement("div",{className:o.wrapperInner},n)))}))}));Kr.muiSupportAuto=!0;var Yr=S((function(e){return{root:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(Kr);function Jr(e){return e.substring(2).toLowerCase()}function Qr(t){var r=t.children,n=t.disableReactTree,o=void 0!==n&&n,a=t.mouseEvent,i=void 0===a?"onClick":a,s=t.onClickAway,c=t.touchEvent,u=void 0===c?"onTouchEnd":c,l=e.useRef(!1),f=e.useRef(null),m=e.useRef(!1),d=e.useRef(!1);e.useEffect((function(){return setTimeout((function(){m.current=!0}),0),function(){m.current=!1}}),[]);var p=e.useCallback((function(e){f.current=E.findDOMNode(e)}),[]),h=U(r.ref,p),v=z((function(e){var t=d.current;if(d.current=!1,m.current&&f.current&&!function(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}(e))if(l.current)l.current=!1;else{var r;if(e.composedPath)r=e.composedPath().indexOf(f.current)>-1;else r=!F(f.current).documentElement.contains(e.target)||f.current.contains(e.target);r||!o&&t||s(e)}})),g=function(e){return function(t){d.current=!0;var n=r.props[e];n&&n(t)}},y={ref:h};return!1!==u&&(y[u]=g(u)),e.useEffect((function(){if(!1!==u){var e=Jr(u),t=F(f.current),r=function(){l.current=!0};return t.addEventListener(e,v),t.addEventListener("touchmove",r),function(){t.removeEventListener(e,v),t.removeEventListener("touchmove",r)}}}),[v,u]),!1!==i&&(y[i]=g(i)),e.useEffect((function(){if(!1!==i){var e=Jr(i),t=F(f.current);return t.addEventListener(e,v),function(){t.removeEventListener(e,v)}}}),[v,i]),e.createElement(e.Fragment,null,e.cloneElement(r,y))}function en(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function tn(){return tn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tn.apply(this,arguments)}function rn(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var nn=t.createContext(),on={root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},an={containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}},sn={default:20,dense:4},cn={default:6,dense:2},un={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:P,transitionDuration:{enter:225,exit:195}},ln=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},fn=function(e){return Object.keys(e).filter((function(e){return!an[e]})).reduce((function(t,r){var n;return tn({},t,((n={})[r]=e[r],n))}),{})},mn={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},dn=function(e){return"containerAnchorOrigin"+e},pn=function(e){var t=e.vertical,r=e.horizontal;return"anchorOrigin"+ln(t)+ln(r)},hn=function(e){return"variant"+ln(e)},vn=function(e){return!!e||0===e},gn=function(e){return"number"==typeof e||null===e};function yn(e,t,r){return void 0===e&&(e={}),void 0===t&&(t={}),void 0===r&&(r={}),tn({},r,{},t,{},e)}var bn=function(e){var t;return{root:(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[e.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t)}},En=i((function(e,r){var n=e.classes,o=e.className,a=rn(e,["classes","className"]);return t.createElement("div",Object.assign({ref:r,className:L(n.root,o)},a))})),wn=S(bn)(En),_n={right:"left",left:"right",bottom:"up",top:"down"},xn=function(e){return"center"!==e.horizontal?_n[e.horizontal]:_n[e.vertical]},On=function(e){return t.createElement(H,Object.assign({},e),t.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},kn=function(e){return t.createElement(H,Object.assign({},e),t.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},jn=function(e){return t.createElement(H,Object.assign({},e),t.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},Rn=function(e){return t.createElement(H,Object.assign({},e),t.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},Cn={fontSize:20,marginInlineEnd:8},Sn={default:void 0,success:t.createElement(On,{style:Cn}),warning:t.createElement(kn,{style:Cn}),error:t.createElement(jn,{style:Cn}),info:t.createElement(Rn,{style:Cn})};function Tn(e,t){return e.reduce((function(e,r){return null==r?e:function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];var i=[].concat(o);t&&-1===i.indexOf(t)&&i.push(t),e.apply(this,i),r.apply(this,i)}}),(function(){}))}var An="undefined"!=typeof window?u:a;function Ln(e){var t=n(e);return An((function(){t.current=e})),s((function(){return t.current.apply(void 0,arguments)}),[])}var Mn=i((function(e,t){var r=e.children,o=e.autoHideDuration,i=e.ClickAwayListenerProps,u=e.disableWindowBlurListener,l=void 0!==u&&u,f=e.onClose,m=e.onMouseEnter,d=e.onMouseLeave,p=e.open,h=e.resumeHideDuration,v=rn(e,["children","autoHideDuration","ClickAwayListenerProps","disableWindowBlurListener","onClose","onMouseEnter","onMouseLeave","open","resumeHideDuration"]),g=n(),y=Ln((function(){f&&f.apply(void 0,arguments)})),b=Ln((function(e){f&&null!=e&&(clearTimeout(g.current),g.current=setTimeout((function(){y(null,mn.TIMEOUT)}),e))}));a((function(){return p&&b(o),function(){clearTimeout(g.current)}}),[p,o,b]);var E=function(){clearTimeout(g.current)},w=s((function(){null!=o&&b(null!=h?h:.5*o)}),[o,h,b]);return a((function(){if(!l&&p)return window.addEventListener("focus",w),window.addEventListener("blur",E),function(){window.removeEventListener("focus",w),window.removeEventListener("blur",E)}}),[l,w,p]),c(Qr,tn({onClickAway:function(e){f&&f(e,mn.CLICKAWAY)}},i),c("div",tn({onMouseEnter:function(e){m&&m(e),E()},onMouseLeave:function(e){d&&d(e),w()},ref:t},v),r))})),Dn=function(e){var r=e.classes,i=rn(e,["classes"]),s=n(),c=o(!0),u=c[0],l=c[1];a((function(){return function(){s.current&&clearTimeout(s.current)}}),[]);var f=Tn([i.snack.onClose,i.onClose],i.snack.key),m=i.style,d=i.ariaAttributes,p=i.className,h=i.hideIconVariant,v=i.iconVariant,g=i.snack,y=i.action,b=i.content,E=i.TransitionComponent,w=i.TransitionProps,_=i.transitionDuration,x=rn(i,["style","dense","ariaAttributes","className","hideIconVariant","iconVariant","snack","action","content","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),O=g.key,k=g.open,j=g.className,R=g.variant,C=g.content,S=g.action,T=g.ariaAttributes,A=g.anchorOrigin,M=g.message,D=g.TransitionComponent,N=g.TransitionProps,P=g.transitionDuration,I=rn(g,["persist","key","open","entered","requestClose","className","variant","content","action","ariaAttributes","anchorOrigin","message","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),B=tn({},Sn,{},v)[R],q=tn({"aria-describedby":"notistack-snackbar"},yn(T,d)),U=D||E||un.TransitionComponent,F=yn(P,_,un.transitionDuration),z=tn({direction:xn(A)},yn(N,w)),H=S||y;"function"==typeof H&&(H=H(O));var $=C||b;"function"==typeof $&&($=$(O,g.message));var W=["onEnter","onEntering","onEntered","onExit","onExiting","onExited"].reduce((function(e,t){var r;return tn({},e,((r={})[t]=Tn([i.snack[t],i[t]],i.snack.key),r))}),{});return t.createElement(Yr,{unmountOnExit:!0,timeout:175,in:u,onExited:W.onExited},t.createElement(Mn,Object.assign({},x,I,{open:k,className:L(r.root,r.wrappedRoot,r[pn(A)]),onClose:f}),t.createElement(U,Object.assign({appear:!0,in:k,timeout:F},z,{onExit:W.onExit,onExiting:W.onExiting,onExited:function(){s.current=setTimeout((function(){l(!u)}),125)},onEnter:W.onEnter,onEntering:W.onEntering,onEntered:Tn([W.onEntered,function(){i.snack.requestClose&&f(null,mn.INSTRCUTED)}])}),$||t.createElement(wn,Object.assign({},q,{role:"alert",style:m,className:L(r.contentRoot,r[hn(R)],p,j,!h&&B&&r.lessPadding)}),t.createElement("div",{id:q["aria-describedby"],className:r.message},h?null:B,M),H&&t.createElement("div",{className:r.action},H)))))},Nn=S((function(e){var t=e.palette.mode||e.palette.type,r=D(e.palette.background.default,"light"===t?.8:.98);return tn({},on,{contentRoot:tn({},e.typography.body2,{backgroundColor:r,color:e.palette.getContrastText(r),alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}),lessPadding:{paddingLeft:20},variantSuccess:{backgroundColor:"#43a047",color:"#fff"},variantError:{backgroundColor:"#d32f2f",color:"#fff"},variantInfo:{backgroundColor:"#2196f3",color:"#fff"},variantWarning:{backgroundColor:"#ff9800",color:"#fff"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8},wrappedRoot:{position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0}})}))(Dn),Pn="& > .MuiCollapse-container, & > .MuiCollapse-root",In="& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper",Bn=Vr((function(e){var t,r,n,o,a;return{root:(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:e.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[Pn]={pointerEvents:"all"},t[In]={padding:cn.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+2*sn.default+"px)",t[e.breakpoints.down("xs")]={width:"100%",maxWidth:"calc(100% - 32px)"},t),rootDense:(r={},r[In]={padding:cn.dense+"px 0px"},r),top:{top:sn.default-cn.default,flexDirection:"column"},bottom:{bottom:sn.default-cn.default,flexDirection:"column-reverse"},left:(n={left:sn.default},n[e.breakpoints.up("sm")]={alignItems:"flex-start"},n[e.breakpoints.down("xs")]={left:"16px"},n),right:(o={right:sn.default},o[e.breakpoints.up("sm")]={alignItems:"flex-end"},o[e.breakpoints.down("xs")]={right:"16px"},o),center:(a={left:"50%",transform:"translateX(-50%)"},a[e.breakpoints.up("sm")]={alignItems:"center"},a)}})),qn=function(e){var r=Bn(),n=e.className,o=e.anchorOrigin,a=e.dense,i=rn(e,["className","anchorOrigin","dense"]),s=L(r[o.vertical],r[o.horizontal],r.root,n,a&&r.rootDense);return t.createElement("div",Object.assign({className:s},i))},Un=t.memo(qn),Fn=function(e){var r,n,o,a,i;function s(t){var r;return(r=e.call(this,t)||this).enqueueSnackbar=function(e,t){void 0===t&&(t={});var n=t,o=n.key,a=n.preventDuplicate,i=rn(n,["key","preventDuplicate"]),s=vn(o),c=s?o:(new Date).getTime()+Math.random(),u=function(e,t,r){return function(n){return"autoHideDuration"===n?gn(e.autoHideDuration)?e.autoHideDuration:gn(t.autoHideDuration)?t.autoHideDuration:un.autoHideDuration:e[n]||t[n]||r[n]}}(i,r.props,un),l=tn({key:c},i,{message:e,open:!0,entered:!1,requestClose:!1,variant:u("variant"),anchorOrigin:u("anchorOrigin"),autoHideDuration:u("autoHideDuration")});return i.persist&&(l.autoHideDuration=void 0),r.setState((function(t){if(void 0===a&&r.props.preventDuplicate||a){var n=function(t){return s?t.key===o:t.message===e},i=t.queue.findIndex(n)>-1,c=t.snacks.findIndex(n)>-1;if(i||c)return t}return r.handleDisplaySnack(tn({},t,{queue:[].concat(t.queue,[l])}))})),c},r.handleDisplaySnack=function(e){return e.snacks.length>=r.maxSnack?r.handleDismissOldest(e):r.processQueue(e)},r.processQueue=function(e){var t=e.queue,r=e.snacks;return t.length>0?tn({},e,{snacks:[].concat(r,[t[0]]),queue:t.slice(1,t.length)}):e},r.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,n=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===r.maxSnack&&(n=!0);var o=e.snacks.map((function(e){return t||e.persist&&!n?tn({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,mn.MAXSNACK,e.key),r.props.onClose&&r.props.onClose(null,mn.MAXSNACK,e.key),tn({},e,{open:!1})):tn({},e,{requestClose:!0}))}));return tn({},e,{snacks:o})},r.handleEnteredSnack=function(e,t,n){if(!vn(n))throw new Error("handleEnteredSnack Cannot be called with undefined key");r.setState((function(e){return{snacks:e.snacks.map((function(e){return e.key===n?tn({},e,{entered:!0}):tn({},e)}))}}))},r.handleCloseSnack=function(e,t,n){if(r.props.onClose&&r.props.onClose(e,t,n),t!==mn.CLICKAWAY){var o=void 0===n;r.setState((function(e){var t=e.snacks,r=e.queue;return{snacks:t.map((function(e){return o||e.key===n?e.entered?tn({},e,{open:!1}):tn({},e,{requestClose:!0}):tn({},e)})),queue:r.filter((function(e){return e.key!==n}))}}))}},r.closeSnackbar=function(e){var t=r.state.snacks.find((function(t){return t.key===e}));vn(e)&&t&&t.onClose&&t.onClose(null,mn.INSTRUCTED,e),r.handleCloseSnack(null,mn.INSTRUCTED,e)},r.handleExitedSnack=function(e,t,n){var o=t||n;if(!vn(o))throw new Error("handleExitedSnack Cannot be called with undefined key");r.setState((function(e){var t=r.processQueue(tn({},e,{snacks:e.snacks.filter((function(e){return e.key!==o}))}));return 0===t.queue.length?t:r.handleDismissOldest(t)}))},r.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:r.enqueueSnackbar,closeSnackbar:r.closeSnackbar}},r}return n=e,(r=s).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,s.prototype.render=function(){var e=this,r=this.state.contextValue,n=this.props,o=n.iconVariant,a=n.dense,i=void 0===a?un.dense:a,s=n.hideIconVariant,c=void 0===s?un.hideIconVariant:s,u=n.domRoot,l=n.children,f=n.classes,m=void 0===f?{}:f,d=rn(n,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),p=this.state.snacks.reduce((function(e,t){var r,n,o=(n=t.anchorOrigin,""+ln(n.vertical)+ln(n.horizontal)),a=e[o]||[];return tn({},e,((r={})[o]=[].concat(a,[t]),r))}),{}),h=Object.keys(p).map((function(r){var n=p[r];return t.createElement(Un,{key:r,dense:i,anchorOrigin:n[0].anchorOrigin,className:L(m.containerRoot,m[dn(r)])},n.map((function(r){return t.createElement(Nn,Object.assign({},d,{key:r.key,snack:r,dense:i,iconVariant:o,hideIconVariant:c,classes:fn(m),onClose:e.handleCloseSnack,onExited:Tn([e.handleExitedSnack,e.props.onExited]),onEntered:Tn([e.handleEnteredSnack,e.props.onEntered])}))})))}));return t.createElement(nn.Provider,{value:r},l,u?w(h,u):h)},o=s,(a=[{key:"maxSnack",get:function(){return this.props.maxSnack||un.maxSnack}}])&&en(o.prototype,a),i&&en(o,i),s}(r);const zn={primaryColor:"#0087dc",primaryColorFocus:"#339fe3",secondaryColor:"#ffc400"};function Hn(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=V({timeZone:t},e[n]),r}),{})}function $n(e,t){return Object.keys(V(V({},e),t)).reduce((function(r,n){return r[n]=V(V({},e[n]||{}),t[n]||{}),r}),{})}function Wn(e,t){if(!t)return e;var r=X.formats;return V(V(V({},r),e),{date:$n(Hn(r.date,t),Hn(e.date||{},t)),time:$n(Hn(r.time,t),Hn(e.time||{},t))})}function Vn(e,t,r,n,o){var a=e.locale,i=e.formats,s=e.messages,c=e.defaultLocale,u=e.defaultFormats,l=e.onError,f=e.timeZone,m=e.defaultRichTextElements;void 0===r&&(r={id:""});var d=r.id,p=r.defaultMessage;$(!!d,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var h=String(d),v=s&&Object.prototype.hasOwnProperty.call(s,h)&&s[h];if(Array.isArray(v)&&1===v.length&&v[0].type===W.literal)return v[0].value;if(!n&&v&&"string"==typeof v&&!m)return v.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=V(V({},m),n||{}),i=Wn(i,f),u=Wn(u,f),!v){if((!p||a&&a.toLowerCase()!==c.toLowerCase())&&l(new G(r,a)),p)try{return t.getMessageFormat(p,c,u,o).format(n)}catch(e){return l(new Z('Error formatting default message for: "'+h+'", rendering default message verbatim',a,r,e)),"string"==typeof p?p:h}return h}try{return t.getMessageFormat(v,a,i,V({formatters:t},o||{})).format(n)}catch(e){l(new Z('Error formatting message: "'+h+'", using '+(p?"default message":"id")+" as fallback.",a,r,e))}if(p)try{return t.getMessageFormat(p,c,u,o).format(n)}catch(e){l(new Z('Error formatting the default message for: "'+h+'", rendering message verbatim',a,r,e))}return"string"==typeof v?v:"string"==typeof p?p:h}var Gn=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function Zn(e,t,r,n){var o=e.locale,a=e.formats,i=e.onError,s=e.timeZone;void 0===n&&(n={});var c=n.format,u=V(V({},s&&{timeZone:s}),c&&Q(a,t,c,i)),l=J(n,Gn,u);return"time"!==t||l.hour||l.minute||l.second||l.timeStyle||l.dateStyle||(l=V(V({},l),{hour:"numeric",minute:"numeric"})),r(o,l)}function Xn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],a=r[1],i=void 0===a?{}:a,s="string"==typeof o?new Date(o||0):o;try{return Zn(e,"date",t,i).format(s)}catch(t){e.onError(new K(Y.FORMAT_ERROR,"Error formatting date.",t))}return String(s)}function Kn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],a=r[1],i=void 0===a?{}:a,s="string"==typeof o?new Date(o||0):o;try{return Zn(e,"time",t,i).format(s)}catch(t){e.onError(new K(Y.FORMAT_ERROR,"Error formatting time.",t))}return String(s)}function Yn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],a=r[1],i=r[2],s=void 0===i?{}:i,c=e.timeZone,u=e.locale,l=e.onError,f=J(s,Gn,c?{timeZone:c}:{});try{return t(u,f).formatRange(o,a)}catch(e){l(new K(Y.FORMAT_ERROR,"Error formatting date time range.",e))}return String(o)}function Jn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],a=r[1],i=void 0===a?{}:a,s="string"==typeof o?new Date(o||0):o;try{return Zn(e,"date",t,i).formatToParts(s)}catch(t){e.onError(new K(Y.FORMAT_ERROR,"Error formatting date.",t))}return[]}function Qn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],a=r[1],i=void 0===a?{}:a,s="string"==typeof o?new Date(o||0):o;try{return Zn(e,"time",t,i).formatToParts(s)}catch(t){e.onError(new K(Y.FORMAT_ERROR,"Error formatting time.",t))}return[]}var eo=["localeMatcher","style","type","fallback"];function to(e,t,r,n){var o=e.locale,a=e.onError;Intl.DisplayNames||a(new ee('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',te.MISSING_INTL_API));var i=J(n,eo);try{return t(o,i).of(r)}catch(e){a(new K(Y.FORMAT_ERROR,"Error formatting display name.",e))}}var ro=["localeMatcher","type","style"],no=Date.now();function oo(e,t,r,n){void 0===n&&(n={});var o=ao(e,t,r,n).reduce((function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]);return 1===o.length?o[0]:o}function ao(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.ListFormat||a(new ee('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',te.MISSING_INTL_API));var i=J(n,ro);try{var s={},c=r.map((function(e,t){if("object"==typeof e){var r=function(e){return no+"_"+e+"_"+no}(t);return s[r]=e,r}return String(e)}));return t(o,i).formatToParts(c).map((function(e){return"literal"===e.type?e:V(V({},e),{value:s[e.value]||e.value})}))}catch(e){a(new K(Y.FORMAT_ERROR,"Error formatting list.",e))}return r}var io=["localeMatcher","type"];function so(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.PluralRules||a(new ee('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',te.MISSING_INTL_API));var i=J(n,io);try{return t(o,i).select(r)}catch(e){a(new Z("Error formatting plural.",e))}return"other"}var co=["numeric","style"];function uo(e,t,r,n,o){void 0===o&&(o={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new ee('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',te.MISSING_INTL_API));try{return function(e,t,r){var n=e.locale,o=e.formats,a=e.onError;void 0===r&&(r={});var i=r.format,s=!!i&&Q(o,"relative",i,a)||{};return t(n,J(r,co,s))}(e,t,o).format(r,n)}catch(t){e.onError(new Z("Error formatting relative time.",t))}return String(r)}var lo=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function fo(e,t,r){var n=e.locale,o=e.formats,a=e.onError;void 0===r&&(r={});var i=r.format,s=i&&Q(o,"number",i,a)||{};return t(n,J(r,lo,s))}function mo(e,t,r,n){void 0===n&&(n={});try{return fo(e,t,n).format(r)}catch(t){e.onError(new K(Y.FORMAT_ERROR,"Error formatting number.",t))}return String(r)}function po(e,t,r,n){void 0===n&&(n={});try{return fo(e,t,n).formatToParts(r)}catch(t){e.onError(new K(Y.FORMAT_ERROR,"Error formatting number.",t))}return[]}function ho(e){var t;e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&console.warn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}var vo,go=(vo=function(e,t){return vo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},vo(e,t)},function(e,t){function r(){this.constructor=e}vo(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),yo=function(){return yo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yo.apply(this,arguments)},bo=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Eo=le||fe;function wo(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function _o(e){return e?Object.keys(e).reduce((function(t,r){var n=e[r];return t[r]=me(n)?de(n):n,t}),{}):e}var xo=function(t,r,n,o){var a=Vn(t,r,n,_o(o));return Array.isArray(a)?e.Children.toArray(a):a},Oo=function(e,t){var r=e.defaultRichTextElements,n=bo(e,["defaultRichTextElements"]),o=_o(r),a=function(e,t){var r=re(t),n=V(V({},ne),e),o=n.locale,a=n.defaultLocale,i=n.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&i?i(new ae('Missing locale data for locale: "'+o+'" in Intl.NumberFormat. Using default locale: "'+a+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&i&&i(new ae('Missing locale data for locale: "'+o+'" in Intl.DateTimeFormat. Using default locale: "'+a+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):(i&&i(new oe('"locale" was not configured, using "'+a+'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')),n.locale=n.defaultLocale||"en"),ho(n),V(V({},n),{formatters:r,formatNumber:mo.bind(null,n,r.getNumberFormat),formatNumberToParts:po.bind(null,n,r.getNumberFormat),formatRelativeTime:uo.bind(null,n,r.getRelativeTimeFormat),formatDate:Xn.bind(null,n,r.getDateTimeFormat),formatDateToParts:Jn.bind(null,n,r.getDateTimeFormat),formatTime:Kn.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:Yn.bind(null,n,r.getDateTimeFormat),formatTimeToParts:Qn.bind(null,n,r.getDateTimeFormat),formatPlural:so.bind(null,n,r.getPluralRules),formatMessage:Vn.bind(null,n,r),formatList:oo.bind(null,n,r.getListFormat),formatListToParts:ao.bind(null,n,r.getListFormat),formatDisplayName:to.bind(null,n,r.getDisplayNames)})}(yo(yo({},ue),n),t);return yo(yo({},a),{formatMessage:xo.bind(null,{locale:a.locale,timeZone:a.timeZone,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:o},a.formatters)})},ko=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache=ie(),e.state={cache:e.cache,intl:Oo(wo(e.props),e.cache),prevConfig:wo(e.props)},e}return go(r,t),r.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,o=wo(e);return Eo(r,o)?null:{intl:Oo(o,n),prevConfig:o}},r.prototype.render=function(){return se(this.state.intl),e.createElement(ce,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=ue,r}(e.PureComponent);function jo(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ro="function"==typeof Symbol&&Symbol.observable||"@@observable",Co=function(){return Math.random().toString(36).substring(7).split("").join(".")},So={INIT:"@@redux/INIT"+Co(),REPLACE:"@@redux/REPLACE"+Co(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Co()}};function To(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Ao(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(jo(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(jo(1));return r(Ao)(e,t)}if("function"!=typeof e)throw new Error(jo(2));var o=e,a=t,i=[],s=i,c=!1;function u(){s===i&&(s=i.slice())}function l(){if(c)throw new Error(jo(3));return a}function f(e){if("function"!=typeof e)throw new Error(jo(4));if(c)throw new Error(jo(5));var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error(jo(6));t=!1,u();var r=s.indexOf(e);s.splice(r,1),i=null}}}function m(e){if(!To(e))throw new Error(jo(7));if(void 0===e.type)throw new Error(jo(8));if(c)throw new Error(jo(9));try{c=!0,a=o(a,e)}finally{c=!1}for(var t=i=s,r=0;r<t.length;r++){(0,t[r])()}return e}function d(e){if("function"!=typeof e)throw new Error(jo(10));o=e,m({type:So.REPLACE})}function p(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(jo(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[Ro]=function(){return this},e}return m({type:So.INIT}),(n={dispatch:m,subscribe:f,getState:l,replaceReducer:d})[Ro]=p,n}function Lo(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];"function"==typeof e[o]&&(r[o]=e[o])}var a,i=Object.keys(r);try{!function(e){Object.keys(e).forEach((function(t){var r=e[t];if(void 0===r(void 0,{type:So.INIT}))throw new Error(jo(12));if(void 0===r(void 0,{type:So.PROBE_UNKNOWN_ACTION()}))throw new Error(jo(13))}))}(r)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var n=!1,o={},s=0;s<i.length;s++){var c=i[s],u=r[c],l=e[c],f=u(l,t);if(void 0===f)throw t&&t.type,new Error(jo(14));o[c]=f,n=n||f!==l}return(n=n||i.length!==Object.keys(e).length)?o:e}}var Mo={notify:function(){},get:function(){return[]}};function Do(e,t){var r,n=Mo;function o(){i.onStateChange&&i.onStateChange()}function a(){var a,i,s;r||(r=t?t.addNestedSub(o):e.subscribe(o),a=pe(),i=null,s=null,n={clear:function(){i=null,s=null},notify:function(){a((function(){for(var e=i;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],t=i;t;)e.push(t),t=t.next;return e},subscribe:function(e){var t=!0,r=s={callback:e,next:null,prev:s};return r.prev?r.prev.next=r:i=r,function(){t&&null!==i&&(t=!1,r.next?r.next.prev=r.prev:s=r.prev,r.prev?r.prev.next=r.next:i=r.next)}}})}var i={addNestedSub:function(e){return a(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(r)},trySubscribe:a,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=Mo)},getListeners:function(){return n}};return i}var No="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?u:a;function Po(e){var r=e.store,n=e.context,o=e.children,a=l((function(){var e=Do(r);return e.onStateChange=e.notifyNestedSubs,{store:r,subscription:e}}),[r]),i=l((function(){return r.getState()}),[r]);No((function(){var e=a.subscription;return e.trySubscribe(),i!==r.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,i]);var s=n||he;return t.createElement(s.Provider,{value:a},o)}var Io=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}},Bo=Object.prototype.toString;function qo(e){return"[object Array]"===Bo.call(e)}function Uo(e){return void 0===e}function Fo(e){return null!==e&&"object"==typeof e}function zo(e){if("[object Object]"!==Bo.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function Ho(e){return"[object Function]"===Bo.call(e)}function $o(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),qo(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var Wo={isArray:qo,isArrayBuffer:function(e){return"[object ArrayBuffer]"===Bo.call(e)},isBuffer:function(e){return null!==e&&!Uo(e)&&null!==e.constructor&&!Uo(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:Fo,isPlainObject:zo,isUndefined:Uo,isDate:function(e){return"[object Date]"===Bo.call(e)},isFile:function(e){return"[object File]"===Bo.call(e)},isBlob:function(e){return"[object Blob]"===Bo.call(e)},isFunction:Ho,isStream:function(e){return Fo(e)&&Ho(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:$o,merge:function e(){var t={};function r(r,n){zo(t[n])&&zo(r)?t[n]=e(t[n],r):zo(r)?t[n]=e({},r):qo(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)$o(arguments[n],r);return t},extend:function(e,t,r){return $o(t,(function(t,n){e[n]=r&&"function"==typeof t?Io(t,r):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}};function Vo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Go=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(Wo.isURLSearchParams(t))n=t.toString();else{var o=[];Wo.forEach(t,(function(e,t){null!=e&&(Wo.isArray(e)?t+="[]":e=[e],Wo.forEach(e,(function(e){Wo.isDate(e)?e=e.toISOString():Wo.isObject(e)&&(e=JSON.stringify(e)),o.push(Vo(t)+"="+Vo(e))})))})),n=o.join("&")}if(n){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e};function Zo(){this.handlers=[]}Zo.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},Zo.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Zo.prototype.forEach=function(e){Wo.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var Xo=Zo,Ko=function(e,t,r){return Wo.forEach(r,(function(r){e=r(e,t)})),e},Yo=function(e){return!(!e||!e.__CANCEL__)},Jo=function(e,t){Wo.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},Qo=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e},ea=function(e,t,r,n,o){var a=new Error(e);return Qo(a,t,r,n,o)},ta=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(ea("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)},ra=Wo.isStandardBrowserEnv()?{write:function(e,t,r,n,o,a){var i=[];i.push(e+"="+encodeURIComponent(t)),Wo.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),Wo.isString(n)&&i.push("path="+n),Wo.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},na=function(e,t){return e&&!function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t},oa=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],aa=Wo.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=Wo.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},ia=function(e){return new Promise((function(t,r){var n=e.data,o=e.headers;Wo.isFormData(n)&&delete o["Content-Type"];var a=new XMLHttpRequest;if(e.auth){var i=e.auth.username||"",s=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(i+":"+s)}var c=na(e.baseURL,e.url);if(a.open(e.method.toUpperCase(),Go(c,e.params,e.paramsSerializer),!0),a.timeout=e.timeout,a.onreadystatechange=function(){if(a&&4===a.readyState&&(0!==a.status||a.responseURL&&0===a.responseURL.indexOf("file:"))){var n,o,i,s,c,u="getAllResponseHeaders"in a?(n=a.getAllResponseHeaders(),c={},n?(Wo.forEach(n.split("\n"),(function(e){if(s=e.indexOf(":"),o=Wo.trim(e.substr(0,s)).toLowerCase(),i=Wo.trim(e.substr(s+1)),o){if(c[o]&&oa.indexOf(o)>=0)return;c[o]="set-cookie"===o?(c[o]?c[o]:[]).concat([i]):c[o]?c[o]+", "+i:i}})),c):c):null,l={data:e.responseType&&"text"!==e.responseType?a.response:a.responseText,status:a.status,statusText:a.statusText,headers:u,config:e,request:a};ta(t,r,l),a=null}},a.onabort=function(){a&&(r(ea("Request aborted",e,"ECONNABORTED",a)),a=null)},a.onerror=function(){r(ea("Network Error",e,null,a)),a=null},a.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(ea(t,e,"ECONNABORTED",a)),a=null},Wo.isStandardBrowserEnv()){var u=(e.withCredentials||aa(c))&&e.xsrfCookieName?ra.read(e.xsrfCookieName):void 0;u&&(o[e.xsrfHeaderName]=u)}if("setRequestHeader"in a&&Wo.forEach(o,(function(e,t){void 0===n&&"content-type"===t.toLowerCase()?delete o[t]:a.setRequestHeader(t,e)})),Wo.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),e.responseType)try{a.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&a.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&a.upload&&a.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){a&&(a.abort(),r(e),a=null)})),n||(n=null),a.send(n)}))},sa=1e3,ca=60*sa,ua=60*ca,la=24*ua,fa=365.25*la,ma=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*fa;case"days":case"day":case"d":return r*la;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ua;case"minutes":case"minute":case"mins":case"min":case"m":return r*ca;case"seconds":case"second":case"secs":case"sec":case"s":return r*sa;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(e);if("number"===r&&!1===isNaN(e))return t.long?function(e){return da(e,la,"day")||da(e,ua,"hour")||da(e,ca,"minute")||da(e,sa,"second")||e+" ms"}(e):function(e){if(e>=la)return Math.round(e/la)+"d";if(e>=ua)return Math.round(e/ua)+"h";if(e>=ca)return Math.round(e/ca)+"m";if(e>=sa)return Math.round(e/sa)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function da(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}var pa=y((function(e,t){var r;function n(e){function n(){if(n.enabled){var e=n,o=+new Date,a=o-(r||o);e.diff=a,e.prev=r,e.curr=o,r=o;for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var c=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(r,n){if("%%"===r)return r;c++;var o=t.formatters[n];if("function"==typeof o){var a=i[c];r=o.call(e,a),i.splice(c,1),c--}return r})),t.formatArgs.call(e,i);var u=n.log||t.log||console.log.bind(console);u.apply(e,i)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var r,n=0;for(r in e)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=n.debug=n.default=n).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length,o=0;o<n;o++)r[o]&&("-"===(e=r[o].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=ma,t.names=[],t.skips=[],t.formatters={}}));pa.coerce,pa.disable,pa.enable,pa.enabled,pa.humanize,pa.names,pa.skips,pa.formatters;var ha=y((function(e,t){function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=pa).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var o=0,a=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(o++,"%c"===e&&(a=o))})),e.splice(a,0,n)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())}));ha.log,ha.formatArgs,ha.save,ha.load,ha.useColors,ha.storage,ha.colors;var va=y((function(e,t){(t=e.exports=pa).init=function(e){e.inspectOpts={};for(var r=Object.keys(t.inspectOpts),n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(){return n.write(ke.format.apply(ke,arguments)+"\n")},t.formatArgs=function(e){var r=this.namespace;if(this.useColors){var n=this.color,o=" [3"+n+";1m"+r+" [0m";e[0]=o+e[0].split("\n").join("\n"+o),e.push("[3"+n+"m+"+t.humanize(this.diff)+"[0m")}else e[0]=(new Date).toUTCString()+" "+r+" "+e[0]},t.save=function(e){null==e?delete process.env.DEBUG:process.env.DEBUG=e},t.load=o,t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):Oe.isatty(r)},t.colors=[6,2,3,4,5,1],t.inspectOpts=Object.keys(process.env).filter((function(e){return/^debug_/i.test(e)})).reduce((function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(function(e,t){return t.toUpperCase()})),n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e}),{});var r=parseInt(process.env.DEBUG_FD,10)||2;1!==r&&2!==r&&ke.deprecate((function(){}),"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();var n=1===r?process.stdout:2===r?process.stderr:function(e){var t;switch(process.binding("tty_wrap").guessHandleType(e)){case"TTY":(t=new Oe.WriteStream(e))._type="tty",t._handle&&t._handle.unref&&t._handle.unref();break;case"FILE":(t=new je.SyncWriteStream(e,{autoClose:!1}))._type="fs";break;case"PIPE":case"TCP":(t=new Re.Socket({fd:e,readable:!1,writable:!0})).readable=!1,t.read=null,t._type="pipe",t._handle&&t._handle.unref&&t._handle.unref();break;default:throw new Error("Implement me. Unknown stream file type!")}return t.fd=e,t._isStdio=!0,t}(r);function o(){return process.env.DEBUG}t.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,ke.inspect(e,this.inspectOpts).split("\n").map((function(e){return e.trim()})).join(" ")},t.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,ke.inspect(e,this.inspectOpts)},t.enable(o())}));va.init,va.log,va.formatArgs,va.save,va.load,va.useColors,va.colors,va.inspectOpts;var ga,ya=y((function(e){"undefined"!=typeof process&&"renderer"===process.type?e.exports=ha:e.exports=va})),ba=function(){if(!ga){try{ga=ya("follow-redirects")}catch(e){}"function"!=typeof ga&&(ga=function(){})}ga.apply(null,arguments)},Ea=we.URL,wa=_e.Writable,_a=["abort","aborted","connect","error","socket","timeout"],xa=Object.create(null);_a.forEach((function(e){xa[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var Oa=Ma("ERR_FR_REDIRECTION_FAILURE",""),ka=Ma("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),ja=Ma("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Ra=Ma("ERR_STREAM_WRITE_AFTER_END","write after end");function Ca(e,t){wa.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(e){r._processResponse(e)},this._performRequest()}function Sa(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach((function(n){var o=n+":",a=r[o]=e[n],i=t[n]=Object.create(a);Object.defineProperties(i,{request:{value:function(e,n,a){if("string"==typeof e){var i=e;try{e=Aa(new Ea(i))}catch(t){e=we.parse(i)}}else Ea&&e instanceof Ea?e=Aa(e):(a=n,n=e,e={protocol:o});return"function"==typeof n&&(a=n,n=null),(n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n)).nativeProtocols=r,xe.equal(n.protocol,o,"protocol mismatch"),ba("options",n),new Ca(n,a)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var n=i.request(e,t,r);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),t}function Ta(){}function Aa(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=Number(e.port)),t}function La(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r}function Ma(e,t){function r(e){Error.captureStackTrace(this,this.constructor),this.message=e||t}return r.prototype=new Error,r.prototype.constructor=r,r.prototype.name="Error ["+e+"]",r.prototype.code=e,r}function Da(e){for(var t=0;t<_a.length;t++)e.removeListener(_a[t],xa[_a[t]]);e.on("error",Ta),e.abort()}Ca.prototype=Object.create(wa.prototype),Ca.prototype.abort=function(){Da(this._currentRequest),this.emit("abort")},Ca.prototype.write=function(e,t,r){if(this._ending)throw new Ra;if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");"function"==typeof t&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new ja),this.abort()):r&&r()},Ca.prototype.end=function(e,t,r){if("function"==typeof e?(r=e,e=t=null):"function"==typeof t&&(r=t,t=null),e){var n=this,o=this._currentRequest;this.write(e,t,(function(){n._ended=!0,o.end(null,null,r)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},Ca.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},Ca.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},Ca.prototype.setTimeout=function(e,t){var r=this;function n(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function o(t){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout((function(){r.emit("timeout"),a()}),e),n(t)}function a(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.once("response",a),this.once("error",a),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){Ca.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(Ca.prototype,e,{get:function(){return this._currentRequest[e]}})})),Ca.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},Ca.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=we.format(this._options),n._redirectable=this;for(var o=0;o<_a.length;o++)n.on(_a[o],xa[_a[o]]);if(this._isRedirect){var a=0,i=this,s=this._requestBodyBuffers;!function e(t){if(n===i._currentRequest)if(t)i.emit("error",t);else if(a<s.length){var r=s[a++];n.finished||n.write(r.data,r.encoding,e)}else i._ended&&n.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},Ca.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(r&&!1!==this._options.followRedirects&&t>=300&&t<400){if(Da(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new ka);((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],La(/^content-/i,this._options.headers));var n=La(/^host$/i,this._options.headers)||we.parse(this._currentUrl).hostname,o=we.resolve(this._currentUrl,r);ba("redirecting to",o),this._isRedirect=!0;var a=we.parse(o);if(Object.assign(this._options,a),a.hostname!==n&&La(/^authorization$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var i={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,i)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){var s=new Oa("Redirected request failed: "+e.message);s.cause=e,this.emit("error",s)}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]};var Na=Sa({http:be,https:Ee}),Pa=Sa;Na.wrap=Pa;var Ia="Promise based HTTP client for the browser and node.js",Ba={test:"grunt test && bundlesize",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},qa={type:"git",url:"https://github.com/axios/axios.git"},Ua=["xhr","http","ajax","promise","node"],Fa={url:"https://github.com/axios/axios/issues"},za="https://github.com/axios/axios",Ha={bundlesize:"^0.17.0",coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.0.2","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^20.1.0","grunt-karma":"^2.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^1.3.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.2.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^5.2.0",sinon:"^4.5.0",typescript:"^2.8.1","url-search-params":"^0.10.0",webpack:"^1.13.1","webpack-dev-server":"^1.14.1"},$a={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},Wa="dist/axios.min.js",Va={"follow-redirects":"^1.10.0"},Ga=[{path:"./dist/axios.min.js",threshold:"5kB"}],Za={name:"axios",version:"0.21.1",description:Ia,main:"index.js",scripts:Ba,repository:qa,keywords:Ua,author:"Matt Zabriskie",license:"MIT",bugs:Fa,homepage:za,devDependencies:Ha,browser:$a,jsdelivr:"dist/axios.min.js",unpkg:Wa,typings:"./index.d.ts",dependencies:Va,bundlesize:Ga},Xa=b(Object.freeze({__proto__:null,name:"axios",version:"0.21.1",description:Ia,main:"index.js",scripts:Ba,repository:qa,keywords:Ua,author:"Matt Zabriskie",license:"MIT",bugs:Fa,homepage:za,devDependencies:Ha,browser:$a,jsdelivr:"dist/axios.min.js",unpkg:Wa,typings:"./index.d.ts",dependencies:Va,bundlesize:Ga,default:Za})),Ka=Na.http,Ya=Na.https,Ja=/https:?/;function Qa(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(e){e.headers.host=e.host,Qa(e,t,e.href)}}var ei=function(e){return new Promise((function(t,r){var n=function(e){t(e)},o=function(e){r(e)},a=e.data,i=e.headers;if(i["User-Agent"]||i["user-agent"]||(i["User-Agent"]="axios/"+Xa.version),a&&!Wo.isStream(a)){if(Buffer.isBuffer(a));else if(Wo.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else{if(!Wo.isString(a))return o(ea("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));a=Buffer.from(a,"utf-8")}i["Content-Length"]=a.length}var s=void 0;e.auth&&(s=(e.auth.username||"")+":"+(e.auth.password||""));var c=na(e.baseURL,e.url),u=we.parse(c),l=u.protocol||"http:";if(!s&&u.auth){var f=u.auth.split(":");s=(f[0]||"")+":"+(f[1]||"")}s&&delete i.Authorization;var m=Ja.test(l),d=m?e.httpsAgent:e.httpAgent,p={path:Go(u.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:i,agent:d,agents:{http:e.httpAgent,https:e.httpsAgent},auth:s};e.socketPath?p.socketPath=e.socketPath:(p.hostname=u.hostname,p.port=u.port);var h,v=e.proxy;if(!v&&!1!==v){var g=l.slice(0,-1)+"_proxy",y=process.env[g]||process.env[g.toUpperCase()];if(y){var b=we.parse(y),E=process.env.no_proxy||process.env.NO_PROXY,w=!0;if(E){var _=E.split(",").map((function(e){return e.trim()}));w=!_.some((function(e){return!!e&&("*"===e||("."===e[0]&&u.hostname.substr(u.hostname.length-e.length)===e||u.hostname===e))}))}if(w&&(v={host:b.hostname,port:b.port,protocol:b.protocol},b.auth)){var x=b.auth.split(":");v.auth={username:x[0],password:x[1]}}}}v&&(p.headers.host=u.hostname+(u.port?":"+u.port:""),Qa(p,v,l+"//"+u.hostname+(u.port?":"+u.port:"")+p.path));var O=m&&(!v||Ja.test(v.protocol));e.transport?h=e.transport:0===e.maxRedirects?h=O?Ee:be:(e.maxRedirects&&(p.maxRedirects=e.maxRedirects),h=O?Ya:Ka),e.maxBodyLength>-1&&(p.maxBodyLength=e.maxBodyLength);var k=h.request(p,(function(t){if(!k.aborted){var r=t,a=t.req||k;if(204!==t.statusCode&&"HEAD"!==a.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(Ce.createUnzip()),delete t.headers["content-encoding"]}var i={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:a};if("stream"===e.responseType)i.data=r,ta(n,o,i);else{var s=[];r.on("data",(function(t){s.push(t),e.maxContentLength>-1&&Buffer.concat(s).length>e.maxContentLength&&(r.destroy(),o(ea("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,a)))})),r.on("error",(function(t){k.aborted||o(Qo(t,e,null,a))})),r.on("end",(function(){var t=Buffer.concat(s);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=Wo.stripBOM(t))),i.data=t,ta(n,o,i)}))}}}));k.on("error",(function(t){k.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||o(Qo(t,e,null,k))})),e.timeout&&k.setTimeout(e.timeout,(function(){k.abort(),o(ea("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",k))})),e.cancelToken&&e.cancelToken.promise.then((function(e){k.aborted||(k.abort(),o(e))})),Wo.isStream(a)?a.on("error",(function(t){o(Qo(t,e,null,k))})).pipe(k):k.end(a)}))},ti={"Content-Type":"application/x-www-form-urlencoded"};function ri(e,t){!Wo.isUndefined(e)&&Wo.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var ni,oi={adapter:("undefined"!=typeof XMLHttpRequest?ni=ia:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(ni=ei),ni),transformRequest:[function(e,t){return Jo(t,"Accept"),Jo(t,"Content-Type"),Wo.isFormData(e)||Wo.isArrayBuffer(e)||Wo.isBuffer(e)||Wo.isStream(e)||Wo.isFile(e)||Wo.isBlob(e)?e:Wo.isArrayBufferView(e)?e.buffer:Wo.isURLSearchParams(e)?(ri(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Wo.isObject(e)?(ri(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};oi.headers={common:{Accept:"application/json, text/plain, */*"}},Wo.forEach(["delete","get","head"],(function(e){oi.headers[e]={}})),Wo.forEach(["post","put","patch"],(function(e){oi.headers[e]=Wo.merge(ti)}));var ai=oi;function ii(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var si=function(e){return ii(e),e.headers=e.headers||{},e.data=Ko(e.data,e.headers,e.transformRequest),e.headers=Wo.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Wo.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||ai.adapter)(e).then((function(t){return ii(e),t.data=Ko(t.data,t.headers,e.transformResponse),t}),(function(t){return Yo(t)||(ii(e),t&&t.response&&(t.response.data=Ko(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},ci=function(e,t){t=t||{};var r={},n=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],i=["validateStatus"];function s(e,t){return Wo.isPlainObject(e)&&Wo.isPlainObject(t)?Wo.merge(e,t):Wo.isPlainObject(t)?Wo.merge({},t):Wo.isArray(t)?t.slice():t}function c(n){Wo.isUndefined(t[n])?Wo.isUndefined(e[n])||(r[n]=s(void 0,e[n])):r[n]=s(e[n],t[n])}Wo.forEach(n,(function(e){Wo.isUndefined(t[e])||(r[e]=s(void 0,t[e]))})),Wo.forEach(o,c),Wo.forEach(a,(function(n){Wo.isUndefined(t[n])?Wo.isUndefined(e[n])||(r[n]=s(void 0,e[n])):r[n]=s(void 0,t[n])})),Wo.forEach(i,(function(n){n in t?r[n]=s(e[n],t[n]):n in e&&(r[n]=s(void 0,e[n]))}));var u=n.concat(o).concat(a).concat(i),l=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return Wo.forEach(l,c),r};function ui(e){this.defaults=e,this.interceptors={request:new Xo,response:new Xo}}ui.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=ci(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[si,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)r=r.then(t.shift(),t.shift());return r},ui.prototype.getUri=function(e){return e=ci(this.defaults,e),Go(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},Wo.forEach(["delete","get","head","options"],(function(e){ui.prototype[e]=function(t,r){return this.request(ci(r||{},{method:e,url:t,data:(r||{}).data}))}})),Wo.forEach(["post","put","patch"],(function(e){ui.prototype[e]=function(t,r,n){return this.request(ci(n||{},{method:e,url:t,data:r}))}}));var li=ui;function fi(e){this.message=e}fi.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},fi.prototype.__CANCEL__=!0;var mi=fi;function di(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;e((function(e){r.reason||(r.reason=new mi(e),t(r.reason))}))}di.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},di.source=function(){var e;return{token:new di((function(t){e=t})),cancel:e}};var pi=di;function hi(e){var t=new li(e),r=Io(li.prototype.request,t);return Wo.extend(r,li.prototype,t),Wo.extend(r,t),r}var vi=hi(ai);vi.Axios=li,vi.create=function(e){return hi(ci(vi.defaults,e))},vi.Cancel=mi,vi.CancelToken=pi,vi.isCancel=Yo,vi.all=function(e){return Promise.all(e)},vi.spread=function(e){return function(t){return e.apply(null,t)}},vi.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError};var gi=vi,yi=vi;gi.default=yi;var bi=gi;const Ei=[{value:"zh-tw",label:"繁體中文"}],wi=e=>Ei.some((({value:t})=>t===e))?e:Ei[0].value;var _i={"common.action.failed":"操作失敗","common.action.error":"操作錯誤","common.action.success":"操作成功","common.confirm":"確認","common.enter":"請輸入","common.submit":"送出","common.cancel":"取消","common.export":"匯出","common.export.type":"匯出種類","common.has.problem":"我有問題","common.sex":"性別","common.other":"其他","common.content":"內容","common.click.refresh":"點擊刷新","common.provide.information":"我有資料要提供","common.form.name":"姓名","common.form.phone":"電話","common.form.age":"年齡","common.form.job":"職業","common.form.author":"作者","common.form.dataname":"資料名稱","common.form.datadate":"資料日期","common.form.providername":"提供者名稱","common.form.subject":"主旨","common.form.selectQuetionType":"請選擇一個問題類型","common.form.dataProvide":"資料提供","common.form.valid.error.email":"您輸入無效的 e-mail!","common.form.male":"男","common.form.female":"女","common.form.dataname.placeholder":"可填書名、期刊名等","common.form.provider.notice":"(此名稱將會顯示於此網站上)","common.form.code":"驗證碼","common.form.code.error":"驗證碼錯誤","common.form.attachment":"附件上傳","common.form.attachment.valid.error":"附件上傳上限為2MB","common.form.attachment.hint":"上傳附件大小限制:2MB","common.form.contactUs":"聯繫我們","common.form.error":"表單尚未完成 請檢察必填項目"},xi={"common.action.failed":"操作失敗","common.action.error":"操作錯誤","common.action.success":"操作成功","common.confirm":"確認","common.enter":"請輸入","common.submit":"送出","common.cancel":"取消","common.export":"匯出","common.export.type":"匯出種類","common.has.problem":"我有問題","common.sex":"性別","common.other":"其他","common.content":"內容","common.click.refresh":"點擊刷新","common.provide.information":"我有資料要提供","common.form.name":"姓名","common.form.phone":"電話","common.form.age":"年齡","common.form.job":"職業","common.form.author":"作者","common.form.dataname":"資料名稱","common.form.datadate":"資料日期","common.form.providername":"提供者名稱","common.form.subject":"主旨","common.form.selectQuetionType":"請選擇一個問題類型","common.form.dataProvide":"資料提供","common.form.valid.error.email":"您輸入無效的 e-mail!","common.form.male":"男","common.form.female":"女","common.form.dataname.placeholder":"可填書名、期刊名等","common.form.provider.notice":"(此名稱將會顯示於此網站上)","common.form.code":"驗證碼","common.form.code.error":"驗證碼錯誤","common.form.attachment":"附件上傳","common.form.attachment.hint":"上傳附件大小限制:2MB","common.form.attachment.valid.error":"附件上傳上限為2MB","common.form.contactUs":"聯繫我們","common.form.error":"表單尚未完成 請檢察必填項目"},Oi={"common.action.failed":"操作失敗","common.action.error":"操作錯誤","common.action.success":"操作成功","common.confirm":"確認","common.enter":"請輸入","common.submit":"送出","common.cancel":"取消","common.export":"匯出","common.export.type":"匯出種類","common.has.problem":"我有問題","common.sex":"性別","common.other":"其他","common.content":"內容","common.click.refresh":"點擊刷新","common.provide.information":"我有資料要提供","common.form.name":"姓名","common.form.phone":"電話","common.form.age":"年齡","common.form.job":"職業","common.form.author":"作者","common.form.dataname":"資料名稱","common.form.datadate":"資料日期","common.form.providername":"提供者名稱","common.form.subject":"主旨","common.form.selectQuetionType":"請選擇一個問題類型","common.form.dataProvide":"資料提供","common.form.valid.error.email":"您輸入無效的 e-mail!","common.form.male":"男","common.form.female":"女","common.form.dataname.placeholder":"可填書名、期刊名等","common.form.provider.notice":"(此名稱將會顯示於此網站上)","common.form.code":"驗證碼","common.form.code.error":"驗證碼錯誤","common.form.attachment":"附件上傳","common.form.attachment.valid.error":"附件上傳上限為2MB","common.form.attachment.hint":"上傳附件大小限制:2MB","common.form.contactUs":"聯繫我們","common.form.error":"表單尚未完成 請檢察必填項目"};const ki=e=>Ao(Lo({muiNotifcation:ve,...e}),window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__()),ji=({children:e,reducers:r})=>{const[n,i]=o(),{params:{locale:s}}=Te(),c=Ae();return a((()=>{if(s&&s.length<9&&Ei.some((({value:e})=>e===s))){const e={en:_i,zhtw:xi,zhcn:Oi}[s.replace("-","")];bi.get(`/locales/${s}.json`).then((t=>i({locale:s,messages:{...e,...t.data}}))).catch((()=>{bi.get("/locales/en.json").then((e=>i({locale:"en",messages:{..._i,...e.data}}))).catch((()=>i({locale:s,messages:e})))}))}else(({history:e,currentLanguage:t,nextLanguage:r})=>{const{location:{pathname:n,search:o}}=e;if(t&&n.startsWith(`/${t}`))e.push({pathname:n.replace(`/${t}`,`/${wi(r)}`),search:o});else{const t=(navigator.languages?navigator.languages[0]:navigator.language||navigator.userLanguage).toLowerCase();e.push({pathname:`/${wi(t)}`})}})({history:c})}),[s]),n?t.createElement(Po,{store:ki(r)},t.createElement(ko,{locale:n.locale,messages:n.messages},e)):t.createElement(Se,null)};ji.defaultProps={reducers:{}},ji.propTypes={children:f.objectOf(f.any).isRequired,reducers:f.objectOf(f.any)};const Ri=({children:e,enqueueSnackbar:r,closeSnackbar:n})=>{const o=ge();return a((()=>{r&&n&&o({type:ye,enqueueSnackbar:r,closeSnackbar:n})}),[r,n]),t.createElement(t.Fragment,null,e)};Ri.defaultProps={children:void 0,enqueueSnackbar:void 0,closeSnackbar:void 0},Ri.propTypes={children:f.node,enqueueSnackbar:f.func,closeSnackbar:f.func};var Ci=function(e){var r=e.basename,n=e.children,o=e.reducers,a=e.theme,i=e.darkMode,s=Hr((({darkMode:e})=>{const{primaryColor:t,secondaryColor:r}=zn,n=e?"#8c8c8c":"#d9d9d9";return N({typography:{button:{textTransform:"none"}},palette:e?{type:"dark",primary:{main:t},secondary:{main:r}}:{type:"light",primary:{main:t},secondary:{main:r}},shape:{borderRadius:3},props:{MuiButton:{variant:"contained",color:"primary"},MuiSelect:{MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null}}},overrides:{MuiPaper:{root:{background:"white",minWidth:300}},MuiSelect:{root:{padding:8}},MuiButton:{root:{padding:"4px 8px","&$outlined":{padding:"4px 8px"}}},MuiInput:{root:{width:"100%",border:`1px solid ${n}`,borderRadius:3,padding:"2px 8px 0"},underline:{"&::before":{display:"none"},"&::after":{display:"none"}}},MuiAutocomplete:{inputRoot:{paddingRight:"4px !important",backgroundColor:e?"#303030":"#fff","&:hover .MuiOutlinedInput-notchedOutline":{borderColor:t}},endAdornment:{display:"none"}},MuiChip:{root:{height:"28px",borderRadius:"2px",backgroundColor:e?"#595959":"#f5f5f5",border:"1px solid",borderColor:n}},MuiOutlinedInput:{root:{borderColor:n,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:"1px",boxShadow:"0 0 0 2px rgb(24 144 255 / 20%)"}}},MuiRadio:{colorSecondary:{"&.Mui-checked":{color:t}}},MuiTypography:{root:{color:e?"#fff":"#595959"}},MuiTableHead:{root:{background:"#fafafa"}},MuiTableContainer:{root:{boxShadow:"initial",border:"1px solid #e0e0e0",borderBottom:0}},MuiDialogTitle:{root:{padding:"0 0 0 12px",background:t,color:"white"}},MuiDialogContent:{root:{padding:12,"&:first-child":"initial"}},MuiDialogActions:{root:{padding:12,borderTop:`1px solid ${n}`}}}})})({darkMode:void 0===i?Wr("(prefers-color-scheme: light)"):i}),a),c=t.createRef();return t.createElement(Fn,{ref:c,maxSnack:3},t.createElement(m,{basename:r},t.createElement(Le,null,t.createElement(Me,{path:"/:locale?",render:function(){return t.createElement(ji,{reducers:o},t.createElement(Ri,{enqueueSnackbar:c.current&&c.current.enqueueSnackbar,closeSnackbar:c.current&&c.current.closeSnackbar},t.createElement($r,{theme:s},t.createElement(Xr,null),n)))}}))))};Ci.defaultProps={basename:void 0,children:void 0,reducers:void 0,theme:void 0,darkMode:void 0},Ci.propTypes={basename:f.string,children:f.node,reducers:f.objectOf(f.any),theme:f.objectOf(f.any),darkMode:f.bool};export{Ci as default};
|
package/package.json
CHANGED