@tailwindcss/typography
Version:
A Tailwind CSS plugin for automatically styling plain HTML content with beautiful typographic defaults.
1 lines • 31.3 kB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+3YS":function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},"+IV6":function(t,e){function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},r(e)}t.exports=r},"+Sw5":function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}},"+bRE":function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},"/3ze":function(t,e,r){"use strict";var n=r("63Ad");e.__esModule=!0,e.default=function(t){function e(e){return o.default.createElement(t,Object.assign({router:(0,a.useRouter)()},e))}e.getInitialProps=t.getInitialProps,e.origGetInitialProps=t.origGetInitialProps,!1;return e};var o=n(r("mXGw")),a=r("bBV7")},"0qAl":function(t,e){t.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}},"63Ad":function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},BCwt:function(t,e,r){"use strict";e.__esModule=!0,e.isDynamicRoute=function(t){return n.test(t)};var n=/\/\[[^/]+?\](?=\/|$)/},BukW:function(t,e,r){"use strict";e.__esModule=!0,e.getRouteRegex=function(t){var e=(a=t.replace(/\/$/,"")||"/",a.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")),r={},n=1,o=e.replace(/\/\\\[([^/]+?)\\\](?=\/|$)/g,(function(t,e){var o=/^\\\[.*\\\]$/.test(e);o&&(e=e.slice(2,-2));var a=/^(\\\.){3}/.test(e);return a&&(e=e.slice(6)),r[e.replace(/\\([|\\{}()[\]^$+*?.-])/g,"$1")]={pos:n++,repeat:a},a?o?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}));var a;0;return{re:new RegExp("^"+o+"(?:/)?$","i"),groups:r,namedRegex:void 0}}},Jxiz:function(t,e,r){"use strict";e.__esModule=!0,e.default=function(){var t=Object.create(null);return{on:function(e,r){(t[e]||(t[e]=[])).push(r)},off:function(e,r){t[e]&&t[e].splice(t[e].indexOf(r)>>>0,1)},emit:function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];(t[e]||[]).slice().map((function(t){t.apply(void 0,n)}))}}}},K4DB:function(t,e,r){var n=r("e+GP"),o=r("T1e2");t.exports=function(t,e){return!e||"object"!==n(e)&&"function"!==typeof e?o(t):e}},MNOf:function(t,e,r){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,r,a){e=e||"&",r=r||"=";var i={};if("string"!==typeof t||0===t.length)return i;var c=/\+/g;t=t.split(e);var u=1e3;a&&"number"===typeof a.maxKeys&&(u=a.maxKeys);var s=t.length;u>0&&s>u&&(s=u);for(var f=0;f<s;++f){var l,p,h,v,d=t[f].replace(c,"%20"),y=d.indexOf(r);y>=0?(l=d.substr(0,y),p=d.substr(y+1)):(l=d,p=""),h=decodeURIComponent(l),v=decodeURIComponent(p),n(i,h)?o(i[h])?i[h].push(v):i[h]=[i[h],v]:i[h]=v}return i};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},NToG:function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}},NthX:function(t,e,r){t.exports=r("wcNg")},S411:function(t,e){t.exports=function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,a=void 0;try{for(var i,c=t[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(u){o=!0,a=u}finally{try{n||null==c.return||c.return()}finally{if(o)throw a}}return r}}},SDJZ:function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},T1e2:function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},THQi:function(t,e,r){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,r,c){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"===typeof t?a(i(t),(function(i){var c=encodeURIComponent(n(i))+r;return o(t[i])?a(t[i],(function(t){return c+encodeURIComponent(n(t))})).join(e):c+encodeURIComponent(n(t[i]))})).join(e):c?encodeURIComponent(n(c))+r+encodeURIComponent(n(t)):""};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function a(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var i=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},UKnr:function(t,e,r){"use strict";e.decode=e.parse=r("MNOf"),e.encode=e.stringify=r("THQi")},VOyh:function(t,e,r){"use strict";e.__esModule=!0,e.getRouteMatcher=function(t){var e=t.re,r=t.groups;return function(t){var n=e.exec(t);if(!n)return!1;var o=function(t){try{return decodeURIComponent(t)}catch(r){var e=new Error("failed to decode param");throw e.code="DECODE_FAILED",e}},a={};return Object.keys(r).forEach((function(t){var e=r[t],i=n[e.pos];void 0!==i&&(a[t]=~i.indexOf("/")?i.split("/").map((function(t){return o(t)})):e.repeat?[o(i)]:o(i))})),a}}},WI9V:function(t,e){function r(e,n){return t.exports=r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(e,n)}t.exports=r},Zhxd:function(t,e,r){var n=r("+Sw5");t.exports=function(t,e){if(t){if("string"===typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}},a4i1:function(t,e,r){"use strict";var n=r("NthX"),o=r("fFdx"),a=r("nxTg"),i=r("SDJZ"),c=r("NToG");e.__esModule=!0,e.addBasePath=y,e.delBasePath=m,e.default=void 0;var u,s=r("ly6l"),f=(u=r("Jxiz"))&&u.__esModule?u:{default:u},l=r("z4BS"),p=r("BCwt"),h=r("VOyh"),v=r("BukW");var d="";function y(t){return 0!==t.indexOf(d)?d+t:t}function m(t){return 0===t.indexOf(d)?t.substr(d.length)||"/":t}function g(t){return t.replace(/\/$/,"")||"/"}var b=function(t){return g(t&&"/"!==t?t:"/index")};function w(t,e,r,n){var o=r?3:1;return function r(){return fetch((0,l.formatWithValidation)({pathname:y("/_next/data/".concat(__NEXT_DATA__.buildId).concat(m(t),".json")),query:e}),{credentials:"same-origin"}).then((function(t){if(!t.ok){if(--o>0&&t.status>=500)return r();throw new Error("Failed to load static props")}return t.json()}))}().then((function(t){return n?n(t):t})).catch((function(t){throw r||(t.code="PAGE_LOAD_ERROR"),t}))}var _=function(){function t(e,r,n,o){var a=this,c=o.initialProps,u=o.pageLoader,f=o.App,h=o.wrapApp,v=o.Component,y=o.err,m=o.subscription,_=o.isFallback;i(this,t),this.route=void 0,this.pathname=void 0,this.query=void 0,this.asPath=void 0,this.basePath=void 0,this.components=void 0,this.sdc={},this.sub=void 0,this.clc=void 0,this.pageLoader=void 0,this._bps=void 0,this.events=void 0,this._wrapApp=void 0,this.isSsr=void 0,this.isFallback=void 0,this.onPopState=function(t){if(t.state){if((!t.state||!a.isSsr||t.state.as!==a.asPath||(0,s.parse)(t.state.url).pathname!==a.pathname)&&(!a._bps||a._bps(t.state))){var e=t.state,r=e.url,n=e.as,o=e.options;0,a.replace(r,n,o)}}else{var i=a.pathname,c=a.query;a.changeState("replaceState",(0,l.formatWithValidation)({pathname:i,query:c}),(0,l.getURL)())}},this._getStaticData=function(t){var e=b((0,s.parse)(t).pathname);return a.sdc[e]?Promise.resolve(a.sdc[e]):w(e,null,a.isSsr,(function(t){return a.sdc[e]=t}))},this._getServerData=function(t){var e=(0,s.parse)(t,!0),r=e.pathname,n=e.query;return w(r=b(r),n,a.isSsr)},this.route=g(e),this.components={},"/_error"!==e&&(this.components[this.route]={Component:v,props:c,err:y,__N_SSG:c&&c.__N_SSG,__N_SSP:c&&c.__N_SSP}),this.components["/_app"]={Component:f},this.events=t.events,this.pageLoader=u,this.pathname=e,this.query=r,this.asPath=(0,p.isDynamicRoute)(e)&&__NEXT_DATA__.autoExport?e:n,this.basePath=d,this.sub=m,this.clc=null,this._wrapApp=h,this.isSsr=!0,this.isFallback=_,"//"!==n.substr(0,2)&&this.changeState("replaceState",(0,l.formatWithValidation)({pathname:e,query:r}),n),window.addEventListener("popstate",this.onPopState)}return c(t,[{key:"update",value:function(t,e){var r=e.default||e,n=this.components[t];if(!n)throw new Error("Cannot update unavailable route: ".concat(t));var o=Object.assign({},n,{Component:r,__N_SSG:e.__N_SSG,__N_SSP:e.__N_SSP});this.components[t]=o,"/_app"!==t?t===this.route&&this.notify(o):this.notify(this.components[this.route])}},{key:"reload",value:function(){window.location.reload()}},{key:"back",value:function(){window.history.back()}},{key:"push",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.change("pushState",t,e,r)}},{key:"replace",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.change("replaceState",t,e,r)}},{key:"change",value:function(e,r,n,o){var a=this;return new Promise((function(i,c){o._h||(a.isSsr=!1),l.ST&&performance.mark("routeChange");var u="object"===typeof r?(0,l.formatWithValidation)(r):r,f="object"===typeof n?(0,l.formatWithValidation)(n):n;if(u=y(u),f=y(f),a.abortComponentLoad(f),!o._h&&a.onlyAHashChange(f))return a.asPath=f,t.events.emit("hashChangeStart",f),a.changeState(e,u,f,o),a.scrollToHash(f),t.events.emit("hashChangeComplete",f),i(!0);var d=(0,s.parse)(u,!0),m=d.pathname,b=d.query,w=d.protocol;if(!m||w)return i(!1);a.urlIsNew(f)||(e="replaceState");var _=g(m),x=o.shallow,S=void 0!==x&&x;if((0,p.isDynamicRoute)(_)){var P=(0,s.parse)(f).pathname,O=(0,v.getRouteRegex)(_),j=(0,h.getRouteMatcher)(O)(P);if(j)Object.assign(b,j);else if(Object.keys(O.groups).filter((function(t){return!b[t]})).length>0)return c(new Error("The provided `as` value (".concat(P,") is incompatible with the `href` value (").concat(_,"). ")+"Read more: https://err.sh/vercel/next.js/incompatible-href-as"))}t.events.emit("routeChangeStart",f),a.getRouteInfo(_,m,b,f,S).then((function(r){var n=r.error;if(n&&n.cancelled)return i(!1);t.events.emit("beforeHistoryChange",f),a.changeState(e,u,f,o),a.set(_,m,b,f,r).then((function(){if(n)throw t.events.emit("routeChangeError",n,f),n;return t.events.emit("routeChangeComplete",f),i(!0)}))}),c)}))}},{key:"changeState",value:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"pushState"===t&&(0,l.getURL)()===r||window.history[t]({url:e,as:r,options:n},"",r)}},{key:"getRouteInfo",value:function(t,e,r,n){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=this.components[t];if(a&&i&&this.route===t)return Promise.resolve(i);var c=function t(a,i){return new Promise((function(c){return"PAGE_LOAD_ERROR"===a.code||i?(window.location.href=n,a.cancelled=!0,c({error:a})):a.cancelled?c({error:a}):void c(o.fetchComponent("/_error").then((function(t){var n=t.page,i={Component:n,err:a};return new Promise((function(t){o.getInitialProps(n,{err:a,pathname:e,query:r}).then((function(e){i.props=e,i.error=a,t(i)}),(function(e){console.error("Error in error page `getInitialProps`: ",e),i.error=a,i.props={},t(i)}))}))})).catch((function(e){return t(e,!0)})))}))};return new Promise((function(e,r){if(i)return e(i);o.fetchComponent(t).then((function(t){return e({Component:t.page,__N_SSG:t.mod.__N_SSG,__N_SSP:t.mod.__N_SSP})}),r)})).then((function(a){var i=a.Component,c=a.__N_SSG,u=a.__N_SSP;return o._getData((function(){return c?o._getStaticData(n):u?o._getServerData(n):o.getInitialProps(i,{pathname:e,query:r,asPath:n})})).then((function(e){return a.props=e,o.components[t]=a,a}))})).catch(c)}},{key:"set",value:function(t,e,r,n,o){return this.isFallback=!1,this.route=t,this.pathname=e,this.query=r,this.asPath=n,this.notify(o)}},{key:"beforePopState",value:function(t){this._bps=t}},{key:"onlyAHashChange",value:function(t){if(!this.asPath)return!1;var e=this.asPath.split("#"),r=a(e,2),n=r[0],o=r[1],i=t.split("#"),c=a(i,2),u=c[0],s=c[1];return!(!s||n!==u||o!==s)||n===u&&o!==s}},{key:"scrollToHash",value:function(t){var e=t.split("#"),r=a(e,2)[1];if(""!==r){var n=document.getElementById(r);if(n)n.scrollIntoView();else{var o=document.getElementsByName(r)[0];o&&o.scrollIntoView()}}else window.scrollTo(0,0)}},{key:"urlIsNew",value:function(t){return this.asPath!==t}},{key:"prefetch",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(o,a){var i=(0,s.parse)(t),c=i.pathname,u=i.protocol;if(c&&!u){0;var f=m(g(c));Promise.all([e.pageLoader.prefetchData(t,m(r)),e.pageLoader[n.priority?"loadPage":"prefetch"](f)]).then((function(){return o()}),a)}}))}},{key:"fetchComponent",value:function(){var t=o(n.mark((function t(e){var r,o,a,i;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=!1,o=this.clc=function(){r=!0},e=m(e),t.next=5,this.pageLoader.loadPage(e);case 5:if(a=t.sent,!r){t.next=10;break}throw(i=new Error('Abort fetching component for route: "'.concat(e,'"'))).cancelled=!0,i;case 10:return o===this.clc&&(this.clc=null),t.abrupt("return",a);case 12:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_getData",value:function(t){var e=this,r=!1,n=function(){r=!0};return this.clc=n,t().then((function(t){if(n===e.clc&&(e.clc=null),r){var o=new Error("Loading initial props cancelled");throw o.cancelled=!0,o}return t}))}},{key:"getInitialProps",value:function(t,e){var r=this.components["/_app"].Component,n=this._wrapApp(r);return e.AppTree=n,(0,l.loadGetInitialProps)(r,{AppTree:n,Component:t,router:this,ctx:e})}},{key:"abortComponentLoad",value:function(e){if(this.clc){var r=new Error("Route Cancelled");r.cancelled=!0,t.events.emit("routeChangeError",r,e),this.clc(),this.clc=null}}},{key:"notify",value:function(t){return this.sub(t,this.components["/_app"].Component)}}],[{key:"_rewriteUrlForNextExport",value:function(t){return t}}]),t}();e.default=_,_.events=(0,f.default)()},bBV7:function(t,e,r){"use strict";var n=r("uUj8");function o(t,e){var r;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},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,c=!0,u=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return c=t.done,t},e:function(t){u=!0,i=t},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw i}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var i=r("vdEC"),c=r("63Ad");e.__esModule=!0,e.useRouter=function(){return u.default.useContext(f.RouterContext)},e.makePublicRouterInstance=function(t){var e,r=t,n={},a=o(h);try{for(a.s();!(e=a.n()).done;){var i=e.value;"object"!==typeof r[i]?n[i]=r[i]:n[i]=Object.assign({},r[i])}}catch(c){a.e(c)}finally{a.f()}return n.events=s.default.events,v.forEach((function(t){n[t]=function(){return r[t].apply(r,arguments)}})),n},e.createRouter=e.withRouter=e.default=void 0;var u=c(r("mXGw")),s=i(r("a4i1"));e.Router=s.default,e.NextRouter=s.NextRouter;var f=r("e4Qu"),l=c(r("/3ze"));e.withRouter=l.default;var p={router:null,readyCallbacks:[],ready:function(t){if(this.router)return t();this.readyCallbacks.push(t)}},h=["pathname","route","query","asPath","components","isFallback","basePath"],v=["push","replace","reload","back","prefetch","beforePopState"];function d(){if(!p.router){throw new Error('No router instance found.\nYou should only use "next/router" inside the client side of your app.\n')}return p.router}Object.defineProperty(p,"events",{get:function(){return s.default.events}}),h.forEach((function(t){Object.defineProperty(p,t,{get:function(){return d()[t]}})})),v.forEach((function(t){p[t]=function(){var e=d();return e[t].apply(e,arguments)}})),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach((function(t){p.ready((function(){s.default.events.on(t,(function(){var e="on".concat(t.charAt(0).toUpperCase()).concat(t.substring(1)),r=p;if(r[e])try{r[e].apply(r,arguments)}catch(n){console.error("Error when running the Router event: ".concat(e)),console.error("".concat(n.message,"\n").concat(n.stack))}}))}))}));var y=p;e.default=y;e.createRouter=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return p.router=n(s.default,e),p.readyCallbacks.forEach((function(t){return t()})),p.readyCallbacks=[],p.router}},"e+GP":function(t,e){function r(e){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?t.exports=r=function(t){return typeof t}:t.exports=r=function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(e)}t.exports=r},e4Qu:function(t,e,r){"use strict";var n;e.__esModule=!0,e.RouterContext=void 0;var o=((n=r("mXGw"))&&n.__esModule?n:{default:n}).default.createContext(null);e.RouterContext=o},"eef+":function(t,e,r){var n=r("WI9V");t.exports=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}},fFdx:function(t,e){function r(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(s){return void r(s)}c.done?e(u):Promise.resolve(u).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,a){var i=t.apply(e,n);function c(t){r(i,o,a,c,u,"next",t)}function u(t){r(i,o,a,c,u,"throw",t)}c(void 0)}))}}},ly6l:function(t,e,r){var n,o=(n=r("UKnr"))&&"object"==typeof n&&"default"in n?n.default:n,a=/https?|ftp|gopher|file/;function i(t){"string"==typeof t&&(t=w(t));var e=function(t,e,r){var n=t.auth,o=t.hostname,a=t.protocol||"",i=t.pathname||"",c=t.hash||"",u=t.query||"",s=!1;n=n?encodeURIComponent(n).replace(/%3A/i,":")+"@":"",t.host?s=n+t.host:o&&(s=n+(~o.indexOf(":")?"["+o+"]":o),t.port&&(s+=":"+t.port)),u&&"object"==typeof u&&(u=e.encode(u));var f=t.search||u&&"?"+u||"";return a&&":"!==a.substr(-1)&&(a+=":"),t.slashes||(!a||r.test(a))&&!1!==s?(s="//"+(s||""),i&&"/"!==i[0]&&(i="/"+i)):s||(s=""),c&&"#"!==c[0]&&(c="#"+c),f&&"?"!==f[0]&&(f="?"+f),{protocol:a,host:s,pathname:i=i.replace(/[?#]/g,encodeURIComponent),search:f=f.replace("#","%23"),hash:c}}(t,o,a);return""+e.protocol+e.host+e.pathname+e.search+e.hash}var c="http://",u="w.w",s=c+u,f=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,l=/https?|ftp|gopher|file/;function p(t,e){var r="string"==typeof t?w(t):t;t="object"==typeof t?i(t):t;var n=w(e),o="";r.protocol&&!r.slashes&&(o=r.protocol,t=t.replace(r.protocol,""),o+="/"===e[0]||"/"===t[0]?"/":""),o&&n.protocol&&(o="",n.slashes||(o=n.protocol,e=e.replace(n.protocol,"")));var a=t.match(f);a&&!n.protocol&&(t=t.substr((o=a[1]+(a[2]||"")).length),/^\/\/[^/]/.test(e)&&(o=o.slice(0,-1)));var u=new URL(t,s+"/"),p=new URL(e,u).toString().replace(s,""),h=n.protocol||r.protocol;return h+=r.slashes||n.slashes?"//":"",!o&&h?p=p.replace(c,h):o&&(p=p.replace(c,"")),l.test(p)||~e.indexOf(".")||"/"===t.slice(-1)||"/"===e.slice(-1)||"/"!==p.slice(-1)||(p=p.slice(0,-1)),o&&(p=o+("/"===p[0]?p.substr(1):p)),p}function h(){}h.parse=w,h.format=i,h.resolve=p,h.resolveObject=p;var v=/^https?|ftp|gopher|file/,d=/^(.*?)([#?].*)/,y=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,m=/^([a-z0-9.+-]*:)?\/\/\/*/i,g=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function b(t){try{return decodeURI(t)}catch(o){return t}}function w(t,e,r){if(void 0===e&&(e=!1),void 0===r&&(r=!1),t&&"object"==typeof t&&t instanceof h)return t;var n=(t=t.trim()).match(d);t=n?b(n[1]).replace(/\\/g,"/")+n[2]:b(t).replace(/\\/g,"/"),g.test(t)&&"/"!==t.slice(-1)&&(t+="/");var a=!/(^javascript)/.test(t)&&t.match(y),c=m.test(t),f="";a&&(v.test(a[1])||(f=a[1].toLowerCase(),t=""+a[2]+a[3]),a[2]||(c=!1,v.test(a[1])?(f=a[1],t=""+a[3]):t="//"+a[3]),3!==a[2].length&&1!==a[2].length||(f=a[1],t="/"+a[3]));var l,p=(n?n[1]:t).match(/(:[0-9]+)/),w="";p&&p[1]&&3===p[1].length&&(t=t.replace(w=p[1],w+"00"));var _=new h,x="",S="";try{l=new URL(t)}catch(o){x=o,f||r||!/^\/\//.test(t)||/^\/\/.+[@.]/.test(t)||(S="/",t=t.substr(1));try{l=new URL(t,s)}catch(t){return _.protocol=f,_.href=f,_}}_.slashes=c&&!S,_.host=l.host===u?"":l.host,_.hostname=l.hostname===u?"":l.hostname.replace(/(\[|\])/g,""),_.protocol=x?f||null:l.protocol,_.search=l.search.replace(/\\/g,"%5C"),_.hash=l.hash.replace(/\\/g,"%5C");var P=t.split("#");!_.search&&~P[0].indexOf("?")&&(_.search="?"),_.hash||""!==P[1]||(_.hash="#"),_.query=e?o.decode(l.search.substr(1)):_.search.substr(1),_.pathname=S+b(l.pathname).replace(/"/g,"%22"),"about:"===_.protocol&&"blank"===_.pathname&&(_.protocol="",_.pathname=""),x&&"/"!==t[0]&&(_.pathname=_.pathname.substr(1)),f&&!v.test(f)&&"/"!==t.slice(-1)&&"/"===_.pathname&&(_.pathname=""),_.path=_.pathname+_.search,_.auth=[l.username,l.password].map(decodeURIComponent).filter(Boolean).join(":"),_.port=l.port,w&&(_.host=_.host.replace(w+"00",w),_.port=_.port.slice(0,-2)),_.href=S?""+_.pathname+_.search+_.hash:i(_);var O=/^(file)/.test(_.href)?["host","hostname"]:[];return Object.keys(_).forEach((function(t){~O.indexOf(t)||(_[t]=_[t]||null)})),_}e.parse=w,e.format=i,e.resolve=p,e.resolveObject=function(t,e){return w(p(t,e))},e.Url=h},nxTg:function(t,e,r){var n=r("+3YS"),o=r("S411"),a=r("Zhxd"),i=r("+bRE");t.exports=function(t,e){return n(t)||o(t,e)||a(t,e)||i()}},uUj8:function(t,e,r){var n=r("WI9V"),o=r("0qAl");function a(e,r,i){return o()?t.exports=a=Reflect.construct:t.exports=a=function(t,e,r){var o=[null];o.push.apply(o,e);var a=new(Function.bind.apply(t,o));return r&&n(a,r.prototype),a},a.apply(null,arguments)}t.exports=a},vdEC:function(t,e,r){var n=r("e+GP");function o(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return o=function(){return t},t}t.exports=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var e=o();if(e&&e.has(t))return e.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var c=a?Object.getOwnPropertyDescriptor(t,i):null;c&&(c.get||c.set)?Object.defineProperty(r,i,c):r[i]=t[i]}return r.default=t,e&&e.set(t,r),r}},wcNg:function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),i=new C(n||[]);return a._invoke=function(t,e,r){var n=f;return function(o,a){if(n===p)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw a;return k()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=P(i,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=s(t,e,r);if("normal"===u.type){if(n=r.done?h:l,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=h,r.method="throw",r.arg=u.arg)}}}(t,r,i),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}t.wrap=u;var f="suspendedStart",l="suspendedYield",p="executing",h="completed",v={};function d(){}function y(){}function m(){}var g={};g[a]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(E([])));w&&w!==r&&n.call(w,a)&&(g=w);var _=m.prototype=d.prototype=Object.create(g);function x(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function S(t,e){var r;this._invoke=function(o,a){function i(){return new e((function(r,i){!function r(o,a,i,c){var u=s(t[o],t,a);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"===typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(l).then((function(t){f.value=t,i(f)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function P(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function E(t){if(t){var r=t[a];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:k}}function k(){return{value:e,done:!0}}return y.prototype=_.constructor=m,m.constructor=y,m[c]=y.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},x(S.prototype),S.prototype[i]=function(){return this},t.AsyncIterator=S,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new S(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(_),_[c]="Generator",_[a]=function(){return this},_.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:E(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=n}catch(o){Function("r","regeneratorRuntime = r")(n)}},x9yg:function(t,e,r){"use strict";var n=Object.assign.bind(Object);t.exports=n,t.exports.default=t.exports},z4BS:function(t,e,r){"use strict";var n=r("NthX"),o=r("fFdx");e.__esModule=!0,e.execOnce=function(t){var e,r=!1;return function(){return r||(r=!0,e=t.apply(void 0,arguments)),e}},e.getLocationOrigin=i,e.getURL=function(){var t=window.location.href,e=i();return t.substring(e.length)},e.getDisplayName=c,e.isResSent=u,e.loadGetInitialProps=s,e.formatWithValidation=function(t,e){0;return(0,a.format)(t,e)},e.ST=e.SP=e.urlObjectKeys=void 0;var a=r("ly6l");function i(){var t=window.location,e=t.protocol,r=t.hostname,n=t.port;return"".concat(e,"//").concat(r).concat(n?":"+n:"")}function c(t){return"string"===typeof t?t:t.displayName||t.name||"Unknown"}function u(t){return t.finished||t.headersSent}function s(t,e){return f.apply(this,arguments)}function f(){return(f=o(n.mark((function t(e,r){var o,a,i;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.next=4;break;case 4:if(o=r.res||r.ctx&&r.ctx.res,e.getInitialProps){t.next=12;break}if(!r.ctx||!r.Component){t.next=11;break}return t.next=9,s(r.Component,r.ctx);case 9:return t.t0=t.sent,t.abrupt("return",{pageProps:t.t0});case 11:return t.abrupt("return",{});case 12:return t.next=14,e.getInitialProps(r);case 14:if(a=t.sent,!o||!u(o)){t.next=17;break}return t.abrupt("return",a);case 17:if(a){t.next=20;break}throw i='"'.concat(c(e),'.getInitialProps()" should resolve to an object. But found "').concat(a,'" instead.'),new Error(i);case 20:return t.abrupt("return",a);case 22:case"end":return t.stop()}}),t)})))).apply(this,arguments)}e.urlObjectKeys=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];var l="undefined"!==typeof performance;e.SP=l;var p=l&&"function"===typeof performance.mark&&"function"===typeof performance.measure;e.ST=p}}]);