!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("buffer"),require("path"),require("util")):"function"==typeof define&&define.amd?define("index",["buffer","path","util"],t):t((e=e||self).buffer,e.path,e.util)}(this,function(e,t,n){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,t=t&&t.hasOwnProperty("default")?t.default:t,n=n&&n.hasOwnProperty("default")?n.default:n;var r="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}var o=i,l=a;function s(e){if(o===setTimeout)return setTimeout(e,0);if((o===i||!o)&&setTimeout)return o=setTimeout,setTimeout(e,0);try{return o(e,0)}catch(t){try{return o.call(null,e,0)}catch(t){return o.call(this,e,0)}}}"function"==typeof r.setTimeout&&(o=setTimeout),"function"==typeof r.clearTimeout&&(l=clearTimeout);var c,u=[],f=!1,d=-1;function h(){f&&c&&(f=!1,c.length?u=c.concat(u):d=-1,u.length&&p())}function p(){if(!f){var e=s(h);f=!0;for(var t=u.length;t;){for(c=u,u=[];++d1)for(var n=1;n2?n-2:0),i=2;i1?t-1:0),r=1;r2?n-2:0),i=2;i8)throw new Error("warningWithoutStack() currently supports at most 8 arguments.");if(!e){if("undefined"!=typeof console){var a=r.map(function(e){return""+e});a.unshift("Warning: "+t),Function.prototype.apply.call(console.error,console,a)}try{var o=0,l="Warning: "+t.replace(/%s/g,function(){return r[o++]});throw new Error(l)}catch(e){}}},_={};function C(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",i=r+"."+t;_[i]||(x(!1,"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),_[i]=!0)}var M={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){C(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){C(e,"replaceState")},enqueueSetState:function(e,t,n,r){C(e,"setState")}},S={};function T(e,t,n){this.props=e,this.context=t,this.refs=S,this.updater=n||M}Object.freeze(S),T.prototype.isReactComponent={},T.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&k(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."),this.updater.enqueueSetState(this,e,t,"setState")},T.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var E={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},N=function(e,t){Object.defineProperty(T.prototype,e,{get:function(){w(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var L in E)E.hasOwnProperty(L)&&N(L,E[L]);function A(){}function P(e,t,n){this.props=e,this.context=t,this.refs=S,this.updater=n||M}A.prototype=T.prototype;var D=P.prototype=new A;D.constructor=P,t(D,T.prototype),D.isPureReactComponent=!0;var R={current:null},O={current:null},U=/^(.*)[\\\/]/,q=1;function j(e){if(null==e)return null;if("number"==typeof e.tag&&x(!1,"Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case f:return"ConcurrentMode";case o:return"Fragment";case a:return"Portal";case s:return"Profiler";case l:return"StrictMode";case h:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case u:return"Context.Consumer";case c:return"Context.Provider";case d:return r=e,i=e.render,v="ForwardRef",g=i.displayName||i.name||"",r.displayName||(""!==g?v+"("+g+")":v);case p:return j(e.type);case m:var t=(n=e)._status===q?n._result:null;if(t)return j(t)}var n,r,i,v,g;return null}var H={},F=null;function z(e){F=e}H.getCurrentStack=null,H.getStackAddendum=function(){var e="";if(F){var t=j(F.type),n=F._owner;e+=function(e,t,n){var r="";if(t){var i=t.fileName,a=i.replace(U,"");if(/^index\./.test(a)){var o=i.match(U);if(o){var l=o[1];l&&(a=l.replace(U,"")+"/"+a)}}r=" (at "+a+":"+t.lineNumber+")"}else n&&(r=" (created by "+n+")");return"\n in "+(e||"Unknown")+r}(t,F._source,n&&j(n.type))}var r=H.getCurrentStack;return r&&(e+=r()||""),e};var W={ReactCurrentDispatcher:R,ReactCurrentOwner:O,assign:t};t(W,{ReactDebugCurrentFrame:H,ReactComponentTreeHook:{}});var B=function(e,t){if(!e){for(var n=W.ReactDebugCurrentFrame.getStackAddendum(),r=arguments.length,i=Array(r>2?r-2:0),a=2;a1){for(var u=Array(c),f=0;f.")}return t}(t);if(!ye[n]){ye[n]=!0;var r="";e&&e._owner&&e._owner!==O.current&&(r=" It was passed a child from "+j(e._owner.type)+"."),z(e),B(!1,'Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',n,r),z(null)}}}function we(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,B(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var c=J.apply(this,arguments);if(null==c)return c;if(r)for(var u=2;u is not supported and will be removed in a future major release. Did you mean to render instead?")),n.Provider},set:function(e){n.Provider=e}},_currentValue:{get:function(){return n._currentValue},set:function(e){n._currentValue=e}},_currentValue2:{get:function(){return n._currentValue2},set:function(e){n._currentValue2=e}},_threadCount:{get:function(){return n._threadCount},set:function(e){n._threadCount=e}},Consumer:{get:function(){return r||(r=!0,B(!1,"Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),n.Consumer}}}),n.Consumer=a,n._currentRenderer=null,n._currentRenderer2=null,n},forwardRef:function(e){return null!=e&&e.$$typeof===p?x(!1,"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?x(!1,"forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&x(!1,"forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null!=e.defaultProps||null!=e.propTypes)&&x(!1,"forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:d,render:e}},lazy:function(e){var t={$$typeof:m,_ctor:e,_status:-1,_result:null},n=void 0,r=void 0;return Object.defineProperties(t,{defaultProps:{configurable:!0,get:function(){return n},set:function(e){B(!1,"React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(t,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){B(!1,"React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(t,"propTypes",{enumerable:!0})}}}),t},memo:function(e,t){return me(e)||x(!1,"memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:p,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return ve().useCallback(e,t)},useContext:function(e,t){var n=ve();if(void 0!==t&&B(!1,"useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==e._context){var r=e._context;r.Consumer===e?B(!1,"Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&B(!1,"Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return n.useContext(e,t)},useEffect:function(e,t){return ve().useEffect(e,t)},useImperativeHandle:function(e,t,n){return ve().useImperativeHandle(e,t,n)},useDebugValue:function(e,t){return ve().useDebugValue(e,t)},useLayoutEffect:function(e,t){return ve().useLayoutEffect(e,t)},useMemo:function(e,t){return ve().useMemo(e,t)},useReducer:function(e,t,n){return ve().useReducer(e,t,n)},useRef:function(e){return ve().useRef(e)},useState:function(e){return ve().useState(e)},Fragment:o,StrictMode:l,Suspense:h,createElement:_e,cloneElement:function(e,n,r){for(var i=function(e,n,r){null==e&&k(!1,"React.cloneElement(...): The argument must be a React element, but you passed %s.",e);var i=void 0,a=t({},e.props),o=e.key,l=e.ref,s=e._self,c=e._source,u=e._owner;if(null!=n){G(n)&&(l=n.ref,u=O.current),Q(n)&&(o=""+n.key);var f=void 0;for(i in e.type&&e.type.defaultProps&&(f=e.type.defaultProps),n)V.call(n,i)&&!Z.hasOwnProperty(i)&&(void 0===n[i]&&void 0!==f?a[i]=f[i]:a[i]=n[i])}var d=arguments.length-2;if(1===d)a.children=r;else if(d>1){for(var h=Array(d),p=0;p=t){r=e;break}e=e.next}while(e!==n);null===r?r=n:r===n&&(n=s,c()),(t=r.previous).next=r.previous=s,s.next=r,s.previous=t}}function f(){if(-1===a&&null!==n&&1===n.priorityLevel){l=!0;try{do{u()}while(null!==n&&1===n.priorityLevel)}finally{l=!1,null!==n?c():s=!1}}}function d(e){l=!0;var i=r;r=e;try{if(e)for(;null!==n;){var a=t.unstable_now();if(!(n.expirationTime<=a))break;do{u()}while(null!==n&&n.expirationTime<=a)}else if(null!==n)do{u()}while(null!==n&&!C())}finally{l=!1,r=i,null!==n?c():s=!1,f()}}var h,p,m=Date,v="function"==typeof setTimeout?setTimeout:void 0,g="function"==typeof clearTimeout?clearTimeout:void 0,b="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,y="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function k(e){h=b(function(t){g(p),e(t)}),p=v(function(){y(h),e(t.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var w=performance;t.unstable_now=function(){return w.now()}}else t.unstable_now=function(){return m.now()};var x,_,C,M=null;if("undefined"!=typeof window?M=window:void 0!==E&&(M=E),M&&M._schedMock){var S=M._schedMock;x=S[0],_=S[1],C=S[2],t.unstable_now=S[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var T=null,N=function(e){if(null!==T)try{T(e)}finally{T=null}};x=function(e){null!==T?setTimeout(x,0,e):(T=e,setTimeout(N,0,!1))},_=function(){T=null},C=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof b&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof y&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var L=null,A=!1,P=-1,D=!1,R=!1,O=0,I=33,U=33;C=function(){return O<=t.unstable_now()};var q=new MessageChannel,j=q.port2;q.port1.onmessage=function(){A=!1;var e=L,n=P;L=null,P=-1;var r=t.unstable_now(),i=!1;if(0>=O-r){if(!(-1!==n&&n<=r))return D||(D=!0,k(H)),L=e,void(P=n);i=!0}if(null!==e){R=!0;try{e(i)}finally{R=!1}}};var H=function(e){if(null!==L){k(H);var t=e-O+U;tt&&(t=8),U=tt?j.postMessage(void 0):D||(D=!0,k(H))},_=function(){L=null,A=!1,P=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=i,o=a;i=e,a=t.unstable_now();try{return n()}finally{i=r,a=o,f()}},t.unstable_next=function(e){switch(i){case 1:case 2:case 3:var n=3;break;default:n=i}var r=i,o=a;i=n,a=t.unstable_now();try{return e()}finally{i=r,a=o,f()}},t.unstable_scheduleCallback=function(e,r){var o=-1!==a?a:t.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=o+r.timeout;else switch(i){case 1:r=o+-1;break;case 2:r=o+250;break;case 5:r=o+1073741823;break;case 4:r=o+1e4;break;default:r=o+5e3}if(e={callback:e,priorityLevel:i,expirationTime:r,next:null,previous:null},null===n)n=e.next=e.previous=e,c();else{o=null;var l=n;do{if(l.expirationTime>r){o=l;break}l=l.next}while(l!==n);null===o?o=n:o===n&&(n=e,c()),(r=o.previous).next=o.previous=e,e.next=o,e.previous=r}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=i;return function(){var r=i,o=a;i=n,a=t.unstable_now();try{return e.apply(this,arguments)}finally{i=r,a=o,f()}}},t.unstable_getCurrentPriorityLevel=function(){return i},t.unstable_shouldYield=function(){return!r&&(null!==n&&n.expirationTime=a){u=f;break}f=f.next}while(f!==d);null===u?u=d:u===d&&(d=c,w());var h=u.previous;h.next=u.previous=c,c.next=u,c.previous=h}}}function _(){if(-1===v&&null!==d&&d.priorityLevel===n){b=!0;try{do{x()}while(null!==d&&d.priorityLevel===n)}finally{b=!1,null!==d?w():y=!1}}}function C(n){b=!0;var r=h;h=n;try{if(n)for(;!(null===d||e&&p);){var i=t.unstable_now();if(!(d.expirationTime<=i))break;do{x()}while(null!==d&&d.expirationTime<=i&&(!e||!p))}else if(null!==d)do{if(e&&p)break;x()}while(null!==d&&!L())}finally{b=!1,h=r,null!==d?w():y=!1,_()}}var M,S,T,N,L,A=Date,P="function"==typeof setTimeout?setTimeout:void 0,D="function"==typeof clearTimeout?clearTimeout:void 0,R="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,O="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0,I=function(e){M=R(function(t){D(S),e(t)}),S=P(function(){O(M),e(t.unstable_now())},100)};if(k){var U=performance;t.unstable_now=function(){return U.now()}}else t.unstable_now=function(){return A.now()};var q=null;if("undefined"!=typeof window?q=window:void 0!==E&&(q=E),q&&q._schedMock){var j=q._schedMock;T=j[0],N=j[1],L=j[2],t.unstable_now=j[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var H=null,F=function(e){if(null!==H)try{H(e)}finally{H=null}};T=function(e,t){null!==H?setTimeout(T,0,e):(H=e,setTimeout(F,0,!1))},N=function(){H=null},L=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof R&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof O&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var z=null,W=!1,B=-1,V=!1,Z=!1,Y=0,$=33,G=33;L=function(){return Y<=t.unstable_now()};var K=new MessageChannel,Q=K.port2;K.port1.onmessage=function(e){W=!1;var n=z,r=B;z=null,B=-1;var i=t.unstable_now(),a=!1;if(Y-i<=0){if(!(-1!==r&&r<=i))return V||(V=!0,I(X)),z=n,void(B=r);a=!0}if(null!==n){Z=!0;try{n(a)}finally{Z=!1}}};var X=function(e){if(null!==z){I(X);var t=e-Y+G;tp){y=k;break}k=k.next}while(k!==d);null===y?y=d:y===d&&(d=b,w());var x=y.previous;x.next=y.previous=b,b.next=y,b.previous=x}return b},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)d=null;else{e===d&&(d=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=m;return function(){var r=m,i=v;m=n,v=t.unstable_now();try{return e.apply(this,arguments)}finally{m=r,v=i,_()}}},t.unstable_getCurrentPriorityLevel=function(){return m},t.unstable_shouldYield=function(){return!h&&(null!==d&&d.expirationTimethis.eventPool.length&&this.eventPool.push(e)}function lt(e){e.eventPool=[],e.getPooled=at,e.release=ot}I(it.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nt)},persist:function(){this.isPersistent=nt},isPersistent:rt,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=rt,this._dispatchInstances=this._dispatchListeners=null}}),it.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},it.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return I(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=I({},r.Interface,e),n.extend=r.extend,lt(n),n},lt(it);var st=it.extend({data:null}),ct=it.extend({data:null}),ut=[9,13,27,32],ft=Fe&&"CompositionEvent"in window,dt=null;Fe&&"documentMode"in document&&(dt=document.documentMode);var ht=Fe&&"TextEvent"in window&&!dt,pt=Fe&&(!ft||dt&&8=dt),mt=String.fromCharCode(32),vt={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},gt=!1;function bt(e,t){switch(e){case"keyup":return-1!==ut.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function yt(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var kt=!1;var wt={eventTypes:vt,extractEvents:function(e,t,n,r){var i=void 0,a=void 0;if(ft)e:{switch(e){case"compositionstart":i=vt.compositionStart;break e;case"compositionend":i=vt.compositionEnd;break e;case"compositionupdate":i=vt.compositionUpdate;break e}i=void 0}else kt?bt(e,n)&&(i=vt.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=vt.compositionStart);return i?(pt&&"ko"!==n.locale&&(kt||i!==vt.compositionStart?i===vt.compositionEnd&&kt&&(a=tt()):(Je="value"in(Xe=r)?Xe.value:Xe.textContent,kt=!0)),i=st.getPooled(i,t,n,r),a?i.data=a:null!==(a=yt(n))&&(i.data=a),He(i),a=i):a=null,(e=ht?function(e,t){switch(e){case"compositionend":return yt(t);case"keypress":return 32!==t.which?null:(gt=!0,mt);case"textInput":return(e=t.data)===mt&>?null:e;default:return null}}(e,n):function(e,t){if(kt)return"compositionend"===e||!ft&&bt(e,t)?(e=tt(),et=Je=Xe=null,kt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1