PageSourceSearch

https://www.beanhunter.com/_next/static/chunks/pages/users/resetPassword-87157b1c35691d037a6a.js

js beanhunter.com collected 2026-10-03 20:14:35 UTC 34,477 bytes, 1 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[66],{"/GRZ":function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},"1Yj4":function(e,t,n){"use strict";var r=n("wx14"),o=n("zLVn"),i=n("q1tI"),s=n.n(i),a=n("17x9"),u=n.n(a),l=n("TSYQ"),c=n.n(l),d=n("33Jr"),f={tag:d.o,fluid:u.a.oneOfType([u.a.bool,u.a.string]),className:u.a.string,cssModule:u.a.object},p=function(e){var t=e.className,n=e.cssModule,i=e.fluid,a=e.tag,u=Object(o.a)(e,["className","cssModule","fluid","tag"]),l="container";!0===i?l="container-fluid":i&&(l="container-"+i);var f=Object(d.k)(c()(t,l),n);return s.a.createElement(a,Object(r.a)({},u,{className:f}))};p.propTypes=f,p.defaultProps={tag:"div"},t.a=p},"20a2":function(e,t,n){e.exports=n("nOHt")},"2qu3":function(e,t,n){"use strict";var r=n("oI91"),o=n("/GRZ"),i=n("i2R6");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.__esModule=!0,t.default=void 0;var c,d=(c=n("q1tI"))&&c.__esModule?c:{default:c},f=n("8L3h"),p=n("jwwS");var h=[],m=[],v=!1;function y(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function b(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var o=y(e[r]);o.loading?t.loading=!0:(t.loaded[r]=o.loaded,t.error=o.error),n.push(o.promise),o.promise.then((function(e){t.loaded[r]=e})).catch((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function g(e,t){return d.default.createElement(function(e){return e&&e.__esModule?e.default:e}(e),t)}function _(e,t){var n=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:g,webpack:null,modules:null},t),r=null;function o(){if(!r){var t=new w(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!v&&"function"===typeof n.webpack){var i=n.webpack();m.push((function(e){var t,n=u(i);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(-1!==e.indexOf(r))return o()}}catch(s){n.e(s)}finally{n.f()}}))}var s=function(e,t){o();var i=d.default.useContext(p.LoadableContext),s=(0,f.useSubscription)(r);return d.default.useImperativeHandle(t,(function(){return{retry:r.retry}}),[]),i&&Array.isArray(n.modules)&&n.modules.forEach((function(e){i(e)})),d.default.useMemo((function(){return s.loading||s.error?d.default.createElement(n.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:r.retry}):s.loaded?n.render(s.loaded,e):null}),[e,s])};return s.preload=function(){return o()},s.displayName="LoadableComponent",d.default.forwardRef(s)}var w=function(){function e(t,n){o(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return i(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){e._update({}),e._clearTimeouts()})).catch((function(t){e._update({}),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=a(a({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks.delete(e)}}}]),e}();function S(e){return _(y,e)}function j(e,t){for(var n=[];e.length;){var r=e.pop();
1n.push(r(t))}return Promise.all(n).then((function(){if(e.length)return j(e,t)}))}S.Map=function(e){if("function"!==typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return _(b,e)},S.preloadAll=function(){return new Promise((function(e,t){j(h).then(e,t)}))},S.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return v=!0,t()};j(m,e).then(n,n)}))},window.__NEXT_PRELOADREADY=S.preloadReady;var O=S;t.default=O},"33Jr":function(e,t,n){"use strict";n.d(t,"n",(function(){return s})),n.d(t,"g",(function(){return a})),n.d(t,"e",(function(){return u})),n.d(t,"k",(function(){return l})),n.d(t,"l",(function(){return c})),n.d(t,"m",(function(){return d})),n.d(t,"q",(function(){return p})),n.d(t,"p",(function(){return m})),n.d(t,"o",(function(){return v})),n.d(t,"c",(function(){return y})),n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return g})),n.d(t,"j",(function(){return _})),n.d(t,"d",(function(){return w})),n.d(t,"i",(function(){return j})),n.d(t,"h",(function(){return k})),n.d(t,"f",(function(){return C}));var r,o=n("17x9"),i=n.n(o);function s(e){document.body.style.paddingRight=e>0?e+"px":null}function a(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function u(){var e=function(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;document.body.clientWidth<window.innerWidth&&s(n+e)}function l(e,t){return void 0===e&&(e=""),void 0===t&&(t=r),t?e.split(" ").map((function(e){return t[e]||e})).join(" "):e}function c(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function d(e,t){for(var n,r=Array.isArray(t)?t:[t],o=r.length,i={};o>0;)i[n=r[o-=1]]=e[n];return i}var f={};function p(e){f[e]||("undefined"!==typeof console&&console.error(e),f[e]=!0)}var h="object"===typeof window&&window.Element||function(){};var m=i.a.oneOfType([i.a.string,i.a.func,function(e,t,n){if(!(e[t]instanceof h))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")},i.a.shape({current:i.a.any})]),v=i.a.oneOfType([i.a.func,i.a.string,i.a.shape({$$typeof:i.a.symbol,render:i.a.func}),i.a.arrayOf(i.a.oneOfType([i.a.func,i.a.string,i.a.shape({$$typeof:i.a.symbol,render:i.a.func})]))]),y={Fade:150,Collapse:350,Modal:300,Carousel:600},b=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],g={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},_={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},w=!("undefined"===typeof window||!window.document||!window.document.createElement);function S(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function j(e){var t=typeof e;return null!=e&&("object"===t||"function"===t)}function O(e){if(function(e){return!(!e||"object"!==typeof e)&&"current"in e}(e))return e.current;if(function(e){if(!j(e))return!1;var t=S(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object Proxy]"===t}(e))return e();if("string"===typeof e&&w){var t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll("#"+e)),!t.length)throw new Error("The target '"+e+"' could not be identified in the dom, tip: check spelling");return t}return e}function x(e){return null!==e&&(Array.isArray(e)||w&&"number"===typeof e.length)}function k(e,t){var n=O(e);return t?x(n)?n:null===n?[]:[n]:x(n)?n[0]:n}var C=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not
1(.modal)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])']},"3niX":function(e,t,n){"use strict";t.__esModule=!0,t.flush=function(){var e=i.cssRules();return i.flush(),e},t.default=void 0;var r,o=n("q1tI");var i=new(((r=n("SevZ"))&&r.__esModule?r:{default:r}).default),s=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).prevProps={},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.dynamic=function(e){return e.map((function(e){var t=e[0],n=e[1];return i.computeId(t,n)})).join(" ")};var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.id!==e.id||String(this.props.dynamic)!==String(e.dynamic)},o.componentWillUnmount=function(){i.remove(this.props)},o.render=function(){return this.shouldComponentUpdate(this.prevProps)&&(this.prevProps.id&&i.remove(this.prevProps),i.add(this.props),this.prevProps=this.props),null},r}(o.Component);t.default=s},"72Xf":function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/users/resetPassword",function(){return n("V5wh")}])},"9kyW":function(e,t,n){"use strict";e.exports=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}},JX7q:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},MX0m:function(e,t,n){e.exports=n("3niX")},Qetd:function(e,t,n){"use strict";var r=Object.assign.bind(Object);e.exports=r,e.exports.default=e.exports},SevZ:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=i(n("9kyW")),o=i(n("bVZc"));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,r=void 0===n?null:n,i=t.optimizeForSpeed,s=void 0!==i&&i,a=t.isBrowser,u=void 0===a?"undefined"!==typeof window:a;this._sheet=r||new o.default({name:"styled-jsx",optimizeForSpeed:s}),this._sheet.inject(),r&&"boolean"===typeof s&&(this._sheet.setOptimizeForSpeed(s),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._isBrowser=u,this._fromServer=void 0,this._indices={},this._instancesCounts={},this.computeId=this.createComputeId(),this.computeSelector=this.createComputeSelector()}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._isBrowser&&!this._fromServer&&(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce((function(e,t){return e[t]=0,e}),{}));var n=this.getIdAndRules(e),r=n.styleId,o=n.rules;if(r in this._instancesCounts)this._instancesCounts[r]+=1;else{var i=o.map((function(e){return t._sheet.insertRule(e)})).filter((function(e){return-1!==e}));this._indices[r]=i,this._instancesCounts[r]=1}},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw new Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var r=this._fromServer&&this._fromServer[n];r?(r.parentNode.removeChild(r),delete this._fromServer[n]):(this._indices[n].forEach((function(e){return t._sheet.deleteRule(e)})),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={},this.computeId=this.createComputeId(),this.computeSelector=this.createComputeSelector()},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map((function(t){return[t,e._fromServer[t]]})):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map((function(t){return[t,e._indices[t].map((function(e){return n[e].cssText})).join(e._optimizeForSpeed?"":"\n")]})).filter((function(e){return Boolean(e[1])})))},t.createComputeId=function(){var e={};return function(t,n){if(!n)return"jsx-"+t;var o=String(n),i=t+o;return e[i]||(e[i]="jsx-"+(0,r.default)(t+"-"+o)),e[i]}},t.createComputeSelector=function(e){void 0===e&&(e=/__jsx-style-dynamic-selector/g);var t={};return function(n,r){this._isBrowser||(r=r.replace(/\/style/gi,"\\/style"));var o=n+r;return t[o]||(t[o]=r.replace(e,n)),t[o]}},t.getIdAndRules=function(e){var t=this,n=e.children,r=e.dynamic,o=e.id;if(r){var i=this.computeId(o,r);return{styleId:i,rules:Array.isArray(n)?n.map((function(e){return t.computeSelector(i,e)})):[this.computeSelector(i,n)]}}return{styleId:this.computeId(o),rules:Array.isArray(n)?n:[n]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce((function(e,t){return e[t.id.slice(2)]=t,e}),{})},e}();t.default=s},TSYQ:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var s=o.apply(null,r);s&&e.push(s)}else if("object"===i)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}
1.apply(t,[]))||(e.exports=r)}()},V5wh:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),o=n.n(r),i=n("HALo"),s=n("MX0m"),a=n.n(s),u=n("qhky"),l=n("1Yj4"),c=n("ok1R"),d=n("rhny"),f=n("uBiN"),p=n("jrRI"),h=n("3OM0"),m=n("L3zb"),v=n("sOKU"),y=n("NKCw"),b=n("n3vx"),g=n("YFqc"),_=n.n(g),w=n("HtaS"),S=n("20a2"),j=n("Vvt1"),O=n.n(j),x=o.a.createElement,k=O()((function(){return n.e(28).then(n.bind(null,"SW8d"))}),{loadableGenerated:{webpack:function(){return["SW8d"]},modules:["..\\components\\resetPassword.js -> ../components/HeaderDeatils"]}}),C=function(){var e,t,n,o,s=Object(r.useState)(!1),g=s[0],j=s[1],O=Object(r.useState)(!1),C=O[0],E=O[1],R=Object(r.useState)([]),N=R[0],P=R[1],T=Object(r.useState)(""),I=T[0],z=T[1],M=Object(y.a)(),F=M.register,A=M.handleSubmit,L=(M.setError,M.formState.errors),q=(M.watch,Object(S.useRouter)().query.resetToken),D=Object(b.a)({title:"Signup to Beanhunter",description:"Sign up to Beanhunter contribute to the world's best coffee community ",url:"https://www.beanhunter.com/signup"});return x(l.a,{fluid:!0,className:" px-6"},x(k,{description:"Sign up to Beanhunter contribute to the world's best coffee community",title:null===D||void 0===D?void 0:D.title}),x(u.a,{link:D.link,meta:D.meta,title:D.title}),x(c.a,{className:"min-vh-100 justify-content-center"},x(d.a,{md:"8",lg:"6",xl:"5",className:"d-flex align-items-center",style:{margin:"0 auto"}},x("div",{className:"jsx-1928769848 w-100 py-5 px-md-5 px-xl-6 position-relative"},x("div",{className:"jsx-1928769848 mb-5"},x("h2",{className:"jsx-1928769848 loginHeading"},"Reset Password")),x(f.a,{className:"form-validate",onSubmit:A((function(e){if(e.password===e.password2){j(!1);var t={password:null===e||void 0===e?void 0:e.password,passwordConfirm:null===e||void 0===e?void 0:e.password2,resetToken:q,showValidation:!1,submittingPasswords:!1};w.a.put("updatePassword",t).then((function(e){200==e.status?E(!0):P(e.error)})).catch((function(e){var t,n,r,o;null!==(null===e||void 0===e||null===(t=e.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.error)?P(null===e||void 0===e||null===(r=e.response)||void 0===r||null===(o=r.data)||void 0===o?void 0:o.error.message):P("Reset password link is invalid or has has expired")}))}else j(!0),e.password.length>=8&&e.password2.length>=8&&z("Password not metched")}))},x(p.a,null,x(h.a,{for:"loginPassword",className:"form-label"},"Password"),x(m.a,Object(i.a)({name:"password",type:"password",ref:F,placeholder:"New password"},F("password",{minLength:{value:8,message:"Password must have at least 8 characters"},required:"Please specify a password"}),{className:L.password&&L.password||g?"is-invalid":""})),L.password&&L.password||g?x("div",{className:"jsx-1928769848 invalid-feedback"},null!==L&&void 0!==L&&null!==(e=L.password)&&void 0!==e&&e.message?null===(t=L.password)||void 0===t?void 0:t.message:""):""),x(p.a,{className:"mb-4"},x(c.a,null,x(d.a,null,x(h.a,{for:"password",className:"form-label"},"Password"))),x(m.a,Object(i.a)({name:"password2",type:"password",ref:F,placeholder:"Confirm password"},F("password2",{minLength:{value:8,message:"Password must have at least 8 characters"},required:" Please specify a password"}),{className:L.password2&&L.password2||g?"is-invalid":""})),L.password2&&L.password2||g?x("div",{className:"jsx-1928769848 invalid-feedback"},null!==L&&void 0!==L&&null!==(n=L.password2)&&void 0!==n&&n.message?null===(o=L.password2)||void 0===o?void 0:o.message:I):""),x("div",{className:"jsx-1928769848 text-danger"},x("small",{className:"jsx-1928769848"},N)),!0===C&&x("p",{className:"jsx-1928769848"},x("small",{className:"jsx-1928769848 text-success"},"Password reset successfully. \xa0",x(_.a,{href:"/login"},x("a",{className:"jsx-1928769848"},"Login")))),x("br",{className:"jsx-1928769848"}),x(v.a,{size:"lg",type:"submit",color:"primary",block:!0},"Reset")),x("hr",{className:"jsx-1928769848 my-4"}),x("p",{className:"jsx-1928769848 text-center"},x("small",{className:"jsx-1928769848 text-muted text-center"},"Don't have an account yet?\xa0",x(_.a,{href:"/signup"},x("a",{className:"jsx-1928769848"},"Sign Up"))))))),x(a.a,{id:"1928769848"},[".loginFormContainer.jsx-1928769848{margin:0 auto;background-color:red;}",".loginHeading.jsx-1928769848{text-align:center;}"]))},E=o.a.createElement;t.default=function(){return E(o.a.Fragment,null,E(C,null))}},Vvt1:function(e,t,n){e.exports=n("a6RD")},YFqc:function(e,t,n){e.exports=n("cTJO")},a6RD:function(e,t,n){"use strict";var r=n("oI91");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.__esModule=!0,t.noSSR=u,t.default=function(e,t){var n=s.default,r={loading:function(e){e.error,e.isLoading;return e.pastDelay,null}};e instanceof Promise?r.loader=function(){return e}:"function"===typeof e?r.loader=e:"object"===typeof e&&(r=i(i({},r),e));if(r=i(i({},r),t),"object"===typeof e&&!(e instanceof Promise)&&(e.render&&(r.render=function(t,n){return e.render(n,t)}),e.modules)){n=s.default.Map;var o={},a=e.modules();Object.keys(a).forEach((function(e){var t=a[e];"function"!==typeof t.then?o[e]=t:o[e]=function(){return t.then((function(e){return e.default||e}))}})),r.loader=o}r.loadableGenerated&&delete(r=i(i({},r),r.loadableGenerated)).loadableGenerated;if("boolean"===typeof r.ssr){if(!r.ssr)return delete r.ssr,u(n,r);delete r.ssr}return n(r)};a(n("q1tI"));var s=a(n("2qu3"));function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return delete t.webpack,delete t.modules,e(t)}},bVZc:function(e,t,n){"use strict";(function(e){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}t.__esModule=!0,t.default=void 0;var r="undefined"!==typeof e&&e.env&&!0,o=function(e){return"[object String]"===Object.prototype.toString.call(e)},i=function(){function e(e){var t=void 0===e?{}:e,n=t.name,i=void 0===n?"stylesheet":n,a=t.optimizeForSpeed,u=void 0===a?r:a,l=t.isBrowser,c=void 0===l?"undefined"!==typeof window:l;s(o(i),"`name` must be a string"),this._name=i,this._deletedRulePlaceholder="#"+i+"-deleted-rule____{}",s("boolean"===typeof u,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=u,this._isBrowser=c,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var d=this._isBrowser&&document.querySelector('meta[property="csp-nonce"]');this._nonce=d?d.getAttribute("content"):null}var t,i,a,u=e.prototype;return u.setOptimizeForSpeed=function(e){s("boolean"===typeof e,"`setOptimizeForSpeed` accepts a boolean"),s(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},u.isOptimizeForSpeed=function(){return this._optimizeForSpeed},u.inject=function(){var e=this;if(s(!this._injected,"sheet already injected"),this._injected=!0,this._isBrowser&&this._optimizeForSpeed)return this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),void(this._optimizeForSpeed||(r||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0));this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"===typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},u.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},u.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},u.insertRule=function(e,t){if(s(o(e),"`insertRule` accepts only strings"),!this._isBrowser)return"number"!==typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var n=this.getSheet();"number"!==typeof t&&(t=n.cssRules.length);try{n.insertRule(e,t)}catch(a){return r||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var i=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,i))}return this._rulesCount++},u.replaceRule=function(e,t){if(this._optimizeForSpeed||!this._isBrowser){var n=this._isBrowser?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!n.cssRules[e])return e;n.deleteRule(e);try{n.insertRule(t,e)}catch(i){r||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),n.insertRule(this._deletedRulePlaceholder,e)}
1}else{var o=this._tags[e];s(o,"old rule at index `"+e+"` not found"),o.textContent=t}return e},u.deleteRule=function(e){if(this._isBrowser)if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];s(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}else this._serverSheet.deleteRule(e)},u.flush=function(){this._injected=!1,this._rulesCount=0,this._isBrowser?(this._tags.forEach((function(e){return e&&e.parentNode.removeChild(e)})),this._tags=[]):this._serverSheet.cssRules=[]},u.cssRules=function(){var e=this;return this._isBrowser?this._tags.reduce((function(t,n){return n?t=t.concat(Array.prototype.map.call(e.getSheetForTag(n).cssRules,(function(t){return t.cssText===e._deletedRulePlaceholder?null:t}))):t.push(null),t}),[]):this._serverSheet.cssRules},u.makeStyleTag=function(e,t,n){t&&s(o(t),"makeStyleTag acceps only strings as second parameter");var r=document.createElement("style");this._nonce&&r.setAttribute("nonce",this._nonce),r.type="text/css",r.setAttribute("data-"+e,""),t&&r.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return n?i.insertBefore(r,n):i.appendChild(r),r},t=e,(i=[{key:"length",get:function(){return this._rulesCount}}])&&n(t.prototype,i),a&&n(t,a),e}();function s(e,t){if(!e)throw new Error("StyleSheet: "+t+".")}t.default=i}).call(this,n("8oxB"))},cTJO:function(e,t,n){"use strict";var r=n("zoAU"),o=n("7KCV");t.__esModule=!0,t.default=void 0;var i=o(n("q1tI")),s=n("elyg"),a=n("nOHt"),u=n("vNVm"),l={};function c(e,t,n,r){if(e&&(0,s.isLocalURL)(t)){e.prefetch(t,n,r).catch((function(e){0}));var o=r&&"undefined"!==typeof r.locale?r.locale:e&&e.locale;l[t+"%"+n+(o?"%"+o:"")]=!0}}var d=function(e){var t=!1!==e.prefetch,n=(0,a.useRouter)(),o=n&&n.asPath||"/",d=i.default.useMemo((function(){var t=(0,s.resolveHref)(o,e.href,!0),n=r(t,2),i=n[0],a=n[1];return{href:i,as:e.as?(0,s.resolveHref)(o,e.as):a||i}}),[o,e.href,e.as]),f=d.href,p=d.as,h=e.children,m=e.replace,v=e.shallow,y=e.scroll,b=e.locale;"string"===typeof h&&(h=i.default.createElement("a",null,h));var g=i.Children.only(h),_=g&&"object"===typeof g&&g.ref,w=(0,u.useIntersection)({rootMargin:"200px"}),S=r(w,2),j=S[0],O=S[1],x=i.default.useCallback((function(e){j(e),_&&("function"===typeof _?_(e):"object"===typeof _&&(_.current=e))}),[_,j]);(0,i.useEffect)((function(){var e=O&&t&&(0,s.isLocalURL)(f),r="undefined"!==typeof b?b:n&&n.locale,o=l[f+"%"+p+(r?"%"+r:"")];e&&!o&&c(n,f,p,{locale:r})}),[p,f,O,b,t,n]);var k={ref:x,onClick:function(e){g.props&&"function"===typeof g.props.onClick&&g.props.onClick(e),e.defaultPrevented||function(e,t,n,r,o,i,a,u){("A"!==e.currentTarget.nodeName||!function(e){var t=e.currentTarget.target;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&(0,s.isLocalURL)(n))&&(e.preventDefault(),null==a&&(a=r.indexOf("#")<0),t[o?"replace":"push"](n,r,{shallow:i,locale:u,scroll:a}))}(e,n,f,p,m,v,y,b)},onMouseEnter:function(e){(0,s.isLocalURL)(f)&&(g.props&&"function"===typeof g.props.onMouseEnter&&g.props.onMouseEnter(e),c(n,f,p,{priority:!0}))}};if(e.passHref||"a"===g.type&&!("href"in g.props)){var C="undefined"!==typeof b?b:n&&n.locale,E=n&&n.isLocaleDomain&&(0,s.getDomainLocale)(p,C,n&&n.locales,n&&n.domainLocales);k.href=E||(0,s.addBasePath)((0,s.addLocale)(p,C,n&&n.defaultLocale))}return i.default.cloneElement(g,k)};t.default=d},dI71:function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},i2R6:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},jwwS:function(e,t,n){"use strict";var r;t.__esModule=!0,t.LoadableContext=void 0;var o=((r=n("q1tI"))&&r.__esModule?r:{default:r}).default.createContext(null);t.LoadableContext=o},n3vx:function(e,t,n){"use strict";t.a=function(e){var t=e.description,n=[{name:"description",content:t},{property:"fb:app_id",content:"121955687874189"},{property:"og:url",content:e.url},{property:"og:title",content:e.title},{property:"og:description",content:t},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:site",content:"@Beanhunter"},{name:"twitter:title",content:e.title},{name:"twitter:description",content:t}],r=[{rel:"canonical",href:e.url}];return e.type&&(n=n.concat([{property:"og:type",content:e.type}])),e.image&&(n=n.concat([{property:"og:image",content:"".concat(e.image,"?width=470&height=246")},{property:"og:image:width",content:"470"},{property:"og:image:height",content:"246"},{name:"twitter:image",content:"".concat(e.image,"?width=280&height=150")}])),{title:e.title,meta:n,link:r}}},oI91:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},ok1R:function(e,t,n){"use strict";var r=n("wx14"),o=n("zLVn"),i=n("q1tI"),s=n.n(i),a=n("17x9"),u=n.n(a),l=n("TSYQ"),
1c=n.n(l),d=n("33Jr"),f=u.a.oneOfType([u.a.number,u.a.string]),p={tag:d.o,noGutters:u.a.bool,className:u.a.string,cssModule:u.a.object,form:u.a.bool,xs:f,sm:f,md:f,lg:f,xl:f},h={tag:"div",widths:["xs","sm","md","lg","xl"]},m=function(e){var t=e.className,n=e.cssModule,i=e.noGutters,a=e.tag,u=e.form,l=e.widths,f=Object(o.a)(e,["className","cssModule","noGutters","tag","form","widths"]),p=[];l.forEach((function(t,n){var r=e[t];if(delete f[t],r){var o=!n;p.push(o?"row-cols-"+r:"row-cols-"+t+"-"+r)}}));var h=Object(d.k)(c()(t,i?"no-gutters":null,u?"form-row":"row",p),n);return s.a.createElement(a,Object(r.a)({},f,{className:h}))};m.propTypes=p,m.defaultProps=h,t.a=m},rhny:function(e,t,n){"use strict";var r=n("wx14"),o=n("zLVn"),i=n("q1tI"),s=n.n(i),a=n("17x9"),u=n.n(a),l=n("TSYQ"),c=n.n(l),d=n("33Jr"),f=u.a.oneOfType([u.a.number,u.a.string]),p=u.a.oneOfType([u.a.bool,u.a.number,u.a.string,u.a.shape({size:u.a.oneOfType([u.a.bool,u.a.number,u.a.string]),order:f,offset:f})]),h={tag:d.o,xs:p,sm:p,md:p,lg:p,xl:p,className:u.a.string,cssModule:u.a.object,widths:u.a.array},m={tag:"div",widths:["xs","sm","md","lg","xl"]},v=function(e,t,n){return!0===n||""===n?e?"col":"col-"+t:"auto"===n?e?"col-auto":"col-"+t+"-auto":e?"col-"+n:"col-"+t+"-"+n},y=function(e){var t=e.className,n=e.cssModule,i=e.widths,a=e.tag,u=Object(o.a)(e,["className","cssModule","widths","tag"]),l=[];i.forEach((function(t,r){var o=e[t];if(delete u[t],o||""===o){var i=!r;if(Object(d.i)(o)){var s,a=i?"-":"-"+t+"-",f=v(i,t,o.size);l.push(Object(d.k)(c()(((s={})[f]=o.size||""===o.size,s["order"+a+o.order]=o.order||0===o.order,s["offset"+a+o.offset]=o.offset||0===o.offset,s)),n))}else{var p=v(i,t,o);l.push(p)}}})),l.length||l.push("col");var f=Object(d.k)(c()(t,l),n);return s.a.createElement(a,Object(r.a)({},u,{className:f}))};y.propTypes=h,y.defaultProps=m,t.a=y},sOKU:function(e,t,n){"use strict";var r=n("wx14"),o=n("zLVn"),i=n("JX7q"),s=n("dI71"),a=n("q1tI"),u=n.n(a),l=n("17x9"),c=n.n(l),d=n("TSYQ"),f=n.n(d),p=n("33Jr"),h={active:c.a.bool,"aria-label":c.a.string,block:c.a.bool,color:c.a.string,disabled:c.a.bool,outline:c.a.bool,tag:p.o,innerRef:c.a.oneOfType([c.a.object,c.a.func,c.a.string]),onClick:c.a.func,size:c.a.string,children:c.a.node,className:c.a.string,cssModule:c.a.object,close:c.a.bool},m=function(e){function t(t){var n;return(n=e.call(this,t)||this).onClick=n.onClick.bind(Object(i.a)(n)),n}Object(s.a)(t,e);var n=t.prototype;return n.onClick=function(e){if(!this.props.disabled)return this.props.onClick?this.props.onClick(e):void 0;e.preventDefault()},n.render=function(){var e=this.props,t=e.active,n=e["aria-label"],i=e.block,s=e.className,a=e.close,l=e.cssModule,c=e.color,d=e.outline,h=e.size,m=e.tag,v=e.innerRef,y=Object(o.a)(e,["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"]);a&&"undefined"===typeof y.children&&(y.children=u.a.createElement("span",{"aria-hidden":!0},"\xd7"));var b="btn"+(d?"-outline":"")+"-"+c,g=Object(p.k)(f()(s,{close:a},a||"btn",a||b,!!h&&"btn-"+h,!!i&&"btn-block",{active:t,disabled:this.props.disabled}),l);y.href&&"button"===m&&(m="a");var _=a?"Close":null;return u.a.createElement(m,Object(r.a)({type:"button"===m&&y.onClick?"button":void 0},y,{className:g,ref:v,onClick:this.onClick,"aria-label":n||_}))},t}(u.a.Component);m.propTypes=h,m.defaultProps={color:"secondary",tag:"button"},t.a=m},vNVm:function(e,t,n){"use strict";var r=n("zoAU");t.__esModule=!0,t.useIntersection=function(e){var t=e.rootMargin,n=e.disabled||!s,u=(0,o.useRef)(),l=(0,o.useState)(!1),c=r(l,2),d=c[0],f=c[1],p=(0,o.useCallback)((function(e){u.current&&(u.current(),u.current=void 0),n||d||e&&e.tagName&&(u.current=function(e,t,n){var r=function(e){var t=e.rootMargin||"",n=a.get(t);if(n)return n;var r=new Map,o=new IntersectionObserver((function(e){e.forEach((function(e){var t=r.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)}))}),e);return a.set(t,n={id:t,observer:o,elements:r}),n}(n),o=r.id,i=r.observer,s=r.elements;return s.set(e,t),i.observe(e),function(){s.delete(e),i.unobserve(e),0===s.size&&(i.disconnect(),a.delete(o))}}(e,(function(e){return e&&f(e)}),{rootMargin:t}))}),[n,t,d]);return(0,o.useEffect)((function(){if(!s&&!d){var e=(0,i.requestIdleCallback)((function(){return f(!0)}));return function(){return(0,i.cancelIdleCallback)(e)}}}),[d]),[p,d]};var o=n("q1tI"),i=n("0G5g"),s="undefined"!==typeof IntersectionObserver;var a=new Map},wx14:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},zLVn:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))}},[["72Xf",3,0,2,1,4,8,9]]]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.