/*! For license information please see c6d06197.060f962a.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[58],{139:function(e,t,a){"use strict";a.r(t);var r=a(0),n=a.n(r),o=a(143),l=a(144),c=a.n(l),i=a(196),s=a.n(i),u=a(122),m=a.n(u);var f=function(e){e.children;var t=e.frontMatter,a=e.metadata,r=e.agu,l=a.description,i=a.permalink,u=t.title,f=t.tags,d=s()(r.toString()),p=f&&f.map((function(e){return n.a.createElement("span",{key:e},"#",e," ")}));return console.log(),n.a.createElement("div",{className:c()(m.a.guidesItem)},n.a.createElement(o.a,{to:i+"/",className:c()(m.a.cookbookPostItem)},n.a.createElement("article",null,n.a.createElement("h2",null,u),n.a.createElement("div",null,l),n.a.createElement("div",{className:c()(m.a.guidesItemTag)},p),n.a.createElement(n.a.Fragment,null,d.text))))},d=a(150),p=a(372),h=a.n(p),b=a(123),g=a.n(b),v=a(180);t.default=function(e){var t=e.items,a=e.location?h.a.parse(e.location.search,{ignoreQueryPrefix:!0}):{},l=t.slice(0);l.sort((function(e,t){return!0===t.content.metadata.featured?1:-1}));var i=Object(r.useState)("true"==a.featured),s=i[0],u=(i[1],Object(r.useState)(null)),m=u[0],p=u[1],b=Object(r.useState)(20),y=b[0],E=b[1],k=l.length;return m&&(l=l.filter((function(e){var t=m.split(" "),a=e.content.metadata.title.toLowerCase()+" "+e.content.metadata.description.toLowerCase();return t.every((function(e){return a.includes(e.toLowerCase())}))}))),s&&(l=l.filter((function(e){return 1==e.content.metadata.featured}))),k=l.length,l=l.slice(0,y),n.a.createElement(d.a,{title:"Guias",description:"Guias DNRE"},n.a.createElement("header",{className:g.a.cookbookListHeader},n.a.createElement("div",{className:"container"},n.a.createElement("div",{className:"row"},n.a.createElement("div",{className:"col col--12 "},n.a.createElement("div",null,n.a.createElement("h1",null,"Guias pr\xe1ticos e-fatura"),n.a.createElement("p",null,"Uma cole\xe7\xe3o de guias pr\xe1ticos para auxiliar os utilizadores")),n.a.createElement("div",{className:"search"},n.a.createElement("input",{className:g.a.cookbookSearch,type:"text",onChange:function(e){return p(e.currentTarget.value)},placeholder:"\ud83d\udd0d Procurar guias..."})))))),n.a.createElement("div",{className:g.a.cookbookItemsContainer},n.a.createElement("div",{className:c()("container container--narrow container--bleed margin-vert--lg",g.a.guideItemsContainer)},l.map((function(e){var t=e.content;return n.a.createElement(f,{key:t.metadata.permalink,frontMatter:t.frontMatter,metadata:t.metadata,agu:t,truncated:!0},n.a.createElement(t,null))})),l.length>0&&l.length<t.length&&l.length>y&&n.a.createElement("div",{className:"col"},n.a.createElement("button",{className:"button button--secondary cookbook-show-more",onClick:function(){y>k||E(y+10)}},"Show more")),0==l.length&&n.a.createElement("div",{className:"col"},n.a.createElement("p",null,"Opss!! Nada ",l," foi encontrado, favor refinar a sua pesquisa ou solicite que seja criado um",n.a.createElement(o.a,{to:"/contact"}," NOVO GUIA "),".")))),n.a.createElement(v.b,null,n.a.createElement(v.a,{href:"#",tooltip:"Call Back",icon:"feather icon-phone-incoming",onClick:function(){return alert("Create the form for callback!")},rotate:!0}),n.a.createElement(v.c,{href:"#",tooltip:"Live Chat",icon:"feather icon-message-circle",rotate:!0}),n.a.createElement(v.c,{href:"tel:5554280940",tooltip:"Call Center - 800966",icon:"feather icon-phone",rotate:!0}),n.a.createElement(v.c,{href:"mailto:help-desk@mf.gov.cv",tooltip:"Envia-nos um email",icon:"feather icon-mail",rotate:!0}),n.a.createElement(v.a,{tooltip:"Podemos ajudar!",icon:"",iconSrc:"./../../img/customer-service.svg",iconAlt:"imagem",rotate:!0,className:c()(g.a.help),styles:{backgroundColor:v.d.transparent,color:v.e.white}})))}},148:function(e,t){e.exports={BUILD:"Build #72 2024-05-27 02:15:59 CVT - master",URL_SCHEME:"https",URL_DOMAIN:"efatura.cv",SHOW_VERSION:!0,PAGE_TITLE_PREFIX:"e-fatura::Administracao Fiscal e Aduaneira"}},150:function(e,t,a){"use strict";var r=a(0),n=a.n(r),o=a(153),l=a(142),c=a(145),i=a(164),s=a(163),u=a(159),m=a(2),f=a(146),d=a(143),p=a(144),h=a.n(p),b=a(152),g=function(e){var t=Object(r.useRef)(!1),o=Object(r.useRef)(null),c=Object(b.useHistory)(),i=Object(l.a)().siteConfig,s=(void 0===i?{}:i).baseUrl,u=function(){t.current||(Promise.all([fetch(s+"search-doc.json").then((function(e){return e.json()})),fetch(s+"lunr-index.json").then((function(e){return e.json()})),Promise.all([a.e(71),a.e(74)]).then(a.bind(null,402)),a.e(50).then(a.t.bind(null,401,7))]).then((function(e){!function(e,t,a){new a({searchDocs:e,searchIndex:t,inputSelector:"#search_input_react",handleSelected:function(e,t,a){var r=s+a.url;document.createElement("a").href=r,c.push(r)}})}(e[0],e[1],e[2].default)})),t.current=!0)},m=Object(r.useCallback)((function(t){o.current.contains(t.target)||o.current.focus(),e.handleSearchBarToggle(!e.isSearchBarExpanded)}),[e.isSearchBarExpanded]);return n.a.createElement("div",{className:"navbar__search",key:"search-box"},n.a.createElement("span",{"aria-label":"expand searchbar",role:"button",className:h()("search-icon",{"search-icon-hidden":e.isSearchBarExpanded}),onClick:m,onKeyDown:m,tabIndex:0}),n.a.createElement("input",{id:"search_input_react",type:"search",placeholder:"O que procuras??","aria-label":"Search",className:h()("navbar__search-input",{"search-bar-expanded":e.isSearchBarExpanded},{"search-bar":!e.isSearchBarExpanded}),onClick:u,onMouseOver:u,onFocus:m,onBlur:m,ref:o}))},v=a(160),y=a(149),E=a.n(y),k=a(155),N=a(165),O=a(156),j=a(157),w=a(158),_=a(47),x=a.n(_),C=a(161);var S=function(){var e,t,a=Object(l.a)(),o=a.siteConfig.themeConfig,c=o.navbar,i=(c=void 0===c?{}:c).title,s=void 0===i?"":i,u=c.items,p=void 0===u?[]:u,h=c.hideOnScroll,b=void 0!==h&&h,y=o.colorMode,_=(y=void 0===y?{}:y).disableSwitch,S=void 0!==_&&_,D=a.isClient,P=Object(r.useState)(!1),L=P[0],A=P[1],I=Object(r.useState)(!1),B=I[0],R=I[1],T=Object(k.a)(),M=T.isDarkTheme,H=T.setLightTheme,F=T.setDarkTheme,V=Object(N.a)(b),Q=V.navbarRef,U=V.isNavbarVisible,z=Object(w.a)(),G=z.logoLink,q=z.logoLinkProps,J=z.logoImageUrl,K=z.logoAlt;Object(O.a)(L);var W=Object(r.useCallback)((function(){A(!0)}),[A]),X=Object(r.useCallback)((function(){A(!1)}),[A]),$=Object(r.useCallback)((function(e){return e.target.checked?F():H()}),[H,F]),Y=Object(j.a)();Object(r.useEffect)((function(){Y===j.b.desktop&&A(!1)}),[Y]);var Z=function(e){return{leftItems:e.filter((function(e){var t;return"left"===(null!==(t=e.position)&&void 0!==t?t:"right")})),rightItems:e.filter((function(e){var t;return"right"===(null!==(t=e.position)&&void 0!==t?t:"right")}))}}(p),ee=Z.leftItems,te=Z.rightItems;return n.a.createElement("nav",{ref:Q,className:Object(f.a)("navbar","navbar--light","navbar--fixed-top",(e={"navbar-sidebar--show":L},e[x.a.navbarHideable]=b,e[x.a.navbarHidden]=!U,e))},n.a.createElement("div",{className:"navbar__inner"},n.a.createElement("div",{className:"navbar__items"},null!=p&&0!==p.length&&n.a.createElement("div",{"aria-label":"Navigation bar toggle",className:"navbar__toggle",role:"button",tabIndex:0,onClick:W,onKeyDown:W},n.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 30 30",role:"img",focusable:"false"},n.a.createElement("title",null,"Menu"),n.a.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"}))),n.a.createElement(d.a,Object(m.a)({className:"navbar__brand",to:G},q),null!=J&&n.a.createElement("img",{key:D,className:"navbar__logo",src:J,alt:K}),null!=s&&n.a.createElement("strong",{className:Object(f.a)("navbar__title",(t={},t[x.a.hideLogoText]=B,t))},s)),ee.map((function(e,t){return n.a.createElement(C.a,Object(m.a)({},e,{key:t}))}))),n.a.createElement("div",{className:"navbar__items navbar__items--right"},te.map((function(e,t){return n.a.createElement(C.a,Object(m.a)({},e,{key:t}))})),!S&&n.a.createElement(v.a,{className:x.a.displayOnlyInLargeViewport,"aria-label":"Dark mode toggle",checked:M,onChange:$}),n.a.createElement(g,{handleSearchBarToggle:R,isSearchBarExpanded:B}))),n.a.createElement("div",{role:"presentation",className:"navbar-sidebar__backdrop",onClick:X}),n.a.createElement("div",{className:"navbar-sidebar"},n.a.createElement("div",{className:"navbar-sidebar__brand"},n.a.createElement(d.a,Object(m.a)({className:"navbar__brand",onClick:X,to:G},q),null!=J&&n.a.createElement(E.a,{className:"navbar__logo",src:J,alt:K}),null!=s&&n.a.createElement("strong",{className:"navbar__title"},s)),!S&&L&&n.a.createElement(v.a,{"aria-label":"Dark mode toggle in sidebar",checked:M,onChange:$})),n.a.createElement("div",{className:"navbar-sidebar__items"},n.a.createElement("div",{className:"menu"},n.a.createElement("ul",{className:"menu__list"},p.map((function(e,t){return n.a.createElement(C.a,Object(m.a)({mobile:!0},e,{onClick:X,key:t}))})))))))},D=a(6),P=a(48),L=a.n(P),A=["to","href","label"],I=a(148);function B(e){var t=e.to,a=e.href,r=e.label,o=Object(D.a)(e,A),l=Object(c.a)(t);return n.a.createElement(d.a,Object(m.a)({className:"footer__link-item"},a?{target:"_blank",rel:"noopener noreferrer",href:a}:{to:l},o),r)}var R=function(){var e=Object(l.a)().siteConfig,t=(void 0===e?{}:e).themeConfig,a=(void 0===t?{}:t).footer,r=a||{},o=r.copyright,i=r.links,s=void 0===i?[]:i,u=r.logo,m=void 0===u?{}:u;return Object(c.a)(m.src),a?n.a.createElement("footer",{className:h()("footer",{"footer--dark":"dark"===a.style})},n.a.createElement("div",{className:"container"},s&&s.length>0&&n.a.createElement("div",{className:"row footer__links"},n.a.createElement("div",{className:"col col--5 footer__col"},n.a.createElement("div",{className:"margin-bottom--md"},n.a.createElement("a",{href:"/"},n.a.createElement("img",{className:"navbar__logo",src:"/img/logo_dark.svg",alt:"efatura",width:"150",height:"auto"}))),n.a.createElement("div",{className:"margin-bottom--md"}),n.a.createElement("div",null,n.a.createElement("a",{href:"#",target:"_blank"},n.a.createElement("i",{className:"feather icon-twitter",alt:"Twitter"})),"\xa0\xa0\xa0\xa0",n.a.createElement("a",{href:"#",target:"_blank"},n.a.createElement("i",{className:"feather icon-message-circle",alt:"Chat"})),"\xa0\xa0\xa0\xa0",n.a.createElement("a",{href:"#",target:"_blank"},n.a.createElement("i",{className:"feather icon-rss",alt:"RSS feed"}))),n.a.createElement("div",{className:"margin-top--md"},n.a.createElement("a",{href:"mailto:helpdesk@efatura.cv",target:"_blank"},n.a.createElement("i",{className:"feather icon-mail",alt:"email help desk"}),n.a.createElement("span",null," Email: helpdesk@efatura.cv"))),n.a.createElement("div",{className:"margin-top--md"},n.a.createElement("a",{href:"tel:8006666",target:"_blank",className:h()(L.a.linhaverde)},n.a.createElement("i",{className:"feather icon-phone",alt:"phone call center"}),n.a.createElement("span",null," Linha Verde: 8006666")))),s.map((function(e,t){return n.a.createElement("div",{key:t,className:"col footer__col"},null!=e.title?n.a.createElement("h4",{className:"footer__title"},e.title):null,null!=e.items&&Array.isArray(e.items)&&e.items.length>0?n.a.createElement("ul",{className:"footer__items"},e.items.map((function(e,t){return e.html?n.a.createElement("li",{key:t,className:"footer__item",dangerouslySetInnerHTML:{__html:e.html}}):n.a.createElement("li",{key:e.href||e.to,className:"footer__item"},n.a.createElement(B,e))}))):null)}))),o&&n.a.createElement("div",{className:"text--center"},o,n.a.createElement("p",null,I.BUILD)))):null};a(49);t.a=function(e){var t=Object(l.a)().siteConfig,a=void 0===t?{}:t,r=a.favicon,m=a.title,f=a.themeConfig.image,d=a.url,p=e.children,h=e.title,b=e.noFooter,g=e.description,v=e.image,y=e.keywords,E=e.permalink,k=e.version,N=h?h+" | "+m:m,O=v||f,j=Object(c.a)(O,{absolute:!0}),w=Object(c.a)(r);return n.a.createElement(i.a,null,n.a.createElement(s.a,null,n.a.createElement(o.a,null,n.a.createElement("html",{lang:"en"}),N&&n.a.createElement("title",null,N),N&&n.a.createElement("meta",{property:"og:title",content:N}),r&&n.a.createElement("link",{rel:"shortcut icon",href:w}),g&&n.a.createElement("meta",{name:"description",content:g}),g&&n.a.createElement("meta",{property:"og:description",content:g}),k&&n.a.createElement("meta",{name:"docsearch:version",content:k}),y&&y.length&&n.a.createElement("meta",{name:"keywords",content:y.join(",")}),O&&n.a.createElement("meta",{property:"og:image",content:j}),O&&n.a.createElement("meta",{property:"twitter:image",content:j}),O&&n.a.createElement("meta",{name:"twitter:image:alt",content:"Image for "+N}),E&&n.a.createElement("meta",{property:"og:url",content:d+E}),E&&n.a.createElement("link",{rel:"canonical",href:d+E}),n.a.createElement("meta",{name:"twitter:card",content:"summary_large_image"})),n.a.createElement(u.a,null),n.a.createElement(S,null),n.a.createElement("div",{className:"main-wrapper"},p),!b&&n.a.createElement(R,null)))}},180:function(e,t,a){"use strict";a.d(t,"b",(function(){return o})),a.d(t,"c",(function(){return c})),a.d(t,"a",(function(){return l})),a.d(t,"d",(function(){return i})),a.d(t,"e",(function(){return s}));var r=a(0),n=a.n(r),o=(a(56),function(e){return n.a.createElement("nav",{className:"fab-container "+e.className,style:e.styles},e.children)}),l=function(e){return n.a.createElement("button",{onClick:e.onClick,className:"fab-item "+e.className+" "+(e.rotate?"fab-rotate":""),tooltip:e.tooltip,style:e.styles||u},n.a.createElement("img",{className:e.icon,src:e.iconSrc,style:e.iconStyles,alt:e.iconAlt}),e.children)},c=function(e){return n.a.createElement("a",{href:e.href,className:"fab-item "+e.className+" "+(e.rotate?"fab-rotate":""),tooltip:e.tooltip,style:e.styles||u},n.a.createElement("i",{className:e.icon,style:e.iconStyles}),e.children)},i={lighterRed:"#f44336",red:"#c62828",pink:"#ad1457",purple:"#6a1b9a",lightBlue:"#01579b",cyan:"#00838f",teal:"#00695c",blue:"#438fff",green:"#1b5e20",yellow:"#f9a825",orange:"#e65100",brown:"#4e342e",grey:"#424242",black:"#212121",white:"#fafafa",transparent:"transparent"},s={red:"#ffcdd2",pink:"#f8bbd0",purple:"#e1bee7",lightBlue:"#81d4fa",cyan:"#80deea",teal:"#80cbc4",blue:"#bbdefb",green:"#dcedc8",yellow:"#fff9c4",orange:"#ffe0b2",brown:"#d7ccc8",grey:"#e0e0e0",darkerGrey:"#bdbdbd",black:"#212121",white:"#f5f5f5"},u={backgroundColor:i.blue,color:i.white,textDecoration:"none",border:"none"}},196:function(e,t,a){e.exports=a(197)},197:function(e,t,a){"use strict";function r(e){return" "===e||"\n"===e||"\r"===e||"\t"===e}e.exports=function(e,t){var a,n,o=0,l=0,c=e.length-1;for((t=t||{}).wordsPerMinute=t.wordsPerMinute||200,a=t.wordBound||r;a(e[l]);)l++;for(;a(e[c]);)c--;for(n=l;n<=c;){for(;n<=c&&!a(e[n]);n++);for(o++;n<=c&&a(e[n]);n++);}var i=o/t.wordsPerMinute,s=60*i*1e3;return{text:Math.ceil(i.toFixed(2))+" min read",minutes:i,time:s,words:o}}},205:function(e,t,a){"use strict";var r=String.prototype.replace,n=/%20/g,o="RFC1738",l="RFC3986";e.exports={default:l,formatters:{RFC1738:function(e){return r.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:o,RFC3986:l}},243:function(e,t,a){"use strict";var r=a(205),n=Object.prototype.hasOwnProperty,o=Array.isArray,l=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),c=function(e,t){for(var a=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(a[r]=e[r]);return a};e.exports={arrayToObject:c,assign:function(e,t){return Object.keys(t).reduce((function(e,a){return e[a]=t[a],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],a=[],r=0;r<t.length;++r)for(var n=t[r],l=n.obj[n.prop],c=Object.keys(l),i=0;i<c.length;++i){var s=c[i],u=l[s];"object"==typeof u&&null!==u&&-1===a.indexOf(u)&&(t.push({obj:l,prop:s}),a.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),a=t.obj[t.prop];if(o(a)){for(var r=[],n=0;n<a.length;++n)void 0!==a[n]&&r.push(a[n]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,a){var r=e.replace(/\+/g," ");if("iso-8859-1"===a)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(n){return r}},encode:function(e,t,a,n,o){if(0===e.length)return e;var c=e;if("symbol"==typeof e?c=Symbol.prototype.toString.call(e):"string"!=typeof e&&(c=String(e)),"iso-8859-1"===a)return escape(c).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",s=0;s<c.length;++s){var u=c.charCodeAt(s);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===r.RFC1738&&(40===u||41===u)?i+=c.charAt(s):u<128?i+=l[u]:u<2048?i+=l[192|u>>6]+l[128|63&u]:u<55296||u>=57344?i+=l[224|u>>12]+l[128|u>>6&63]+l[128|63&u]:(s+=1,u=65536+((1023&u)<<10|1023&c.charCodeAt(s)),i+=l[240|u>>18]+l[128|u>>12&63]+l[128|u>>6&63]+l[128|63&u])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var a=[],r=0;r<e.length;r+=1)a.push(t(e[r]));return a}return t(e)},merge:function e(t,a,r){if(!a)return t;if("object"!=typeof a){if(o(t))t.push(a);else{if(!t||"object"!=typeof t)return[t,a];(r&&(r.plainObjects||r.allowPrototypes)||!n.call(Object.prototype,a))&&(t[a]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(a);var l=t;return o(t)&&!o(a)&&(l=c(t,r)),o(t)&&o(a)?(a.forEach((function(a,o){if(n.call(t,o)){var l=t[o];l&&"object"==typeof l&&a&&"object"==typeof a?t[o]=e(l,a,r):t.push(a)}else t[o]=a})),t):Object.keys(a).reduce((function(t,o){var l=a[o];return n.call(t,o)?t[o]=e(t[o],l,r):t[o]=l,t}),l)}}},372:function(e,t,a){"use strict";var r=a(373),n=a(374),o=a(205);e.exports={formats:o,parse:n,stringify:r}},373:function(e,t,a){"use strict";var r=a(243),n=a(205),o=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,i=Array.prototype.push,s=function(e,t){i.apply(e,c(t)?t:[t])},u=Date.prototype.toISOString,m=n.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:m,formatter:n.formatters[m],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,a,n,o,l,i,u,m,d,p,h,b,g,v){var y,E=t;if("function"==typeof u?E=u(a,E):E instanceof Date?E=p(E):"comma"===n&&c(E)&&(E=r.maybeMap(E,(function(e){return e instanceof Date?p(e):e}))),null===E){if(o)return i&&!g?i(a,f.encoder,v,"key",h):a;E=""}if("string"==typeof(y=E)||"number"==typeof y||"boolean"==typeof y||"symbol"==typeof y||"bigint"==typeof y||r.isBuffer(E))return i?[b(g?a:i(a,f.encoder,v,"key",h))+"="+b(i(E,f.encoder,v,"value",h))]:[b(a)+"="+b(String(E))];var k,N=[];if(void 0===E)return N;if("comma"===n&&c(E))k=[{value:E.length>0?E.join(",")||null:void 0}];else if(c(u))k=u;else{var O=Object.keys(E);k=m?O.sort(m):O}for(var j=0;j<k.length;++j){var w=k[j],_="object"==typeof w&&void 0!==w.value?w.value:E[w];if(!l||null!==_){var x=c(E)?"function"==typeof n?n(a,w):a:a+(d?"."+w:"["+w+"]");s(N,e(_,x,n,o,l,i,u,m,d,p,h,b,g,v))}}return N};e.exports=function(e,t){var a,r=e,i=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=n.default;if(void 0!==e.format){if(!o.call(n.formatters,e.format))throw new TypeError("Unknown format option provided.");a=e.format}var r=n.formatters[a],l=f.filter;return("function"==typeof e.filter||c(e.filter))&&(l=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:l,format:a,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof i.filter?r=(0,i.filter)("",r):c(i.filter)&&(a=i.filter);var u,m=[];if("object"!=typeof r||null===r)return"";u=t&&t.arrayFormat in l?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=l[u];a||(a=Object.keys(r)),i.sort&&a.sort(i.sort);for(var h=0;h<a.length;++h){var b=a[h];i.skipNulls&&null===r[b]||s(m,d(r[b],b,p,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset))}var g=m.join(i.delimiter),v=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),g.length>0?v+g:""}},374:function(e,t,a){"use strict";var r=a(243),n=Object.prototype.hasOwnProperty,o=Array.isArray,l={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},i=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},s=function(e,t,a,r){if(e){var o=a.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,l=/(\[[^[\]]*])/g,c=a.depth>0&&/(\[[^[\]]*])/.exec(o),s=c?o.slice(0,c.index):o,u=[];if(s){if(!a.plainObjects&&n.call(Object.prototype,s)&&!a.allowPrototypes)return;u.push(s)}for(var m=0;a.depth>0&&null!==(c=l.exec(o))&&m<a.depth;){if(m+=1,!a.plainObjects&&n.call(Object.prototype,c[1].slice(1,-1))&&!a.allowPrototypes)return;u.push(c[1])}return c&&u.push("["+o.slice(c.index)+"]"),function(e,t,a,r){for(var n=r?t:i(t,a),o=e.length-1;o>=0;--o){var l,c=e[o];if("[]"===c&&a.parseArrays)l=[].concat(n);else{l=a.plainObjects?Object.create(null):{};var s="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,u=parseInt(s,10);a.parseArrays||""!==s?!isNaN(u)&&c!==s&&String(u)===s&&u>=0&&a.parseArrays&&u<=a.arrayLimit?(l=[])[u]=n:l[s]=n:l={0:n}}n=l}return n}(u,t,a,r)}};e.exports=function(e,t){var a=function(e){if(!e)return l;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?l.charset:e.charset;return{allowDots:void 0===e.allowDots?l.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:l.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:l.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:l.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:l.comma,decoder:"function"==typeof e.decoder?e.decoder:l.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:l.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:l.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:l.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:l.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:l.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:l.strictNullHandling}}(t);if(""===e||null==e)return a.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var a,s={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,m=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,m),d=-1,p=t.charset;if(t.charsetSentinel)for(a=0;a<f.length;++a)0===f[a].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[a]?p="utf-8":"utf8=%26%2310003%3B"===f[a]&&(p="iso-8859-1"),d=a,a=f.length);for(a=0;a<f.length;++a)if(a!==d){var h,b,g=f[a],v=g.indexOf("]="),y=-1===v?g.indexOf("="):v+1;-1===y?(h=t.decoder(g,l.decoder,p,"key"),b=t.strictNullHandling?null:""):(h=t.decoder(g.slice(0,y),l.decoder,p,"key"),b=r.maybeMap(i(g.slice(y+1),t),(function(e){return t.decoder(e,l.decoder,p,"value")}))),b&&t.interpretNumericEntities&&"iso-8859-1"===p&&(b=c(b)),g.indexOf("[]=")>-1&&(b=o(b)?[b]:b),n.call(s,h)?s[h]=r.combine(s[h],b):s[h]=b}return s}(e,a):e,m=a.plainObjects?Object.create(null):{},f=Object.keys(u),d=0;d<f.length;++d){var p=f[d],h=s(p,u[p],a,"string"==typeof e);m=r.merge(m,h,a)}return r.compact(m)}}}]);