1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[212],{2225:function(e,t,n){"use strict";n.r(t),n.d(t,{A:function(){return d},_:function(){return l},a:function(){return o},b:function(){return u},c:function(){return s},d:function(){return c},u:function(){return f}});var r=n(2265);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){!function(e,t,n){var r;(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c=(0,r.createContext)(void 0),d=function(e){var t=e.siteContext,n=e.children,i=l(r.useState(null),2),a=i[0],o=i[1];return(0,r.useEffect)(function(){"undefined"!=typeof window&&o(window.location)},[a]),r.createElement(c.Provider,{value:{location:a,siteContext:t}},n)},f=function(){var e=(0,r.useContext)(c);if(!e)throw Error("useAppContext must be used within AppContextProvider");return e}},4791:function(e,t,n){"use strict";n.d(t,{F:function(){return l}});var r=n(2265),i=n(3704),a=n(2225),o=function(e){var t=e.content,n=e.device;if(!t)return null;var i=t.imageMobile,a=t.imageDesktop,o=t.urlMobile,s=t.urlDesktop,l=t.titleMobile,u=t.titleDesktop,c="mobile"===n,d=c?!!o:!!s;if(c&&!d||!(c?!!i:!!a))return null;var f=r.createElement(r.Fragment,null,r.createElement("img",{src:c?i:a,alt:"","aria-hidden":"true",className:"footer-qr-code-image"}),r.createElement("span",{className:"footer-qr-code-title"},c?l:u));return r.createElement("div",{className:"footer-qr-code"},d?r.createElement("a",{href:c?o:s,target:"_blank",rel:"noreferrer noopener",className:"footer-qr-code-wrap"},f):r.createElement("div",{className:"footer-qr-code-wrap"},f))},s=function(){return r.createElement(r.Fragment,null,r.createElement("div",{className:"footer-links-placeholder"}),r.createElement("div",{className:"footer-copyright-placeholder"}))},l=function(e){var t=e.siteContext,n=void 0===t?"MEO":t,l=e.awards,u=e.usefullinks,c=e.menunav,d=e.qrcode,f=e.sponsors,h=e.s
1ocialnetworks,p=e.footerlinks,m=e.complaintbook,v=e.copyright,y=e.useWrapper,g=e.skeleton,b=(0,i.u)().device;return r.createElement(a.A,{siteContext:n},r.createElement(i.F,{siteContext:n,useWrapper:void 0===y||y,skeleton:void 0!==g&&g?r.createElement(s,null):void 0},r.createElement("section",{className:"footer-nav-bar-top"},r.createElement(i.M,{device:b,content:l,styles:"footer-awards"}),r.createElement(i.M,{device:b,content:u,styles:"footer-useful-links"})),r.createElement("section",{className:"footer-nav-bar-middle"},r.createElement("section",{className:"footer-nav-bar-middle-inner-top"},r.createElement(i.a,{device:b,content:c,ariaLabel:"Navega\xe7\xe3o rodap\xe9",maxLevels:2,goBackButtons:!1,parentEntryTag:["mobile"===b?"button":"hyperlink","hyperlink"],closeOnMouseLeaveLevels:!1,indicators:"mobile"===b&&[1],indicatorClass:["icon-seta-down"],openedActiveLevels:!1}),r.createElement(o,{device:b,content:d})),r.createElement("section",{className:"footer-nav-bar-middle-inner-bottom"},r.createElement(i.M,{device:b,content:f,styles:"footer-sponsors"}),r.createElement(i.M,{device:b,content:h,styles:"footer-social-networks"}))),r.createElement("section",{className:"footer-nav-bar-bottom"},r.createElement(i.M,{device:b,content:p,styles:"footer-links"}),r.createElement(i.M,{device:b,content:m,styles:"footer-complaint-book"}),r.createElement(i.J,{content:v,styles:"footer-copyright"}))))}},3206:function(e,t,n){"use strict";n.d(t,{F:function(){return s}});var r=n(2265),i=n(3704),a=n(2225),o=function(){return r.createElement(r.Fragment,null,r.createElement("div",{className:"footer-links-placeholder"}),r.createElement("div",{className:"footer-copyright-placeholder"}))},s=function(e){var t=e.siteContext,n=void 0===t?"MEO":t;e.awards,e.usefullinks;var s=e.menunav;e.sponsors;var l=e.socialnetworks,u=e.footerlinks,c=e.complaintbook,d=e.copyright,f=e.useWrapper,h=e.skeleton,p=(0,i.u)().device;return r.createElement(a.A,{siteContext:n},r.createElement(i.F,{siteContext:n,useWrapper:void 0===f||f,skeleton:void 0!==h&&h?r.createElement(o,null):void 0},r.createElement("section",{className:"footer-nav-bar-middle"},r.createElement("section",{className:"footer-nav-bar-middle-inner-top"},r.createElement(i.a,{device:p,content:s,ariaLabel:"Navega\xe7\xe3o rodap\xe9",maxLevels:2,goBackButtons:!1,parentEntryTag:["mobile"===p?"button":"hyperlink","hyperlink"],closeOnMouseLeaveLevels:!1,indicators:"mobile"===p&&[1],indicatorClass:["icon-seta-down"],openedActiveLevels:!1})),r.createElement("section",{className:"footer-nav-bar-middle-inner-bottom"},r.createElement(i.M,{device:p,content:u,styles:"footer-links"}),r.createElement(i.M,{device:p,content:c,styles:"footer-complaint-book"}))),r.createElement("section",{className:"footer-nav-bar-bottom"},r.createElement(i.M,{device:p,content:l,styles:"footer-social-networks"}),r.createElement(i.J,{content:d,styles:"footer-copyright"}))))}},3704:function(e,t,n){"use strict";n.r(t),n.d(t,{C:function(){return Z},F:function(){return P},H:function(){return u},J:function(){return R},L:function(){return g},M:function(){return p},T:function(){return J},a:function(){return O},b:function(){return y},c:function(){return et},u:function(){return a}});var r=n(2265),i=n(2225),a=function(){var e=(0,r.useState)("desktop"),t=(0,i._)(e,2),n=t[0],a=t[1];return(0,r.useEffect)(function(){if("undefined"!=typeof window){var e=function(){return a(window.innerWidth<1200?"mobile":"desktop")};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}},[]),{device:n}},o="toggleCollapse:open",s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"off",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=(0,r.useId)(),a=(0,r.useState)(e),s=(0,i._)(a,2),l=s[0],u=s[1],c=(0,r.useState)({height:"0px"}),d=(0,i._)(c,2),f=d[0],h=d[1],p=(0,r.useRef)(null),m=(0,r.useRef)(0),v=(0,r.useRef)(e),y=(0,r.useRef)(!1);(0,r.useEffect)(function(){v.current=l,y.current="turning-on"===l||"turning-off"===l},[l]);var g=(0,r.useCallback)(function(){h(function(e){var t,n;return(0,i.a)((0,i.a)({},e),{},{height:(null!==(t=null===(n=p.current)||void 0===n?void 0:n.clientHeight)&&void 0!==t?t:0)+"px"})})},[]),b=(0,r.useCallback)(function(){if(y.current||"off"!==v.current)return null;m.current+=1;var e=m.current;document.dispatchEvent(new CustomEvent(o,{detail:{id:n,group:t}})),g(),u("turning-on");var r=setTimeout(function(){m.current===e&&"turning-on"===v.current&&u("on")},500);return function(){clearTimeout(r)}},[t,n,g]),E=(0,r.useCallback)(function(){if("turning-off"===v.current)return null;m.current+=1;var e=m.current;u(function(e){return"off"===e||"turning-off"===e?e:(g(),"turning-off")});var t=setTimeout(function(){m.current===e&&h(function(e){return(0,i.a)((0,i.a)({},e),{},{height:"0px"})})},10),n=setTimeout(function(){m.current===e&&u("off")},400);return function(){clearTimeout(t),clearTimeout(n)}},[g]);return(0,r.useEffect)(function(){var e=function(e){var r=e.detail;if(r&&r.group===t&&r.id!==n){var i=v.current;"on"!==i&&"turning-on"!==i||E()}};return document.addEventListener(o,e),function(){return document.removeEventListener(o,e)}},[E,t,n]),[l,f,p,(0,r.useCallback)(function(){return"off"===v.current?b():E()},[E,b])]},l=function(e){var t,n,a,o,s,l,u,c,d,f,h,p,m=e.siteContext,v=e.children,y=e.className,g=(t=(0,r.useState)(null),a=(n=(0,i._)(t,2))[0],o=n[1],s=(0,r.useState)(!1),u=(l=(0,i._)(s,2))[0],c=l[1],d=(0,r.useState)(0),h=(f=(0,i._)(d,2))[0],p=f[1],(0,r.useEffect)(function(){var e=function(){null!==h&&(c(window.scrollY>0),o(window.scrollY<h?"up":"down")),p(window.scrollY)};return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}},[h]),{direction:a,scrolled:u}),b=g.direction,E=g.scrolled;return r.createElement("div",{id:"main-menu-wrapper",className:"main-menu-wrapper".concat(y?" ".concat(y):"").concat(E?" fixed":""),"data-scroll-direction":b,"data-site-context":m},v)},u=function(e){var t=e.skeleton,n=e.useWrapper,i=e.wrapperId,a=e.children,o=e.siteContext,s=r.createElement(l,{siteContext:o,className:"".concat(t?" skeleton":"")},t||a);return void 0===n||n?r.createElement("header",{id:void 0===i?"header":i},s):s},c=function(e){var t=e.item,n=e.device,a=t.styles,o=t.text,s=t.MobileText,l=t.url,u=t.target,c=t.isActive,d=t.attributes,f=t.onClick,h=t.Descrição,p=t.HTML,m=t.imageUrl,v=f?"string"==typeof f&&""!==f.trim()?function(){return window.eval(f)}:f:void 0,y=function(e){return!!e&&""!==e},g="mobile"===n&&s?s:o||"";if(p&&""!==p)return r.createElement("li",{className:"menu-hyperlinks-list-item".concat(c?" is-active":""),dangerouslySetInnerHTML:{__html:p}});var b=r.createElement(r.Fragment,null,y(m)&&r.createElement("img",{className:"hyperlinks-img",src:m,alt:"","aria-hidden":"true"}),y(g)&&r.createElement("span",{className:"hyperlinks-txt"},g),y(h)&&r.createElement("span",{className:"hyperlinks-desc"},h));return r.createElement("li",{className:"menu-hyperlinks-list-item".concat(c?" is-active":"")},f&&"string"==typeof f&&""!==f.trim()?r.createElement("button",(0,i.a)({type:"button",className:"menu-hyperlinks-link".concat(a?" "+a:""),onClick:v},null!=d?d:{}),b):r.createElement("a",(0,i.a)({className:"menu-hyperlinks-link".concat(a?" "+a:""),href:l||"#!",target:u||"_self",rel:"_blank"===(null==u?void 0:u.toLowerCase())?"noopener noreferrer":""},null!=d?d:{}),b))},d=function(e,t,n){var r=null;return e.map(function(e){e.elemId===t&&null===(r=e.attributes)["data-eventlink"]&&(r["data-eventlink"]=n)}),r},f=function(e,t){var n=(null==e?void 0:e.hideMobile)&&e.hideMobile.toLowerCase(),r=(null==e?void 0:e.hideDesktop)&&e.hideDesktop.toLowerCase();return!("sim"===n&&"mobile"===t||"sim"===r&&"desktop"===t)},h=r.memo(function(e){var t=e.device,n=e.styles,i=e.hyperlinks;return i?r.createElement("ul",{className:"menu-hyperlinks-list".concat(n?" "+n:"")},i.map(function(e,n){return f(e,t)?r.createElement(c,{key:n,item:e,device:t}):null})):null}),p=r.memo(function(e){var t,n,i=e.device,a=e.styles,o=e.content;if(!o)return null;var s=o.blockTitle,l=o.blockLinks,u=o.hyperlinks;return r.createElement("section",{className:"menu-hyperlinks".concat(a?" "+a:"")},null!=s&&s.length||null!=l&&null!==(t=l.hyperlinks)&&void 0!==t&&t.length?r.createElement("div",{className:"menu-hyperlinks-header"},s&&r.createElement("p",{className:"hyperlinks-title"},s),l&&(null===(n=l.hyperlinks)||void 0===n?void 0:n.length)&&r.createElement(h,{device:i,hyperlinks:l.hyperlinks})):null,r.createElement(h,{device:i,hyperlinks:u}))}),m=function(){var e,t=(0,r.useState)(null),n=(0,i._)(t,2),a=n[0],o=n[1],s=(0,r.useState)(0),l=(0,i._)(s,2),u=l[0],c=l[1],d=function(){var e,t=Weglot.getAvailableLanguages();return t.length>1?t.filter(function(e){return e!==Weglot.getCurrentLang()})[0]:null!==(e=t[0])&&void 0!==e?e:null};return(0,r.useEffect)(function(){if("object"===("undefined"==typeof Weglot?"undefined":(0,i.b)(Weglot))&&Weglot.initialized)o(d());else if(!(u>=5)){var e=setTimeout(function(){c(function(e){return e+1})},1e3);return function(){return clearTimeout(e)}}},[u]),null===a?u<5?r.createElement("div",{className:"language-selector-toggle skeleton"},r.createElement("div",{className:"language-selector-btn user-menu-placeholder"})):(console.warn("Failed to get Weglot language after multiple attempts."),null):r.createElement("div",{className:"language-selector-toggle ".concat(a)},1===a.length?r.createElement("span",{className:"language-selector-btn"},Weglot.getLanguageName(a)):r.createElement("button",{type:"button",className:"language-selector-btn",onClick:function(e){e.preventDefault(),"object"===("undefined"==typeof Weglot?"undefined":(0,i.b)(Weglot))&&Weglot.initialized&&(Weglot.switchTo(a),o(d()))},"aria-label":"".concat(null!==(e=({pt:"Ver site em ",en:"Switch to "})[a])&&void 0!==e?e:"").concat(Weglot.getLanguageName(a))},Weglot.getLanguageName(a)))},v=function(e){var t,n=e.content,a=e.device,o=(0,r.useState)(!1),s=(0,i._)(o,2),l=s[0],u=s[1],c=(0,r.useRef)(null),d=(0,r.useRef)(null);if((0,r.useEffect)(function(){if(l){var e=function(e){var t;"Escape"===e.key&&(u(!1),null===(t=d.current)||void 0===t||t.focus())},t=function(e){c.current&&!c.current.contains(e.target)&&u(!1)};return document.addEventListener("keydown",e),document.addEventListener("mousedown",t),function(){document.removeEventListener("keydown",e),document.removeEventListener("mousedown",t)}}},[l]),null==n||null===(t=n.hyperlinks)||void 0===t||!t.length)return null;var f=-1!==n.hyperlinks.findIndex(function(e){return e.isActive})?n.hyperlinks.findIndex(function(e){return e.isActive}):0,h=n.hyperlinks[f],m=n.hyperlinks.filter(function(e,t){return t!==f}).map(function(e){return(0,i.a)((0,i.a)({},e),{},{onClick:function(){return u(!1)}})});return r.createElement("div",{className:"dropdown-link".concat(l?" active":""),ref:c},r.createElement("button",{className:"dropdown-active-item",onClick:function(){return u(function(e){return!e})},"aria-expanded":l,"aria-haspopup":"listbox",ref:d,type:"button"},null==h?void 0:h.text,r.createElement("span",{className:"icon-seta-down","aria-hidden":"true"})),l&&m.length>0&&r.createElement(p,{device:a,content:(0,i.a)((0,i.a)({},n),{},{hyperlinks:m}),styles:"dropdown-menu-hyperlinks"}))},y=function(e){var t,n=e.device,a=e.content;return a?Array.isArray(a)&&Array.isArray(t=a)&&t.length>0&&"object"===(0,i.b)(t[0])&&null!==t[0]&&"weglot"===t[0].componentType?r.createElement(m,null):"object"===(0,i.b)(a)&&null!==a&&Array.isArray(a.hyperlinks)?r.createElement(v,{device:n,content:a}):null:null},g=function(e){var t=e.content;e.styles;var n={src:""};return null==t||t.map(function(e){e.type,e.url&&(n.url=e.url),e.src&&(n.src=e.src),e.alt&&(n.alt=e.alt),e.width&&(n.width=e.width),e.height&&(n.height=e.height),e.ratio&&(n.ratio=e.ratio)}),n.url?r.createElement("a",{href:n.url,className:"logo"},n.src&&r.createElement("img",{src:n.src,alt:n.alt,width:n.width,height:n.height,loading:"lazy"})):r.createElement("span",{className:"logo"},n.src&&r.createElement("img",{src:n.src,srcSet:n.srcSet,alt:n.alt,width:n.width,height:n.height,loading:"lazy"}))},b=function(e,t){if(!e||!t)return!1;var n=document.createElement("a");n.href=e;var r=t.hostname,a="undefined"!=typeof Weglot&&"string"==typeof(null===(s=Weglot)||void 0===s||null===(s=s.options)||void 0===s?void 0:s.host)?Weglot.options.host:void 0,o=n.hostname.length>0?n.hostname:r;if([r,a].includes(o)){var s,l,u,c,d="object"===("undefined"==typeof Weglot?"undefined":(0,i.b)(Weglot))&&null!==(l=Weglot)&&void 0!==l&&null!==(l=l.options)&&void 0!==l&&null!==(l=l.injectedData)&&void 0!==l&&l.originalPath?null===(u=Weglot)||void 0===u||null===(u=u.options)||void 0===u||null===(u=u.injectedData)||void 0===u?void 0:u.originalPath.split("/"):t.pathname.split("/"),f=n.pathname.split("/");return t.hash.length>0&&d.push(t.hash),n.hash.length>0&&f.push(n.hash),d=d.filter(function(e){return e.length>0}),0===(f=f.filter(function(e){return e.length>0})).length?c=o===r:f.map(function(e,t){if(!1===c)return!1;c=e===d[t]}),null!=c&&c}return!1},E=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(n<t.length){e[Number(t[n])].active=!0;var r=e[Number(t[n])].items;r&&E(r,t,n+1)}return!0},_=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",r=[],a=[],o=function(t,r,s,l){return t.map(function(t){if("object"===(0,i.b)(t)&&"Id"in t&&f(t,n)){var u,c,d=s.length,h=null!==(u=l)&&void 0!==u&&u.length?l+","+d:d.toString();if(s[d]={id:"menu-"+t.Id,title:"mobile"===n&&t.MobileText?t.MobileText:t.Title,url:t.Url||"#",urlImage:t.URLImagem||null,urlTarget:"sim"===(null===(c=t.NewWindow)||void 0===c?void 0:c.toLowerCase()),css:t.CssClass||null,attributes:t.attributes||null,active:!t.SubItems&&b(t.Url,r)},s[d].active){var p,m,v,y,g,E=!1,_=location.host;if("undefined"!=typeof Weglot&&"string"==typeof(null===(p=Weglot)||void 0===p||null===(p=p.options)||void 0===p?void 0:p.host)&&(_=null===(y=Weglot)||void 0===y||null===(y=y.options)||void 0===y?void 0:y.host),"undefined"!=typeof ISites&&"string"==typeof(null===(m=ISites)||void 0===m||null===(m=m.Configurations)||void 0===m||null===(m=m.ExternalSites)||void 0===m||null===(m=m.ISellFrontEnd)||void 0===m?void 0:m.Url)&&(g=new URL(ISites.Configurations.ExternalSites.ISellFrontEnd.Url).hostname),g&&null!==(v=_)&&void 0!==v&&v.includes(g)){var w,x,k=Number(null===(w=l)||void 0===w?void 0:w.split(",")[0])+1,S=null==e||null===(x=e[k])||void 0===x?void 0:x.Title;null!=S&&S.toLowerCase().includes("loja")&&(E=!0)}(0===a.length||E)&&(a=h.split(",").filter(function(e){return" "!==e}))}Array.isArray(t.SubItems)&&0!==t.SubItems.length&&(s[d].items=[],o(t.SubItems,r,s[d].items,h))}}),l=null,!0};return o(e,t,r),E(r,a),r},w=function(e,t,n){if(t){if("string"==typeof t)return t;if(Array.isArray(n)&&Array.isArray(t)){var r=n.findIndex(function(t){return t===e});return -1!==r?t[r]||t[t.length-1]:t[0]}return t[e-1]||t[t.length-1]}},x=function(e){var t,n=e.entry,a=e.css,o=e.handleBtnClick,s=e.level,l=e.indicators,u=e.indicatorClass,c=e.parentEntryTag,d=r.useRef(null);c&&("string"==typeof c?t=c:Array.isArray(c)&&(t=c[s-1]||c[c.length-1]));var f=!!n.items,h="button"===t||!t&&f,p="hyperlink"===t||!t&&!f,m=r.createElement(r.Fragment,null,r.createElement("span",{className:[a?a+"-icon":"",n.css?n.css:""].join(" "),"aria-hidden":"true"}),r.createElement("span",{className:a?a+"-title":""},n.title),(void 0===l||("boolean"==typeof l?l:l.includes(s)))&&r.createElement("span",{className:"level-".concat(s,"-entry-link-indicator ").concat(w(s,u,l)),"aria-hidden":"true"}));return h?r.createElement("button",(0,i.a)((0,i.a)({ref:d,type:"button",role:"menuitem",className:a||""},n.attributes?n.attributes:null),{},{"aria-label":n.title,"aria-controls":n.id,"aria-expanded":!1,onClick:function(){var e;(e=d.current)&&e.setAttribute("aria-expanded",String(!JSON.parse(e.getAttribute("aria-expanded")||"false"))),o()}}),m):p?r.createElement("a",(0,i.a)({role:"menuitem",href:n.url,className:a||"",target:n.urlTarget?"_blank":"_self",rel:n.urlTarget?"noopener noreferrer":""},n.attributes?n.attributes:null),m):r.createElement("span",(0,i.a)({className:a||""},n.attributes?n.attributes:null),m)},k=function(e){var t=e.entry,n=e.device,a=e.level,o=e.handleMenuExpand,s=e.maxLevels,l=e.goBackButtons,u=e.goBackButtonIndicatorClass,c=e.openedActiveLevels,d=e.indicators,f=e.indicatorClass,h=e.closeOnMouseL
1eaveLevels,p=e.parentEntryTag,m=(0,r.useState)(!0),v=(0,i._)(m,2),y=v[0],g=v[1],b=(0,r.useRef)(null);return(0,r.useEffect)(function(){var e=function(){return g(!0)},t=function(){return g(!1)};return window.addEventListener("mousedown",e),window.addEventListener("keydown",t),function(){window.removeEventListener("mousedown",e),window.removeEventListener("keydown",t)}},[]),(0,r.useEffect)(function(){var e;b.current&&t.active&&void 0!==c&&("boolean"==typeof c?c:c.includes(a))&&(b.current.classList.add("open"),null===(e=b.current)||void 0===e||null===(e=e.querySelector(".level-".concat(a,"-entry-link[aria-expanded]")))||void 0===e||e.setAttribute("aria-expanded","true"))},[t.active,a,c]),(0,r.useEffect)(function(){if(b.current){var e,t,n,r=function(){var e;y&&b.current&&(b.current.classList.add("is-hover"),null===(e=b.current)||void 0===e||null===(e=e.querySelector(".level-".concat(a,"-entry-link[aria-expanded]")))||void 0===e||e.setAttribute("aria-expanded","true"))},i=function(e){var t;y&&b.current&&!b.current.contains(e.relatedTarget)&&(b.current.classList.remove("is-hover"),(void 0===h||("boolean"==typeof h?h:h.includes(a)))&&
1(b.current.classList.remove("open"),null===(t=b.current)||void 0===t||null===(t=t.querySelector(".level-".concat(a,"-entry-link[aria-expanded]")))||void 0===t||t.setAttribute("aria-expanded","false")))},o=function(e){if("Escape"===e.key&&b.current){b.current.classList.remove("is-hover","open"),null===(n=b.current)||void 0===n||null===(n=n.querySelector(".level-".concat(a,"-entry-link[aria-expanded]")))||void 0===n||n.setAttribute("aria-expanded","false");var t,n,r=b.current.querySelector(".level-".concat(a,"-entry-link"));null==r||r.focus()}"Enter"!==e.key&&" "!==e.key||null===(t=b.current)||void 0===t||null===(t=t.querySelector(".level-".concat(a,"-entry-link[aria-expanded]")))||void 0===t||t.setAttribute("aria-expanded",b.current.classList.contains("open")?"true":"false")};return null===(e=b.current)||void 0===e||e.addEventListener("mouseover",r),null===(t=b.current)||void 0===t||t.addEventListener("mouseleave",i),null===(n=b.current)||void 0===n||n.addEventListener("keydown",o),function(){var e,t,n;null===(e=b.current)||void 0===e||e.removeEventListener("mouseover",r),null===(t=b.current)||void 0===t||t.removeEventListener("mouseleave",i),null===(n=b.current)||void 0===n||n.removeEventListener("keydown",o)}}},[t.items,a,y,h]),r.createElement("li",{role:"none",ref:b,className:["level-".concat(a,"-entry"),t.active?"active":"",t.items?"":"no-submenu"].join(" ")},r.createElement(x,{entry:t,css:"level-".concat(a,"-entry-link"),level:a,indicators:d,indicatorClass:f,parentEntryTag:p,handleBtnClick:function(){b.current&&o(b.current)}}),t.urlImage?r.createElement("div",{className:"level-".concat(a,"-entry-urlimage")},r.createElement("img",{src:t.urlImage,alt:"","aria-hidden":!1})):null,t.items&&(void 0===s||a<s)?r.createElement(S,{id:t.id,content:t.items,device:n,title:t.title,level:a+1,maxLevels:s,openedActiveLevels:c,goBackButtons:l,goBackButtonIndicatorClass:u,indicators:d,indicatorClass:f,closeOnMouseLeaveLevels:h,parentEntryTag:p}):null)},S=function(e){var t=e.id,n=e.content,i=e.device,a=e.title,o=void 0===a?null:a,s=e.level,l=void 0===s?1:s,u=e.maxLevels,c=e.openedActiveLevels,d=e.goBackButtons,f=e.goBackButtonIndicatorClass,h=e.indicators,p=e.indicatorClass,m=e.closeOnMouseLeaveLevels,v=e.parentEntryTag,y=(0,r.useRef)(null);return r.createElement("section",{key:"level-".concat(l),id:t,className:"level-".concat(l)},o&&l>1&&(void 0===d||("boolean"==typeof d?d:d.includes(l)))?r.createElement("div",{className:"go-back-wrp"},r.createElement("button",{type:"button",className:"go-back-btn",onClick:function(e){return function(e){var t=e.target.closest(".level-".concat(l-1,"-entry"));if(t){t.classList.remove("open","is-hover"),null===(n=t.querySelector("button"))||void 0===n||n.setAttribute("aria-expanded","false");var n,r,i=t.closest(".level-".concat(l-1,"-entries")),a=null==i||null===(r=i.closest("li"))||void 0===r?void 0:r.querySelector("button, a");null==a||a.focus()}}(e)},"aria-label":"Sair de ".concat(o)},f&&r.createElement("span",{className:w(l,f,d),"aria-hidden":"true"})),r.createElement("span",{className:"go-back-title","aria-hidden":!0},o)):null,r.createElement("ul",{role:"menu",ref:y,className:"level-".concat(l,"-entries")},n.map(function(e){return r.createElement(k,{key:e.id,entry:e,device:i,level:l,handleMenuExpand:function(e){var t,n;y.current&&((t=y.current).querySelectorAll(".is-hover, .open").forEach(function(t){t===e||e.contains(t)||t.classList.remove("is-hover","open")}),t.querySelectorAll("[aria-expanded]").forEach(function(t){t===e||e.contains(t)||t.setAttribute("aria-expanded","false")}),e.classList.toggle("open"),e.classList.contains("open")||e.querySelectorAll(".open").forEach(function(e){e.classList.remove("open")}),(n=e.querySelector(".level-".concat(l,"-entry-link")))&&n.setAttribute("aria-expanded",e.classList.contains("open")?"true":"false"))},maxLevels:u,goBackButtons:d,goBackButtonIndicatorClass:f,openedActiveLevels:c,indicators:h,indicatorClass:p,closeOnMouseLeaveLevels:m,parentEntryTag:v})})))},O=function(e){var t=e.content,n=e.device,a=e.maxLevels,o=e.openedActiveLevels,s=e.goBackButtons,l=e.indicators,u=e.indicatorClass,c=e.goBackButtonIndicatorClass,d=e.closeOnMouseLeaveLevels,f=e.closeOnClickOutside,h=void 0!==f&&f,p=e.ariaLabel,m=e.parentEntryTag,v=(0,r.useRef)(null),y=(0,i.u)().location;if((0,r.useEffect)(function(){if(h){var e=function(e){var t=v.current;!(e.target instanceof Element&&e.target.closest(".main-nav"))&&t&&t.querySelectorAll(".open, .is-
1hover").length>0&&t.querySelectorAll(".open, .is-hover").forEach(function(e){e.classList.remove("open","is-hover")})};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}},[]),(0,r.useEffect)(function(){var e=function(e){var t=e.target;if(t instanceof Element){var n,r=t.parentElement,i=null==r?void 0:r.parentElement;if(t instanceof HTMLAnchorElement&&t.hash.length){(null==i?void 0:i.querySelector(".active"))&&(null==i||null===(n=i.querySelector(".active"))||void 0===n||n.classList.remove("active")),null==r||r.classList.add("active");try{"undefined"!=typeof fixANCORAS&&fixANCORAS()}catch(e){console.log("fixANCORAS",{error:e},{entriesContainer:i})}}}};return y&&y.hash.length>0&&v.current&&v.current.addEventListener("click",e),function(){y&&y.hash.length>0&&v.current&&v.current.removeEventListener("click",e)}},[y]),!t||0===t.length)return null;var g=_(t,y,n);return r.createElement("nav",{className:"main-nav",ref:v,"aria-label":p},r.createElement(S,{content:g,device:n,maxLevels:a,openedActiveLevels:void 0!==o&&o,goBackButtons:void 0===s||s,goBackButtonIndicatorClass:c,indicators:void 0===l||l,indicatorClass:u,closeOnMouseLeaveLevels:void 0!==d&&d,parentEntryTag:m}))},T=function(e){var t=e.InputText,n=e.SearchURL,a=(0,r.useState)(""),o=(0,i._)(a,2),s=o[0],l=o[1],u=function(e){null==e||e.preventDefault(),"undefined"!=typeof window&&(window.location.href=n+encodeURIComponent(s))};return(0,r.useEffect)(function(){var e=function(){var e=/((is\.srch\.k=)|(q=))(\w|\d|%|_|-)*/gi,t=location.hash.match(e),n=location.search.match(e),r=t&&t[0]?t[0].split("=")[1]:n&&n[0]?n[0].split("=")[1]:null;r&&l(function(){try{return decodeURIComponent(r)}catch(e){return""}})};return e(),window.addEventListener("popstate",e),function(){return window.removeEventListener("popstate",e)}},[]),r.createElement("div",{className:"menu-search"},r.createElement("div",{className:"menu-search-content"},r.createElement("input",{id:"simpleSearchInput",className:"menu-search-input",placeholder:t,type:"search",value:s,onChange:function(e){l(e.target.value)},onKeyDown:function(e){"Enter"===e.key&&u(e)}}),r.createElement("button",{type:"button",className:"icon-search",onClick:u,"aria-label":"Pesquisar"})))},A=function(e){var t=e.InputText,n=e.SearchURL,a=e.containerId,o=(0,r.useState)(!1),s=(0,i._)(o,2),l=s[0],u=s[1],c=(0,r.useState)(!1),d=(0,i._)(c,2),f=d[0],h=d[1],p=(0,r.useRef)(null);return(0,r.useEffect)(function(){var e;null===(e=p.current)||void 0===e||e.setAttribute("value","")},[]),r.createElement("div",{id:a,className:"menu-complex-search"},r.createElement("div",{className:"menu-complex-search-input-wrapper"},r.createElement("label",{"data-alert":f?"Insira pelo menos 2 caracteres para encontrar resultados.":null},r.createElement("input",{ref:p,className:"menu-complex-search-input",placeholder:t,type:"text",onChange:function(e){return u(e.target.value.length>0)},onKeyDown:function(e){"Enter"!=e.key||e.shiftKey||(e.preventDefault(),e.currentTarget.value.trim().length<2?h(!0):(h(!1),window.location.href=n.replace("{{searchKeyword}}",e.currentTarget.value)))}})),r.createElement("button",{className:"menu-complex-search-input-clear".concat(l?"":" hide"),onClick:function(e){e.preventDefault(),p.current&&(p.current.value="",h(!1),u(!1))},"aria-label":"Limpar termo de pesquisa"},r.createElement("i",{className:"icon-close","aria-hidden":"true"}))))},C=function(e){var t,n,i=e.InputText,a=e.SearchURL,o=e.containerId,s=void 0===o?"":o,l=e.triggerStyles,u=void 0===l?"":l,c=e.triggerTitle,d=void 0===c?"":c,f=(0,r.useRef)(null);return(0,r.useEffect)(function(){var e=function(e){var t;f.current&&(e.target.closest(".menu-search")||(f.current.classList.remove("on"),f.current.classList.add("off"),null===(t=document.querySelector("body"))||void 0===t||t.classList.remove("menu-search-open")))},t=function(e){var t,n;f.current&&"Escape"===e.key&&(f.current.classList.remove("on"),f.current.classList.add("off"),null===(t=document.querySelector("body"))||void 0===t||t.classList.remove("menu-search-open"),null===(n=f.current.querySelector("input"))||void 0===n||n.blur())};return document.addEventListener("click",e),window.addEventListener("keydown",t),function(){document.removeEventListener("click",e,!0),window.removeEventListener("keydown",t,!0)}},[]),a&&i?r.createElement("section",{className:"menu-search"},r.createElement("button",{type:"button",ref:f,className:"trigger",onClick:function(){var e,t,n;null!==f.current&&(f.current.classList.contains("off")||!f.current.classList.contains("on")?(f.current.classList.add("on"),f.current.classList.remove("off"),null===(e=f.current.querySelector("input"))||void 0===e||e.focus(),f.current.setAttribute("aria-expanded","true"),null===(t=document.querySelector("body"))||void 0===t||t.classList.add("menu-search-open")):(f.current.classList.remove("on"),f.current.classList.add("off"),f.current.focus(),f.current.setAttribute("aria-expanded","fal
1se"),null===(n=document.querySelector("body"))||void 0===n||n.classList.remove("menu-search-open")))},"aria-controls":s,"aria-expanded":null!==(t=null===(n=f.current)||void 0===n?void 0:n.classList.contains("on"))&&void 0!==t&&t,"aria-label":d?void 0:"Pesquisa"},u?r.createElement("span",{className:u,"aria-hidden":!0}):null,d?r.createElement("span",{className:"menu-title"},d):null),r.createElement("div",{className:"container"},r.createElement(A,{InputText:i,SearchURL:a,containerId:s}))):null},N=function(e){var t=e.content;return t?"componentType"in t&&"containerId"in t&&t.containerId?r.createElement(C,(0,i.a)({},t)):"string"==typeof t.InputText&&"string"==typeof t.SearchURL?r.createElement(T,{InputText:t.InputText,SearchURL:t.SearchURL}):null:null},R=function(e){var t=e.styles,n=e.content;if(null==n||!n.HTML)return null;var i=n.HTML;return r.createElement("div",{className:t?" "+t:"",dangerouslySetInnerHTML:{__html:i}})},L=function(e){var t=e.className,n=e.siteContext,i=e.children;return r.createElement("div",{className:"footer-wrapper".concat(t?" "+t:""),"data-site-context":n},i)},P=function(e){var t=e.skeleton,n=e.siteContext,i=e.useWrapper,a=e.wrapperId,o=e.children;return void 0===i||i?r.createElement("footer",{id:void 0===a?"footer":a},r.createElement(L,{siteContext:n,className:"".concat(t?" skeleton":"")},t||o)):r.createElement(L,{siteContext:n,className:"".concat(t?" skeleton":"")},t||o)},I=function(e){var t=e.collapse,n=e.collapseHeight,i=e.wrpRef,a=e.handleClick,o=e.extraClass,s=void 0===o?null:o,l=e.children;return r.createElement(r.Fragment,null,r.createElement("div",{className:"context-menu-content"+(t?" "+t:"")+(s?" "+s:""),style:n},r.createElement("div",{className:"context-menu-content-wrp",ref:i},(0,r.useMemo)(function(){return l},[l]))),r.createElement("div",{className:"context-menu-overlay",onClick:void 0===a?void 0:a}))},j=r.memo(function(e){var t=e.Desambig_LinkId,n=e.Desambig_LinkText,a=e.Desambig_LinkUrl,o=e.Desambig_Text,s=e.customEvents;return r.createElement("div",{className:"desambiguation"},r.createElement("p",null,o||"",r.createElement("br",null),n||a?r.createElement("a",(0,i.a)({id:t,href:a},s?d(s,t,a):null),r.createElement("strong",null,n)):null))}),D=r.memo(function(e){e.siteContext;var t=e.Anon_Greeting,n=e.Anon_LinkId,a=e.Anon_LinkText,o=e.Anon_LinkUrl,s=e.Anon_LinkCssClass,l=e.Anon_AddLinkId,u=e.Anon_AddLinkText,c=e.Anon_AddLinkUrl,f=e.Anon_AddLinkCssClass;e.Anon_AddText;var h=e.customEvents,p=e.Desambig_LinkId,m=e.Desambig_LinkText,v=e.Desambig_LinkUrl,y=e.Desambig_Text;return r.createElement("section",{className:"user-box"},r.createElement("p",{className:"user-greeting"},t||""),r.createElement("ul",{className:"hyperlinks"},a?r.createElement("li",null,r.createElement("a",(0,i.a)({id:n,href:o||null,className:s||""},h?d(h,n,o):null),a||"")):null,u?r.createElement("li",null,r.createElement("a",(0,i.a)({id:l,href:c||null,className:f||""},h?d(h,l,c):null),u||"")):null),m?r.createElement(j,{Desambig_LinkId:p,Desambig_LinkText:m,Desambig_LinkUrl:v,Desambig_Text:y,customEvents:h}):null)}),M=r.memo(function(e){e.siteContext;var t,n=e.Auth_Greeting,a=e.userName,o=e.Auth_LinkId,s=e.Auth_LinkText,l=e.Auth_LinkUrl,u=e.Auth_LinkCssClass,c=e.customEvents,f=e.Desambig_LinkId,h=e.Desambig_LinkText,p=e.Desambig_LinkUrl,m=e.Desambig_Text,v=a?null==a||null===(t=a.match(/^\S+/))||void 0===t?void 0:t[0]:a;return r.createElement("section",{className:"user-box"},r.createElement("p",{className:"user-greeting",dangerouslySetInnerHTML:{__html:n?n.replace("{0}",v||""):""}}),s?r.createElement("ul",{className:"hyperlinks"},r.createElement("li",null,r.createElement("a",(0,i.a)({id:o,href:l||null,className:u||""},c?d(c,o,l):null),s||"aceder"))):null,h?r.createElement(j,{Desambig_LinkId:f,Desambig_LinkText:h,Desambig_LinkUrl:p,Desambig_Text:m,customEvents:c}):null)}),U=r.memo(function(e){var t=e.img,n=e.imgAlt,i=e.text,a=e.customEvents,o=(0,r.useRef)(null);return(0,r.useEffect)(function(){var e;if(i){var t=null===(e=o.current)||void 0===e?void 0:e.querySelector("#hrefPushLogin");if(t&&a){var n=d(a,t.id,t.href);null!==n&&Object.keys(n).map(function(e){t.setAttribute(e,n[e])})}}},[]),r.createElement("section",{className:"campaign"},t&&r.createElement("div",{className:"image"},r.createElement("img",{src:t,alt:n,width:"360px",height:"120px",loading:"lazy"})),i&&r.createElement("span",{className:"campaign-text",dangerouslySetInnerHTML:{__html:"".concat(i)},ref:o}))}),F=r.memo(function(e){var t,n=e.content;return r.createElement("section",{className:"campaign",dangerouslySetInnerHTML:{__html:null!==(t=null==n?void 0:n.replace("<img",'<img loading="lazy" '))&&void 0!==t?t:""}})}),B=r.memo(function(e){var t=e.Auth_LogoutLinkId,n=e.Auth_LogoutLinkText,a=e.userMenuScript,o=e.customEvents;return(0,r.useEffect)(function(){try{var e=document.querySelector("#context-menu-logout-script"),t=null==e?void 0:e.querySelector("script");t&&t.text&&window.eval(t.text)}catch(e){console.log("script error: ",a)}},[]),r.createElement(r.Fragment,null,r.createElement("button",(0,i.a)({id:t||null,type:"button",className:"btn-text btn-color-1 icon-seta-left btn-icon-left btn-tiny"},o?d(o,t,"#"):null),n||"terminar sess\xe3o"),r.createElement("span",{id:"context-menu-logout-script",dangerouslySetInnerHTML:{__html:null!=a?a:""}}))}),q=function(e){var t=e.siteContext,n=e.Url,a=e.hyperlinks,o=e.isAnon,l=e.Anon_Greeting,u=e.Anon_LinkId,c=e.Anon_LinkText,d=e.Anon_LinkUrl,f=e.Anon_LinkCssClass,p=e.Anon_AddLinkId,m=e.Anon_AddLinkText,v=e.Anon_AddLinkUrl,y=e.Anon_AddLinkCssClass,g=e.Anon_AddText,b=e.Auth_Greeting,E=e.userName,_=e.Auth_LinkId,w=e.Auth_LinkText,x=e.Auth_LinkUrl,k=e.Auth_LinkCssClass,S=e.userPhoto,O=e.Desambig_LinkId,T=e.De
1sambig_LinkText,A=e.Desambig_LinkUrl,C=e.Desambig_Text,N=e.Auth_LogoutLinkId,R=e.Auth_LogoutLinkText,L=e.userMenuScript,P=e.Anon_PushLoginImgUrl,j=e.Anon_PushLoginImgAlt,q=e.Anon_PushLoginText,Z=e.rubiCampaignHTML,z=void 0===Z?null:Z,H=e.pullBannerTime,W=void 0===H?null:H,V=e.pullDelayTime,$=void 0===V?null:V,Q=e.pushLoginTime,K=void 0===Q?null:Q,G=e.pushDelayTime,Y=void 0===G?null:G,X=e.MenuTitle,J=e.attributes,ee=e.customEvents,et=(0,r.useState)(!1),en=(0,i._)(et,2),er=en[0],ei=en[1],ea=(0,r.useState)(!1),eo=(0,i._)(ea,2),es=eo[0],el=eo[1],eu=s("off"),ec=(0,i._)(eu,4),ed=ec[0],ef=ec[1],eh=ec[2],ep=ec[3];return((0,r.useEffect)(function(){ei(!!(K&&K>0||W&&W>0))},[Y,K,W,$]),(0,r.useEffect)(function(){var e;er&&(K&&Y&&Y>0||W&&$&&$>0)&&setTimeout(function(){ep(),el(!0)},null!==(e=null!=Y?Y:$)&&void 0!==e?e:0)},[er]),(0,r.useEffect)(function(){"off"===ed&&es&&er&&ei(!1)},[ed]),(0,r.useEffect)(function(){if(es&&!n&&(K&&K>0||W&&W>0)){var e,t=!1,r=function(){t=!t};eh.current&&(eh.current.addEventListener("mouseenter",r),eh.current.addEventListener("mouseleave",r));var i=setTimeout(function(){t||ep(),eh.current&&(eh.current.removeEventListener("mouseenter",r),eh.current.removeEventListener("mouseleave",r))},null!==(e=null!=K?K:W)&&void 0!==e?e:0);return function(){return clearTimeout(i)}}},[es]),n)?r.createElement("a",(0,i.a)({id:"hrefUser",href:n,className:"context-menu-btn"},J||null),r.createElement("span",{className:"icon-user","aria-hidden":!0}),X&&X.length>0?r.createElement("span",{className:"menu-title"},X):null):r.createElement(r.Fragment,null,r.createElement("button",(0,i.a)({id:"hrefUser",className:"context-menu-btn "+ed,onClick:function(e){e.preventDefault(),ep()}},J||null),o?r.createElement("span",{className:"icon-user","aria-hidden":!0}):S?r.createElement("span",{className:"user-photo"},r.createElement("img",{src:S,alt:"","aria-hidden":!0})):r.createElement("span",{className:"icon-user-fill auth","aria-hidden":!0}),X?r.createElement("span",{className:"menu-title"},X):null),r.createElement(I,{collapseHeight:ef,wrpRef:eh,handleClick:ep,collapse:ed,extraClass:er?"no-bg":""},r.createElement("div",null,o?r.createElement(D,{siteContext:t,Anon_Greeting:l,Anon_LinkId:u,Anon_LinkText:c,Anon_LinkUrl:d,Anon_LinkCssClass:f,Anon_AddLinkId:p,Anon_AddLinkText:m,Anon_AddLinkUrl:v,Anon_AddLinkCssClass:y,Anon_AddText:g,customEvents:ee,Desambig_LinkId:O,Desambig_LinkText:T,Desambig_LinkUrl:A,Desambig_Text:C}):r.createElement(M,{siteContext:t,Auth_Greeting:b,userName:E,Auth_LinkId:_,Auth_LinkText:w,Auth_LinkUrl:x,Auth_LinkCssClass:k,customEvents:ee,Desambig_LinkId:O,Desambig_LinkText:T,Desambig_LinkUrl:A,Desambig_Text:C}),o?er?null:r.createElement(U,{img:P,imgAlt:j,text:q,customEvents:ee}):z?r.createElement(F,{content:z}):null,a&&!er?r.createElement(h,{styles:"login-hyperlinks",hyperlinks:a,device:"desktop"}):null,o||er?null:r.createElement("section",{className:"end-Session"},r.createElement(B,{Auth_LogoutLinkId:N,Auth_LogoutLinkText:R,userMenuScript:L,customEvents:ee})))))},Z=function(e){return r.createElement("div",{id:"liUserMenu",className:"context-menu-login"},r.createElement(q,(0,i.a)({},e)))},z=["id","className","title","onClick","attributes","children"],H=function(e){var t=e.id,n=e.className,a=e.title,o=e.onClick,s=e.attributes,l=e.children,u=(0,i.c)(e,z);return r.createElement("button",(0,i.a)((0,i.a)({id:t,className:"context-menu-btn "+(null!=n?n:""),title:a||"",onClick:o},s),u),l)},W=function(e){var t,n=e.hyperlinks,a=e.ZoneTitle,o=e.MenuTitle,l=e.MEOS_COUNT,u=e.MEOS_DATE,c=e.ZoneTitleAuth,d=e.attributes,f=s(),p=(0,i._)(f,4),m=p[0],v=p[1],y=p[2],g=p[3],b=null;if(u){var E=new Date(u.replace(/-/g,"/"));isNaN(E.getTime())||(b=E.toLocaleDateString("pt-PT",{year:"numeric",month:"long",day:"numeric"}).replace(/ de /g," "))}var _=l&&"N.A."!==l&&b&&c?"".concat(c.replace(/{MEOS_COUNT}/g,"".concat(l)).replace(/{MEOS_DATE}/g,"".concat(b))):(null!==(t=null==a?void 0:a.length)&&void 0!==t?t:0)>0?a:null;return r.createElement(r.Fragment,null,r.createElement(H,(0,i.a)((0,i.a)({className:m,"data-notifications":l&&"N.A."!==l?l:null,onClick:function(e){e.preventDefault(),g()}},d||null),{},{"aria-label":"".concat(l&&"N.A."!==l?l:"").concat(o?" "+o:"")}),r.createElement("span",{className:"icon-m-meo","aria-hidden":!0}),o?r.createElement("span",{className:"menu-title"},o):null),r.createElement(I,{collapseHeight:v,wrpRef:y,handleClick:g,collapse:m},_&&r.createElement("div",{className:"meos-header"},r.createElement("span",{className:"icon-m-meo","aria-hidden":!0}),r.createElement("div",{className:"meos-header-info",dangerouslySetInnerHTML:{__html:_}})),n&&r.createElement(h,{styles:"meos-hyperlinks",hyperlinks:n,device:"desktop"})))},V=function(e){return r.createElement("div",{id:"meos-main-menu",className:"context-menu-meos"},r.createElement(W,(0,i.a)({},e)))},$={QA:"QA",PROD:"",DEV:"Dev"},Q=function(e){var t=e.MenuTitle,n=e.Url,a=e.environment,o=void 0===a?"PROD":a,s=e.attributes,l=(0,r.useState)(0),u=(0,i._)(l,2),c=u[0],d=u[1];(0,r.useEffect)(function(){return f(),document.addEventListener("update-NewCart",f),function(){document.removeEventListener("update-NewCart",f)}},[]);var f=function(){var e,t,n,r=$[Object.keys($).includes(o)?o:"PROD"],i=(e="cart".concat(r),t=document.cookie.split("; ").find(function(t){return t.startsWith("".concat(e,"="))}),n=null,t&&(n=t.split("=")[1])&&(n=JSON.parse(n)),n);i&&d(i.Count?parseInt(i.Count,10):0)};return r.createElement("a",(0,i.a)((0,i.a)({href:n,className:"context-menu-btn","data-notifications":0===c?null:c},s||null),{},{"aria-label":"".concat(t).concat(c>0?" com ".concat(c," produto").concat(c>1?"s":""," adicionado").concat(c>1?"s":""):"")}),r.createElement("span",{id:"cartCount",className:"icon-cart","aria-hidden":"true"}),t?r.createElement("span",{className:"menu-title"},t):null)},K=function(e){return r.createElement("div",{id:"ctl00_userMenu_shopBasket",className:"context-menu-cart"},r.createElement(Q,(0,i.a)({},e)))},G=function(e){var t=e.c2cScript,n=e.Tooltip,a=e.MenuTitle,o=e.attributes,l=s(),u=(0,i._)(l,4),c=u[0],d=u[1],f=u[2],h=u[3],p=(0,r.useState)(!1),m=(0,i._)(p,2),v=m[0],y=m[1];return(0,r.useEffect)(function(){if("turning-on"===c&&!v)try{var e=document.querySelector("#context-menu-c2c"),n=null==e?void 0:e.querySelector("script");n&&n.text&&window.eval(n.text),y(!0)}catch(e){console.log("script error: ",t)}},[c]),r.createElement(r.Fragment,null,r.createElement(H,(0,i.a)({className:c,title:n||"",onClick:function(e){e.preventDefault(),h()}},o||null),r.createElement("span",{className:"icon-phoneausc","aria-hidden":"true"}),a?r.createElement("span",{className:"menu-title"},a):null),r.createElement(I,{collapseHeight:d,wrpRef:f,handleClick:h,collapse:c},(0,r.useMemo)(function(){return r.createElement("span",{id:"context-menu-c2c",dangerouslySetInnerHTML:{__html:t},className:v?"":"context-loading"})},[v])))},Y=function(e){return r.createElement("div",{id:"liClick2Call",className:"context-menu-click2call"},r.createElement(G,(0,i.a)({},e)))},X=function(e){var t=e.title,n=e.toggled,i=e.handleToggle,a=e.btnRef;return r.createElement("button",{ref:a,type:"button",className:"menu-toggle ".concat(n?"open":""),"aria-controls":"menuNew","aria-label":n?"fechar menu":"abrir menu","aria-expanded":n,onClick:function(e){return i(e)}},r.createElement("div",{className:"menu-toggle-icon","aria-hidden":!0},r.createElement("span",{className:"menu-toggle-icon-elem"})),t?r.createElement("span",{className:"menu-toggle-title"},t):null)},J=function(e){var t=e.children,n=(0,i.u)().location,o=a().device,s=(0,r.useState)(!1),l=(0,i._)(s,2),u=l[0],c=l[1],d=(0,r.useRef)(null),f=(0,r.useRef)(null);return(0,r.useEffect)(function(){var e,t=document.querySelector("body");null==t||t.classList.remove("mobile-menu-open");var r=function(e){var r=e.target.closest("a");null!=r&&r.hash&&r.hash.length>0&&null!=n&&n.hash&&n.hash.length>0&&(c(!1),null==t||t.classList.remove("mobile-menu-open"))};return null===(e=f.current)||void 0===e||e.addEventListener("click",r),function(){var e;null===(e=f.current)||void 0===e||e.removeEventListener("click",r)}},[n]),(0,r.useEffect)(function(){if(u){var e=function(e){var t;u&&(e.target.closest('[class^="context-menu-"]')||e.target.closest(".menu-search"))&&(c(!1),null===(t=document.querySelector("body"))||void 0===t||t.classList.remove("mobile-menu-open"))};return document.addEventListener("click",e),function(){document.removeEventListener("click",e)}}},[u]),(0,r.useEffect)(function(){var e;if("mobile"===o&&null!==(e=f.current)&&void 0!==e&&e.parentElement){var t,n=function(e){if("Tab"===e.key){var t,n,r,i=Array.from((null===(r=f.current)||void 0===r||null===(r=r.parentElement)||void 0===r?void 0:r.querySelectorAll(".menu-toggle.open, .menu-toggle.open + .toggle-nav-content button, .menu-toggle.open + .toggle-nav-content a"))||[]);if(0===i.length)return;var a=i[0],o=i[i.length-1];e.shiftKey?document.activeElement===a&&(e.preventDefault(),o.focus()):document.activeElement===o&&(e.preventDefault(),a.focus())}"Escape"===e.key&&(c(!1),null===(t=document.querySelector("body"))||void 0===t||t.classList.remove("mobile-menu-open"),null===(n=d.current)||void 0===n||n.focus())};return null===(t=f.current)||void 0===t||null===(t=t.parentElement)||void 0===t||t.addEventListener("keydown",n),function(){var e;null===(e=f.current)||void 0===e||null===(e=e.parentElement)||void 0===e||e.removeEventListener("keydown",n)}}},[o]),r.createElement(r.Fragment,null,r.createElement(X,{btnRef:d,title:"Menu",toggled:u,handleToggle:function(e){e.preventDefault();var t=document.querySelector("body");c(function(e){return!e}),u?null==t||t.classList.remove("mobile-menu-open"):null==t||t.classList.add("mobile-menu-open")}}),r.createElement("div",{ref:f,id:"menuNew",className:"toggle-nav-content"},r.createElement("div",{className:"wrp-content"},t)))},ee=function(){return r.createElement(r.Fragment,null,r.createElement("section",{className:"top-nav-bar"},r.createElement("div",{className:"user-menu-placeholder"})),r.createElement("section",{className:"nav-bar"},r.createElement("div",{className:"logo-placeholder"}),r.createElement("div",{className:"nav-item-placeholder"}),r.createElement("div",{className:"nav-item-placeholder"}),r.createElement("div",{className:"nav-item-placeholder"}),r.createElement("div",{className:"nav-menu-mobile-placeholder"})),r.createElement("div",{className:"nav-bar search-placeholder"},r.createElement("div",{className:"nav-search-placeholder"})))},et=function(e){var t=e.siteContext,n=e.environment,a=e.languageselector,o=e.desambiguacao,s=e.toplinks,l=e.logo,
1c=e.menunav,d=e.linksmenumobile,f=e.search,h=e.usermenu,m=e.meos,b=e.minicart,E=e.click2call,_=e.useWrapper,w=e.skeleton,x=function(e){return r.createElement(r.Fragment,null,r.createElement(y,{device:e,content:a}),r.createElement(v,{device:e,content:o}),r.createElement(p,{device:e,content:s,styles:"menu-top-links"}))};return r.createElement(i.A,{siteContext:t},r.createElement(u,{useWrapper:void 0===_||_,siteContext:t,skeleton:void 0!==w&&w?r.createElement(ee,null):void 0},r.createElement("section",{className:"top-nav-bar"},r.createElement("div",{className:"top-nav-bar-content show-desktop"},x("desktop")),r.createElement("div",{className:"top-nav-bar-content show-mobile"},x("mobile"))),r.createElement("section",{className:"nav-bar"},r.createElement(g,{content:l}),r.createElement("div",{className:"nav-bar-content show-desktop"},r.createElement(O,{device:"desktop",content:c,ariaLabel:"Navega\xe7\xe3o principal",maxLevels:4,closeOnClickOutside:!0,openedActiveLevels:[3],goBackButtons:!1,indicators:[2,3],indicatorClass:["icon-seta-right","icon-seta-down"]}),f&&r.createElement(N,{content:f})),r.createElement("section",{className:"context-menu-bar"},h&&r.createElement(Z,(0,i.a)((0,i.a)({},h),{},{siteContext:t})),m&&r.createElement(V,(0,i.a)({},m)),b&&r.createElement(K,(0,i.a)((0,i.a)({},b),{},{environment:void 0===n?"PROD":n})),E&&r.createElement(Y,(0,i.a)({},E))),r.createElement("section",{className:"toggle-nav-bar show-mobile"},r.createElement(J,null,r.createElement(O,{device:"mobile",content:c,ariaLabel:"Navega\xe7\xe3o principal",maxLevels:4,closeOnMouseLeaveLevels:!1,openedActiveLevels:[2,3],goBackButtons:[2],goBackButtonIndicatorClass:["icon-seta-left"],indicators:[1,2,3],indicatorClass:["icon-seta-right","icon-seta-down","icon-seta-down"]}),r.createElement(p,{device:"mobile",content:d,styles:"menu-mobile-links"})))),f&&r.createElement("section",{className:"search-bar show-mobile"},r.createElement(N,{content:f}))))}},9326:function(e,t,n){"use strict";n.d(t,{H:function(){return s}});var r=n(2225),i=n(2265),a=n(3704),o=function(){return i.createElement(i.Fragment,null,i.createElement("section",{className:"top-nav-bar"},i.createElement("div",{className:"user-menu-placeholder"})),i.createElement("section",{className:"nav-bar"},i.createElement("div",{className:"logo-placeholder"})," ",i.createElement("div",{className:"nav-menu-mobile-placeholder"}),i.createElement("div",{className:"nav-item-placeholder"}),i.createElement("div",{className:"nav-item-placeholder"}),i.createElement("div",{className:"nav-item-placeholder"})))},s=function(e){var t=e.siteContext,n=e.languageselector,s=e.toplinks,l=e.logo,u=e.menunav,c=e.usermenu,d=e.useWrapper,f=e.skeleton,h=s&&Array.isArray(s.hyperlinks)?s:void 0,p=Array.isArray(l)?l:void 0,m=Array.isArray(u)?u:void 0,v=function(e){return i.createElement(i.Fragment,null,i.createElement(a.b,{device:e,content:n}),i.createElement(a.M,{device:e,content:h,styles:"menu-top-links"}))};return i.createElement(r.A,{siteContext:t},i.createElement(a.H,{useWrapper:void 0===d||d,siteContext:t,skeleton:void 0!==f&&f?i.createElement(o,null):void 0},i.createElement("section",{className:"top-nav-bar"},i.createElement("div",{className:"top-nav-bar-content show-desktop"},v("desktop")),i.createElement("div",{className:"top-nav-bar-content show-mobile"},v("mobile"))),i.createElement("section",{className:"nav-bar"},i.createElement(a.L,{content:p}),i.createElement("div",{className:"nav-bar-content show-desktop"},i.createElement(a.a,{device:"desktop",content:m,ariaLabel:"Navega\xe7\xe3o principal",maxLevels:4,closeOnClickOutside:!0,openedActiveLevels:[1],goBackButtons:!1,indicators:[2,3],indicatorClass:["icon-seta-right","icon-seta-down"]})),i.createElement("section",{className:"context-menu-bar"},c&&i.createElement(a.C,(0,r.a)((0,r.a)({},c),{},{siteContext:t}))),i.createElement("section",{className:"toggle-nav-bar show-mobile"},i.createElement(a.T,null,i.createElement(a.a,{device:"mobile",content:m,ariaLabel:"Navega\xe7\xe3o principal",maxLevels:4,closeOnMouseLeaveLevels:!1,openedActiveLevels:[2,3],goBackButtons:[2],goBackButtonIndicatorClass:["icon-seta-left"],indicators:[1,2,3],indicatorClass:["icon-seta-right","icon-seta-down","icon-seta-down"]}))))))}},5323:function(e,t,n){"use strict";n.d(t,{$:function(){return i.F},h:function(){return r.c}});var r=n(3704),i=n(4791);n(2265),n(2225)},4016:function(e,t,n){"use strict";n.d(t,{$:function(){return i.F},h:function(){return r.H}});var r=n(9326),i=n(3206);n(2225),n(2265),n(3704)},7246:function(e,t,n){"use strict";n.d(t,{Bl:function(){return h},Bm:function(){return F},Dl:function(){return eh},HW:function(){return ec},Mo:function(){return K},Rh:function(){return Y},V6:function(){return eo},Zi:function(){return el},Zo:function(){return en},_b:function(){return et},iC:function(){return J},jg:function(){return er},l2:function(){return D},lb:function(){return d},pR:function(){return ea},rk:function(){return ev},up:function(){return I},xV:function(){return B}});var r=n(2265);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?a(Object(n),!0).forEach(function(t){!function(e,t,n){var r;(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=function(){var e=s((0,r.useState)("undefined"!=typeof window&&window.innerWidth<960?"mobile":"desktop"),2),t=e[0],n=e[1];return(0,r.useEffect)(function(){var e=function(){return n(window.innerWidth<960?"mobile":"desktop")};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]),{device:t}},c=function(){var e=s((0,r.useState)(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"off"),2),t=e[0],n=e[1],i=s((0,r.useState)({height:"0px"}),2),a=i[0],l=i[1],u=(0,r.useRef)(null);(0,r.useEffect)(function(){var e=function(n){if(u.current){var r,i;if("off"!==t){switch(t){case"turning-on":i=500;break;case"turning-off":i=410;break;default:i=0}null!==(r=u.current)&&void 0!==r&&null!==(r=r.parentElement)&&void 0!==r&&null!==(r=r.parentElement)&&void 0!==r&&r.contains(n.target)||setTimeout(function(){c(),document.removeEventListener("click",e)},i+1)}}};return"on"===t&&document.addEventListener("click",e),function(){document.removeEventListener("click",e)}},[t]);var c=function(){var e,r,i,s;if(null!==(e=u.current)&&void 0!==e&&null!==(e=e.parentElement)&&void 0!==e&&e.classList.contains("turning-off")||null!==(r=u.current)&&void 0!==r&&null!==(r=r.parentElement)&&void 0!==r&&r.classList.contains("turning-on"))return null;"off"===t?(l(o(o({},a),{},{height:(null===(i=u.current)||void 0===i?void 0:i.clientHeight)+"px"})),n("turning-on"),setTimeout(function(){n("on")},500)):(l(o(o({},a),{},{height:(null===(s=u.current)||void 0===s?void 0:s.clientHeight)+"px"})),n("turning-off"),setTimeout(function(){l(o(o({},a),{},{height:"0px"}))},10),setTimeout(function(){n("off")},400))};return[t,a,u,c]},d=function(e){var t,n,i,a,o,l,u,c,d,f=e.siteContext,h=e.children,p=(n=(t=s((0,r.useState)(null),2))[0],i=t[1],o=(a=s((0,r.useState)(!1),2))[0],l=a[1],c=(u=s((0,r.useState)(0),2))[0],d=u[1],(0,r.useEffect)(function(){var e=function(){null!==c&&(l(window.scrollY>0),i(window.scrollY<c?"up":"down")),d(window.scrollY)};return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}},[c]),{direction:n,isFixed:o}),m=p.direction,v=p.isFixed;return r.createElement("header",{id:"header",className:v?"fixed":"","data-scroll-direction":m},r.createElement("main-menu",{id:"main-menu-v5"},r.createElement("div",{className:"main-menu-v5 ".concat(null!=f?f:"")},h)))},f=function(e){var t=e.item,n=e.device,i=t.styles,a=t.text,s=t.MobileText,l=t.url,u=t.target,c=t.isActive,d=t.attributes,f=t.onClick,h=t.Descrição,p=t.HTML,m=t.imageUrl,v="mobile"===n&&s?s:a||"";return p&&""!==p?r.createElement("li",{dangerouslySetInnerHTML:{__html:p}}):r.createElement("li",{className:c?"is-active":""},r.createElement("a",o({className:i||"",href:l||"#!",target:u||"_self",rel:"_blank"===(null==u?void 0:u.toLowerCase())?"noopener noreferrer":"",onClick:f?"string"==typeof f?function(){return window.eval(f)}:f:void 0},d||null),m&&""!==m?r.createElement("img",{src:m,alt:v}):null,v&&""!==v?r.createElement("span",{className:"hyperlinks-txt"},v):null,h&&""!==h?r.createElement("span",{className:"hyperlinks-desc"},h):null))},h=function(e){return"MOCHE"===e},p=function(e,t,n){var r=null;return e.map(function(e){e.elemId===t&&null===(r=e.attributes)["data-eventlink"]&&(r["data-eventlink"]=n)}),r},m=function(e,t){var n=(null==e?void 0:e.HideMobile)&&e.HideMobile.toLowerCase(),r=(null==e?void 0:e.HideDesktop)&&e.HideDesktop.toLowerCase();return!("sim"===n&&"mobile"===t||"sim"===r&&"desktop"===t)},v=r.memo(function(e){var t=e.device,n=e.hyperlinks,i=e.styles;return r.createElement("ul",{className:i},n.map(function(e,n){return m(e,t)?r.createElement(f,{key:n,item:e,device:t}):null}))}),y=function(){var e,t=s((0,r.useState)(null),2),n=t[0],i=t[1],a=function(){var e,t=Weglot.getAvailableLanguages();return t.length>1?t.filter(function(e){return e!==Weglot.getCurrentLang()})[0]:null!==(e=t[0])&&void 0!==e?e:null};return(0,r.useEffect)(function(){"object"===("undefined"==typeof Weglot?"undefined":l(Weglot))&&Weglot.initialized&&i(a())},[]),null===n?null:r.createElement("div",{className:"language-selector-toggle ".concat(n)},1===n.length?r.createElement("span",{className:"language-selector-btn"},Weglot.getLanguageName(n)):r.createElement("button",{type:"button",className:"language-selector-btn",onClick:function(e){e.preventDefault(),Weglot.switchTo(n),i(a())},"aria-label":"".concat(null!==(e=({pt:"Ver site em ",en:"Switch to "})[n])&&void 0!==e?e:"").concat(Weglot.getLanguageName(n))},Weglot.getLanguageName(n)))},g=function(e){var t=e.languages,n=e.device,i=s((0,r.useState)(!1),2),a=i[0],o=i[1];return 1===t.length?r.createElement(v,{device:n,styles:"language-selector-toggle",hyperlinks:t}):r.createElement("span",{className:"language-selector icon-seta-down"+(a?" active":""),onClick:function(){return o(!a)}},r.createElement(v,{device:n,styles:"menu-hyperlinks",hyperlinks:t}))},b=function(e){var t,n=e.device,i=e.languages;return i.length?"weglot"===(null===(t=i[0])||void 0===t?void 0:t.componentType)?r.createElement(y,null):r.createElement(g,{device:n,languages:i}):null},E=function(e){e.device;var t=e.logoImages;e.styles,e.renderLocation;var n={src:""};return t.map(function(e){"1x"===e.type&&(e.url&&(n.url=e.url),e.src&&(n.src=e.src),e.alt&&(n.alt=e.alt),e.width&&(n.width=e.width),e.height&&(n.height=e.height),e.ratio&&(n.ratio=e.ratio))}),n.url?r.createElement("a",{href:n.url,className:"logo"},n.src&&r.createElement("img",{src:n.src,alt:n.alt,width:n.width,height:n.height,loading:"lazy"})):r.createElement("span",{className:"logo"},n.src&&r.createElement("img",{src:n.src,srcSet:n.srcSet,alt:n.alt,width:n.width,height:n.height,loading:"lazy"}))},_=r.memo(function(e){var t=e.device,n=e.socialNetworks,i=e.styles;return r.createElement("section",{className:"social-networks ".concat(i)},n.blockTitle?r.createElement("p",{className:"social-networks-title"},n.blockTitle):null,r.createElement(v,{device:t,styles:"social-networks-list",hy
1perlinks:n.hyperlinks}))}),w=function(e){var t=e.entry,n=e.css,i=e.renderLocation,a=e.handleBtnClick,s=r.useRef(null);return t.items&&"footer"!=i?r.createElement("button",o(o({ref:s,type:"button",role:"menuitem",className:[n||"",t.css?t.css:""].join(" ")},t.attributes?t.attributes:null),{},{"aria-label":t.title,"aria-controls":t.id,"aria-expanded":!1,onClick:function(){var e;(e=s.current)&&e.setAttribute("aria-expanded",String(!JSON.parse(e.getAttribute("aria-expanded")||"false"))),a()}}),r.createElement("span",{className:n?n+"-title":""},t.title)):r.createElement("a",o({role:"menuitem",href:t.url,className:[n||"",t.css?t.css:""].join(" "),target:t.urlTarget?"_blank":"_self",rel:t.urlTarget?"noopener noreferrer":""},t.attributes?t.attributes:null),r.createElement("span",{className:n?n+"-title":""},t.title))},x=function(e){var t=e.entry,n=e.device,i=e.renderLocation,a=e.level,o=e.handleMenuExpand,l=s((0,r.useState)(!0),2),u=l[0],c=l[1],d=(0,r.useRef)(null);return(0,r.useEffect)(function(){var e=function(){return c(!0)},t=function(){return c(!1)};return window.addEventListener("mousedown",e),window.addEventListener("keydown",t),function(){window.removeEventListener("mousedown",e),window.removeEventListener("keydown",t)}},[]),(0,r.useEffect)(function(){if(d.current){var e,t,n,r=function(){var e;u&&d.current&&(d.current.classList.add("is-hover"),null===(e=d.current)||void 0===e||null===(e=e.querySelector(".level-".concat(a,"-entry-link[aria-expanded]")))||void 0===e||e.setAttribute("aria-expanded","true"))},i=function(e){var t;u&&d.current&&!d.current.contains(e.relatedTarget)&&(d.current.classList.remove("is-hover"),d.current.classList.remove("open"),null===(t=d.current)||void 0===t||null===(t=t.querySelector(".level-".concat(a,"-entry-link[aria-expanded]")))||void 0===t||t.setAttribute("aria-expanded","false"))},o=function(e){if("Escape"===e.key&&d.current){d.current.classList.remove("is-hover","open"),null===(n=d.current)||void 0===n||null===(n=n.querySelector(".level-".concat(a,"-entry-link[aria-expanded]")))||void 0===n||n.setAttribute("aria-expanded","false");var t,n,r=d.current.querySelector(".level-".concat(a,"-entry-link"));null==r||r.focus()}"Enter"!==e.key&&" "!==e.key||null===(t=d.current)||void 0===t||null===(t=t.querySelector(".level-".concat(a,"-entry-link[aria-expanded]")))||void 0===t||t.setAttribute("aria-expanded",d.current.classList.contains("open")?"true":"false")};return null===(e=d.current)||void 0===e||e.addEventListener("mouseover",r),null===(t=d.current)||void 0===t||t.addEventListener("mouseleave",i),null===(n=d.current)||void 0===n||n.addEventListener("keydown",o),function(){var e,t,n;null===(e=d.current)||void 0===e||e.removeEventListener("mouseover",r),null===(t=d.current)||void 0===t||t.removeEventListener("mouseleave",i),null===(n=d.current)||void 0===n||n.removeEventListener("keydown",o)}}},[t.items,a,u]),r.createElement("li",{role:"none",ref:d,className:["level-".concat(a,"-entry"),t.active?"active":"",t.items?"":"no-submenu"].join(" ")},r.createElement(w,{entry:t,css:"level-".concat(a,"-entry-link"),renderLocation:i,handleBtnClick:function(){d.current&&o(d.current)}}),t.urlImage?r.createElement("div",{className:"level-".concat(a,"-entry-urlimage")},r.createElement("img",{src:t.urlImage,alt:"","aria-hidden":!1})):null,t.items?r.createElement(k,{id:t.id,navMenu:t.items,device:n,title:t.title,level:a+1,renderLocation:i}):null)},k=function(e){var t=e.id,n=e.navMenu,i=e.device,a=e.title,o=void 0===a?null:a,s=e.level,l=void 0===s?1:s,u=e.renderLocation,c=(0,r.useRef)(null);return r.createElement("section",{key:"level-".concat(l),id:t,className:"level-".concat(l)},o&&l>1?r.createElement("div",{className:"go-back-wrp"},r.createElement("button",{type:"button",className:"go-back-btn",onClick:function(e){return function(e){var t=e.target.closest(".level-".concat(l-1,"-entry"));if(t){t.classList.remove("open","is-hover"),null===(n=t.querySelector("button"))||void 0===n||n.setAttribute("aria-expanded","false");var n,r,i=t.closest(".level-".concat(l-1,"-entries")),a=null==i||null===(r=i.closest("li"))||void 0===r?void 0:r.querySelector("button, a");null==a||a.focus()}}(e)},"aria-label":"Sair de ".concat(o)}),r.createElement("span",{className:"go-back-title","aria-hidden":!0},o)):null,r.createElement("ul",{role:"menu",ref:c,className:"level-".concat(l,"-entries")},n.map(function(e){return r.createElement(x,{key:e.id,entry:e,renderLocation:u,device:i,level:l,handleMenuExpand:function(e){var t,n;c.current&&((t=c.current).querySelectorAll(".is-hover, .open").forEach(function(t){t!==e&&t.classList.remove("is-hover","open")}),t.querySelectorAll("[aria-expanded]").forEach(function(t){t!==e&&t.setAttribute("aria-expanded","fal
1se")}),e.classList.toggle("open"),(n=e.querySelector(".level-".concat(l,"-entry-link")))&&n.setAttribute("aria-expanded",e.classList.contains("open")?"true":"false"))}})})))},S=function(e,t){if(!e)return!1;var n=document.createElement("a");n.href=e;var r=t.hostname,i=n.hostname.length>0?n.hostname:t.hostname;if(r!==i)return!1;var a,o,s,u="object"===("undefined"==typeof Weglot?"undefined":l(Weglot))&&null!==(a=Weglot)&&void 0!==a&&null!==(a=a.options)&&void 0!==a&&null!==(a=a.injectedData)&&void 0!==a&&a.originalPath?null===(o=Weglot)||void 0===o||null===(o=o.options)||void 0===o||null===(o=o.injectedData)||void 0===o?void 0:o.originalPath.split("/"):t.pathname.split("/"),c=n.pathname.split("/");return t.hash.length>0&&u.push(t.hash),n.hash.length>0&&c.push(n.hash),u=u.filter(function(e){return e.length>0}),0===(c=c.filter(function(e){return e.length>0})).length?s=i===r:c.map(function(e,t){if(!1===s)return!1;s=e===u[t]}),null!=s&&s},O=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(n<t.length){e[Number(t[n])].active=!0;var r=e[Number(t[n])].items;r&&O(r,t,n+1)}return!0},T=function(e){var t=e.navMenu,n=e.location,i=e.device,a=e.renderLocation,o=(0,r.useRef)(null),u=(0,r.useRef)(!1),c=s((0,r.useState)(!0),2),d=c[0],f=c[1];(0,r.useEffect)(function(){u.current="ontouchstart"in window||navigator.maxTouchPoints>0;var e=function(){return f(!0)},t=function(){return f(!1)};return window.addEventListener("mousedown",e),window.addEventListener("keydown",t),function(){window.removeEventListener("mousedown",e),window.removeEventListener("keydown",t)}},[]),(0,r.useEffect)(function(){if(o.current){var e=function(e){if(!u.current&&d){var t=o.current;!(e.target instanceof Element&&e.target.closest(".main-nav"))&&t&&t.querySelectorAll(".open, .is-
1hover").length>0&&t.querySelectorAll(".open, .is-hover").forEach(function(e){e.classList.remove("open","is-hover")})}};return document.addEventListener("mousedown",e),document.addEventListener("mouseover",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("mouseover",e)}}},[d]),(0,r.useEffect)(function(){var e=function(e){var t=e.target;if(t instanceof Element){var n,r=t.parentElement,i=null==r?void 0:r.parentElement;if(t instanceof HTMLAnchorElement&&t.hash.length){(null==i?void 0:i.querySelector(".active"))&&(null==i||null===(n=i.querySelector(".active"))||void 0===n||n.classList.remove("active")),null==r||r.classList.add("active");try{"undefined"!=typeof fixANCORAS&&fixANCORAS()}catch(e){console.log("fixANCORAS",{error:e},{entriesContainer:i})}}}};return n.hash.length>0&&o.current&&o.current.addEventListener("click",e),function(){n.hash.length>0&&o.current&&o.current.removeEventListener("click",e)}},[n.hash]);var h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",r=[],i=[],a=function(e,t,r,o){return e.map(function(e){if("object"===l(e)&&"Id"in e&&m(e,n)){var s,u,c=r.length,d=null!==(s=o)&&void 0!==s&&s.length?o+","+c:c.toString();r[c]={id:"menu-"+e.Id,title:"mobile"===n&&e.MobileText?e.MobileText:e.Title,url:e.Url||"#",urlImage:e.URLImagem||null,urlTarget:"sim"===(null===(u=e.NewWindow)||void 0===u?void 0:u.toLowerCase()),css:e.CssClass||null,attributes:e.attributes||null,active:!e.SubItems&&S(e.Url,t)},r[c].active&&(i=d.split(",").filter(function(e){return" "!==e})),Array.isArray(e.SubItems)&&0!==e.SubItems.length&&(r[c].items=[],a(e.SubItems,t,r[c].items,d))}}),o=null,!0};return a(e,t,r),O(r,i),r}(t,n,i);return r.createElement("nav",{className:"main-nav",ref:o,"aria-label":"header"===a?"Navega\xe7\xe3o principal":"Navega\xe7\xe3o rodap\xe9"},r.createElement(k,{navMenu:h,device:i,renderLocation:a}))},A=function(e){var t=e.InputText,n=e.SearchURL,i=s((0,r.useState)(""),2),a=i[0],o=i[1],l=function(e){null==e||e.preventDefault(),"undefined"!=typeof window&&(window.location.href=n+encodeURIComponent(a))};return(0,r.useEffect)(function(){var e=function(){var e=/((is\.srch\.k=)|(q=))(\w|\d|%|_|-)*/gi,t=location.hash.match(e),n=location.search.match(e),r=t&&t[0]?t[0].split("=")[1]:n&&n[0]?n[0].split("=")[1]:null;r&&o(function(){try{return decodeURIComponent(r)}catch(e){return""}})};return e(),window.addEventListener("popstate",e),function(){return window.removeEventListener("popstate",e)}},[]),r.createElement("div",{className:"menu-new-search"},r.createElement("input",{placeholder:t,type:"search",value:a,onChange:function(e){o(e.target.value)},onKeyDown:function(e){"Enter"===e.key&&l(e)}}),r.createElement("button",{type:"button",className:"icon-search",onClick:l,"aria-label":"Pesquisar"}))},C=function(e){var t,n,i=e.InputText,a=e.SearchURL,o=e.componentType,l=e.containerId,u=void 0===l?"":l,c=e.triggerStyles,d=void 0===c?"":c,f=e.triggerCallback,h=e.triggerTitle,p=void 0===h?"":h,m=e.defer,v=void 0===m||m,y=e.componentUrl,g=e.autoLoad,b=void 0===g||g,E=s((0,r.useState)(null),2),_=E[0],w=E[1],x=s((0,r.useState)(null),2),k=x[0],S=x[1],O=!0===b||"true"===b,T=(0,r.useRef)(null);return(0,r.useEffect)(function(){null===_&&O&&w(!0)},[]),(0,r.useEffect)(function(){if(_&&o)switch(o.toUpperCase()){case"SYSTEMJS":try{System.import(y).then(function(e){e.renderComponent({containerId:u,InputText:i,SearchURL:a,setComponentTriggerFunc:S,triggerRef:T,shouldLoad:O})})}catch(e){console.error("Complex Search SystemJS import error: ",e)}break;case"SCRIPT":try{if(!y)throw Error("componentUrl is undefined");var e=document.createElement("script");e.src=y,e.defer=!0===v||"true"===v,document.body.appendChild(e)}catch(e){console.error("Complex Search Script import error: ",e)}}},[_]),r.createElement("section",{className:"menu-search"},r.createElement("button",{type:"button",ref:T,className:"trigger",onClick:function(){var e,t;"function"==typeof k&&k(),f&&("string"==typeof f?window.eval(f):f()),_||w(!0),null===(e=T.current)||void 0===e||e.setAttribute("aria-expanded",null!==(t=T.current)&&void 0!==t&&t.classList.contains("on")?"true":"false")},"aria-controls":u,"aria-expanded":null!==(t=null===(n=T.current)||void 0===n?void 0:n.classList.contains("on"))&&void 0!==t&&t,"aria-label":p?void 0:"Pesquisa"},d?r.createElement("span",{className:d,"aria-hidden":!0}):null,p?r.createElement("span",{className:"menu-title"},p):null),r.createElement("div",{className:"container",id:u}))},N=function(e){var t=e.search;return r.createElement(r.Fragment,null,t.map(function(e,t){return"componentType"in e?r.createElement(C,o({key:"search-".concat(t)},e)):r.createElement(A,o({key:"search-".concat(t)},e))}))},R=function(e){var t=e.sectionData,n=e.device,i=e.location,a=e.renderLocation,o=[];return Object.keys(t).forEach(function(e,s){if(Object.hasOwnProperty.call(t,e)&&t&&"object"===l(t)&&e in t){var u=t[e];u&&(Array.isArray(u)&&u.length>0||"object"===l(u)&&Object.keys(u).length>0)&&(o[s]=r.createElement(r.Fragment,{key:s},L({componentRef:e,componentData:u,device:n,location:i,renderLocation:a})))}}
1),{componentsToRender:o}},L=function(e){var t,n=e.componentRef,i=e.componentData,a=e.device,o=e.location,s=e.renderLocation;switch(n){case"hyperlinks":t=r.createElement(v,{device:a,styles:"menu-hyperlinks",hyperlinks:i});break;case"languageSelector":t=r.createElement(b,{device:a,languages:i});break;case"logo":t=r.createElement(E,{device:a,styles:"menu-hyperlinks",logoImages:i});break;case"search":t=r.createElement(N,{search:i});break;case"navMenu":t=r.createElement(T,{device:a,navMenu:i,location:o,renderLocation:void 0===s?"header":s});break;case"socialNetworks":t=r.createElement(_,{device:a,socialNetworks:i})}return t},P=function(e){var t=e.sectionOne,n=e.sectionTwo,i=e.sectionThree,a=e.location,o=e.alwaysToggleMenu,s=u().device;return r.createElement(r.Fragment,null,r.createElement("section",{className:"top-nav-bar-one"},t&&R({sectionData:t,device:s,location:a}).componentsToRender),"desktop"===s&&!0!==o?r.createElement("section",{className:"top-nav-bar-two"},n&&R({sectionData:n,device:s,location:a}).componentsToRender):"",r.createElement("section",{className:"top-nav-bar-three"},i&&R({sectionData:i,device:s,location:a}).componentsToRender))},I=function(e){var t=e.content,n=e.location,i=e.alwaysToggleMenu;return r.createElement("section",{id:"top-nav-bar",className:"top-nav-bar"},t&&r.createElement(P,o(o({},t),{},{location:n,alwaysToggleMenu:i})))},j=function(e){var t=e.sectionOne,n=e.sectionTwo,i=e.sectionThree,a=e.location,o=e.alwaysToggleMenu,s=u().device;return r.createElement(r.Fragment,null,r.createElement("section",{className:"nav-bar-one"},t&&R({sectionData:t,device:s,location:a}).componentsToRender),"desktop"===s&&!1===o?r.createElement("section",{className:"nav-bar-two"},n&&R({sectionData:n,device:s,location:a}).componentsToRender):null,r.createElement("section",{className:"nav-bar-three"},i&&R({sectionData:i,device:s,location:a}).componentsToRender))},D=function(e){var t=e.content,n=e.location,i=e.alwaysToggleMenu;return r.createElement("section",{id:"nav-bar",className:"nav-bar"},t&&r.createElement(j,o(o({},t),{},{location:n,alwaysToggleMenu:i})))},M=function(e){var t=e.title,n=e.toggled,i=e.handleToggle,a=e.btnRef;return r.createElement("button",{ref:a,type:"button",className:"menu-toggle ".concat(n?"open":""),"aria-controls":"menuNew","aria-label":n?"fechar menu":"abrir menu","aria-expanded":n,onClick:function(e){return i(e)}},r.createElement("div",{className:"menu-toggle-icon","aria-hidden":!0},r.createElement("span",{className:"menu-toggle-icon-elem"})),t?r.createElement("span",null,t):null)},U=function(e){var t,n=e.sectionTwoTopNavBar,i=e.sectionTwoNavBar,a=e.location,o=e.alwaysToggleMenu,l=u().device,c=s((0,r.useState)(!1),2),d=c[0],f=c[1],h=(0,r.useRef)(null),p=(0,r.useRef)(null);(0,r.useEffect)(function(){var e,t=document.querySelector("body");null==t||t.classList.remove("mobile-menu-open");var n=function(e){var n=e.target.closest("a");null!=n&&n.hash&&n.hash.length>0&&null!=a&&a.hash&&a.hash.length>0&&(f(!1),null==t||t.classList.remove("mobile-menu-open"))};return null===(e=p.current)||void 0===e||e.addEventListener("click",n),function(){var e;null===(e=p.current)||void 0===e||e.removeEventListener("click",n)}},[a]),(0,r.useEffect)(function(){if(d){var e=function(e){var t;d&&(e.target.closest('[class^="context-menu-"]')||e.target.closest(".menu-search"))&&(f(!1),null===(t=document.querySelector("body"))||void 0===t||t.classList.remove("mobile-menu-open"))};return document.addEventListener("click",e),function(){document.removeEventListener("click",e)}}},[d]),(0,r.useEffect)(function(){var e;if("mobile"===l&&null!==(e=p.current)&&void 0!==e&&e.parentElement){var t,n=function(e){if("Tab"===e.key){var t,n,r,i=Array.from((null===(r=p.current)||void 0===r||null===(r=r.parentElement)||void 0===r?void 0:r.querySelectorAll(".menu-toggle.open, .menu-toggle.open + .toggle-nav-content button, .menu-toggle.open + .toggle-nav-content a"))||[]);if(0===i.length)return;var a=i[0],o=i[i.length-1];e.shiftKey?document.activeElement===a&&(e.preventDefault(),o.focus()):document.activeElement===o&&(e.preventDefault(),a.focus())}"Escape"===e.key&&(f(!1),null===(t=document.querySelector("body"))||void 0===t||t.classList.remove("mobile-menu-open"),null===(n=h.current)||void 0===n||n.focus())};return null===(t=p.current)||void 0===t||null===(t=t.parentElement)||void 0===t||t.addEventListener("keydown",n),function(){var e;null===(e=p.current)||void 0===e||null===(e=e.parentElement)||void 0===e||e.removeEventListener("keydown",n)}}},[l]);var m=i&&"navMenu"in i&&(null==i||null===(t=i.navMenu)||void 0===t||null===(t=t[0])||void 0===t||null===(t=t.props)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.MenuTitle)||null;return!0===o||"mobile"===l?r.createElement(r.Fragment,null,r.createElement(M,{btnRef:h,title:m,toggled:d,handleToggle:function(e){e.preventDefault();var t=document.querySelector("body");f(function(e){return!e}),d?null==t||t.classList.remove("mobile-menu-open"):null==t||t.classList.add("mobile-menu-open")}}),r.createElement("div",{ref:p,id:"menuNew",className:"toggle-nav-content"},r.createElement("div",{className:"wrp-content"},r.createElement("section",{className:"nav-bar-two"},i&&R({sectionData:i,device:l,location:a}).componentsToRender),r.createElement("section",{className:"top-nav-bar-two"},n&&R({sectionData:n,device:l,location:a}).componentsToRender)))):null},F=function(e){var t=e.topNavBar,n=e.navBar,i=e.location,a=e.alwaysToggleMenu;return r.createElement("section",{id:"toggle-nav-bar",className:"toggle-nav-bar"},r.createElement(U,{sectionTwoTopNavBar:null!=t?t:void 0,sectionTwoNavBar:null!=n?n:void 0,location:i,alwaysToggleMenu:a}))},B=function(e){var t=e.children;return r.createElement("section",{id:"menuToolbar",className:"context-menu-bar"},t)},q=function(e){var t=e.collapse,n=e.collapseHeight,i=e.wrpRef,a=e.handleClick,o=e.extraClass,s=void 0===o?null:o,l=e.children;return r.createElement(r.Fragment,null,r.createElement("div",{className:"context-menu-content"+(t?" "+t:"")+(s?" "+s:""),style:n},r.createElement("div",{className:"context-menu-content-wrp",ref:i},(0,r.useMemo)(function(){return l},[l]))),r.createElement("div",{className:"context-menu-overlay",onClick:void 0===a?void 0:a}))},Z=r.memo(function(e){var t=e.Desambig_LinkId,n=e.Desambig_LinkText,i=e.Desambig_LinkUrl,a=e.Desambig_Text,s=e.customEvents;return r.createElement("div",{className:"desambiguation"},r.createElement("p",null,a||"",r.createElement("br",null),n||i?r.createElement("a",o({id:t,href:i},s?p(s,t,i):null),r.createElement("strong",null,n)):null))}),z=r.memo(function(e){var t=e.Anon_Greeting,n=e.Anon_LinkId,i=e.Anon_LinkText,a=e.Anon_LinkUrl,s=e.Anon_AddLinkId,l=e.Anon_AddLinkText,u=e.Anon_AddLinkUrl;e.Anon_AddText;var c=e.customEvents,d=e.Desambig_LinkId,f=e.Desambig_LinkText,h=e.Desambig_LinkUrl,m=e.Desambig_Text;return r.createElement("section",{className:"user-box"},r.createElement("p",{className:"user-greeting"},t||""),r.createElement("span",null,r.createElement("ul",{className:"hyperlinks"},i?r.createElement("li",null,r.createElement("a",o({id:n,href:a||null,className:"icon-id-meo btn-icon-left btn-tiny btn-secondary btn-color-3"},c?p(c,n,a):null),i||"")):null,l?r.createElement("li",null,r.createElement("a",o({id:s,href:u||null,className:"btn-tiny btn-primary btn-color-3"},c?p(c,s,u):null),l||"")):null),f?r.createElement(Z,{Desambig_LinkId:d,Desambig_LinkText:f,Desambig_LinkUrl:h,Desambig_Text:m,customEvents:c}):null))}),H=r.memo(function(e){var t,n=e.Auth_Greeting,i=e.userName,a=e.Auth_LinkId,s=e.Auth_LinkText,l=e.Auth_LinkUrl,u=e.customEvents,c=e.Desambig_LinkId,d=e.Desambig_LinkText,f=e.Desambig_LinkUrl,h=e.Desambig_Text,m=i?null==i||null===(t=i.match(/^\S+/))||void 0===t?void 0:t[0]:i;return r.createElement("section",{className:"user-box"},r.createElement("p",{className:"user-greeting",dangerouslySetInnerHTML:{__html:n?n.replace("{0}",m||""):""}}),s?r.createElement("ul",{className:"hyperlinks"},r.createElement("li",null,r.createElement("a",o({id:a,href:l||null,className:"btn-color-3 btn-secondary btn-tiny"},u?p(u,a,l):null),s||"aceder"))):null,d?r.createElement(Z,{Desambig_LinkId:c,Desambig_LinkText:d,Desambig_LinkUrl:f,Desambig_Text:h,customEvents:u}):null)}),W=r.memo(function(e){var t=e.img,n=e.imgAlt,i=e.text,a=e.customEvents,o=(0,r.useRef)(null);return(0,r.useEffect)(function(){var e;if(i){var t=null===(e=o.current)||void 0===e?void 0:e.querySelector("#hrefPushLogin");if(t&&a){var n=p(a,t.id,t.href);null!==n&&Object.keys(n).map(function(e){t.setAttribute(e,n[e])})}}},[]),r.createElement("section",{className:"campaign"},t&&r.createElement("div",{className:"image"},r.createElement("img",{src:t,alt:n,width:"360px",height:"120px",loading:"lazy"})),i&&r.createElement("span",{className:"campaign-text",dangerouslySetInnerHTML:{__html:"".concat(i)},ref:o}))}),V=r.memo(function(e){var t=e.content;return r.createElement("section",{className:"campaign",dangerouslySetInnerHTML:{__html:"".concat(t.replace("<img",'<img loading="lazy" '))}})}),$=r.memo(function(e){var t=e.Auth_LogoutLinkId,n=e.Auth_LogoutLinkText,i=e.userMenuScript,a=e.customEvents;return(0,r.useEffect)(function(){try{var e=document.querySelector("#context-menu-logout-script"),t=null==e?void 0:e.querySelector("script");t&&t.text&&window.eval(t.text)}catch(e){console.log("script error: ",i)}},[]),r.createElement(r.Fragment,null,r.createElement("button",o({id:t||null,type:"button",className:"btn-text btn-color-1 icon-seta-left btn-icon-left btn-tiny"},a?p(a,t,"#"):null),n||"terminar sess\xe3o"),r.createElement("span",{id:"context-menu-logout-script",dangerouslySetInnerHTML:{__html:i}}))}
1),Q=function(e){var t=e.Url,n=e.hyperlinks,i=e.isAnon,a=e.Anon_Greeting,l=e.Anon_LinkId,u=e.Anon_LinkText,d=e.Anon_LinkUrl,f=e.Anon_AddLinkId,h=e.Anon_AddLinkText,p=e.Anon_AddLinkUrl,m=e.Anon_AddText,y=e.Auth_Greeting,g=e.userName,b=e.Auth_LinkId,E=e.Auth_LinkText,_=e.Auth_LinkUrl,w=e.userPhoto,x=e.Desambig_LinkId,k=e.Desambig_LinkText,S=e.Desambig_LinkUrl,O=e.Desambig_Text,T=e.Auth_LogoutLinkId,A=e.Auth_LogoutLinkText,C=e.userMenuScript,N=e.Anon_PushLoginImgUrl,R=e.Anon_PushLoginImgAlt,L=e.Anon_PushLoginText,P=e.rubiCampaignHTML,I=void 0===P?null:P,j=e.pullBannerTime,D=void 0===j?null:j,M=e.pullDelayTime,U=void 0===M?0:M,F=e.pushLoginTime,B=void 0===F?null:F,Z=e.pushDelayTime,Q=void 0===Z?0:Z,K=e.MenuTitle,G=e.attributes,Y=e.customEvents,X=s((0,r.useState)(!!(B&&B>0||D&&D>0)),2),J=X[0],ee=X[1],et=s((0,r.useState)(!1),2),en=et[0],er=et[1],ei=s(c("off"),4),ea=ei[0],eo=ei[1],es=ei[2],el=ei[3];return((0,r.useEffect)(function(){var e;J&&(B&&Q&&Q>0||D&&U&&U>0)&&setTimeout(function(){el(),er(!0)},null!==(e=null!=Q?Q:U)&&void 0!==e?e:0)},[]),(0,r.useEffect)(function(){"off"===ea&&en&&J&&ee(!1)},[ea]),(0,r.useEffect)(function(){if(en&&!t&&(B&&B>0||D&&D>0)){var e,n=!1,r=function(){n=!n};es.current&&(es.current.addEventListener("mouseenter",r),es.current.addEventListener("mouseleave",r));var i=setTimeout(function(){n||el(),es.current&&(es.current.removeEventListener("mouseenter",r),es.current.removeEventListener("mouseleave",r))},null!==(e=null!=B?B:D)&&void 0!==e?e:0);return function(){return clearTimeout(i)}}},[en]),t)?r.createElement("a",o({id:"hrefUser",href:t,className:"context-menu-btn"},G||null),r.createElement("span",{className:"icon-user","aria-hidden":!0}),K&&K.length>0?r.createElement("span",{className:"menu-title"},K):null):r.createElement(r.Fragment,null,r.createElement("button",o({id:"hrefUser",className:"context-menu-btn "+ea,onClick:function(e){e.preventDefault(),el()}},G||null),i?r.createElement("span",{className:"icon-user","aria-hidden":!0}):w?r.createElement("span",{className:"user-photo"},r.createElement("img",{src:w,alt:"","aria-hidden":!0})):r.createElement("span",{className:"icon-user auth","aria-hidden":!0}),K?r.createElement("span",{className:"menu-title"},K):null),r.createElement(q,{collapseHeight:eo,wrpRef:es,handleClick:el,collapse:ea,extraClass:J?"no-bg":""},r.createElement("div",null,i?r.createElement(z,{Anon_Greeting:a,Anon_LinkId:l,Anon_LinkText:u,Anon_LinkUrl:d,Anon_AddLinkId:f,Anon_AddLinkText:h,Anon_AddLinkUrl:p,Anon_AddText:m,customEvents:Y,Desambig_LinkId:x,Desambig_LinkText:k,Desambig_LinkUrl:S,Desambig_Text:O}):r.createElement(H,{Auth_Greeting:y,userName:g,Auth_LinkId:b,Auth_LinkText:E,Auth_LinkUrl:_,customEvents:Y,Desambig_LinkId:x,Desambig_LinkText:k,Desambig_LinkUrl:S,Desambig_Text:O}),i?J?null:r.createElement(W,{img:N,imgAlt:R,text:L,customEvents:Y}):I?r.createElement(V,{content:I}):null,n&&!J?r.createElement(v,{styles:"login-hyperlinks",hyperlinks:n,device:"desktop"}):null,i||J?null:r.createElement("section",{className:"end-Session"},r.createElement($,{Auth_LogoutLinkId:T,Auth_LogoutLinkText:A,userMenuScript:C,customEvents:Y})))))},K=function(e){var t,n=e.state,i=e.data;switch(n){case"PENDING":t=r.createElement("span",{className:"context-menu-btn loading"},r.createElement("i",{className:"icon-user","aria-hidden":!0}));break;case"FULFILLED":t=r.createElement(Q,o({},i));break;case"REJECTED":t="";break;default:console.log("state: "+n+" not available")}return t},G=function(e){var t=e.hyperlinks,n=e.ZoneTitle,i=e.MenuTitle,a=e.MEOS_COUNT,l=e.MEOS_DATE,u=e.ZoneTitleAuth,d=e.attributes,f=s(c(),4),h=f[0],p=f[1],m=f[2],y=f[3],g=null;if(l){var b=new Date(l.replace(/-/g,"/"));isNaN(b.getTime())||(g=b.toLocaleDateString("pt-PT",{year:"numeric",month:"long",day:"numeric"}).replace(/ de /g," "))}var E=a&&"N.A."!==a&&g&&u?"".concat(u.replace(/{MEOS_COUNT}/g,"".concat(a)).replace(/{MEOS_DATE}/g,"".concat(g))):(null==n?void 0:n.length)>0?n:null;return r.createElement(r.Fragment,null,r.createElement("button",o(o({className:"context-menu-btn "+h,"data-notifications":a&&"N.A."!==a?a:null,onClick:function(e){e.preventDefault(),y()}},d||null),{},{"aria-label":"".concat(a&&"N.A."!==a?a:"").concat(i?" "+i:"")}),r.createElement("span",{className:"icon-m-meo","aria-hidden":!0}),i?r.createElement("span",{className:"menu-title"}
1,i):null),r.createElement(q,{collapseHeight:p,wrpRef:m,handleClick:y,collapse:h},E&&r.createElement("div",{className:"meos-header"},r.createElement("span",{className:"icon-m-meo","aria-hidden":!0}),r.createElement("div",{className:"meos-header-info",dangerouslySetInnerHTML:{__html:E}})),t&&r.createElement(v,{styles:"meos-hyperlinks",hyperlinks:t,device:"desktop"})))},Y=function(e){var t,n=e.state,i=e.data;switch(n){case"PENDING":t=r.createElement("span",{className:"context-menu-btn loading"},r.createElement("i",{className:"icon-m-meo","aria-hidden":!0}));break;case"FULFILLED":t=r.createElement(G,o({},i));break;default:console.log("state: "+n+" not available")}return t},X=function(e){var t,n=e.MenuTitle,i=e.attributes,a=s((0,r.useState)(0),2),l=a[0],u=a[1],c="undefined"!=typeof ISites&&null!==(t=ISites)&&void 0!==t&&null!==(t=t.Configurations)&&void 0!==t&&null!==(t=t.ExternalSites)&&void 0!==t&&t.ISellFrontEnd?ISites.Configurations.ExternalSites.ISellFrontEnd.Url:"";(0,r.useEffect)(function(){return d(),document.addEventListener("update-NewCart",d),function(){document.removeEventListener("update-NewCart",d)}},[]);var d=function(){var e="cart";"undefined"!=typeof configData&&configData.environment&&(e="".concat(e).concat(configData.environment));var t,n,r,i=(t=e,n=document.cookie.split("; ").find(function(e){return e.startsWith("".concat(t,"="))}),r=null,n&&(r=n.split("=")[1])&&(r=JSON.parse(r)),r);i&&u(i.Count?parseInt(i.Count,10):0)};return r.createElement("a",o(o({href:"".concat(c,"/carrinho"),className:"context-menu-btn"},i||null),{},{"aria-label":"".concat(n).concat(l>0?" com ".concat(l," produto").concat(l>1?"s":""," adicionado").concat(l>1?"s":""):"")}),r.createElement("span",{id:"cartCount",className:"icon-cart","data-notifications":0===l?null:l,"aria-hidden":"true"}),n?r.createElement("span",{className:"menu-title"},n):null)},J=function(e){var t,n=e.state,i=e.data;switch(n){case"PENDING":t=r.createElement("span",{className:"context-menu-btn loading"},r.createElement("i",{className:"icon-cart","aria-hidden":!0}));break;case"FULFILLED":t=r.createElement(X,o({},i));break;case"REJECTED":t="";break;default:console.log("state: "+n+" not available")}return t},ee=function(e){var t=e.c2cScript,n=e.Tooltip,i=e.MenuTitle,a=e.attributes,l=s(c(),4),u=l[0],d=l[1],f=l[2],h=l[3],p=s((0,r.useState)(!1),2),m=p[0],v=p[1];return(0,r.useEffect)(function(){if("turning-on"===u&&!m)try{var e=document.querySelector("#context-menu-c2c"),n=null==e?void 0:e.querySelector("script");n&&n.text&&window.eval(n.text),v(!0)}catch(e){console.log("script error: ",t)}},[u]),r.createElement(r.Fragment,null,r.createElement("button",o({className:"context-menu-btn "+u,title:n||"",onClick:function(e){e.preventDefault(),h()}},a||null),r.createElement("span",{className:"icon-phoneausc","aria-hidden":"true"}),i?r.createElement("span",{className:"menu-title"},i):null),r.createElement(q,{collapseHeight:d,wrpRef:f,handleClick:h,collapse:u},(0,r.useMemo)(function(){return r.createElement("span",{id:"context-menu-c2c",dangerouslySetInnerHTML:{__html:t},className:m?"":"context-loading"})},[m])))},et=function(e){var t,n=e.state,i=e.data;switch(n){case"PENDING":t=r.createElement("span",{className:"context-menu-btn loading"},r.createElement("i",{className:"icon-phoneausc","aria-hidden":!0}));break;case"FULFILLED":t=r.createElement(ee,o({},i));break;case"REJECTED":t="";break;default:console.log("state: "+n+" not available")}return t},en=function(e){var t=e.type,n=e.children,i={custom:{id:"context-menu-custom",className:"context-menu-custom"},login:{id:"liUserMenu",className:"context-menu-login"},meos:{id:"meos-main-menu",className:"context-menu-meos"},cart:{id:"ctl00_userMenu_shopBasket",className:"context-menu-cart"},c2c:{id:"liClick2Call",className:"context-menu-click2call"}};return i[t]?r.createElement("div",o({},i[t]),n):null},er=function(e){var t=e.children;return r.createElement("footer",{id:"footer"},t)},ei=function(e){return r.createElement("section",{id:"awards-row",className:"footer-awards","data-hover-color":""},r.createElement("div",{id:"divAwardsPart",className:"part"},Object.keys(e).map(function(t,n){var i=e[t];return r.createElement("div",{key:"award-".concat(n),className:"pp-holder",id:"div".concat(t),"data-numitems":i.hyperlinks.length},i.blockTitle?r.createElement("h2",{className:"title-level-4"},i.blockTitle):null,r.createElement("ul",{id:"".concat(t,"-lst"),className:"item-holder"},i.hyperlinks.map(function(e,t){return r.createElement("li",{key:"award-item-".concat(t),className:"item".concat(e.isActive?" is-active":"")},r.createElement("a",o({className:e.styles?e.styles:"",href:e.url||"#!",target:e.target,title:e.text,onClick:"function"==typeof e.onClick?e.onClick:void 0},e.attributes?e.attributes:{}),r.createElement("div",{className:"image-holder"},r.createElement("img",{src:e.imageUrl,alt:e.text,title:e.text}))))})),i.blockLinks&&"hyperlinks"in i.blockLinks&&i.blockLinks.hyperlinks.length?r.createElement("ul",{className:"hyperlinks"},i.blockLinks.hyperlinks.map(function(e,t){return r.createElement("li",{key:"award-link-".concat(t)},r.createElement("a",{className:"btn-text btn-color-1",href:e.url,target:e.target},(null==e?void 0:e.text)&&e.text))})):null)})))},ea=function(e){var t=e.content;return 0===Object.keys(t).length?null:r.createElement("div",{id:"footer-awards"},r.createElement(ei,o({},t)))},eo=function(e){var t=e.children;return r.createElement("div",{className:"footer-wrp"},t)},es=function(e){var t=e.sectionOne,n=e.sectionTwo,i=e.sectionThree,a=e.location,o=u().device,s="footer";return t&&Object.keys(t).length||n&&Object.keys(n).length||i&&Object.keys(i).length?r.createElement(r.Fragment,null,r.createElement("section",{className:"footer-nav-bar-one"},t&&R({sectionData:t,device:o,location:a,renderLocation:s}).componentsToRender),r.createElement("section",{className:"footer-nav-bar-two"},n&&R({sectionData:n,device:o,location:a,renderLocation:s}).componentsToRender),r.createElement("section",{className:"footer-nav-bar-three"},i&&R({sectionData:i,device:o,location:a,renderLocation:s}).componentsToRender)):null},el=function(e){var t=e.content,n=e.location;return r.createElement("section",{id:"sitemap-w",className:"footer-nav-bar"},r.createElement(es,o(o({},t),{},{location:n})))},eu=function(e){var t=e.footerTop,n=e.footerBottom,i=e.location,a=u().device,o="footer";return r.createElement(r.Fragment,null,t?r.createElement("section",{className:"footer-top"},r.createElement("section",{className:"footer-top-one"},t.sectionOne&&R({sectionData:t.sectionOne,device:a,location:i,renderLocation:o}).componentsToRender),r.createElement("section",{className:"footer-top-two"},t.sectionTwo&&R({sectionData:t.sectionTwo,device:a,location:i,renderLocation:o}).componentsToRender),r.createElement("section",{className:"footer-top-three"},t.sectionThree&&R({sectionData:t.sectionThree,device:a,location:i,renderLocation:o}).componentsToRender)):null,n?r.createElement("section",{className:"footer-bottom"},r.createElement("section",{className:"footer-bottom-one"},n.sectionOne&&R({sectionData:n.sectionOne,device:a,location:i,renderLocation:o}).componentsToRender),r.createElement("section",{className:"footer-bottom-two"},n.sectionTwo&&R({sectionData:n.sectionTwo,device:a,location:i,renderLocation:o}).componentsToRender),r.createElement("section",{className:"footer-bottom-three"},n.sectionThree&&R({sectionData:n.sectionThree,device:a,location:i,renderLocation:o}).componentsToRender)):null)},ec=function(e){var t=e.content,n=e.location;return r.createElement("div",{id:"footer-content",className:"footer-content"},r.createElement(eu,o(o({},t),{},{location:n})))},ed=function(e){return Array.from({length:e.entries},function(e,t){return r.createElement("div",{key:t,className:"dummy-entry"})})},ef={topNavBar:{one:2,two:0,three:0},navBar:{one:1,two:3,three:0}},eh=function(e){var t=e.siteContext,n=e.entries,i=void 0===n?ef:n;return r.createElement("header",{id:"header",className:"skeleton"},r.createElement("main-menu",{id:"main-menu-v5"},r.createElement("nav",{className:"main-menu-v5 ".concat(null!=t?t:"")},r.createElement("section",{id:"top-nav-bar",className:"top-nav-bar"},r.createElement("section",{className:"top-nav-bar-one"},r.createElement(ed,{entries:i.topNavBar.one})),r.createElement("section",{className:"top-nav-bar-two"},r.createElement(ed,{entries:i.topNavBar.two}
1)),r.createElement("section",{className:"top-nav-bar-three"},r.createElement(ed,{entries:i.topNavBar.three}))),r.createElement("section",{id:"nav-bar",className:"nav-bar"},r.createElement("section",{className:"nav-bar-one"},r.createElement(ed,{entries:i.navBar.one})),r.createElement("section",{className:"nav-bar-two"},r.createElement(ed,{entries:i.navBar.two})),r.createElement("section",{className:"nav-bar-three"},r.createElement(ed,{entries:i.navBar.three}))))))},ep=function(e){var t=e.entries,n=void 0===t?0:t;return 0===n?null:r.createElement("div",{id:"footer-awards"},r.createElement("section",{id:"awards-row",className:"footer-awards"},r.createElement("div",{id:"divAwardsPart",className:"part"},Array.from({length:n},function(e,t){return r.createElement("div",{key:"holder-"+t,className:"pp-holder"},r.createElement(ed,{entries:1}),r.createElement("ul",{id:"awards-lst",className:"item-holder"},Array.from({length:4},function(e,t){return r.createElement("li",{key:"item-"+t,className:"item"},r.createElement(ed,{entries:1}))})))}))))},em={awards:0,footerNavBar:{one:8,two:0,three:1},footerTop:{one:2,two:0,three:0},footerBottom:{one:1,two:0,three:0}},ev=function(e){var t,n,i,a,o,s,l,u,c,d=e.entries,f=void 0===d?em:d;return r.createElement("footer",{id:"footer",className:"skeleton"},r.createElement(ep,{entries:null==f?void 0:f.awards}),r.createElement("div",{className:"footer-wrp"},r.createElement("section",{id:"sitemap-w",className:"footer-nav-bar"},r.createElement("section",{className:"footer-nav-bar-one"},r.createElement(ed,{entries:null==f||null===(t=f.footerNavBar)||void 0===t?void 0:t.one})),r.createElement("section",{className:"footer-nav-bar-two"},r.createElement(ed,{entries:null==f||null===(n=f.footerNavBar)||void 0===n?void 0:n.two})),r.createElement("section",{className:"footer-nav-bar-three"},r.createElement(ed,{entries:null==f||null===(i=f.footerNavBar)||void 0===i?void 0:i.three}))),r.createElement("div",{id:"footer-content",className:"footer-content"},r.createElement("section",{className:"footer-top"},r.createElement("section",{className:"footer-top-one"},r.createElement(ed,{entries:null==f||null===(a=f.footerTop)||void 0===a?void 0:a.one})),r.createElement("section",{className:"footer-top-two"},r.createElement(ed,{entries:null==f||null===(o=f.footerTop)||void 0===o?void 0:o.two})),r.createElement("section",{className:"footer-top-three"},r.createElement(ed,{entries:null==f||null===(s=f.footerTop)||void 0===s?void 0:s.three}))),r.createElement("section",{className:"footer-bottom"},r.createElement("section",{className:"footer-bottom-one"},r.createElement(ed,{entries:null==f||null===(l=f.footerBottom)||void 0===l?void 0:l.one})),r.createElement("section",{className:"footer-bottom-two"},r.createElement(ed,{entries:null==f||null===(u=f.footerBottom)||void 0===u?void 0:u.two})),r.createElement("section",{className:"footer-bottom-three"},r.createElement(ed,{entries:null==f||null===(c=f.footerBottom)||void 0===c?void 0:c.three}))))))}},9504:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,(r=n=t.ElementType||(t.ElementType={})).Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype",t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},3390:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};
1Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var a=n(9504),o=n(8471);i(n(8471),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?a.ElementType.Tag:void 0,r=new o.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===a.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new o.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===a.ElementType.Comment){this.lastNode.data+=e;return}var t=new o.Comment(e);this.addNode(t),this.lastNode=t},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new o.Text(""),t=new o.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new o.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},8471:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var o=n(9504),s=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),w(this,e)},e}();t.Node=s;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e}
1,enumerable:!1,configurable:!0}),t}(s);t.DataNode=l;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.Text,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=u;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.Comment,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=c;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=o.ElementType.Directive,r}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var f=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=f;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(f);t.CDATA=h;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(f);t.Document=p;var m=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?o.ElementType.Script:"style"===t?o.ElementType.Style:o.ElementType.Tag);var a=e.call(this,r)||this;return a.name=t,a.attribs=n,a.type=i,a}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}})},enumerable:!1,configurable:!0}),t}(f);function v(e){return(0,o.isTag)(e)}function y(e){return e.type===o.ElementType.CDATA}function g(e){return e.type===o.ElementType.Text}function b(e){return e.type===o.ElementType.Comment}function E(e){return e.type===o.ElementType.Directive}function _(e){return e.type===o.ElementType.Root}function w(e,t){if(void 0===t&&(t=!1),g(e))n=new u(e.data);else if(b(e))n=new c(e.data);else if(v(e)){var n,r=t?x(e.children):[],i=new m(e.name,a({},e.attribs),r);r.forEach(function(e){return e.parent=i}),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=a({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=a({},e["x-attribsPrefix"])),n=i}else if(y(e)){var r=t?x(e.children):[],o=new h(r);r.forEach(function(e){return e.parent=o}),n=o}else if(_(e)){var r=t?x(e.children):[],s=new p(r);r.forEach(function(e){return e.parent=s}),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else if(E(e)){var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}else throw Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function x(e){for(var t=e.map(function(e){return w(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=v,t.isCDATA=y,t.isText=g,t.isComment=b,t.isDirective=E,t.isDocument=_,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=w},3752:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")},5426:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,d,f,h,p,v=l.exec(e=(0,i.escapeSpecialCharacters)(e)),y=null===(t=null==v?void 0:v[1])||void 0===t?void 0:t.toLowerCase();switch(y){case a:var g=c(e);if(!(0,i.hasOpenTag)(e,o)){var b=g.querySelector(o);null===(n=null==b?void 0:b.parentNode)||void 0===n||n.removeChild(b)}if(!(0,i.hasOpenTag)(e,s)){var b=g.querySelector(s);null===(d=null==b?void 0:b.parentNode)||void 0===d||d.removeChild(b)}return g.querySelectorAll(a);case o:case s:var E=u(e).querySelectorAll(y);if((0,i.hasOpenTag)(e,s)&&(0,i.hasOpenTag)(e,o))return null!==(h=null===(f=E[0].parentNode)||void 0===f?void 0:f.childNodes)&&void 0!==h?h:m();return E;default:if(r)return r(e);var b=u(e,s).querySelector(s);return null!==(p=null==b?void 0:b.childNodes)&&void 0!==p?p:m()}};var r,i=n(6373),a="html",o="head",s="body",l=/<([a-zA-Z]+[0-9]?)/,u=function(e,t){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},d="object"==typeof window&&window.DOMParser;if("function"==typeof d){var f=new d;u=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),f.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var h=document.implementation.createHTMLDocument();u=function(e,t){if(t){var n=h.documentElement.querySelector(t);return n&&(n.innerHTML=e),h}return h.documentElement.innerHTML=e,h}}var p="object"==typeof document&&document.createElement("template");p&&p.content&&(r=function(e){return p.innerHTML=e,p.content.childNodes});var m=function(){return document.createDocumentFragment().childNodes}},3082:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];var t=o.exec(e),n=t?t[1]:void 0;return(0,a.formatDOM)((0,i.default)(e),null,n)};var i=r(n(5426)),a=n(6373),o=/<(![a-zA-Z\s]+)>/},6373:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=a,t.hasOpenTag=function(e,t){var n="<"+t,r=e.toLowerCase().indexOf(n);if(-1===r)return!1;var i=e[r+n.length];return">"===i||" "===i||" "===i||"\n"===i||"\r"===i||"/"===i},t.escapeSpecialCharacters=function(e){return e.replace(i.CARRIAGE_RETURN_REGEX,i.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=o,t.formatDOM=function e(t,n,s){void 0===n&&(n=null);for(var l,u,c,d,f,h=[],p=0,m=t.length;p<m;p++){var v=t[p];switch(v.nodeType){case 1:var y=function(e){var t;return t=e=e.toLowerCase(),i.CASE_SENSITIVE_TAG_NAMES_MAP[t]||e}(v.nodeName);(f=new r.Element(y,a(v.attributes))).children=e("template"===y?v.content.childNodes:v.childNodes,f);break;case 3:f=new r.Text(o(null!==(l=v.nodeValue)&&void 0!==l?l:""));break;case 8:f=new r.Comment(null!==(u=v.nodeValue)&&void 0!==u?u:"");break;default:continue}var g=null!==(c=h[p-1])&&void 0!==c?c:null;g&&(g.next=f),f.parent=n,f.prev=g,f.next=null,h.push(f)}return s&&((f=new r.ProcessingInstruction(s.substring(0,s.indexOf(" ")).toLowerCase(),s)).next=null!==(d=h[0])&&void 0!==d?d:null,f.parent=n,h.unshift(f),h[1]&&(h[1].prev=h[0])),h};var r=n(3390),i=n(3752);function a(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function o(e){return e.replace(i.CARRIAGE_RETURN_PLACEHOLDER_REGEX,i.CARRIAGE_RETURN)}},7642:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var n={},u=!!(e.type&&s[e.type]);for(var c in e){var d=e[c];if((0,r.isCustomAttribute)(c)){n[c]=d;continue}var f=c.toLowerCase(),h=l(f);if(h){var p=(0,r.getPropertyInfo)(h);switch(a.includes(h)&&o.includes(t)&&!u&&(h=l("default"+f)),n[h]=d,null==p?void 0:p.type){case r.BOOLEAN:n[h]=!0;break;case r.OVERLOADED_BOOLEAN:""===d&&(n[h]=!0)}continue}i.PRESERVE_CUSTOM_ATTRIBUTES&&(n[c]=d)}return(0,i.setStyleProp)(e.style,n),n};var r=n(9455),i=n(9355),a=["checked","value"],o=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return r.possibleStandardNames[e]}},4471:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){void 0===n&&(n={});for(var r,i,l,u,c,d=[],f="function"==typeof n.replace,h=null!==(r=n.transform)&&void 0!==r?r:o.returnFirstArg,p=null!==(i=n.library)&&void 0!==i?i:s,m=p.cloneElement,v=p.createElement,y=p.isValidElement,g=t.length,b=0;b<g;b++){var E=t[b];if(f){var _=null===(l=n.replace)||void 0===l?void 0:l.call(n,E,b);if(y(_)){g>1&&(_=m(_,{key:null!==(u=_.key)&&void 0!==u?u:b})),d.push(h(_,E,b));continue}}if("text"===E.type){var w=!E.data.trim().length;if(w&&E.parent&&!(0,o.canTextBeChildOfNode)(E.parent)||n.trim&&w)continue;d.push(h(E.data,E,b));continue}var x={};o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===E.type&&(0,o.isCustomComponent)(E.name,E.attribs)?((0,o.setStyleProp)(E.attribs.style,E.attribs),x=E.attribs):E.attribs&&(x=(0,a.default)(E.attribs,E.name));var k=void 0;switch(E.type){case"script":case"style":E.children[0]&&(x.dangerouslySetInnerHTML={__html:E.children[0].data});break;case"tag":"textarea"===E.name&&E.children[0]?x.defaultValue=E.children[0].data:(null===(c=E.children)||void 0===c?void 0:c.length)&&(k=e(E.children,n));break;default:continue}g>1&&(x.key=b),d.push(h(v(E.name,x,k),E,b))}return 1===d.length?d[0]:d};var i=n(2265),a=r(n(7642)),o=n(9355),s={cloneElement:i.cloneElement,createElement:i.createElement,isValidElement:i.isValidElement}},4441:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){var n;if("string"!=typeof e)throw TypeError("First argument must be a string");return e?(0,o.default)((0,i.default)(e,null!==(n=null==t?void 0:t.htmlparser2)&&void 0!==n?n:l),t):[]};var i=r(n(3082));t.htmlToDOM=i.default;var a=r(n(7642));t.attributesToProps=a.default;var o=r(n(4471));t.domToReact=o.default;var s=n(3390);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return s.Text}});var l={lowerCaseAttributeNames:!1}},9355:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!o.has(e):!!(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e){if(!e.trim()){t.style={};return}try{t.style=(0,a.default)(e,s)}catch(e){t.style={}}}};var i=n(2265),a=r(n(5693)),o=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),s={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(i.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},537:function(e){"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;
1\s]*/,l=/^\s+|\s+$/g;function u(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var c=1,d=1;function f(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function h(){var e={line:c,column:d};return function(t){return t.position=new p(e),v(r),t}}function p(e){this.start=e,this.end={line:c,column:d},this.source=l.source}function m(t){var n=Error(l.source+":"+c+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=c,n.column=d,n.source=e,l.silent);else throw n}function v(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=g();)!1!==t&&e.push(t);return e}function g(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return d+=2,f(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}return p.prototype.content=e,v(r),function(){var e,n=[];for(y(n);e=function(){var e=h(),n=v(i);if(n){if(g(),!v(a))return m("property missing ':'");var r=v(o),l=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return v(s),l}}();)!1!==e&&(n.push(e),y(n));return n}()}},7882:function(e,t,n){!function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=r(t),a=r(n);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}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 l(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){var r,i;r=t,i=n[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i}):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){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var c=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],d=function(e,t){var r,s=e.animationData,d=e.loop,f=e.autoplay,h=e.initialSegment,p=e.onComplete,m=e.onLoopComplete,v=e.onEnterFrame,y=e.onSegmentStart,g=e.onConfigReady,b=e.onDataReady,E=e.onDataFailed,_=e.onLoadedImages,w=e.onDOMLoaded,x=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var k=u(e,c),S=function(e){if(Array.isArray(e))return e}(r=n.useState(!1))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,u=!1;try{for(a=(n=n.call(e)).next;!(l=(r=a.call(n)).done)&&(s.push(r.value),2!==s.length);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(r,2)||function(e,t){if(e){if("string"==typeof e)return o(e,2);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,2):void 0}}
1(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),O=S[0],T=S[1],A=n.useRef(),C=n.useRef(null),N=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(C.current){null===(t=A.current)||void 0===t||t.destroy();var r=l(l(l({},e),n),{},{container:C.current});return A.current=i.default.loadAnimation(r),T(!!A.current),function(){var e;null===(e=A.current)||void 0===e||e.destroy(),A.current=void 0}}};return n.useEffect(function(){var e=N();return function(){return null==e?void 0:e()}},[s,d]),n.useEffect(function(){A.current&&(A.current.autoplay=!!f)},[f]),n.useEffect(function(){if(A.current){if(!h){A.current.resetSegments(!0);return}Array.isArray(h)&&h.length&&((A.current.currentRawFrame<h[0]||A.current.currentRawFrame>h[1])&&(A.current.currentRawFrame=h[0]),A.current.setSegment(h[0],h[1]))}},[h]),n.useEffect(function(){var e=[{name:"complete",handler:p},{name:"loopComplete",handler:m},{name:"enterFrame",handler:v},{name:"segmentStart",handler:y},{name:"config_ready",handler:g},{name:"data_ready",handler:b},{name:"data_failed",handler:E},{name:"loaded_images",handler:_},{name:"DOMLoaded",handler:w},{name:"destroy",handler:x}].filter(function(e){return null!=e.handler});if(e.length){var t=e.map(function(e){var t;return null===(t=A.current)||void 0===t||t.addEventListener(e.name,e.handler),function(){var t;null===(t=A.current)||void 0===t||t.removeEventListener(e.name,e.handler)}});return function(){t.forEach(function(e){return e()})}}},[p,m,v,y,g,b,E,_,w,x]),{View:a.default.createElement("div",l({style:t,ref:C},k)),play:function(){var e;null===(e=A.current)||void 0===e||e.play()},stop:function(){var e;null===(e=A.current)||void 0===e||e.stop()},pause:function(){var e;null===(e=A.current)||void 0===e||e.pause()},setSpeed:function(e){var t;null===(t=A.current)||void 0===t||t.setSpeed(e)},goToAndStop:function(e,t){var n;null===(n=A.current)||void 0===n||n.goToAndStop(e,t)},goToAndPlay:function(e,t){var n;null===(n=A.current)||void 0===n||n.goToAndPlay(e,t)},setDirection:function(e){var t;null===(t=A.current)||void 0===t||t.setDirection(e)},playSegments:function(e,t){var n;null===(n=A.current)||void 0===n||n.playSegments(e,t)},setSubframe:function(e){var t;null===(t=A.current)||void 0===t||t.setSubframe(e)},getDuration:function(e){var t;return null===(t=A.current)||void 0===t?void 0:t.getDuration(e)},destroy:function(){var e;null===(e=A.current)||void 0===e||e.destroy(),A.current=void 0},animationContainerRef:C,animationLoaded:O,animationItem:A.current}},f=function(e){var t=e.wrapperRef,r=e.animationItem,i=e.mode,a=e.actions;n.useEffect(function(){var e,n,o,s,l,u=t.current;if(u&&r&&a.length)switch(r.stop(),i){case"scroll":return e=null,n=function(){var t,n,i,o=(n=(t=u.getBoundingClientRect()).top,i=t.height,(window.innerHeight-n)/(window.innerHeight+i)),s=a.find(function(e){var t=e.visibility;return t&&o>=t[0]&&o<=t[1]});if(s){if("seek"===s.type&&s.visibility&&2===s.frames.length){var l=s.frames[0]+Math.ceil((o-s.visibility[0])/(s.visibility[1]-s.visibility[0])*s.frames[1]);r.goToAndStop(l-r.firstFrame-1,!0)}"loop"===s.type&&(null===e?(r.playSegments(s.frames,!0),e=s.frames):e!==s.frames?(r.playSegments(s.frames,!0),e=s.frames):r.isPaused&&(r.playSegments(s.frames,!0),e=s.frames)),"play"===s.type&&r.isPaused&&(r.resetSegments(!0),r.play()),"stop"===s.type&&r.goToAndStop(s.frames[0]-r.firstFrame-1,!0)}},document.addEventListener("scroll",n),function(){document.removeEventListener("scroll",n)};case"cursor":return o=function(e,t){var n=e,i=t;if(-1!==n&&-1!==i){var o,s,l,c,d=(o=n,s=i,c=(l=u.getBoundingClientRect()).top,{x:(o-l.left)/l.width,y:(s-c)/l.height});n=d.x,i=d.y}var f=a.find(function(e){var t=e.position;return t&&Array.isArray(t.x)&&Array.isArray(t.y)?n>=t.x[0]&&n<=t.x[1]&&i>=t.y[0]&&i<=t.y[1]:!(!t||Number.isNaN(t.x)||Number.isNaN(t.y))&&n===t.x&&i===t.y});if(f){if("seek"===f.type&&f.position&&Array.isArray(f.position.x)&&Array.isArray(f.position.y)&&2===f.frames.length){var h=(n-f.position.x[0])/(f.position.x[1]-f.position.x[0]),p=(i-f.position.y[0])/(f.position.y[1]-f.position.y[0]);r.playSegments(f.frames,!0),r.goToAndStop(Math.ceil((h+p)/2*(f.frames[1]-f.frames[0])),!0)}"loop"===f.type&&r.playSegments(f.frames,!0),"play"===f.type&&(r.isPau
1sed&&r.resetSegments(!1),r.playSegments(f.frames)),"stop"===f.type&&r.goToAndStop(f.frames[0],!0)}},s=function(e){o(e.clientX,e.clientY)},l=function(){o(-1,-1)},u.addEventListener("mousemove",s),u.addEventListener("mouseout",l),function(){u.removeEventListener("mousemove",s),u.removeEventListener("mouseout",l)}}},[i,r])},h=function(e){var t=e.actions,n=e.mode,r=e.lottieObj,i=r.animationItem,a=r.View;return f({actions:t,animationItem:i,mode:n,wrapperRef:r.animationContainerRef}),a},p=["style","interactivity"];Object.defineProperty(e,"LottiePlayer",{enumerable:!0,get:function(){return i.default}}),e.default=function(e){var t,r,i,a=e.style,o=e.interactivity,s=d(u(e,p),a),l=s.View,c=s.play,f=s.stop,m=s.pause,v=s.setSpeed,y=s.goToAndStop,g=s.goToAndPlay,b=s.setDirection,E=s.playSegments,_=s.setSubframe,w=s.getDuration,x=s.destroy,k=s.animationContainerRef,S=s.animationLoaded,O=s.animationItem;return n.useEffect(function(){e.lottieRef&&(e.lottieRef.current={play:c,stop:f,pause:m,setSpeed:v,goToAndPlay:g,goToAndStop:y,setDirection:b,playSegments:E,setSubframe:_,getDuration:w,destroy:x,animationContainerRef:k,animationLoaded:S,animationItem:O})},[null===(t=e.lottieRef)||void 0===t?void 0:t.current]),h({lottieObj:{View:l,play:c,stop:f,pause:m,setSpeed:v,goToAndStop:y,goToAndPlay:g,setDirection:b,playSegments:E,setSubframe:_,getDuration:w,destroy:x,animationContainerRef:k,animationLoaded:S,animationItem:O},actions:null!==(r=null==o?void 0:o.actions)&&void 0!==r?r:[],mode:null!==(i=null==o?void 0:o.mode)&&void 0!==i?i:"scroll"})},e.useLottie=d,e.useLottieInteractivity=h,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(2584),n(2265))},166:function(e,t,n){"use strict";n.d(t,{default:function(){return i.a}});var r=n(5775),i=n.n(r)},9376:function(e,t,n){"use strict";var r=n(5475);n.o(r,"useParams")&&n.d(t,{useParams:function(){return r.useParams}}),n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},8667:function(e,t,n){"use strict";n.d(t,{default:function(){return i.a}});var r=n(8003),i=n.n(r)},257:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(4227)},2119:function(e,t,n){"use strict";Object.defineProperty(t,"$",{enumerable:!0,get:function(){return i}});let r=n(3079);function i(e){let{createServerReference:t}=n(6671);return t(e,r.callServer)}},8221:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DOMAttributeNames:function(){return r},default:function(){return o},isEqualNode:function(){return a}});let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function i(e){let{type:t,props:n}=e,i=document.createElement(t);for(let e in n){if(!n.hasOwnProperty(e)||"children"===e||"dangerouslySetInnerHTML"===e||void 0===n[e])continue;let a=r[e]||e.toLowerCase();"script"===t&&("async"===a||"defer"===a||"noModule"===a)?i[a]=!!n[e]:i.setAttribute(a,n[e])}let{children:a,dangerouslySetInnerHTML:o}=n;return o?i.innerHTML=o.__html||"":a&&(i.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):""),i}function a(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let n=t.getAttribute("nonce");if(n&&!e.getAttribute("nonce")){let r=t.cloneNode(!0);return r.setAttribute("nonce",""),r.nonce=n,n===e.nonce&&e.isEqualNode(r)}}return e.isEqualNode(t)}function o(){return{mountedInstances:new Set,updateHead:e=>{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let n=t[e.type]||[];n.push(e),t[e.type]=n});let r=t.title?t.title[0]:null,i="";if(r){let{children:e}=r.props;i="string"==typeof e?e:Array.isArray(e)?e.join(""):""}i!==document.title&&(document.title=i),["meta","base","link","style","script"].forEach(e
1=>{n(e,t[e]||[])})}}}n=(e,t)=>{let n=document.getElementsByTagName("head")[0],r=n.querySelector("meta[name=next-head-count]"),o=Number(r.content),s=[];for(let t=0,n=r.previousElementSibling;t<o;t++,n=(null==n?void 0:n.previousElementSibling)||null){var l;(null==n?void 0:null==(l=n.tagName)?void 0:l.toLowerCase())===e&&s.push(n)}let u=t.map(i).filter(e=>{for(let t=0,n=s.length;t<n;t++)if(a(s[t],e))return s.splice(t,1),!1;return!0});s.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),u.forEach(e=>n.insertBefore(e,r)),r.content=(o-s.length+u.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3515:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8003:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return b},handleClientScriptLoad:function(){return v},initScriptLoader:function(){return y}});let r=n(7043),i=n(3099),a=n(7437),o=r._(n(4887)),s=i._(n(2265)),l=n(8701),u=n(8221),c=n(3515),d=new Map,f=new Set,h=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],p=e=>{if(o.default.preinit){e.forEach(e=>{o.default.preinit(e,{as:"style"})});return}if("undefined"!=typeof window){let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}},m=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:i=null,dangerouslySetInnerHTML:a,children:o="",strategy:s="afterInteractive",onError:l,stylesheets:c}=e,m=n||t;if(m&&f.has(m))return;if(d.has(t)){f.add(m),d.get(t).then(r,l);return}let v=()=>{i&&i(),f.add(m)},y=document.createElement("script"),g=new Promise((e,t)=>{y.addEventListener("load",function(t){e(),r&&r.call(this,t),v()}),y.addEventListener("error",function(e){t(e)})}).catch(function(e){l&&l(e)});for(let[n,r]of(a?(y.innerHTML=a.__html||"",v()):o?(y.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",v()):t&&(y.src=t,d.set(t,g)),Object.entries(e))){if(void 0===r||h.includes(n))continue;let e=u.DOMAttributeNames[n]||n.toLowerCase();y.setAttribute(e,r)}"worker"===s&&y.setAttribute("type","text/partytown"),y.setAttribute("data-nscript",s),c&&p(c),document.body.appendChild(y)};function v(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(e))}):m(e)}function y(e){e.forEach(v),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");f.add(t)})}function g(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:i=null,strategy:u="afterInteractive",onError:d,stylesheets:h,...p}=e,{updateScripts:v,scripts:y,getIsSsr:g,appDir:b,nonce:E}=(0,s.useContext)(l.HeadManagerContext),_=(0,s.useRef)(!1);(0,s.useEffect)(()=>{let e=t||n;_.current||(i&&e&&f.has(e)&&i(),_.current=!0)},[i,t,n]);let w=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{!w.current&&("afterInteractive"===u?m(e):"lazyOnload"===u&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>m(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(e))})),w.current=!0)},[e,u]),("beforeInteractive"===u||"worker"===u)&&(v?(y[u]=(y[u]||[]).concat([{id:t,src:n,onLoad:r,onReady:i,onError:d,...p}
1]),v(y)):g&&g()?f.add(t||n):g&&!g()&&m(e)),b){if(h&&h.forEach(e=>{o.default.preinit(e,{as:"style"})}),"beforeInteractive"===u)return n?(o.default.preload(n,p.integrity?{as:"script",integrity:p.integrity,nonce:E,crossOrigin:p.crossOrigin}:{as:"script",nonce:E,crossOrigin:p.crossOrigin}),(0,a.jsx)("script",{nonce:E,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([n,{...p,id:t}])+")"}})):(p.dangerouslySetInnerHTML&&(p.children=p.dangerouslySetInnerHTML.__html,delete p.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:E,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...p,id:t}])+")"}}));"afterInteractive"===u&&n&&o.default.preload(n,p.integrity?{as:"script",integrity:p.integrity,nonce:E,crossOrigin:p.crossOrigin}:{as:"script",nonce:E,crossOrigin:p.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let b=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6434:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=l(e),o=a[0],s=a[1],u=new i((o+s)*3/4-s),c=0,d=s>0?o-4:o;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=0,s=r-i;o<s;o+=16383)a.push(function(e,t,r){for(var i,a=[],o=t;o<r;o+=3)a.push(n[(i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]))>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,o,o+16383>s?s:o+16383));return 1===i?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)n[o]=a[o],r[a.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){"use strict";var r=n(675),i=n(783),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|h(e,t),r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(C(e,ArrayBuffer)||e&&C(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(C(e,SharedArrayBuffer)||e&&C(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),s.prototype),r}(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t,n=0|f(e.length),r=o(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?o(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');
1if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),o(e<0?0:0|f(e))}function d(e){for(var t=e.length<0?0:0|f(e.length),n=o(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||C(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return S(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return T(e).length;default:if(i)return r?-1:S(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){var i,a,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=N[e[a]];return i}(this,t,n);case"utf8":case"utf-8":return g(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return i=t,a=n,0===i&&a===this.length?r.fromByteArray(this):r.fromByteArray(this.slice(i,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}(this,t,n);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){var a;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(a=n=+n)!=a&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;o=2,s/=2,l/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;a<s;a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*o}else -1!==c&&(a-=a-c),c=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var d=!0,f=0;f<l;f++)if(u(e,a+f)!==u(t,f)){d=!1;break}if(d)return a}return -1}function g(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(a=e[i+1]))==128&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function b(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function E(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function _(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function w(e,t,n,r,a){return t=+t,n>>>=0,a||_(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function x(e,t,n,r,a){return t=+t,n>>>=0,a||_(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)}
vendor: 11,796 bytes, line 1
1,t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(C(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),C(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(C(a,Uint8Array)&&(a=s.from(a)),!s.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?g(this,0,e):p.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(C(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,l=Math.min(a,o),u=this.slice(r,i),c=e.slice(t,n),d=0;d<l;++d)if(u[d]!==c[d]){a=u[d],o=c[d];break}return a<o?-1:o<a?1:0},s.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,o,s,l,u,c,d,f,h,p,m,v=this.length-t;if((void 0===n||n>v)&&(n=v),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var y=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(s!=s)break;e[n+o]=s}return o}(this,e,t,n);case"utf8":case"utf-8":return l=t,u=n,A(S(e,this.length-l),this,l,u);case"ascii":return c=t,d=n,A(O(e),this,c,d);case"latin1":case"binary":return i=this,a=e,o=t,s=n,A(O(a),i,o,s);case"base64":return f=t,h=n,A(T(e),this,f,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p=t,m=n,A(function(e,t){for(var n,r,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i.push(n%256),i.push(r);return i}(e,this.length-p),this,p,m);default:if(y)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),y=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;E(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=255&e;++o<n&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;E(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);E(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);E(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return w(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return w(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return x(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return x(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var a=i-1;a>=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var i,a=e.charCodeAt(0);("utf8"===r&&a<128||"latin1"===r)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var o=s.isBuffer(e)?e:s.from(e,r),l=o.length;
1if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%l]}return this};var k=/[^+/0-9A-Za-z-_]/g;function S(e,t){t=t||1/0;for(var n,r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319||o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function O(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function T(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(k,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function A(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function C(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var N=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},783:function(e,t){t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,a=h&(1<<-c)-1,h>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=f,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+d],d+=f,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),a-=u}return(h?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,u=8*a-i-1,c=(1<<u)-1,d=c>>1,f=23===i?5960464477539062e-23:0,h=r?0:a-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[n+h]=255&o,h+=p,o/=256,u-=8);e[n+h-p]|=128*m}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var a=n[e]={exports:{}},o=!0;try{t[e](a,a.exports,r),o=!1}finally{o&&delete n[e]}return a.exports}r.ab="//";var i=r(72);e.exports=i}()},4227:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c<t;)r&&r[c].run();c=-1,t=l.length}r=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||u||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var a=n[e]={exports:{}},o=!0;try{t[e](a,a.exports,r),o=!1}finally{o&&delete n[e]}return a.exports}r.ab="//";var i=r(229);e.exports=i}()},5775:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(7043);n(7437),n(2265);let i=r._(n(5602));function a(e,t){var n;let r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};"function"==typeof e&&(r.loader=e);let a={...r,...t};return(0,i.default)({...a,modules:null==(n=a.loadableGenerated)?void 0:n.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1523:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let r=n(8993);function i(e){let{reason:t,children:n}=e;if("undefined"==typeof window)throw new r.BailoutToCSRError(t);return n}},5602:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=n(7437),i=n(2265),a=n(1523),o=n(49);function s(e){return{default:e&&"default"in e?e.default:e}}let l={loader:()=>Promise.resolve(s(()=>null)),loading:null,ssr:!0},u=function(e){let t={...l,...e},n=(0,i.lazy)(()=>t.loader().then(s)),u=t.loading;function c(e){let s=u?(0,r.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,l=t.ssr?(0,r.jsxs)(r.Fragment,{children:["undefined"==typeof window?(0,r.jsx)(o.PreloadCss,{moduleIds:t.modules}):null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(a.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(i.Suspense,{fallback:s,children:l})}return c.displayName="LoadableComponent",c}},49:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return a}});let r=n(7437),i=n(544);function a(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let n=(0,i.getExpectedRequestStore)("next/dynamic css"),a=[];if(n.reactLoadableManifest&&t){let e=n.reactLoadableManifest;for(let n of t){if(!e[n])continue;let t=e[n].files.filter(e=>e.endsWith(".css"));a.push(...t)}}return 0===a.length?null:(0,r.jsx)(r.Fragment,{children:a.map(e=>(0,r.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:n.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},9455:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}let i={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{i[e]=new r(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{i[e]=new r(e,1,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{i[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{i[e]=new r(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{i[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{i[e]=new r(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{i[e]=new r(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{i[e]=new r(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{i[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)});let a=/[\-\:]([a-z])/g,o=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode
1-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{let t=e.replace(a,o);i[t]=new r(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{let t=e.replace(a,o);i[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{let t=e.replace(a,o);i[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{i[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)}),i.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{i[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)});let{CAMELCASE:s,SAME:l,possibleStandardNames:u}=n(6626),c=RegExp.prototype.test.bind(RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(u).reduce((e,t)=>{let n=u[t];return n===l?e[t]=t:n===s?e[t.toLowerCase()]=t:e[t]=n,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return i.hasOwnProperty(e)?i[e]:null},t.isCustomAttribute=c,t.possibleStandardNames=d},6626:function(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackgroun
1d:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xl
1inkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5693:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(2744)),i=n(6172);function a(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,e.exports=a},6172:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,l):e.replace(a,l)).replace(r,s))}},2744:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),a="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;a?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(n(537))},9377:function(e,t,n){!function(){function e(e,t){return(t||"")+" (SystemJS Error#"+e+" https://github.com/systemjs/systemjs/blob/main/docs/errors.md#"+e+")"}function t(e,t){if(-1!==e.indexOf("\\")&&(e=e.replace(R,"/")),"/"===e[0]&&"/"===e[1])return t.slice(0,t.indexOf(":")+1)+e;if("."===e[0]&&("/"===e[1]||"."===e[1]&&("/"===e[2]||2===e.length&&(e+="/"))||1===e.length&&(e+="/"))||"/"===e[0]){var n,r=t.slice(0,t.indexOf(":")+1);if(n="/"===t[r.length+1]?"file:"!==r?(n=t.slice(r.length+2)).slice(n.indexOf("/")+1):t.slice(8):t.slice(r.length+("/"===t[r.length])),"/"===e[0])return t.slice(0,t.length-n.length-1)+e;for(var i=n.slice(0,n.lastIndexOf("/")+1)+e,a=[],o=-1,s=0;s<i.length;s++)-1!==o?"/"===i[s]&&(a.push(i.slice(o,s+1)),o=-1):"."===i[s]?"."!==i[s+1]||"/"!==i[s+2]&&s+2!==i.length?"/"===i[s+1]||s+1===i.length?s+=1:o=s:(a.pop(),s+=2):o=s;return -1!==o&&a.push(i.slice(o)),t.slice(0,t.length-n.length)+a.join("")}}function r(e,n){return t(e,n)||(-1!==e.indexOf(":")?e:t("./"+e,n))}function i(e,n,r,i,a){for(var o in e){var s=t(o,r)||o,c=e[o];if("string"==typeof c){var d=u(i,t(c,r)||c,a);d?n[s]=d:l("W1",o,c,"bare specifier did not resolve")}}}function a(e,t,n){var a;for(a in e.imports&&i(e.imports,n.imports,t,n,null),e.scopes||{}){var o=r(a,t);i(e.scopes[a],n.scopes[o]||(n.scopes[o]={}),t,n,o)}for(a in e.depcache||{})n.depcache[r(a,t)]=e.depcache[a];for(a in e.integrity||{})n.integrity[r(a,t)]=e.integrity[a]}function o(e,t){if(t[e])return e;var n=e.length;do{var r=e.slice(0,n+1);if(r in t)return r}while(-1!==(n=e.lastIndexOf("/",n-1)))}function s(e,t){var n=o(e,t);if(n){var r=t[n];if(null===r)return;if(!(e.length>n.length&&"/"!==r[r.length-1]))return r+e.slice(n.length);l("W2",n,r,"should have a trailing '/'")}}function l(t,n,r,i){console.warn(e(t,"Package target "+i+", resolving target '"+r+"' for "+n))}function u(e,t,n){for(var r=e.scopes,i=n&&o(n,r);i;){var a=s(t,r[i]);if(a)return a;i=o(i.slice(0,i.lastIndexOf("/")),r)}return s(t,e.imports)||-1!==t.indexOf(":")&&t}function c(){this[P]={}}function d(e){return e.id}function f(e,t,n,r){if(e.onload(n,t.id,t.d&&t.d.map(d),!!r),n)throw n}function h(t,n,r,i){var a=t[P][n];if(a)return a;var o=[],s=Object.create(null);L&&Object.defineProperty(s,L,{value:"Module"});var l=Promise.resolve().then(function(){return t.instantiate(n,r,i)}).then(function(r){if(!r)throw Error(e(2,"Module "+n+" did not instantiate"));var i=r[1](function(e,t){a.h=!0;var n=!1;if("string"==typeof e)e in s&&s[e]===t||(s[e]=t,n=!0);else{for(var r in e)t=e[r],r in s&&s[r]===t||(s[r]=t,n=!0);e&&e.__esModule&&(s.__esModule=e.__esModule)}if(n)for(var i=0;i<o.length;i++){var l=o[i];l&&l(s)}return t},2===r[1].length?{import:function(e,r){return t.import(e,n,r)},meta:t.createContext(n)}:void 0);return a.e=i.execute||function(){},[r[0],i.setters||[],r[2]||[]]},function(e){throw a.e=null,a.er=e,f(t,a,e,!0),e}),u=l.then(function(e){return Promise.all(e[0].map(function(r,i){var a=e[1][i],o=e[2][i];return Promise.resolve(t.resolve(r,n)).then(function(e){var r=h(t,e,n,o);return Promise.resolve(r.I).then(function(){return a&&(r.i.push(a),!r.h&&r.I||a(r.n)),r})})})).then(function(e){a.d=e})});return a=t[P][n]={id:n,i:o,n:s,m:i,I:l,L:u,h:!1,d:void 0,e:void 0,er:void 0,E:void 0,C:void 0,p:void 0}}function p(){[].forEach.call(document.querySelectorAll("script"),function(t){if(!t.sp){if("systemjs-module"===t.type)t.sp=!0,t.src&&System.import("import:"===t.src.slice(0,7)?t.src.slice(7):r(t.src,x)).catch(function(e){if(e.message.indexOf("https://github.com/systemjs/systemjs/blob/main/docs/errors.md#3")>-1){var n=document.createEvent("Event");n.initEvent("error",!1,!1),t.dispatchEvent(n)}return Promise.reject(e)});else if("systemjs-importmap"===t.type){t.sp=!0;var n=t.src?(System.fetch||fetch)(t.src,{integrity:t.integrity,priority:t.fetchPriority,passThrough:!0}).then(function(e){if(!e.ok)throw Error("Invalid status code: "+e.status);return e.text()}).catch(function(n){return n.message=e("W4","Error fetching systemjs-import map "+t.src)+"\n"+n.message,console.warn(n),"function"==typeof t.onerror&&t.onerror(),"{}"}):t.innerHTML;U=U.then(function(){return n}).then(function(n){!function(t,n,r){var i={};try{i=JSON.parse(n)}catch(t){console.warn(Error(e("W5","systemjs-importmap contains invali
1d JSON")+"\n\n"+n+"\n"))}a(i,r,t)}(F,n,t.src||x)})}}})}var m,v,y,g,b,E,_,w,x,k="undefined"!=typeof Symbol,S="undefined"!=typeof self,O="undefined"!=typeof document,T=S?self:n.g;if(O){var A=document.querySelector("base[href]");A&&(x=A.href)}if(!x&&"undefined"!=typeof location){var C=(x=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==C&&(x=x.slice(0,C+1))}var N,R=/\\/g,L=k&&Symbol.toStringTag,P=k?Symbol():"@",I=c.prototype;I.import=function(e,t,n){var r=this;return t&&"object"==typeof t&&(n=t,t=void 0),Promise.resolve(r.prepareImport()).then(function(){return r.resolve(e,t,n)}).then(function(e){var t=h(r,e,void 0,n);return t.C||(t.C=(function e(t,n,r,i){if(!i[n.id])return i[n.id]=!0,Promise.resolve(n.L).then(function(){return n.p&&null!==n.p.e||(n.p=r),Promise.all(n.d.map(function(n){return e(t,n,r,i)}))}).catch(function(e){if(n.er)throw e;throw n.e=null,f(t,n,e,!1),e})})(r,t,t,{}).then(function(){return function e(t,n,r){function i(){try{var e=o.call(j);if(e)return e=e.then(function(){n.C=n.n,n.E=null,f(t,n,null,!0)},function(e){throw n.er=e,n.E=null,f(t,n,e,!0),e}),n.E=e;n.C=n.n,n.L=n.I=void 0}catch(e){throw n.er=e,e}finally{f(t,n,n.er,!0)}}if(!r[n.id]){if(r[n.id]=!0,!n.e){if(n.er)throw n.er;return n.E?n.E:void 0}var a,o=n.e;return n.e=null,n.d.forEach(function(i){try{var o=e(t,i,r);o&&(a=a||[]).push(o)}catch(e){throw n.er=e,f(t,n,e,!1),e}}),a?Promise.all(a).then(i):i()}}(r,t,{})}).then(function(){return t.n}))})},I.createContext=function(e){var t=this;return{url:e,resolve:function(n,r){return Promise.resolve(t.resolve(n,r||e))}}},I.onload=function(){},I.register=function(e,t,n){N=[e,t,n]},I.getRegister=function(){var e=N;return N=void 0,e};var j=Object.freeze(Object.create(null));T.System=new c;var D,M,U=Promise.resolve(),F={imports:{},scopes:{},depcache:{},integrity:{}},B=O;if(I.prepareImport=function(e){return(B||e)&&(p(),B=!1),U},I.getImportMap=function(){return JSON.parse(JSON.stringify(F))},O&&(p(),window.addEventListener("DOMContentLoaded",p)),I.addImportMap=function(e,t){a(e,t||x,F)},O){window.addEventListener("error",function(e){Z=e.filename,z=e.error});var q=location.origin}I.createScript=function(e){var t=document.createElement("script");t.async=!0,e.indexOf(q+"/")&&(t.crossOrigin="anonymous");var n=F.integrity[e];return n&&(t.integrity=n),t.src=e,t};var Z,z,H={},W=I.register;I.register=function(e,t){if(O&&"loading"===document.readyState&&"string"!=typeof e){var n=document.querySelectorAll("script[src]"),r=n[n.length-1];if(r){D=e;var i=this;M=setTimeout(function(){H[r.src]=[e,t],i.import(r.src)})}}else D=void 0;return W.call(this,e,t)},I.instantiate=function(t,n){var r=H[t];if(r)return delete H[t],r;var i=this;return Promise.resolve(I.createScript(t)).then(function(r){return new Promise(function(a,o){r.addEventListener("error",function(){o(Error(e(3,"Error loading "+t+(n?" from "+n:""))))}),r.addEventListener("load",function(){if(document.head.removeChild(r),Z===t)o(z);else{var e=i.getRegister(t);e&&e[0]===D&&clearTimeout(M),a(e)}}),document.head.appendChild(r)})})},I.shouldFetch=function(){return!1},"undefined"!=typeof fetch&&(I.fetch=fetch);var V=I.instantiate,$=/^(text|application)\/(x-)?javascript(;|$)/;I.instantiate=function(t,n,r){var i=this;return this.shouldFetch(t,n,r)?this.fetch(t,{credentials:"same-origin",integrity:F.integrity[t],meta:r}).then(function(r){if(!r.ok)throw Error(e(7,r.status+" "+r.statusText+", loading "+t+(n?" from "+n:"")));var a=r.headers.get("content-type");if(!a||!$.test(a))throw Error(e(4,'Unknown Content-Type "'+a+'", loading '+t+(n?" from "+n:"")));return r.text().then(function(e){return 0>e.indexOf("//# sourceURL=")&&(e+="\n//# sourceURL="+t),(0,eval)(e),i.getRegister(t)})}):V.apply(this,arguments)},I.resolve=function(n,r){return u(F,t(n,r=r||x)||n,r)||function(t,n){throw Error(e(8,"Unable to resolve bare specifier '"+t+(n?"' from "+n:"'")))}(n,r)};var Q=I.instantiate;I.instantiate=function(e,t,n){var r=F.depcache[e];if(r)for(var i=0;i<r.length;i++)h(this,this.resolve(r[i],e),e);return Q.call(this,e,t,n)},S&&"function"==typeof importScripts&&(I.instantiate=function(e){var t=this;return Promise.resolve().then(function(){return importScripts(e),t.getRegister(e)})}),function(e){function t(t){return!e.hasOwnProperty(t)||!isNaN(t)&&t<e.length||u&&e[t]&&"undefined"!=typeof window&&e[t].parent===window}var n,r,i,a=e.System.constructor.prototype,o=a.import;a.import=function(a,s,l){return function(){for(var a in n=r=void 0,e)t(a)||(n?r||(r=a):n=a,i=a)}(),o.call(this,a,s,l)};var s=[[],function(){return{}}],l=a.getRegister;a.getRegister=function(){var a=l.call(this);if(a)return a;var o,u=function(a){var o,s,l=0;for(var u in e)if(!t(u)){if(0===l&&u!==n||1===l&&u!==r)return u;o?(i=u,s=a&&s||u):o=u===i,l++}return s}(this.firstGlobalProp);if(!u)return s;try{o=e[u]}catch(e){return s}return[[],function(e){return{execute:function(){e(o),e({default:o,__useDefault:!0})}}}]};var u="undefined"!=typeof navigator&&-1!==navigator.userAgent.indexOf("Trident")}("undefined"!=typeof self?self:n.g),v=(m="undefined"!=typeof self?self:n.g).System.constructor.prototype,y=/^[^#?]+\.(css|html|json|wasm)([?#].*)?$/,g=v.shouldFetch.bind(v),v.shouldFetch=function(e){return g(e)||y.test(e)},b=/^application\/json(;|$)/,E=/^text\/css(;|$)/,_=/^application\/wasm(;|$)/,w=v.fetch,v.fetch=function(e,t){return w(e,t).then(function(n){if(t.passThrough||!n.ok)return n;var i=n.headers.get("content-type");return b.test(i)?n.json().then(function(e){return new Response(new Blob(['System.register([],function(e){return{execute:function(){e("default",'+JSON.stringify(e)+")}}})"],{type:"application/javascript"}))}):E.test(i)?n.text().then(function(t){return new Response(new Blob(["System.register([],function(e){return{execute:function(){var s=new CSSStyleSheet();s.replaceSync("+JSON.stringify(t=t.replace(/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g,function(t,n,i,a){return["url(",n,r(i||a,e),n,")"].join("")}))+');e("default",s)}}})'],{type:"application/javascript"}))}):_.test(i)?(WebAssembly.compileStreaming?WebAssembly.compileStreaming(n):n.arrayBuffer().then(WebAssembly.compile)).then(function(t){m.System.wasmModules||(m.System.wasmModules=Object.create(null)),m.System.wasmModules[e]=t;var n=[],r=[];return WebAssembly.Module.imports&&WebAssembly.Module.imports(t).forEach(function(e){var t=JSON.stringify(e.module);-1===n.indexOf(t)&&(n.push(t),r.push("function(m){i["+t+"]=m}"))}),new Response(new Blob(["System.register(["+n.join(",")+"],function(e){var i={};return{setters:["+r.join(",")+"],execute:function(){return WebAssembly.instantiate(System.wasmModules["+JSON.stringify(e)+"],i).then(function(m){e(m.exp
1orts)})}}})"],{type:"application/javascript"}))}):n})};var K="undefined"!=typeof Symbol&&Symbol.toStringTag;I.get=function(e){var t=this[P][e];if(t&&null===t.e&&!t.E)return t.er?null:t.n},I.set=function(t,n){try{new URL(t)}catch(n){console.warn(Error(e("W3",'"'+t+'" is not a valid URL to set in the module registry')))}K&&"Module"===n[K]?r=n:(r=Object.assign(Object.create(null),n),K&&Object.defineProperty(r,K,{value:"Module"}));var r,i=Promise.resolve(r),a=this[P][t]||(this[P][t]={id:t,i:[],h:!1,d:[],e:null,er:void 0,E:void 0});return!a.e&&!a.E&&(Object.assign(a,{n:r,I:void 0,L:void 0,C:i}),r)},I.has=function(e){return!!this[P][e]},I.delete=function(e){var t=this[P],n=t[e];if(!n||n.p&&null!==n.p.e||n.E)return!1;var r=n.i;return n.d&&n.d.forEach(function(e){var t=e.i.indexOf(n);-1!==t&&e.i.splice(t,1)}),delete t[e],function(){var n=t[e];if(!n||!r||null!==n.e||n.E)return!1;r.forEach(function(e){n.i.push(e),e(n.n)}),r=null}};var G="undefined"!=typeof Symbol&&Symbol.iterator;I.entries=function(){var e,t,n=this,r=Object.keys(n[P]),i=0,a={next:function(){for(;void 0!==(t=r[i++])&&void 0===(e=n.get(t)););return{done:void 0===t,value:void 0!==t&&[t,e]}}};return a[G]=function(){return this},a}}()},6111:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VWOScript=void 0;var a=i(n(2265));t.VWOScript=function(e){var t=e.accountId,n=e.type,i=void 0===n?"ASYNC":n,o=e.settingsTimeout,s=e.hideElement,l=e.hideElementStyle,u=e.scriptAttributes,c=void 0===u?{}:u,d=e.linkAttributes;try{var f="string"==typeof i?i.toLowerCase():"async",h="window._vwo_code||(function(){var account_id=".concat(t,",version=2.1,settings_tolerance=").concat(void 0===o?2e3:o,",hide_element='").concat(void 0===s?"body":s,"',hide_element_style='").concat(void 0===l?"opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important":l,"',f=false,w=window,d=document,v=d.querySelector('#vwoCode'),cK='_vwo_'+account_id+'_settings',cc={};try{var c=JSON.parse(localStorage.getItem('_vwo_'+account_id+'_config'));cc=c&&typeof c==='object'?c:{}}catch(e){}var stT=cc.stT==='session'?w.sessionStorage:w.localStorage;code={nonce:v&&v.nonce,use_existing_jquery:function(){return typeof use_existing_jquery!=='undefined'?use_existing_jquery:undefined},library_tolerance:function(){return typeof library_tolerance!=='undefined'?library_tolerance:undefined},settings_tolerance:function(){return cc.sT||settings_tolerance},hide_element_style:function(){return'{'+(cc.hES||hide_element_style)+'}'},hide_element:function(){if(performance.getEntriesByName('first-contentful-paint')[0]){return''}return typeof cc.hE==='string'?cc.hE:hide_element},getVersion:function(){return version},finish:function(e){if(!f){f=true;var t=d.getElementById('_vis_opt_path_hides');if(t)t.parentNode.removeChild(t);if(e)(new Image).src='https://dev.visualwebsiteoptimizer.com/ee.gif?a='+account_id+e}},finished:function(){return f},addScript:function(e){var t=d.createElement('script');t.type='text/javascript';if(e.src){t.src=e.src}else{t.text=e.text}v&&t.setAttribute('nonce',v.nonce);d.getElementsByTagName('head')[0].appendChild(t)},load:function(e,t){var n=this.getSettings(),i=d.createElement('script'),r=this;t=t||{};if(n){i.textContent=n;d.getElementsByTagName('head')[0].appendChild(i);if(!w.VWO||VWO.caE){stT.removeItem(cK);r.load(e)}}else{var o=new XMLHttpRequest;o.open('GET',e,true);o.withCredentials=!t.dSC;o.responseType=t.responseType||'text';o.onload=function(){if(t.onloadCb){return t.onloadCb(o,e)}if(o.status===200||o.status===304){w._vwo_code.addScript({text:o.responseText})}else{w._vwo_code.finish('&e=loading_failure:'+e)}};o.onerror=function(){if(t.onerrorCb){return t.onerrorCb(e)}w._vwo_code.finish('&e=loading_failure:'+e)};o.send()}},getSettings:function(){try{var e=stT.getItem(cK);if(!e){return}e=JSON.parse(e);if(Date.now()>e.e){stT.removeItem(cK);return}return e.s}catch(e){return}},init:function(){if(d.URL.indexOf('__vwo_disable__')>-1)return;var e=this.settings_tolerance();w._vwo_settings_timer=setTimeout(function(){w._vwo_code.finish();stT.removeItem(cK)},e);var t;
1if(this.hide_element()!=='body'){t=d.createElement('style');var n=this.hide_element(),i=n?n+this.hide_element_style():'',r=d.getElementsByTagName('head')[0];t.setAttribute('id','_vis_opt_path_hides');v&&t.setAttribute('nonce',v.nonce);t.setAttribute('type','text/css');if(t.styleSheet)t.styleSheet.cssText=i;else t.appendChild(d.createTextNode(i));r.appendChild(t)}else{t=d.getElementsByTagName('head')[0];var i=d.createElement('div');i.style.cssText='z-index:2147483647!important;position:fixed!important;left:0!important;top:0!important;width:100%!important;height:100%!important;background:white!important;';i.setAttribute('id','_vis_opt_path_hides');i.classList.add('_vis_hide_layer');t.parentNode.insertBefore(i,t.nextSibling)}var o=window._vis_opt_url||d.URL,s='https://dev.visualwebsiteoptimizer.com/j.php?a='+account_id+'&u='+encodeURIComponent(o)+'&vn='+version;if(w.location.search.indexOf('_vwo_xhr')!==-1){this.addScript({src:s})}else{this.load(s+'&x=true')}}};w._vwo_code=code;code.init()})();(function(){var i=window;function t(){if(i._vwo_code){var e=t.hidingStyle=document.getElementById('_vis_opt_path_hides')||t.hidingStyle;if(!i._vwo_code.finished()&&!_vwo_code.libExecuted&&(!i.VWO||!VWO.dNR)){if(!document.getElementById('_vis_opt_path_hides')){document.getElementsByTagName('head')[0].appendChild(e)}requestAnimationFrame(t)}}}t()});");if(!t)return console.error("VWO: Account ID is required"),null;if("async"!==f&&"sync"!==f)return console.error('VWO: Invalid type. Must be either "ASYNC" or "SYNC"'),null;if("sync"===f)return a.default.createElement("script",r({},c,{referrerPolicy:"no-referrer-when-downgrade",id:"vwoCode",src:"https://dev.visualwebsiteoptimizer.com/lib/".concat(t,".js")}));return a.default.createElement(a.default.Fragment,null,a.default.createElement("link",r({rel:"preconnect",href:"https://dev.visualwebsiteoptimizer.com"},void 0===d?{}:d)),a.default.createElement("script",r({},c,{type:"text/javascript",id:"vwoCode",dangerouslySetInnerHTML:{__html:h}})))}catch(e){return console.error("VWO Script Error:",e),null}}},4463:function(e,t,n){"use strict";let r,i,a,o,s,l,u;n.d(t,{LY:function(){return h},xj:function(){return p},er:function(){return ne},H:function(){return nt},uD:function(){return nn},y:function(){return nr},l$:function(){return ni},xb:function(){return no},Xc:function(){return ns},HD:function(){return nl},Qu:function(){return nu},OW:function(){return t4},tm:function(){return t3},vr:function(){return t5},YT:function(){return t6},Sj:function(){return t7},iP:function(){return t9},k$:function(){return nc}});var c,d,f={};n.r(f),n.d(f,{hasBrowserEnv:function(){return eG},hasStandardBrowserEnv:function(){return eX},hasStandardBrowserWebWorkerEnv:function(){return eJ},navigator:function(){return eY},origin:function(){return e0}});var h=((r=h||{})[r.MAX=1920]="MAX",r[r.XXL=1600]="XXL",r[r.XL=1200]="XL",r[r.L=960]="L",r[r.M=768]="M",r[r.S=600]="S",r[r.XS=480]="XS",r[r.XXS=360]="XXS",r);let p=["xxl","xl","l","m","s","xs","xxs"];var m=n(2265);function v(e,t){return function(){return e.apply(t,arguments)}}var y=n(257);let{toString:g}=Object.prototype,{getPrototypeOf:b}=Object,{iterator:E,toStringTag:_}=Symbol,w=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),x=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),k=(e,t,n)=>e===Object.prototype||!n&&null===t,S=e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(x(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})},O=(e,t)=>{let n=e,r=[];for(;null!=n&&-1===r.indexOf(n);){r.push(n);let i=b(n);if(k(n,i,n===e))break;if(w(n,t))return!0;n=i}return!1},T=(i=Object.create(null),e=>{let t=g.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())}),A=e=>(e=e.toLowerCase(),t=>T(t)===e),C=e=>t=>typeof t===e,{isArray:N}=Array,R=C("undefined");function L(e){return null!==e&&!R(e)&&null!==e.constructor&&!R(e.constructor)&&j(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let P=A("ArrayBuffer"),I=C("string"),j=C("function"),D=C("number"),M=e=>null!==e&&"object"==typeof e,U=e=>{if(!M(e))return!1;let t=b(e);
1return(null===t||t===Object.prototype||null===b(t))&&!O(e,_)&&!O(e,E)},F=A("Date"),B=A("File"),q=A("Blob"),Z=A("FileList"),z=A("Set"),H="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},W="u">typeof H.FormData?H.FormData:void 0,V=A("URLSearchParams"),[$,Q,K,G]=["ReadableStream","Request","Response","Headers"].map(A);function Y(e,t,{allOwnKeys:n=!1}={}){let r,i;if(null!==e&&!(typeof e>"u")){if("object"!=typeof e&&(e=[e]),N(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{let i;if(L(e))return;let a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;for(r=0;r<o;r++)i=a[r],t.call(null,e[i],i,e)}}}function X(e,t){if(L(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(t===(i=n[r]).toLowerCase())return i;return null}let J="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,ee=e=>!R(e)&&e!==J,et=(a="u">typeof Uint8Array&&b(Uint8Array),e=>a&&e instanceof a),en=A("HTMLFormElement"),{propertyIsEnumerable:er}=Object.prototype,ei=A("RegExp"),ea=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};Y(n,(n,i)=>{let a;!1!==(a=t(n,i,e))&&(r[i]=a||n)}),Object.defineProperties(e,r)},eo=A("AsyncFunction"),es=(c="function"==typeof setImmediate,d=j(J.postMessage),c?setImmediate:d?(o=`axios@${Math.random()}`,s=[],J.addEventListener("message",({source:e,data:t})=>{e===J&&t===o&&s.length&&s.shift()()},!1),e=>{s.push(e),J.postMessage(o,"*")}):e=>setTimeout(e)),el="u">typeof queueMicrotask?queueMicrotask.bind(J):"u">typeof y&&y.nextTick||es,eu=e=>null!=e&&j(e[E]),ec={isArray:N,isArrayBuffer:P,isBuffer:L,isFormData:e=>{if(!e)return!1;if(W&&e instanceof W)return!0;let t=b(e);if(!t||t===Object.prototype||!j(e.append))return!1;let n=T(e);return"formdata"===n||"object"===n&&j(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&P(e.buffer)},isString:I,isNumber:D,isBoolean:e=>!0===e||!1===e,isObject:M,isPlainObject:U,isEmptyObject:e=>{if(!M(e)||L(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},isReadableStream:$,isRequest:Q,isResponse:K,isHeaders:G,isUndefined:R,isDate:F,isFile:B,isReactNativeBlob:e=>!!(e&&"u">typeof e.uri),isReactNative:e=>e&&"u">typeof e.getParts,isBlob:q,isRegExp:ei,isFunction:j,isStream:e=>M(e)&&j(e.pipe),isURLSearchParams:V,isTypedArray:et,isFileList:Z,forEach:Y,merge:function e(...t){let{caseless:n,skipUndefined:r}=ee(this)&&this||{},i={},a=(t,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;let o=n&&"string"==typeof a&&X(i,a)||a,s=w(i,o)?i[o]:void 0;U(s)&&U(t)?i[o]=e(s,t):U(t)?i[o]=e({},t):N(t)?i[o]=t.slice():r&&R(t)||(i[o]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||L(n)||(Y(n,a),"object"!=typeof n||N(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];er.call(n,t)&&a(n[t],t)}}return i},extend:(e,t,n,{allOwnKeys:r}={})=>(Y(t,(t,r)=>{n&&j(t)?Object.defineProperty(e,r,{__proto__:null,value:v(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,a,o;let s={};if(t=t||{},null==e)return t;do{for(a=(i=Object.getOwnPropertyNames(e)).length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=!1!==n&&b(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:T,kindOfTest:A,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return -1!==r&&r===n},toArray:e=>{if(!e)return null;if(N(e))return e;let t=e.length;if(!D(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n}
1,forEachEntry:(e,t)=>{let n;let r=(e&&e[E]).call(e);for(;(n=r.next())&&!n.done;){let r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let n;let r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:en,hasOwnProperty:w,hasOwnProp:w,hasOwnInPrototypeChain:O,getSafeProp:(e,t)=>null!=e&&O(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;let t=b(e);if(null===t&&S(e))return e;let n=Object.create(null),r=Object.create(null),i=[],a=e;for(;null!=a&&-1===i.indexOf(a);){i.push(a);let o=a===e?t:b(a);if(k(a,o,a===e))break;let s=Object.getOwnPropertyNames(a);for(let t of(Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(a)),s))x(t)||w(r,t)||(n[t]=e[t],r[t]=!0);a=o}return n},reduceDescriptors:ea,freezeMethods:e=>{ea(e,(t,n)=>{if(j(e)&&["arguments","caller","callee"].includes(n))return!1;if(j(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(e=>{e.forEach(e=>{n[e]=!0})})(N(e)?e:String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:X,global:J,isContextDefined:ee,isSpecCompliantForm:function(e){return!!(e&&j(e.append)&&"FormData"===e[_]&&e[E])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(M(e)){if(t.has(e))return;if(L(e))return e;if(!("toJSON"in e)){let r;if(t.add(e),z(e))for(let t of(r=[],e)){let e=n(t);R(e)||r.push(e)}else r=N(e)?[]:{},Y(e,(e,t)=>{let i=n(e);R(i)||(r[t]=i)});return t.delete(e),r}}return e};return n(e)},isAsyncFn:eo,isThenable:e=>e&&(M(e)||j(e))&&j(e.then)&&j(e.catch),setImmediate:es,asap:el,isIterable:eu,isSafeIterable:e=>null!=e&&O(e,E)&&eu(e)},ed=ec.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ef=e=>{let t,n,r;let i={};return e&&e.split(` 2`).forEach(function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim();let a=ec.hasOwnProp(i,t);!t||a&&ec.hasOwnProp(ed,t)||("set-cookie"===t?a?i[t].push(n):i[t]=[n]:i[t]=a?i[t]+", "+n:n)}),i},eh=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ep=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function em(e,t){return ec.isArray(e)?e.map(e=>em(e,t)):function(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}let ev=e=>em(e,eh),ey=e=>em(e,ep);function eg(e){let t=Object.create(null);return ec.forEach(e.toJSON(),(e,n)=>{t[n]=ey(e)}),t}let eb=Symbol("internals");function eE(e){return e&&String(e).trim().toLowerCase()}function e_(e){return!1===e||null==e?e:ec.isArray(e)?e.map(e_):ev(String(e))}let ew=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function ex(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}let ek=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eS(e,t,n,r,i){if(ec.isFunction(r))return r.call(this,t,n);if(i&&(t=n),ec.isString(t)){if(ec.isString(r))return -1!==t.indexOf(r);if(ec.isRegExp(r))return r.test(t)}}class eO{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=eE(t);if(!i)return;let a=ec.findKey(r,i);a&&void 0!==r[a]&&!0!==n&&(void 0!==n||!1===r[a])||(r[a||t]=e_(e))}let a=(e,t)=>ec.forEach(e,(e,n)=>i(e,n,t));if(ec.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(ec.isString(e)&&(e=e.trim())&&!ek(e))a(ef(e),t);else if(ec.isObject(e)&&ec.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!ec.isArray(t))throw TypeError("Object iterator must return a key-value pair");i=t[0],ec.hasOwnProp(n,i)?(r=n[i],n[i]=ec.isArray(r)?[...r,t[1]]:[r,t[1]]):n[i]=t[1]}a(n,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=eE(e)){let n=ec.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t)return function(e){let t;let n=Object.create(null),r=/([^\s,;
2=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=r.exec(e);)n[t[1]]=t[2];return n}(e);if(ec.isFunction(t))return t.call(this,e,n);if(ec.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eE(e)){let n=ec.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||eS(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=eE(e)){let i=ec.findKey(n,e);i&&(!t||eS(n,n[i],i,t))&&(delete n[i],r=!0)}}return ec.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||eS(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return ec.forEach(this,(r,i)=>{let a=ec.findKey(n,i);if(a){t[a]=e_(r),delete t[i];return}let o=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(i).trim();o!==i&&delete t[i],t[o]=e_(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return ec.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ec.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(` 3`)}getSetCookie(){let e=this.get("set-cookie");return ec.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){let t=Object.create(null),n=String(e),r=0,i=!1,a=!1;function o(e){let i=ex(n.slice(r,e)),a=i.indexOf("=");if(a<1)return;let o=ex(i.slice(0,a));if(!ew.test(o))return;let s=o.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;let l=ex(i.slice(a+1));t[s]=function(e){let t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let r=1;r<t;r++){let i=e.charCodeAt(r);if(34===i||92===i&&(r+=1)>=t)return e;n+=e[r]}return n}(l)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?a?a=!1:92===t?a=!0:34===t&&(i=!1):34===t?i=!0:(44===t||59===t)&&(o(e),r=e+1)}return o(n.length),t}(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[eb]=this[eb]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=eE(e);t[r]||(function(e,t){let n=ec.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return ec.isArray(e)?e.forEach(r):r(e),this}}eO.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ec.reduceDescriptors(eO.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ec.freezeMethods(eO);let eT="[REDACTED ****]";function eA(e){try{return String(e)}catch{return""}}class eC extends Error{static from(e,t,n,r,i,a){let o=e.message;!o&&ec.isArray(e.errors)&&e.errors.length&&(o=e.errors.map(e=>{try{return e&&e.message?eA(e.message):eA(e)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError");let s=new eC(o,t||e.code,n,r,i);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),a&&Object.assign(s,a),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&ec.hasOwnProp(e,"redact")?e.redact:void 0,n=ec.isArray(t)&&t.length>0?function(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{let t;if(null===e||"object"!=typeof e||ec.isBuffer(e))return e;if(-1===r.indexOf(e)){if(e instanceof eO&&(e=e.toJSON()),r.push(e),ec.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);ec.isUndefined(r)||(t[n]=r)});else{if(!ec.isPlainObject(e)&&function(e){if(ec.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(ec.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;for(let[r,a]of(t=Object.create(null),Object.entries(e))){let e=n.has(r.toLowerCase())?eT:i(a);ec.isUndefined(e)||(t[r]=e)}}return r.pop(),t}};return i(e)}(e,t):ec.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}}eC.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",eC.ERR_BAD_OPTION="ERR_BAD_OPTION",eC.ECONNABORTED="ECONNABORTED",eC.ETIMEDOUT="ETIMEDOUT",eC.ECONNREFUSED="ECONNREFUSED",eC.ERR_NETWORK="ERR_NETWORK",eC.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",eC.ERR_DEPRECATED="ERR_DEPRECATED",eC.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",eC.ERR_BAD_REQUEST="ERR_BAD_REQUEST",eC.ERR_CANCELED="ERR_CANCELED",eC.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",eC.ERR_INVALID_URL="ERR_INVALID_URL",eC.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let eN=eC;function eR(e){return ec.isPlainObject(e)||ec.isArray(e)}function eL(e){return ec.endsWith(e,"[]")?e.slice(0,-2):e}function eP(e,t,n){return e?e.concat(t).map(function(e,t){return e=eL(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let eI=ec.toFlatObject(ec,{},null,function(e){return/^is[A-Z]/.test(e)});
3function ej(e,t,n){if(!ec.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let r=(e,t)=>{let r=ec.getSafeProp(n,e);return ec.isUndefined(r)?t:r},i=r("metaTokens",!0),a=r("visitor")||p,o=r("dots",!1),s=r("indexes",!1),l=r("Blob")||"u">typeof Blob&&Blob,u=r("maxDepth",100),c=l&&ec.isSpecCompliantForm(t),d=[];if(!ec.isFunction(a))throw TypeError("visitor must be a function");function f(e){if(null===e)return"";if(ec.isDate(e))return e.toISOString();if(ec.isBoolean(e))return e.toString();if(!c&&ec.isBlob(e))throw new eN("Blob is not supported. Use a Buffer instead.");if(ec.isArrayBuffer(e)||ec.isTypedArray(e)){if(c&&"function"==typeof l)return new l([e]);throw new eN("Blob is not supported. Use a Buffer instead.",eN.ERR_NOT_SUPPORT)}return e}function h(e){if(e>u)throw new eN("Object is too deeply nested ("+e+" levels). Max depth: "+u,eN.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,n,r){let a=e;if(ec.isReactNative(t)&&ec.isReactNativeBlob(e))return t.append(eP(r,n,o),f(e)),!1;if(e&&!r&&"object"==typeof e){if(ec.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=function(e,t){if(u===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,t){if(!ec.isObject(t))return t;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(t),h(1+n.length-1),t})}(e,0);else{var l;if(ec.isArray(e)&&(l=e,ec.isArray(l)&&!l.some(eR))||(ec.isFileList(e)||ec.endsWith(n,"[]"))&&(a=ec.toArray(e)))return n=eL(n),a.forEach(function(e,r){ec.isUndefined(e)||null===e||t.append(!0===s?eP([n],r,o):null===s?n:n+"[]",f(e))}),!1}}return!!eR(e)||(t.append(eP(r,n,o),f(e)),!1)}let m=Object.assign(eI,{defaultVisitor:p,convertValue:f,isVisitable:eR});if(!ec.isObject(e))throw TypeError("data must be an object");return function e(n,r,i=0){if(!ec.isUndefined(n)){if(h(i),-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),ec.forEach(n,function(n,o){(!(ec.isUndefined(n)||null===n)&&a.call(t,n,ec.isString(o)?o.trim():o,r,m))===!0&&e(n,r?r.concat(o):[o],i+1)}),d.pop()}}(e),t}function eD(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function eM(e,t){this._pairs=[],e&&ej(e,this,t)}let eU=eM.prototype;function eF(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function eB(e,t,n){let r;if(!t)return e;e=e||"";let i=ec.isFunction(n)?{serialize:n}:n,a=ec.getSafeProp(i,"encode")||eF,o=ec.getSafeProp(i,"serialize");if(r=o?o(t,i):ec.isURLSearchParams(t)?t.toString():new eM(t,i).toString(a)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}eU.append=function(e,t){this._pairs.push([e,t])},eU.toString=function(e){let t=e?t=>e.call(this,t,eD):eD;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let eq=Symbol("internals");function eZ(e){return e?e.length:0}function ez(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function eH(e,t){let n=e.handlers,r=eZ(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()),t.handlersLength=r}class eW{constructor(){this.handlers=[],this[eq]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let r={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},i=this[eq];null==this.handlers&&(this.handlers=[]),eH(this,i);let a=i.nextId++;return this.handlers.push(r),i.handlerEntries.set(a,{handler:r,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,a}eject(e){let t=this[eq];eH(this,t);let n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(ez(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],eH(this,this[eq]))}forEach(e){let t=this[eq];eH(this,t),t.iterationDepth++;
3try{ec.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(eH(this,t),ez(this.handlers),t.handlersLength=eZ(this.handlers))}}}let eV={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},e$="u">typeof URLSearchParams?URLSearchParams:eM,eQ="u">typeof FormData?FormData:null,eK="u">typeof Blob?Blob:null,eG="u">typeof window&&"u">typeof document,eY="object"==typeof navigator&&navigator||void 0,eX=eG&&(!eY||0>["ReactNative","NativeScript","NS"].indexOf(eY.product)),eJ="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,e0=eG&&window.location.href||"http://localhost",e1={...f,isBrowser:!0,classes:{URLSearchParams:e$,FormData:eQ,Blob:eK},protocols:["http","https","file","blob","url","data"]};function e2(e){if(e>100)throw new eN("FormData field is too deeply nested ("+e+" levels). Max depth: 100",eN.ERR_FORM_DATA_DEPTH_EXCEEDED)}function e4(e){if(ec.isFormData(e)&&ec.isFunction(e.entries)){let t={};return ec.forEachEntry(e,(e,n)=>{(function e(t,n,r,i){e2(i);let a=t[i++];if("__proto__"===a)return!0;let o=Number.isFinite(+a),s=i>=t.length;return a=!a&&ec.isArray(r)?r.length:a,s?ec.hasOwnProp(r,a)?r[a]=ec.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n:(ec.hasOwnProp(r,a)&&ec.isObject(r[a])||(r[a]=[]),e(t,n,r[a],i)&&ec.isArray(r[a])&&(r[a]=function(e){let t,n;let r={},i=Object.keys(e),a=i.length;for(t=0;t<a;t++)r[n=i[t]]=e[n];return r}(r[a]))),!o})(function(e){let t;let n=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(t=r.exec(e));)e2(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null}let e3=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),e5=(e,t)=>null!=e&&ec.hasOwnProp(e,t)?e[t]:void 0,e6={transitional:eV,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n;let r=t.getContentType()||"",i=r.indexOf("application/json")>-1,a=ec.isObject(e);if(a&&ec.isHTMLForm(e)&&(e=new FormData(e)),ec.isFormData(e))return i?JSON.stringify(e4(e)):e;if(ec.isArrayBuffer(e)||ec.isBuffer(e)||ec.isStream(e)||ec.isFile(e)||ec.isBlob(e)||ec.isReadableStream(e))return e;if(ec.isArrayBufferView(e))return e.buffer;if(ec.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();
3if(a){let t=e5(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return ej(e,new e1.classes.URLSearchParams,{visitor:function(e,t,n,r){return e1.isNode&&ec.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=ec.isFileList(e))||r.indexOf("multipart/form-data")>-1){let r=e5(this,"env"),i=r&&r.FormData;return ej(n?{"files[]":e}:e,i&&new i,t)}}return a||i?(t.setContentType("application/json",!1),function(e,t,n){if(ec.isString(e))try{return(0,JSON.parse)(e),ec.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=e5(this,"transitional")||e6.transitional,n=t&&t.forcedJSONParsing,r=e5(this,"responseType"),i="json"===r;if(ec.isResponse(e)||ec.isReadableStream(e))return e;if(e&&ec.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,e5(this,"parseReviver"))}catch(e){if(n)throw"SyntaxError"===e.name?eN.from(e,eN.ERR_BAD_RESPONSE,this,null,e5(this,"response")):e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:e1.classes.FormData,Blob:e1.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function e8(e,t){let n=this||e6,r=t||n,i=eO.from(r.headers),a=r.data;return ec.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function e9(e){return!!(e&&e.__CANCEL__)}ec.forEach(e3,e=>{e6.headers[e]={}});class e7 extends eN{constructor(e,t,n){super(e??"canceled",eN.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}}function te(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new eN("Request failed with status code "+n.status,n.status>=400&&n.status<500?eN.ERR_BAD_REQUEST:eN.ERR_BAD_RESPONSE,n.config,n.request,n))}let tt=/[\t\n\r]/g;function tn(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t).replace(tt,"")}function tr(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}let ti=(e,t,n=3)=>{let r=0,i=function(e,t){let n=Array(e=e||10),r=Array(e),i=0,a=0,o;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),u=r[a];o||(o=l),n[i]=s,r[i]=l;let c=a,d=0;for(;c!==i;)d+=n[c++],c%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),l-o<t)return;let f=u&&l-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&(clearTimeout(a),a=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||(a=setTimeout(()=>{a=null,o(i)},r-s)))},()=>i&&o(i),(...e)=>o(e)]}(n=>{if(!n||!ec.isNumber(n.loaded))return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=Math.max(0,null!=o?Math.min(a,o):a),l=Math.max(0,s-r),u=i(l);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o?(o-s)/u:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0})},n)},ta=(e,t)=>{let n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},to=(e,t=ec.asap)=>(...n)=>t(()=>e(...n)),ts=e1.hasStandardBrowserEnv?(l=new URL(e1.origin),u=e1.navigator&&/(msie|trident)/i.test(e1.navigator.userAgent),e=>(e=new URL(e,e1.origin),l.protocol===e.protocol&&l.host===e.host&&(u||l.port===e.port))):()=>!0,tl=e1.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>"u")return;let s=[`${e}=${encodeURIComponent(t)}`];ec.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ec.isString(r)&&s.push(`path=${r}`),ec.isString(i)&&s.push(`domain=${i}`),!0===a&&s.push("secure"),ec.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;let t=document.cookie.split(";");for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,""),i=r.indexOf("=");if(-1!==i&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},tu=/^https?:(?!\/\/)/i;function tc(e,t){if("string"==typeof e){let n=tn(e);if(tu.test(n))throw new eN(`Invalid URL ${JSON.stringify(function(e){var t;let n=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${eT}@`),r=n.indexOf("#"),i=(-1===r?n:n.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${eT}`);return -1===r?i:`${i}#${(t=n.slice(r+1))&&t.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${eT}`)}`}(n))}: missing "//" after protocol`,eN.ERR_INVALID_URL,t)}}function td(e,t,n,r){tc(t,r);let i=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(i||!1===n)?(tc(e,r),function(e,t){if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}(e,t)):t}let tf=e=>e instanceof eO?{...e}:e,th=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function tp(e,t){e=e||{},t=t||{};let n=Object.create(null);function r(e,t,n,r){return ec.isPlainObject(e)&&ec.isPlainObject(t)?ec.merge.call({caseless:r},e,t):ec.isPlainObject(t)?ec.merge({},t):ec.isArray(t)?t.slice():t}function i(e,t,n,i){return ec.isUndefined(t)?ec.isUndefined(e)?void 0:r(void 0,e,n,i):r(e,t,n,i)}function a(e,t){if(!ec.isUndefined(t))return r(void 0,t)}function o(e,t){return ec.isUndefined(t)?ec.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,a){return ec.hasOwnProp(t,a)?r(n,i):ec.hasOwnProp(e,a)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutErrorMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBo
3dyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(tf(e),tf(t),n,!0)};return ec.forEach(th({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=ec.hasOwnProp(l,r)?l[r]:i,o=a(ec.hasOwnProp(e,r)?e[r]:void 0,ec.hasOwnProp(t,r)?t[r]:void 0,r);ec.isUndefined(o)&&a!==s||(n[r]=o)}),ec.hasOwnProp(t,"validateStatus")&&ec.isUndefined(t.validateStatus)&&!1===function(n){let r=ec.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!ec.isUndefined(r)){if(!ec.isPlainObject(r))return;if(ec.hasOwnProp(r,n))return r[n]}let i=ec.hasOwnProp(e,"transitional")?e.transitional:void 0;if(ec.isPlainObject(i)&&ec.hasOwnProp(i,n))return i[n]}("validateStatusUndefinedResolves")&&(ec.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}let tm=["content-type","content-length"],tv=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function ty(e){let t=tp({},e),n=e=>ec.hasOwnProp(t,e)?t[e]:void 0,r=n("data"),i=n("withXSRFToken"),a=n("xsrfHeaderName"),o=n("xsrfCookieName"),s=n("headers"),l=n("auth"),u=n("baseURL"),c=n("allowAbsoluteUrls"),d=n("url");if(t.headers=s=eO.from(s),t.url=eB(td(u,d,c,t),n("params"),n("paramsSerializer")),l){let t=ec.getSafeProp(l,"username")||"",n=ec.getSafeProp(l,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(n?tv(n):"")))}catch(t){throw eN.from(t,eN.ERR_BAD_OPTION_VALUE,e)}}if(ec.isFormData(r)){let e=ec.getSafeProp(r,"getHeaders");e1.hasStandardBrowserEnv||e1.hasStandardBrowserWebWorkerEnv||ec.isReactNative(r)?s.setContentType(void 0):ec.isFunction(e)&&function(e,t,n){if("content-only"!==n){e.set(t);return}Object.entries(t||{}).forEach(([t,n])=>{tm.includes(t.toLowerCase())&&e.set(t,n)})}(s,e.call(r),n("formDataHeaderPolicy"))}if(e1.hasStandardBrowserEnv&&(ec.isFunction(i)&&(i=i(t)),!0===i||null==i&&ts(t.url))){let e=a&&o&&tl.read(o);e&&s.set(a,e)}return t}let tg="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r=ty(e),i=r.data,a=eO.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:l}=r,u,c,d,f,h,p;function m(){f&&f(),h&&h(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;function y(i){if(!v)return;if(0===v.status&&"file"!==(tr(tn(r.url))||tr(e1.origin))&&!(v.responseURL&&v.responseURL.startsWith("file:"))){n(new eN("Request aborted",eN.ECONNABORTED,e,v)),m(),v=null;return}try{i?p&&p(i):h&&h()}catch(e){setTimeout(()=>{throw e})}if(!v)return;let a=eO.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());te(function(e){t(e),m()},function(e){n(e),m()},{data:o&&"text"!==o&&"json"!==o?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:a,config:e,request:v}),v=null}v.open(r.method.toUpperCase(),r.url,!0),v.timeout=r.timeout,"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&v.responseURL.startsWith("file:"))&&setTimeout(y)},v.onabort=function(){v&&(n(new eN("Request aborted",eN.ECONNABORTED,e,v)),m(),v=null)},v.onerror=function(t){let r=new eN(t&&t.message?t.message:"Network Error",eN.ERR_NETWORK,e,v);r.event=t||null,n(r),m(),v=null},v.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded",i=r.transitional||eV;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new eN(t,i.clarifyTimeoutError?eN.ETIMEDOUT:eN.ECONNABORTED,e,v)),m(),v=null},void 0===i&&a.setContentType(null),"setRequestHeader"in v&&ec.forEach(eg(a),function(e,t){v.setRequestHeader(t,e)}),ec.isUndefined(r.withCredentials)||(v.withCredentials=!!r.withCredentials),o&&"json"!==o&&(v.responseType=r.responseType),l&&([d,h,p]=ti(l,!0),v.addEventListener("progress",d)),s&&v.upload&&([c,f]=ti(s),v.upload.addEventListener("progress",c),v.upload.addEventListener("loadend",f)),(r.cancelToken||r.signal)&&(u=t=>{v&&(n(!t||t.type?new e7(null,e,v):t),v.abort(),m(),v=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));let g=tr(r.url);if(g&&!e1.protocols.includes(g)){n(new eN("Unsupported protocol "+g+":",eN.ERR_BAD_REQUEST,e)),m();return}v.send(i||null)})},tb=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof eN?t:new e7(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new eN(`timeout of ${t}ms exceeded`,eN.ETIMEDOUT))},t),o=()=>
3{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>{if(!r){if(e.aborted){i.call(e);return}e.addEventListener("abort",i,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>ec.asap(o),s},tE=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},t_=async function*(e,t){for await(let n of tw(e))yield*tE(n,t)},tw=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},tx=(e,t,n,r)=>{let i=t_(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},tk=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,tS=(e,t,n)=>t+2<n&&tk(e.charCodeAt(t+1))&&tk(e.charCodeAt(t+2)),tO=e=>e<=57?e-48:(223&e)-55,tT=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,tA=e=>9===e||10===e||12===e||13===e||32===e,tC=e=>{let t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)},tN=e=>{let t=e.length,n=0;return t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor((t-n)*3/4)},tR=e=>{let t=e.length,n=0,r=0,i=!1;for(let a=0;a<t;a++){let o=e.charCodeAt(a);if(37===o&&tS(e,a,t)&&(o=16*tO(e.charCodeAt(a+1))+tO(e.charCodeAt(a+2)),a+=2),!tA(o)){if(61===o){r++;continue}if(!tT(o)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?tN(e):tC(n)},tL=(e,t)=>{if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let n=e.indexOf(",");if(n<0)return 0;let r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let a=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(37===n&&tS(i,e,t))a+=1,e+=2;else if(n<128)a+=1;else if(n<2048)a+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(a+=4,e++):a+=3}else a+=3}return a},tP="1.20.0",tI={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:tj}=ec,tD=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),tM=e=>{if(!ec.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},tU=(e,...t)=>{try{return!!e(...t)}catch{return!1}},tF=e=>{let t=e.indexOf("://"),n=e;return -1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},tB=e=>{let t;let n=void 0!==ec.global&&null!==ec.global?ec.global:globalThis,{ReadableStream:r,TextEncoder:i}=n,{fetch:a,Request:o,Response:s}=e=ec.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),l=a?tj(a):"function"==typeof fetch,u=tj(o),c=tj(s);if(!l)return!1;let d=l&&tj(r),f=l&&("function"==typeof i?(t=new i,e=>t.encode(e)):async e=>new Uint8Array(await new o(e).arrayBuffer())),h=u&&d&&tU(()=>{let e=!1,t=new o(e1.origin,{body:new r,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),p=c&&d&&tU(()=>ec.isReadableStream(new s("").body)),m={stream:p&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{m[e]||(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new eN(`Response type '${e}' is not supported`,eN.ERR_NOT_SUPPORT,n)})});let v=async e=>null==e?0:ec.isBlob(e)?e.size:ec.isSpecCompliantForm(e)?(await new o(e1.origin,{method:"POST",body:e}).arrayBuffer()).byteLength:ec.isArrayBufferView(e)||ec.isArrayBuffer(e)?e.byteLength:(ec.isURLSearchParams(e)&&(e+=""),ec.isString(e))?(await f(e)).byteLength:void 0,y=async(e,t)=>ec.toFiniteNumber(e.getContentLength())??v(t);return async e=>{let{url:t,method:n,data:r,signal:l,cancelToken:c,timeout:f,onDownloadProgress:g,onUploadProgress:b,responseType:E,headers:_,withCredentials:w="same-origin",fetchOptions:x,maxContentLength:k,maxBodyLength:S,maxRedirects:O}=ty(e),T=ec.isNumber(k)&&k>-1,A=ec.isNumber(S)&&S>-1,C=a||fetch;E=E?(E+"").toLowerCase():"text";
3let N=tb([l,c&&c.toAbortSignal()],f),R=null,L=N&&N.unsubscribe&&(()=>{N.unsubscribe()}),P,I=null,j=()=>new eN("Request body larger than maxBodyLength limit",eN.ERR_BAD_REQUEST,e,R);try{let a,l;let c=(l="auth",ec.hasOwnProp(e,l)?e[l]:void 0);if(c){let e=ec.getSafeProp(c,"username")||"",t=ec.getSafeProp(c,"password")||"";a={username:e,password:t}}if(tF(t)){let e=new URL(t,e1.origin);if(!a&&(e.username||e.password)){let t=tM(e.username),n=tM(e.password);a={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",t=e.href)}if(a&&(_.delete("authorization"),_.set("Authorization","Basic "+btoa(tD((a.username||"")+":"+(a.password||""))))),T&&"string"==typeof t&&t.startsWith("data:")&&function(e){let t="string"==typeof e?e.indexOf("#"):-1;return tL(-1===t?e:e.slice(0,t),tR)}(t)>k)throw new eN("maxContentLength size of "+k+" exceeded",eN.ERR_BAD_RESPONSE,e,R);if(A&&"get"!==n&&"head"!==n){let e=await v(r);if("number"==typeof e&&isFinite(e)&&(P=e,e>S))throw j()}let f=A&&(ec.isReadableStream(r)||ec.isStream(r)),D=(e,t,n)=>tx(e,65536,e=>{if(A&&e>S)throw I=j();t&&t(e)},n);if(h&&"get"!==n&&"head"!==n&&(b||f)){if(P=P??await y(_,r),0!==P||f){let e=new o(t,{method:"POST",body:r,duplex:"half"}),n;if(ec.isFormData(r)&&(n=e.headers.get("content-type"))&&_.setContentType(n),e.body){let[t,n]=b&&ta(P,ti(to(b)))||[];r=D(e.body,t,n)}}}else if(f&&!u&&d&&"get"!==n&&"head"!==n)r=D(r);else if(f&&u&&!h&&"get"!==n&&"head"!==n)throw new eN("Stream request bodies are not supported by the current fetch implementation",eN.ERR_NOT_SUPPORT,e,R);ec.isString(w)||(w=w?"include":"omit");let M=u&&"credentials"in o.prototype;if(ec.isFormData(r)){let e=_.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&_.delete("content-type")}_.set("User-Agent","axios/"+tP,!1);let U=null==x?x:Object.assign(Object.create(null),x);U&&(delete U.body,delete U.headers,delete U.method,delete U.signal,delete U.duplex,delete U.credentials);let F=Object.assign(Object.create(null),U,{signal:N,method:n.toUpperCase(),headers:eg(_.normalize()),body:r,duplex:"half",credentials:M?w:void 0});u&&(ec.forEach(tI,(e,t)=>{void 0===F[t]&&(F[t]=e)}),void 0===F.signal&&(F.signal=null),void 0===F.body&&(F.body=null)),0===O&&(F.redirect="manual",U&&(U.redirect="manual")),R=u&&new o(t,F);let B=await (u?C(R,U):C(t,F)),q=eO.from(B.headers);if(T){let t=ec.toFiniteNumber(q.getContentLength());if(null!=t&&t>k)throw new eN("maxContentLength size of "+k+" exceeded",eN.ERR_BAD_RESPONSE,e,R)}let Z=p&&("stream"===E||"response"===E);if(p&&B.body&&(g||T||Z&&L)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=B[e]});let n=ec.toFiniteNumber(q.getContentLength()),[r,i]=g&&ta(n,ti(to(g),!0))||[];B=new s(tx(B.body,65536,t=>{if(T&&t>k)throw new eN("maxContentLength size of "+k+" exceeded",eN.ERR_BAD_RESPONSE,e,R);r&&r(t)},()=>{i&&i(),L&&L()}),t)}E=E||"text";let z=await m[ec.findKey(m,E)||"text"](B,e);if(T&&!p&&!Z){let t;if(null!=z&&("number"==typeof z.byteLength?t=z.byteLength:"number"==typeof z.size?t=z.size:"string"==typeof z&&(t="function"==typeof i?new i().encode(z).byteLength:z.length)),"number"==typeof t&&t>k)throw new eN("maxContentLength size of "+k+" exceeded",eN.ERR_BAD_RESPONSE,e,R)}return!Z&&L&&L(),await new Promise((t,n)=>{te(t,n,{data:z,headers:eO.from(B.headers),status:B.status,statusText:B.statusText,config:e,request:R})})}catch(t){if(L&&L(),N&&N.aborted&&N.reason instanceof eN){let n=N.reason;throw n.config=e,R&&(n.request=R),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(I)throw R&&!I.request&&(I.request=R),I;if(t instanceof eN)throw R&&!t.request&&(t.request=R),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new eN("Network Error",eN.ERR_NETWORK,e,R,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw eN.from(t,t&&t.code,e,R,t&&t.response)}}},tq=new Map,tZ=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,l,u=tq;for(;o--;)s=a[o],void 0===(l=u.get(s))&&u.set(s,l=o?new Map:tB(t)),u=l;return l};tZ();let tz={http:null,xhr:tg,fetch:{get:tZ}};
3ec.forEach(tz,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let tH=e=>`- ${e}`,tW=e=>ec.isFunction(e)||null===e||!1===e,tV=function(e,t){let n,r;let{length:i}=e=ec.isArray(e)?e:[e],a={};for(let o=0;o<i;o++){let i;if(r=n=e[o],!tW(n)&&void 0===(r=tz[(i=String(n)).toLowerCase()]))throw new eN(`Unknown adapter '${i}'`);if(r&&(ec.isFunction(r)||(r=r.get(t))))break;a[i||"#"+o]=r}if(!r){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new eN("There is no suitable adapter to dispatch the request "+(i?e.length>1?`since : 4`+e.map(tH).join(` 5`):" "+tH(e[0]):"as no adapter specified"),eN.ERR_NOT_SUPPORT)}return r};function t$(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new e7(null,e)}function tQ(e){let t=ec.toSafeFlatObject(e);return t$(t),t.headers=eO.from(ec.getSafeProp(t,"headers")),t.data=e8.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),tV(t.adapter||e6.adapter,t)(t).then(function(e){t$(t),t.response=e;try{e.data=e8.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=eO.from(e.headers),e},function(e){if(!e9(e)&&(t$(t),e&&e.response)){t.response=e.response;try{e.response.data=e8.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=eO.from(e.response.headers)}return Promise.reject(e)})}let tK={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tK[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let tG={};tK.transitional=function(e,t,n){function r(e,t){return"[Axios v"+tP+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,a)=>{if(!1===e)throw new eN(r(i," has been removed"+(t?" in "+t:"")),eN.ERR_DEPRECATED);return t&&!tG[i]&&(tG[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,a)}},tK.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let tY={assertOptions:function(e,t,n){if("object"!=typeof e||null===e)throw new eN("options must be an object",eN.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=void 0===t||o(t,a,e);if(!0!==n)throw new eN("option "+a+" must be "+n,eN.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new eN("Unknown option "+a,eN.ERR_BAD_OPTION)}},validators:tK},tX=tY.validators;class tJ{constructor(e){this.defaults=e||{},this.interceptors={request:new eW,response:new eW}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack,r="";if("string"==typeof n){let e=n.indexOf(` 6`);r=-1===e?"":n.slice(e+1)}if(e.stack){if(r){let t=r.indexOf(` 7`),n=-1===t?-1:r.indexOf(` 8`,t+1),i=-1===n?"":r.slice(n+1);String(e.stack).endsWith(i)||(e.stack+=` 9`+r)}}else e.stack=r}catch{}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:n,paramsSerializer:r,headers:i}=t=tp(this.defaults,t);void 0!==n&&tY.assertOptions(n,{silentJSONParsing:tX.transitional(tX.boolean),forcedJSONParsing:tX.transitional(tX.boolean),clarifyTimeoutError:tX.transitional(tX.boolean),legacyInterceptorReqResOrdering:tX.transitional(tX.boolean),advertiseZstdAcceptEncoding:tX.transitional(tX.boolean),validateStatusUndefinedResolves:tX.transitional(tX.boolean)},!1),null!=r&&(ec.isFunction(r)?t.paramsSerializer={serialize:r}:tY.assertOptions(r,{encode:tX.function,serialize:tX.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tY.assertOptions(t,{baseUrl:tX.spelling("baseURL"),withXsrfToken:tX.spelling("withXSRFToken")},!0),t.method=(ec.getSafeProp(t,"method")||ec.getSafeProp(this.defaults,"method")||"get").toLowerCase();let a=i&&ec.merge(i.common,i[t.method]);
9i&&ec.forEach(e3.concat("common"),e=>{delete i[e]}),t.headers=eO.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;let n=t.transitional||eV;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let l=[];this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,c=0,d;if(!s){let e=[tQ.bind(this),void 0];for(e.unshift(...o),e.push(...l),d=e.length,u=Promise.resolve(t);c<d;)u=u.then(e[c++],e[c++]);return u}d=o.length;let f=t;for(;c<d;){let e=o[c++],t=o[c++];try{f=e?e(f):f}catch(e){if(!t){u=Promise.reject(e);break}try{let n=t.call(this,e);ec.isThenable(n)&&(u=Promise.resolve(n).then(()=>tQ.call(this,f)))}catch(e){u=Promise.reject(e)}break}}if(!u)try{u=tQ.call(this,f)}catch(e){u=Promise.reject(e)}for(c=0,d=l.length;c<d;)u=u.then(l[c++],l[c++]);return u}getUri(e){return eB(td((e=tp(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}ec.forEach(["delete","get","head","options"],function(e){tJ.prototype[e]=function(t,n){return this.request(tp(n||{},{method:e,url:t,data:n&&ec.hasOwnProp(n,"data")?n.data:void 0}))}}),ec.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,i){return this.request(tp(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}tJ.prototype[e]=t(),"query"!==e&&(tJ.prototype[e+"Form"]=t(!0))});class t0{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;let r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new e7(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new t0(function(t){e=t}),cancel:e}}}let t1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
9alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(t1).forEach(([e,t])=>{void 0===t1[t]&&(t1[t]=e)});let t2=function e(t){let n=new tJ(t),r=v(tJ.prototype.request,n);return ec.extend(r,tJ.prototype,n,{allOwnKeys:!0}),ec.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(tp(t,n))},r}(e6);function t4(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,m.useRef)(null),{triggerOnce:n=!1,...r}=e,[i,a]=(0,m.useState)(!1);return(0,m.useEffect)(()=>{let e=t.current;if(!e)return;let i=new IntersectionObserver(t=>{let[r]=t,o=r.isIntersecting;a(o),o&&n&&i.unobserve(e)},r);return i.observe(e),()=>{i.disconnect()}},[t,n,r]),[t,i]}function t3(){let[e,t]=(0,m.useState)(!1);return(0,m.useEffect)(()=>(t(!0),()=>{t(!1)}),[]),e}function t5(e){let[t,n]=(0,m.useState)(0),r=(0,m.useRef)(e);return r.current=e,{currentPage:t,goToNextPage:(0,m.useCallback)(()=>{n(e=>{let t=e+1;return t<r.current?t:e})},[]),goToPreviousPage:(0,m.useCallback)(()=>{n(e=>{let t=e-1;return t>=0?t:e})},[]),goToPage:(0,m.useCallback)(e=>{e>=0&&e<r.current&&n(e)},[])}}t2.Axios=tJ,t2.CanceledError=e7,t2.CancelToken=t0,t2.isCancel=e9,t2.VERSION=tP,t2.toFormData=ej,t2.AxiosError=eN,t2.Cancel=t2.CanceledError,t2.all=function(e){return Promise.all(e)},t2.spread=function(e){return function(t){return e.apply(null,t)}},t2.isAxiosError=function(e){return ec.isObject(e)&&!0===e.isAxiosError},t2.mergeConfig=tp,t2.AxiosHeaders=eO,t2.formToJSON=e=>e4(ec.isHTMLForm(e)?new FormData(e):e),t2.getAdapter=tV,t2.HttpStatusCode=t1,t2.default=t2;let t6=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{measureTargetRef:n,propertyToIncrement:r,velocity:i,direction:a,scrollOrientation:o,base:s,mobile:l,isBackgroundImage:u,startAtBase:c}={velocity:.2,direction:"top",scrollOrientation:"vertical",base:90,mobile:!1,isBackgroundImage:!1,startAtBase:!1,...t},d=r;d||("top"===a||"bottom"===a?d=u?"backgroundPositionY":"top":("left"===a||"right"===a)&&(d=u?"backgroundPositionX":"left")),(0,m.useEffect)(()=>{let t=0,r,u=()=>{if(!(typeof window>"u")){if(window.innerWidth>=h.L||l){let r;let l=e.current,u=(null==n?void 0:n.current)||l;if(!l||!u)return;let f=parseInt(window.getComputedStyle(u).getPropertyValue("vertical"===o?"top":"left"))||0;r=("vertical"===o?u.getBoundingClientRect().top-f:u.getBoundingClientRect().left-f)-s;let h="top"===a||"left"===a?1:-1;if(c&&r<0)return;let p=r*i*h;t+=(p-t)*.1;let m=l.style;m[d]="".concat(t,"px")}else e.current&&(e.current.style[d]="")}},f=()=>{cancelAnimationFrame(r),r=requestAnimationFrame(u)};return u(),window.addEventListener("scroll",f),()=>{window.removeEventListener("scroll",f),cancelAnimationFrame(r)}},[e,n,d,i,a,o,s,l,u,c])},t8=(e,t=["xxl","xl","l","m","s","xs"])=>{var n;let r=Object.entries({xxl:h.XXL,xl:h.XL,l:h.L,m:h.M,s:h.S,xs:0}).filter(([e])=>t.includes(e)).sort((e,t)=>t[1]-e[1]);for(let[t,n]of r)if(e>=n)return t;return(null==(n=r.pop())?void 0:n[0])??"xxs"};function t9(){let[e,t]=(0,m.useState)({width:0,height:0});return(0,m.useEffect)(()=>{let e=()=>{setTimeout(()=>{t({width:!(typeof navigator>"u")&&navigator.vendor&&navigator.vendor.indexOf("Apple")>-1&&navigator.userAgent&&-1===navigator.userAgent.indexOf("CriOS")&&-1===navigator.userAgent.indexOf("FxiOS")?document.documentElement.clientWidth:window.innerWidth,height:window.innerHeight})},200)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}function t7(e){let{width:t}=t9(),[n,r]=(0,m.useState)("xs");return(0,m.useEffect)(()=>
9{if(t>0){let n=t8(t);if(e&&e.length>0&&!e.includes(n)){let t=["xs","s","m","l","xl","xxl"],r=t.indexOf(n),i=e[0],a=Math.abs(t.indexOf(i)-r);for(let n of e){let e=Math.abs(t.indexOf(n)-r);e<a&&(a=e,i=n)}n=i}r(n)}},[t,e]),n}function ne(e,t){return Array.isArray(e)?void 0!==e[t]?" "+e[t]:"":e?" "+e:""}function nt(e,t){return Array.isArray(t)?void 0!==t[e]?" "+t[e]:"":t?" "+t:""}function nn(e,t){return Array.isArray(t)?t[e]?t[e]:t[0]?t[0]:"":t||""}function nr(e,t){let n=t??0;return Array.isArray(e)?e[n]?e[n]:e[0]?e[0]:"":e||""}function ni(e,t){return"object"==typeof t&&null!==t&&!Array.isArray(t)&&e in t}function na(e){return null==e||void 0===e}function no(e){if(na(e)||!1===e||Array.isArray(e)&&0===e.length)return!0;switch(typeof e){case"number":return isNaN(e)||0===e;case"string":return""===e.trim();case"object":return e instanceof Date?isNaN(e.getTime()):e instanceof RegExp?"(?:)"===e.source:!na(e)&&0===Object.keys(e).length}return!1}let ns=e=>!!(null!=e&&e.replaceAll(" ","").match(/^#(?:(?:[\da-f]{3}){1,2}|(?:[\da-f]{4}){1,2})$/i));function nl(e){return"string"==typeof e}function nu(e){return function e(t,n){let r=[];return nl(t)?t.trim().split(" ").forEach(e=>{let t=e.trim();no(t)||r.push(t)}):Array.isArray(t)?n<10&&t.forEach(t=>{let i=e(t,n+1);no(i)||r.push(i)}):na(t)||"boolean"==typeof t||Object.keys(t).forEach(e=>{t[e]&&e.trim().split(" ").forEach(e=>{let t=e.trim();no(t)||r.push(t)})}),r.join(" ")}(e,1)}function nc(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}},3163:function(e,t,n){"use strict";let r,i,a,o,s,l;n.d(t,{zx:function(){return g},lv:function(){return d},lm:function(){return p},u_:function(){return S},xv:function(){return O}});var u=n(7437),c=((r=c||{}).LEFT="btn-icon-left",r.RIGHT="btn-icon-right",r),d=((i=d||{}).TINY="btn-tiny",i.NORMAL="",i.FULL_WIDTH="btn-full-width",i),f=((a=f||{}).PRIMARY="btn-primary",a.SECONDARY="btn-secondary",a.TEXT="btn-text",a.NONE="",a),h=((o=h||{}).COLOR_1="btn-color-1",o.COLOR_2="btn-color-2",o.COLOR_3="btn-color-3",o.COLOR_4="btn-color-4",o.COLOR_5="btn-color-5",o.COLOR_6="btn-color-6",o.COLOR_7="btn-color-7",o.COLOR_8="btn-color-8",o.COLOR_9="btn-color-9",o.COLOR_10="btn-color-10",o.SUCCESS="btn-success",o.NONE="",o),p=((s=p||{}).PRIMARY_1="primary_1",s.PRIMARY_2="primary_2",s.PRIMARY_3="primary_3",s.PRIMARY_4="primary_4",s.PRIMARY_5="primary_5",s.PRIMARY_6="primary_6",s.PRIMARY_7="primary_7",s.PRIMARY_8="primary_8",s.PRIMARY_9="primary_9",s.PRIMARY_10="primary_10",s.SECONDARY_1="secondary_1",s.SECONDARY_2="secondary_2",s.SECONDARY_3="secondary_3",s.SECONDARY_4="secondary_4",s.SECONDARY_5="secondary_5",s.SECONDARY_6="secondary_6",s.SECONDARY_7="secondary_7",s.SECONDARY_8="secondary_8",s.SECONDARY_9="secondary_9",s.SECONDARY_10="secondary_10",s.TEXT_1="text_1",s.TEXT_2="text_2",s.TEXT_3="text_3",s.TEXT_4="text_4",s.TEXT_5="text_5",s.TEXT_6="text_6",s.TEXT_7="text_7",s.SUCCESS_PRIMARY="btn-success btn-primary",s.SUCCESS_TEXT="btn-success btn-text",s.SUCCESS_SECONDARY="btn-success btn-secondary",s.ICON_LARGE="icon_large",s.NONE="none",s),m=n(4463);let v=({variant:e})=>{if(void 0===e)return"";switch(e){case p.PRIMARY_1:return"btn-primary btn-color-1";case p.PRIMARY_2:return"btn-primary btn-color-2";case p.PRIMARY_3:return"btn-primary btn-color-3";case p.PRIMARY_4:return"btn-primary btn-color-4";case p.PRIMARY_5:return"btn-primary btn-color-5";case p.PRIMARY_6:return"btn-primary btn-color-6";case p.PRIMARY_7:return"btn-primary btn-color-7";case p.PRIMARY_8:return"btn-primary btn-color-8";case p.PRIMARY_9:return"btn-primary btn-color-9";case p.PRIMARY_10:return"btn-primary btn-color-10";case p.SECONDARY_1:return"btn-secondary btn-color-1";case p.SECONDARY_2:return"btn-secondary btn-color-2";case p.SECONDARY_3:return"btn-secondary btn-color-3";case p.SECONDARY_4:return"btn-secondary btn-color-4";case p.SECONDARY_5:return"btn-secondary btn-color-5";case p.SECONDARY_6:return"btn-secondary btn-color-6";case p.SECONDARY_7:return"btn-secondary btn-color-7";case p.SECONDARY_8:return"btn-secondary btn-color-8";case p.SECONDARY_9:return"btn-secondary btn-color-9";case p.SECONDARY_10:return"btn-secondary btn-color-10";case p.TEXT_1:return"btn-text btn-color-1";
9case p.TEXT_2:return"btn-text btn-color-2";case p.TEXT_3:return"btn-text btn-color-3";case p.TEXT_4:return"btn-text btn-color-4";case p.TEXT_5:return"btn-text btn-color-5";case p.TEXT_6:return"btn-text btn-color-6";case p.TEXT_7:return"btn-text btn-color-7";case p.SUCCESS_PRIMARY:return"btn-success btn-primary";case p.SUCCESS_TEXT:return"btn-success btn-text";case p.SUCCESS_SECONDARY:return"btn-success btn-secondary";case p.ICON_LARGE:return"large-icon";case p.NONE:return"";default:return"btn-primary btn-color-1"}},y=({iconSide:e,size:t,icon:n,className:r,loading:i,disabled:a,variant:o,color:s,action:l,active:u,underline:c})=>(0,m.Qu)([e,t,n,i?"btn-loading btn-disabled disabled btn-inactive":"",a?"btn-disabled disabled btn-inactive":"",o?v({variant:o}):"",s,l,u?"active":"",c?"underline":"",r]),g=({iconSide:e,size:t,icon:n,className:r,loading:i,disabled:a,variant:o,color:s,action:l,active:c,underline:d,isLink:f,...h})=>{let p=y({iconSide:e,size:t,icon:n,className:r,loading:i,disabled:a,variant:o,color:s,action:l,active:c,underline:d});return f?(0,u.jsx)("a",{className:p,...h}):(0,u.jsx)("button",{className:p,...h})};var b=n(2265),E=n(4887);let _={1:"title-level-1",2:"title-level-2",3:"title-level-3",4:"title-level-4",5:"title-level-5",6:"title-level-6",p:"txt-paragraph",none:void 0};var w=n(4441),x=w.default||w;let k=e=>"string"!=typeof e?e:typeof window>"u"?(0,u.jsx)("span",{dangerouslySetInnerHTML:{__html:e}}):x(e),S=(0,b.forwardRef)((e,t)=>{let{modalRoot:n=document.body,initialState:r=!1,preventClose:i=!1,preventCloseOutside:a=!1,styles:o="",children:s,onAfterClose:l}=e,[c,d]=(0,b.useState)(r),f=(0,b.useRef)(null);(0,b.useImperativeHandle)(t,()=>({handlerModalAction:e=>h(e)}));let h=e=>{switch(e){case"OPEN":d(!0);break;case"CLOSE":d(!1),l&&l();break;default:d(!1)}};return(0,b.useEffect)(()=>{let e=e=>{"Escape"!==e.key||i||h("CLOSE")};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[i]),(0,b.useEffect)(()=>{c&&f.current&&f.current.focus()},[c]),c?(0,E.createPortal)((0,u.jsx)("section",{ref:f,tabIndex:-1,role:"dialog","aria-modal":"true",className:"block-overlay".concat(o?" ".concat(o):"").concat(c?" active":""),"data-react-block":"true",id:"",children:(0,u.jsx)("div",{className:"part",onClick:a?e=>{e.preventDefault(),e.stopPropagation()}:e=>{var t;e.target instanceof HTMLElement&&null!=(t=e.target.parentElement)&&t.classList.contains("block-overlay")&&!i&&!a&&h("CLOSE")},children:(0,u.jsxs)("div",{className:"content-holder",children:[s,!i&&(0,u.jsx)("button",{type:"button","aria-label":"Fechar Janela",className:"close-overlay",onClick:()=>h("CLOSE")})]})})}),n):null});n(7882);let O=({titleLevel:e,children:t,renderAs:n="p",strong:r=!1,tiny:i=!1,light:a=!1,note:o=!1,className:s,color:l,...c})=>{let d=_[e||"none"],f=(0,m.Qu)([d,s,i?"tiny":void 0,a?"light":void 0,r?"strong":void 0,o?"note":void 0,l]);return(0,u.jsx)("span"===n?"span":"p",{...c,...(0,m.xb)(f)?{}:{className:f},children:(0,m.HD)(t)?k(t):t})};var T=((l=T||{}).SMALL="small",l.NORMAL="normal",l)},5264:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});var r=n(1229),i=n(257),a=n(257);function o(e){let t="object"==typeof e.client?e.client:{},n="object"==typeof e.server?e.server:{},o=e.shared,s=e.runtimeEnv?e.runtimeEnv:{...a.env,...e.experimental__runtimeEnv};return function(e){let t=e.runtimeEnvStrict??e.runtimeEnv??i.env;if(e.emptyStringAsUndefined)for(let[e,n]of Object.entries(t))""===n&&delete t[e];if(e.skipValidation)return t;let n="object"==typeof e.client?e.client:{},a="object"==typeof e.server?e.server:{},o="object"==typeof e.shared?e.shared:{},s=r.z.object(n),l=r.z.object(a),u=r.z.object(o),c=e.isServer??"undefined"==typeof window,d=s.merge(u),f=l.merge(u).merge(s),h=c?f.safeParse(t):d.safeParse(t),p=e.onValidationError??(e=>{throw console.error("â Invalid environment variables:",e.flatten().fieldErrors),Error("Invalid environment variables")}),m=e.onInvalidAccess??(e=>{throw Error("â Attempted to access a server-side environment variable on the client")});if(!1===h.success)return p(h.error);let v=(e.extends??[]).reduce((e,t)=>
9Object.assign(e,t),{});return new Proxy(Object.assign({},h.data,v),{get(t,n){if("string"==typeof n&&"__esModule"!==n&&"$$typeof"!==n)return c||!e.clientPrefix||n.startsWith(e.clientPrefix)||void 0!==u.shape[n]?t[n]:m(n)}})}({...e,shared:o,client:t,server:n,clientPrefix:"NEXT_PUBLIC_",runtimeEnv:s})}},7045:function(e,t,n){"use strict";n.d(t,{j:function(){return a}});var r=n(4112),i=n(5345),a=new class extends r.l{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}}},1636:function(e,t,n){"use strict";n.d(t,{Gm:function(){return i},Qy:function(){return s},ZF:function(){return l}});var r=n(5345);function i(e){return{onFetch:(t,n)=>{let i=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,l=t.state.data?.pages||[],u=t.state.data?.pageParams||[],c={pages:[],pageParams:[]},d=0,f=async()=>{let n=!1,f=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)})},h=(0,r.cG)(t.options,t.fetchOptions),p=async(e,i,a)=>{if(n)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);let o={queryKey:t.queryKey,pageParam:i,direction:a?"backward":"forward",meta:t.options.meta};f(o);let s=await h(o),{maxPages:l}=t.options,u=a?r.Ht:r.VX;return{pages:u(e.pages,s,l),pageParams:u(e.pageParams,i,l)}};if(s&&l.length){let e="backward"===s,t={pages:l,pageParams:u},n=(e?o:a)(i,t);c=await p(t,n,e)}else{let t=e??l.length;do{let e=0===d?u[0]??i.initialPageParam:a(i,c);if(d>0&&null==e)break;c=await p(c,e),d++}while(d<t)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function a(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function o(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function s(e,t){return!!t&&null!=a(e,t)}function l(e,t){return!!t&&!!e.getPreviousPageParam&&null!=o(e,t)}},2894:function(e,t,n){"use strict";n.d(t,{R:function(){return s},m:function(){return o}});var r=n(8238),i=n(7989),a=n(1255),o=class extends i.F{#r;#i;#a;constructor(e){super(),this.mutationId=e.mutationId,this.#i=e.mutationCache,this.#r=[],this.state=e.state||s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#r.includes(e)||(this.#r.push(e),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#r=this.#r.filter(t=>t!==e),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#r.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){this.#a=(0,a.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#o({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#i.canRun(this)});let t="pending"===this.state.status,n=!this.#a.canStart();try{if(!t){this.#o({type:"pending",variables:e,isPaused:n}),await this.#i.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#o({type:"pending",context:t,variables:e,isPaused:n})}let r=await this.#a.start();return await this.#i.config.onSuccess?.(r,e,this.state.context,this),await this.options.onSuccess?.(r,e,this.state.context),await this.#i.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,e,this.state.context),this.#o({type:"success",data:r}),r}catch(t){try{throw await this.#i.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#i.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#o({type:"error",error:t})}}finally{this.#i.runNext(this)}}#o(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};
9case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),r.V.batch(()=>{this.#r.forEach(t=>{t.onMutationUpdate(e)}),this.#i.notify({mutation:this,type:"updated",action:e})})}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},8238:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var r=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=e=>setTimeout(e,0),a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}()},7853:function(e,t,n){"use strict";n.d(t,{N:function(){return a}});var r=n(4112),i=n(5345),a=new class extends r.l{#s=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!i.sk&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#s!==e&&(this.#s=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#s}}},1733:function(e,t,n){"use strict";n.d(t,{A:function(){return s},z:function(){return l}});var r=n(5345),i=n(8238),a=n(1255),o=n(7989),s=class extends o.F{#l;#u;#c;#a;#d;#f;constructor(e){super(),this.#f=!1,this.#d=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#c=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#l=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#l,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){this.options={...this.#d,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#c.remove(this)}setData(e,t){let n=(0,r.oE)(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(r.ZT).catch(r.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#l)}isActive(){return this.observers.some(e=>!1!==(0,r.Nc)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r.CN||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!(0,r.Kp)(this.state.dataUpdatedAt,e)}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#f?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#c.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#f=!0,n.signal)}
9)},o={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{let e=(0,r.cG)(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return(i(n),this.#f=!1,this.options.persister)?this.options.persister(e,n,this):e(n)}};i(o),this.options.behavior?.onFetch(o,this),this.#u=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#o({type:"fetch",meta:o.fetchOptions?.meta});let s=e=>{(0,a.DV)(e)&&e.silent||this.#o({type:"error",error:e}),(0,a.DV)(e)||(this.#c.config.onError?.(e,this),this.#c.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#a=(0,a.Mz)({initialPromise:t?.initialPromise,fn:o.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0===e){s(Error(`${this.queryHash} data is undefined`));return}try{this.setData(e)}catch(e){s(e);return}this.#c.config.onSuccess?.(e,this),this.#c.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:s,onFail:(e,t)=>{this.#o({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}),this.#a.start()}#o(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...l(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let n=e.error;if((0,a.DV)(n)&&n.revert&&this.#u)return{...this.#u,fetchStatus:"idle"};return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),i.V.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#c.notify({query:this,type:"updated",action:e})})}};function l(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,a.Kw)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},4114:function(e,t,n){"use strict";n.d(t,{S:function(){return p}});var r=n(5345),i=n(1733),a=n(8238),o=n(4112),s=class extends o.l{constructor(e={}){super(),this.config=e,this.#h=new Map}#h;build(e,t,n){let a=t.queryKey,o=t.queryHash??(0,r.Rm)(a,t),s=this.get(o);return s||(s=new i.A({cache:this,queryKey:a,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(s)),s}add(e){this.#h.has(e.queryHash)||(this.#h.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#h.get(e.queryHash);t&&(e.destroy(),t===e&&this.#h.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){a.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#h.get(e)}getAll(){return[...this.#h.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r._x)(e,t)):t}notify(e){a.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){a.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){a.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},l=n(2894),u=class extends o.l{constructor(e={}){super(),this.config=e,this.#p=new Set,this.#m=new Map,this.#v=0}#p;#m;#v;build(e,t,n){let r=new l.m({mutationCache:this,mutationId:++this.#v,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#p.add(e);let t=c(e);if("string"==typeof t){let n=this.#m.get(t);n?n.push(e):this.#m.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#p.delete(e)){let t=c(e);if("string"==typeof t){let n=this.#m.get(t);if(n){if(n.length>1){let t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#m.delete(t)}}}this.notify({type:"removed",mutation:e})}canRun(e){let t=c(e);if("string"!=typeof t)return!0;{let n=this.#m.get(t),r=n?.find(e=>"pending"===e.state.status);return!r||r===e}}runNext(e){let t=c(e);if("string"!=typeof t)return Promise.resolve();{let n=this.#m.get(t)?.find(t=>
9t!==e&&t.state.isPaused);return n?.continue()??Promise.resolve()}}clear(){a.V.batch(()=>{this.#p.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#p.clear(),this.#m.clear()})}getAll(){return Array.from(this.#p)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.X7)(e,t))}notify(e){a.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return a.V.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.ZT))))}};function c(e){return e.options.scope?.id}var d=n(7045),f=n(7853),h=n(1636),p=class{#y;#i;#d;#g;#b;#E;#_;#w;constructor(e={}){this.#y=e.queryCache||new s,this.#i=e.mutationCache||new u,this.#d=e.defaultOptions||{},this.#g=new Map,this.#b=new Map,this.#E=0}mount(){this.#E++,1===this.#E&&(this.#_=d.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#y.onFocus())}),this.#w=f.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#y.onOnline())}))}unmount(){this.#E--,0===this.#E&&(this.#_?.(),this.#_=void 0,this.#w?.(),this.#w=void 0)}isFetching(e){return this.#y.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#i.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#y.build(this,t),i=n.state.data;return void 0===i?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,r.KC)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#y.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let i=this.defaultQueryOptions({queryKey:e}),a=this.#y.get(i.queryHash),o=a?.state.data,s=(0,r.SE)(t,o);if(void 0!==s)return this.#y.build(this,i).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return a.V.batch(()=>this.#y.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state}removeQueries(e){let t=this.#y;a.V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#y,r={type:"active",...e};return a.V.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(a.V.batch(()=>this.#y.findAll(e).map(e=>e.cancel(n)))).then(r.ZT).catch(r.ZT)}invalidateQueries(e,t={}){return a.V.batch(()=>{if(this.#y.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")return Promise.resolve();let n={...e,type:e?.refetchType??e?.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(a.V.batch(()=>this.#y.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#y.build(this,t);return n.isStaleByTime((0,r.KC)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.ZT).catch(r.ZT)}fetchInfiniteQuery(e){return e.behavior=(0,h.Gm)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.ZT).catch(r.ZT)}ensureInfiniteQueryData(e){return e.behavior=(0,h.Gm)(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return f.N.isOnline()?this.#i.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#y}getMutationCache(){return this.#i}getDefaultOptions(){return this.#d}setDefaultOptions(e){this.#d=e}setQueryDefaults(e,t){this.#g.set((0,r.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#g.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#b.set((0,r.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#b.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.mutationKey)&&(n={...n,...t.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#d.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===r.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#d.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#y.clear(),this.#i.clear()}}},6900:function(e,t,n){"use strict";n.d(t,{z:function(){return u}});var r=n(7045),i=n(8238),a=n(1733),o=n(4112),s=n(6803),l=n(5345),u=class extends o.l{constructor(e,t){super(),this.options=t,this.#x=e,this.#k=null,this.#S=(0,s.O)(),this.options.experimental_prefetchInRender||this.#S.reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#x;#O=void 0;#T=void 0;#A=void 0;#C;#N;#S;#k;#R;#L;#P;#I;#j;#D;#M=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#O.addObserver(this),c(this.#O,this.options)?this.#U():this.updateResult(),this.#F())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#O,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#O,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#B(),this.#q(),this.#O.removeObserver(this)}setOptions(e,t){let n=this.options,r=this.#O;if(this.options=this.#x.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,l.Nc)(this.options.enabled,this.#O))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#Z(),this.#O.setOptions(this.options),n._defaulted&&!(0,l.VS)(this.options,n)&&this.#x.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#O,observer:this});let i=this.hasListeners();i&&f(this.#O,r,this.options,n)&&this.#U(),this.updateResult(t),i&&(this.#O!==r||(0,l.Nc)(this.options.enabled,this.#O)!==(0,l.Nc)(n.enabled,this.#O)||(0,l.KC)(this.options.staleTime,this.#O)!==(0,l.KC)(n.staleTime,this.#O))&&this.#z();let a=this.#H();i&&(this.#O!==r||(0,l.Nc)(this.options.enabled,this.#O)!==(0,l.Nc)(n.enabled,this.#O)||a!==this.#D)&&this.#W(a)}getOptimisticResult(e){let t=this.#x.getQueryCache().build(this.#x,e),n=this.createResult(t,e);return(0,l.VS)(this.getCurrentResult(),n)||(this.#A=n,this.#N=this.options,this.#C=this.#O.state),n}getCurrentResult(){return this.#A}trackResult(e,t){let n={};return Object.keys(e).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),t?.(r),e[r])})}),n}trackProp(e){this.#M.add(e)}getCurrentQuery(){return this.#O}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#x.defaultQueryOptions(e),n=this.#x.getQueryCache().build(this.#x,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#U({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#A))}#U(e){this.#Z();let t=this.#O.fetch(this.options,e);return e?.throwOnError||(t=t.catch(l.ZT)),t}#z(){this.#B();let e=(0,l.KC)(this.options.staleTime,this.#O);if(l.sk||this.#A.isStale||!(0,l.PN)(e))return;let t=(0,l.Kp)(this.#A.dataUpdatedAt,e);this.#I=setTimeout(()=>{this.#A.isStale||this.updateResult()},t+1)}#H(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#O):this.options.refetchInterval)??!1}#W(e){this.#q(),this.#D=e,!l.sk&&!1!==(0,l.Nc)(this.options.enabled,this.#O)&&(0,l.PN)(this.#D)&&0!==this.#D&&(this.#j=setInterval(()=>
9{(this.options.refetchIntervalInBackground||r.j.isFocused())&&this.#U()},this.#D))}#F(){this.#z(),this.#W(this.#H())}#B(){this.#I&&(clearTimeout(this.#I),this.#I=void 0)}#q(){this.#j&&(clearInterval(this.#j),this.#j=void 0)}createResult(e,t){let n;let r=this.#O,i=this.options,o=this.#A,u=this.#C,d=this.#N,p=e!==r?e.state:this.#T,{state:m}=e,v={...m},y=!1;if(t._optimisticResults){let n=this.hasListeners(),o=!n&&c(e,t),s=n&&f(e,r,t,i);(o||s)&&(v={...v,...(0,a.z)(m.data,e.options)}),"isRestoring"===t._optimisticResults&&(v.fetchStatus="idle")}let{error:g,errorUpdatedAt:b,status:E}=v;if(t.select&&void 0!==v.data){if(o&&v.data===u?.data&&t.select===this.#R)n=this.#L;else try{this.#R=t.select,n=t.select(v.data),n=(0,l.oE)(o?.data,n,t),this.#L=n,this.#k=null}catch(e){this.#k=e}}else n=v.data;if(void 0!==t.placeholderData&&void 0===n&&"pending"===E){let e;if(o?.isPlaceholderData&&t.placeholderData===d?.placeholderData)e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#P?.state.data,this.#P):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#k=null}catch(e){this.#k=e}void 0!==e&&(E="success",n=(0,l.oE)(o?.data,e,t),y=!0)}this.#k&&(g=this.#k,n=this.#L,b=Date.now(),E="error");let _="fetching"===v.fetchStatus,w="pending"===E,x="error"===E,k=w&&_,S=void 0!==n,O={status:E,fetchStatus:v.fetchStatus,isPending:w,isSuccess:"success"===E,isError:x,isInitialLoading:k,isLoading:k,data:n,dataUpdatedAt:v.dataUpdatedAt,error:g,errorUpdatedAt:b,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>p.dataUpdateCount||v.errorUpdateCount>p.errorUpdateCount,isFetching:_,isRefetching:_&&!w,isLoadingError:x&&!S,isPaused:"paused"===v.fetchStatus,isPlaceholderData:y,isRefetchError:x&&S,isStale:h(e,t),refetch:this.refetch,promise:this.#S};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===O.status?e.reject(O.error):void 0!==O.data&&e.resolve(O.data)},n=()=>{t(this.#S=O.promise=(0,s.O)())},i=this.#S;switch(i.status){case"pending":e.queryHash===r.queryHash&&t(i);break;case"fulfilled":("error"===O.status||O.data!==i.value)&&n();break;case"rejected":("error"!==O.status||O.error!==i.reason)&&n()}}return O}updateResult(e){let t=this.#A,n=this.createResult(this.#O,this.options);if(this.#C=this.#O.state,this.#N=this.options,void 0!==this.#C.data&&(this.#P=this.#O),(0,l.VS)(n,t))return;this.#A=n;let r={};e?.listeners!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.#M.size)return!0;let r=new Set(n??this.#M);return this.options.throwOnError&&r.add("error"),Object.keys(this.#A).some(e=>this.#A[e]!==t[e]&&r.has(e))})()&&(r.listeners=!0),this.#V({...r,...e})}#Z(){let e=this.#x.getQueryCache().build(this.#x,this.options);if(e===this.#O)return;let t=this.#O;this.#O=e,this.#T=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#F()}#V(e){i.V.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#A)}
9),this.#x.getQueryCache().notify({query:this.#O,type:"observerResultsUpdated"})})}};function c(e,t){return!1!==(0,l.Nc)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,n){if(!1!==(0,l.Nc)(t.enabled,e)){let r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&h(e,t)}return!1}function f(e,t,n,r){return(e!==t||!1===(0,l.Nc)(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&h(e,n)}function h(e,t){return!1!==(0,l.Nc)(t.enabled,e)&&e.isStaleByTime((0,l.KC)(t.staleTime,e))}},7989:function(e,t,n){"use strict";n.d(t,{F:function(){return i}});var r=n(5345),i=class{#$;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.PN)(this.gcTime)&&(this.#$=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r.sk?1/0:3e5))}clearGcTimeout(){this.#$&&(clearTimeout(this.#$),this.#$=void 0)}}},1255:function(e,t,n){"use strict";n.d(t,{DV:function(){return c},Kw:function(){return l},Mz:function(){return d}});var r=n(7045),i=n(7853),a=n(6803),o=n(5345);function s(e){return Math.min(1e3*2**e,3e4)}function l(e){return(e??"online")!=="online"||i.N.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){return e instanceof u}function d(e){let t,n=!1,c=0,d=!1,f=(0,a.O)(),h=()=>r.j.isFocused()&&("always"===e.networkMode||i.N.isOnline())&&e.canRun(),p=()=>l(e.networkMode)&&e.canRun(),m=n=>{d||(d=!0,e.onSuccess?.(n),t?.(),f.resolve(n))},v=n=>{d||(d=!0,e.onError?.(n),t?.(),f.reject(n))},y=()=>new Promise(n=>{t=e=>{(d||h())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,d||e.onContinue?.()}),g=()=>{let t;if(d)return;let r=0===c?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch(t=>{if(d)return;let r=e.retry??(o.sk?0:3),i=e.retryDelay??s,a="function"==typeof i?i(c,t):i,l=!0===r||"number"==typeof r&&c<r||"function"==typeof r&&r(c,t);if(n||!l){v(t);return}c++,e.onFail?.(c,t),(0,o._v)(a).then(()=>h()?void 0:y()).then(()=>{n?v(t):g()})})};return{promise:f,cancel:t=>{d||(v(new u(t)),e.abort?.())},continue:()=>(t?.(),f),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:p,start:()=>(p()?g():y().then(g),f)}}},4112:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},6803:function(e,t,n){"use strict";function r(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}n.d(t,{O:function(){return r}})},5345:function(e,t,n){"use strict";n.d(t,{CN:function(){return k},Ht:function(){return x},KC:function(){return l},Kp:function(){return s},Nc:function(){return u},PN:function(){return o},Q$:function(){return m},Rm:function(){return f},SE:function(){return a},VS:function(){return v},VX:function(){return w},X7:function(){return d},Ym:function(){return h},ZT:function(){return i},_v:function(){return E},_x:function(){return c},cG:function(){return S},oE:function(){return _},sk:function(){return r},to:function(){return p}});var r="undefined"==typeof window||"Deno"in globalThis;function i(){}function a(e,t){return"function"==typeof e?e(t):e}function o(e){return"number"==typeof e&&e>=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t){return"function"==typeof e?e(t):e}function u(e,t){return"function"==typeof e?e(t):e}function c(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==f(o,t.options))return!1}else if(!p(t.queryKey,o))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(!i||i===t.state.fetchStatus)&&(!a||!!a(t))}function d(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(h(t.options.mutationKey)!==h(a))return!1}else if(!p(t.options.mutationKey,a))return!1}return(!r||t.state.status===r)&&(!i||!!i(t))}function f(e,t){return(t?.queryKeyHashFn||h)(e)}function h(e){return JSON.stringify(e,(e,t)=>g(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function p(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(n=>!p(e[n],t[n]))}function m(e,t){if(e===t)return e;let n=y(e)&&y(t);if(n||g(e)&&g(t)){let r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),o=a.length,s=n?[]:{},l=0;for(let i=0;i<o;i++){let o=n?i:a[i];(!n&&r.includes(o)||n)&&void 0===e[o]&&void 0===t[o]?(s[o]=void 0,l++):(s[o]=m(e[o],t[o]),s[o]===e[o]&&void 0!==e[o]&&l++)}return i===o&&l===i?e:s}return t}function v(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function y(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function g(e){if(!b(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(b(n)&&n.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function b(e){return"[object Object]"===Object.prototype.toString.call(e)}function E(e){return new Promise(t=>{setTimeout(t,e)})}function _(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?m(e,t):t}function w(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function x(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var k=Symbol();function S(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==k?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}},3204:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});var r=function(){return null}},9827:function(e,t,n){"use strict";n.r(t),n.d(t,{QueryClientContext:function(){return a},QueryClientProvider:function(){return s},useQueryClient:function(){return o}});var r=n(2265),i=n(7437),a=r.createContext(void 0),o=e=>{let t=r.useContext(a);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},s=e=>{let{client:t,children:n}=e;return r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(a.Provider,{value:t,children:n})}},4147:function(e,t,n){"use strict";n.d(t,{QueryErrorResetBoundary:function(){return l},useQueryErrorResetBoundary:function(){return s}});var r=n(2265),i=n(7437);function a(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
9var o=r.createContext(a()),s=()=>r.useContext(o),l=e=>{let{children:t}=e,[n]=r.useState(()=>a());return(0,i.jsx)(o.Provider,{value:n,children:"function"==typeof t?t(n):t})}},674:function(e,t,n){"use strict";n.d(t,{JN:function(){return o},KJ:function(){return s},pf:function(){return a}});var r=n(2265),i=n(1172),a=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&!t.isReset()&&(e.retryOnMount=!1)},o=e=>{r.useEffect(()=>{e.clearReset()},[e])},s=e=>{let{result:t,errorResetBoundary:n,throwOnError:r,query:a,suspense:o}=e;return t.isError&&!n.isReset()&&!t.isFetching&&a&&(o&&void 0===t.data||(0,i.L)(r,[t.error,a]))}},9791:function(e,t,n){"use strict";n.d(t,{IsRestoringProvider:function(){return o},useIsRestoring:function(){return a}});var r=n(2265),i=r.createContext(!1),a=()=>r.useContext(i),o=i.Provider},8386:function(e,t,n){"use strict";n.d(t,{A8:function(){return i},Ct:function(){return r},SB:function(){return o},Z$:function(){return a},j8:function(){return s}});var r=(e,t)=>void 0===t.state.data,i=e=>{let t=e.staleTime;e.suspense&&(e.staleTime="function"==typeof t?(...e)=>Math.max(t(...e),1e3):Math.max(t??1e3,1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},a=(e,t)=>e.isLoading&&e.isFetching&&!t,o=(e,t)=>e?.suspense&&t.isPending,s=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()})},9285:function(e,t,n){"use strict";n.d(t,{r:function(){return f}});var r=n(2265),i=n(8238),a=n(5345),o=n(9827),s=n(4147),l=n(674),u=n(9791),c=n(8386),d=n(1172);function f(e,t,n){var f,h,p,m,v;let y=(0,o.useQueryClient)(n),g=(0,u.useIsRestoring)(),b=(0,s.useQueryErrorResetBoundary)(),E=y.defaultQueryOptions(e);
9null===(h=y.getDefaultOptions().queries)||void 0===h||null===(f=h._experimental_beforeQuery)||void 0===f||f.call(h,E),E._optimisticResults=g?"isRestoring":"optimistic",(0,c.A8)(E),(0,l.pf)(E,b),(0,l.JN)(b);let _=!y.getQueryCache().get(E.queryHash),[w]=r.useState(()=>new t(y,E)),x=w.getOptimisticResult(E),k=!g&&!1!==e.subscribed;if(r.useSyncExternalStore(r.useCallback(e=>{let t=k?w.subscribe(i.V.batchCalls(e)):d.Z;return w.updateResult(),t},[w,k]),()=>w.getCurrentResult(),()=>w.getCurrentResult()),r.useEffect(()=>{w.setOptions(E,{listeners:!1})},[E,w]),(0,c.SB)(E,x))throw(0,c.j8)(E,w,b);if((0,l.KJ)({result:x,errorResetBoundary:b,throwOnError:E.throwOnError,query:y.getQueryCache().get(E.queryHash),suspense:E.suspense}))throw x.error;if(null===(m=y.getDefaultOptions().queries)||void 0===m||null===(p=m._experimental_afterQuery)||void 0===p||p.call(m,E,x),E.experimental_prefetchInRender&&!a.sk&&(0,c.Z$)(x,g)){let e=_?(0,c.j8)(E,w,b):null===(v=y.getQueryCache().get(E.queryHash))||void 0===v?void 0:v.promise;null==e||e.catch(d.Z).finally(()=>{w.updateResult()})}return E.notifyOnChangeProps?x:w.trackResult(x)}},1632:function(e,t,n){"use strict";n.d(t,{useQuery:function(){return a}});var r=n(6900),i=n(9285);function a(e,t){return(0,i.r)(e,r.z,t)}},1172:function(e,t,n){"use strict";function r(e,t){return"function"==typeof e?e(...t):!!e}function i(){}n.d(t,{L:function(){return r},Z:function(){return i}})},1229:function(e,t,n){"use strict";let r;n.d(t,{z:function(){return td}}),(tn=ta||(ta={})).assertEqual=e=>e,tn.assertIs=function(e){},tn.assertNever=function(e){throw Error()},tn.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},tn.getValidEnumValues=e=>{let t=tn.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let r of t)n[r]=e[r];return tn.objectValues(n)},tn.objectValues=e=>tn.objectKeys(e).map(function(t){return e[t]}),tn.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},tn.find=(e,t)=>{for(let n of e)if(t(n))return n},tn.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,tn.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},tn.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(to||(to={})).mergeShapes=(e,t)=>({...e,...t});let i=ta.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{switch(typeof e){case"undefined":return i.undefined;case"string":return i.string;case"number":return isNaN(e)?i.nan:i.number;case"boolean":return i.boolean;case"function":return i.function;case"bigint":return i.bigint;case"symbol":return i.symbol;case"object":if(Array.isArray(e))return i.array;if(null===e)return i.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return i.promise;if("undefined"!=typeof Map&&e instanceof Map)return i.map;if("undefined"!=typeof Set&&e instanceof Set)return i.set;if("undefined"!=typeof Date&&e instanceof Date)return i.date;return i.object;default:return i.unknown}}
9,o=ta.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class s extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof s))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ta.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}s.create=e=>new s(e);let l=(e,t)=>{let n;switch(e.code){case o.invalid_type:n=e.received===i.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case o.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ta.jsonStringifyReplacer)}`;break;case o.unrecognized_keys:n=`Unrecognized key(s) in object: ${ta.joinValues(e.keys,", ")}`;break;case o.invalid_union:n="Invalid input";break;case o.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ta.joinValues(e.options)}`;break;case o.invalid_enum_value:n=`Invalid enum value. Expected ${ta.joinValues(e.options)}, received '${e.received}'`;break;case o.invalid_arguments:n="Invalid function arguments";break;case o.invalid_return_type:n="Invalid function return type";break;case o.invalid_date:n="Invalid date";break;case o.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ta.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case o.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case o.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case o.custom:n="Invalid input";break;case o.invalid_intersection_types:n="Intersection results could not be merged";break;case o.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case o.not_finite:n="Number must be finite";break;default:n=t.defaultError,ta.assertNever(e)}return{message:n}},u=l;function c(){return u}let d=e=>
9{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let s="";for(let e of r.filter(e=>!!e).slice().reverse())s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function f(e,t){let n=c(),r=d({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===l?void 0:l].filter(e=>!!e)});e.common.issues.push(r)}class h{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return p;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t){let t=await e.key,r=await e.value;n.push({key:t,value:r})}return h.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if("aborted"===t.status||"aborted"===i.status)return p;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}}let p=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),v=e=>({status:"valid",value:e}),y=e=>"aborted"===e.status,g=e=>"dirty"===e.status,b=e=>"valid"===e.status,E=e=>"undefined"!=typeof Promise&&e instanceof Promise;function _(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function w(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}"function"==typeof SuppressedError&&SuppressedError,(tr=ts||(ts={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},tr.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class x{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let k=(e,t)=>{if(b(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new s(e.common.issues);return this._error=t,this._error}}};function S(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{var a,o;let{message:s}=e;return"invalid_enum_value"===t.code?{message:null!=s?s:i.defaultError}:void 0===i.data?{message:null!==(a=null!=s?s:r)&&void 0!==a?a:i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:null!==(o=null!=s?s:n)&&void 0!==o?o:i.defaultError}},description:i}}class O{get description(){return this._def.description}_getType(e){return a(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new h,ctx:{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(E(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},i=this._parseSync({data:e,path:r.path,parent:r});return k(r,i)}"~validate"(e){var t,n;let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)};if(!this["~standard"].async)try{let t=this._parseSync({data:e,path:[],parent:r});return b(t)?{value:t.value}:{issues:r.common.issues}}catch(e){(null===(n=null===(t=null==e?void 0:e.message)||void 0===t?void 0:t.toLowerCase())||void 0===n?void 0:n.includes("encountered"))&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(e=>b(e)?{value:e.value}:{issues:r.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},r=this._parse({data:e,path:n.path,parent:n});return k(n,await (E(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:o.custom,...n(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new eE({schema:this,typeName:tc.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return e_.create(this,this._def)}nullable(){return ew.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return er.create(this)}promise(){return eb.create(this,this._def)}or(e){return ea.create([this,e],this._def)}and(e){return el.create(this,e,this._def)}transform(e){return new eE({...S(this._def),schema:this,typeName:tc.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ex({...S(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:tc.ZodDefault})}brand(){return new eT({typeName:tc.ZodBranded,type:this,...S(this._def)})}catch(e){return new ek({...S(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:tc.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eA.create(this,e)}readonly(){return eC.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let T=/^c[^\s-]{8,}
9$/i,A=/^[0-9a-z]+$/,C=/^[0-9A-HJKMNP-TV-Z]{26}$/i,N=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,R=/^[a-z0-9_-]{21}$/i,L=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,P=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,I=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,j=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,D=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,M=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,U=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,F=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,B=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,q="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Z=RegExp(`^${q}$`);function z(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function H(e){let t=`${q}T${z(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,RegExp(`^${t}$`)}class W extends O{_parse(e){var t,n,a,s;let l;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==i.string){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.string,received:t.parsedType}),p}let u=new h;for(let i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(f(l=this._getOrReturnCtx(e,l),{code:o.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),u.dirty());else if("max"===i.kind)e.data.length>i.value&&(f(l=this._getOrReturnCtx(e,l),{code:o.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),u.dirty());else if("length"===i.kind){let t=e.data.length>i.value,n=e.data.length<i.value;(t||n)&&(l=this._getOrReturnCtx(e,l),t?f(l,{code:o.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):n&&f(l,{code:o.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),u.dirty())}else if("email"===i.kind)I.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"email",code:o.invalid_string,message:i.message}),u.dirty());else if("emoji"===i.kind)r||(r=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),r.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"emoji",code:o.invalid_string,message:i.message}),u.dirty());else if("uuid"===i.kind)N.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"uuid",code:o.invalid_string,message:i.message}),u.dirty());else if("nanoid"===i.kind)R.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"nanoid",code:o.invalid_string,message:i.message}),u.dirty());else if("cuid"===i.kind)T.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"cuid",code:o.invalid_string,message:i.message}),u.dirty());else if("cuid2"===i.kind)A.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"cuid2",code:o.invalid_string,message:i.message}),u.dirty());else if("ulid"===i.kind)C.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"ulid",code:o.invalid_string,message:i.message}),u.dirty());else if("url"===i.kind)try{new URL(e.data)}catch(t){f(l=this._getOrReturnCtx(e,l),{validation:"url",code:o.invalid_string,message:i.message}),u.dirty()}else"regex"===i.kind?(i.regex.lastIndex=0,i.regex.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"regex",code:o.invalid_string,message:i.message}),u.dirty())):"trim"===i.kind?e.data=e.data.trim():"includes"===i.kind?e.data.includes(i.value,i.position)||(f(l=this._getOrReturnCtx(e,l),{code:o.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),u.dirty()):"toLowerCase"===i.kind?e.data=e.data.toLowerCase():"toUpperCase"===i.kind?e.data=e.data.toUpperCase():"startsWith"===i.kind?e.data.startsWith(i.value)||(f(l=this._getOrReturnCtx(e,l),{code:o.invalid_string,validation:{startsWith:i.value},message:i.message}),u.dirty()):"endsWith"===i.kind?e.data.endsWith(i.value)||(f(l=this._getOrReturnCtx(e,l),{code:o.invalid_string,validation:{endsWith:i.value},message:i.message}),u.dirty()):"datetime"===i.kind?H(i).test(e.data)||(f(l=this._getOrReturnCtx(e,l),{code:o.invalid_string,validation:"datetime",message:i.message}),u.dirty()):"date"===i.kind?Z.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{code:o.invalid_string,validation:"date",message:i.message}),u.dirty()):"time"===i.kind?RegExp(`^${z(i)}$`).test(e.data)||(f(l=this._getOrReturnCtx(e,l),{code:o.invalid_string,validation:"time",message:i.message}),u.dirty()):"duration"===i.kind?P.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"duration",code:o.invalid_string,message:i.message}),u.dirty()):"ip"===i.kind?(t=e.data,("v4"===(n=i.version)||!n)&&j.test(t)||("v6"===n||!n)&&M.test(t)||(f(l=this._getOrReturnCtx(e,l),{validation:"ip",code:o.invalid_string,message:i.message}),u.dirty())):"jwt"===i.kind?!function(e,t){if(!L.test(e))return!1;
9try{let[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));if("object"!=typeof i||null===i||!i.typ||!i.alg||t&&i.alg!==t)return!1;return!0}catch(e){return!1}}(e.data,i.alg)&&(f(l=this._getOrReturnCtx(e,l),{validation:"jwt",code:o.invalid_string,message:i.message}),u.dirty()):"cidr"===i.kind?(a=e.data,("v4"===(s=i.version)||!s)&&D.test(a)||("v6"===s||!s)&&U.test(a)||(f(l=this._getOrReturnCtx(e,l),{validation:"cidr",code:o.invalid_string,message:i.message}),u.dirty())):"base64"===i.kind?F.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"base64",code:o.invalid_string,message:i.message}),u.dirty()):"base64url"===i.kind?B.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"base64url",code:o.invalid_string,message:i.message}),u.dirty()):ta.assertNever(i);return{status:u.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:o.invalid_string,...ts.errToObj(n)})}_addCheck(e){return new W({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ts.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ts.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ts.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ts.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...ts.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ts.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ts.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ts.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...ts.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...ts.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...ts.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ts.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...ts.errToObj(e)})}datetime(e){var t,n;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(n=null==e?void 0:e.local)&&void 0!==n&&n,...ts.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...ts.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...ts.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...ts.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...ts.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...ts.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...ts.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...ts.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...ts.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...ts.errToObj(t)})}nonempty(e){return this.min(1,ts.errToObj(e))}trim(){return new W({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new W({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new W({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}W.create=e=>{var t;return new W({checks:[],typeName:tc.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...S(e)})};class V extends O{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==i.number){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.number,received:t.parsedType}),p}let n=new h;for(let r of this._def.checks)"int"===r.kind?ta.isInteger(e.data)||(f(t=this._getOrReturnCtx(e,t),{code:o.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(f(t=this._getOrReturnCtx(e,t),{code:o.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(f(t=this._getOrReturnCtx(e,t),{code:o.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}(e.data,r.value)&&(f(t=this._getOrReturnCtx(e,t),{code:o.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(f(t=this._getOrReturnCtx(e,t),{code:o.not_finite,message:r.message}),n.dirty()):ta.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,ts.toString(t))}gt(e,t){return this.setLimit("min",e,!1,ts.toString(t))}lte(e,t){return this.setLimit("max",e,!0,ts.toString(t))}lt(e,t){return this.setLimit("max",e,!1,ts.toString(t))}setLimit(e,t,n,r){return new V({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:ts.toString(r)}]})}_addCheck(e){return new V({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ts.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ts.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ts.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ts.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ts.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:ts.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:ts.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ts.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ts.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&ta.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}V.create=e=>new V({checks:[],typeName:tc.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...S(e)});class $ extends O{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch(t){return this._getInvalidInput(e)}if(this._getType(e)!==i.bigint)return this._getInvalidInput(e);let n=new h;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(f(t=this._getOrReturnCtx(e,t),{code:o.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(f(t=this._getOrReturnCtx(e,t),{code:o.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(f(t=this._getOrReturnCtx(e,t),{code:o.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):ta.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.bigint,received:t.parsedType}),p}gte(e,t){return this.setLimit("min",e,!0,ts.toString(t))}gt(e,t){return this.setLimit("min",e,!1,ts.toString(t))}lte(e,t){return this.setLimit("max",e,!0,ts.toString(t))}lt(e,t){return this.setLimit("max",e,!1,ts.toString(t))}setLimit(e,t,n,r){return new $({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:ts.toString(r)}]})}_addCheck(e){return new $({...this._def,checks:[...this._def.checks,e]})}
9positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ts.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ts.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ts.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ts.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:ts.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}$.create=e=>{var t;return new $({checks:[],typeName:tc.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...S(e)})};class Q extends O{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==i.boolean){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.boolean,received:t.parsedType}),p}return v(e.data)}}Q.create=e=>new Q({typeName:tc.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...S(e)});class K extends O{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==i.date){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.date,received:t.parsedType}),p}if(isNaN(e.data.getTime()))return f(this._getOrReturnCtx(e),{code:o.invalid_date}),p;let n=new h;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(f(t=this._getOrReturnCtx(e,t),{code:o.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),n.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(f(t=this._getOrReturnCtx(e,t),{code:o.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):ta.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new K({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:ts.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:ts.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}K.create=e=>new K({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:tc.ZodDate,...S(e)});class G extends O{_parse(e){if(this._getType(e)!==i.symbol){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.symbol,received:t.parsedType}),p}return v(e.data)}}G.create=e=>new G({typeName:tc.ZodSymbol,...S(e)});class Y extends O{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.undefined,received:t.parsedType}),p}return v(e.data)}}Y.create=e=>new Y({typeName:tc.ZodUndefined,...S(e)});class X extends O{_parse(e){if(this._getType(e)!==i.null){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.null,received:t.parsedType}),p}return v(e.data)}}X.create=e=>new X({typeName:tc.ZodNull,...S(e)});class J extends O{constructor(){super(...arguments),this._any=!0}_parse(e){return v(e.data)}}J.create=e=>new J({typeName:tc.ZodAny,...S(e)});class ee extends O{constructor(){super(...arguments),this._unknown=!0}_parse(e){return v(e.data)}}ee.create=e=>new ee({typeName:tc.ZodUnknown,...S(e)});class et extends O{_parse(e){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.never,received:t.parsedType}),p}}et.create=e=>new et({typeName:tc.ZodNever,...S(e)});class en extends O{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.void,received:t.parsedType}),p}return v(e.data)}}en.create=e=>new en({typeName:tc.ZodVoid,...S(e)});class er extends O{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==i.array)return f(t,{code:o.invalid_type,expected:i.array,received:t.parsedType}),p;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(f(t,{code:e?o.too_big:o.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(f(t,{code:o.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(f(t,{code:o.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new x(t,e,t.path,n)))).then(e=>h.mergeArray(n,e));let a=[...t.data].map((e,n)=>r.type._parseSync(new x(t,e,t.path,n)));return h.mergeArray(n,a)}
9get element(){return this._def.type}min(e,t){return new er({...this._def,minLength:{value:e,message:ts.toString(t)}})}max(e,t){return new er({...this._def,maxLength:{value:e,message:ts.toString(t)}})}length(e,t){return new er({...this._def,exactLength:{value:e,message:ts.toString(t)}})}nonempty(e){return this.min(1,e)}}er.create=(e,t)=>new er({type:e,minLength:null,maxLength:null,exactLength:null,typeName:tc.ZodArray,...S(t)});class ei extends O{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=ta.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==i.object){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.object,received:t.parsedType}),p}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof et&&"strip"===this._def.unknownKeys))for(let e in n.data)a.includes(e)||s.push(e);let l=[];for(let e of a){let t=r[e],i=n.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new x(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof et){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of s)l.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)s.length>0&&(f(n,{code:o.unrecognized_keys,keys:s}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of s){let r=n.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new x(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of l){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>h.mergeObjectSync(t,e)):h.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return ts.errToObj,new ei({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,a,o;let s=null!==(a=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(o=ts.errToObj(e).message)&&void 0!==o?o:s}:{message:s}}}:{}})}strip(){return new ei({...this._def,unknownKeys:"strip"})}passthrough(){return new ei({...this._def,unknownKeys:"passthrough"})}extend(e){return new ei({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ei({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:tc.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ei({...this._def,catchall:e})}pick(e){let t={};return ta.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new ei({...this._def,shape:()=>t})}omit(e){let t={};return ta.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new ei({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ei){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=e_.create(e(i))}return new ei({...t._def,shape:()=>n})}return t instanceof er?new er({...t._def,type:e(t.element)}):t instanceof e_?e_.create(e(t.unwrap())):t instanceof ew?ew.create(e(t.unwrap())):t instanceof eu?eu.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};return ta.objectKeys(this.shape).forEach(n=>{let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}),new ei({...this._def,shape:()=>t})}required(e){let t={};return ta.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof e_;)e=e._def.innerType;t[n]=e}}),new ei({...this._def,shape:()=>t})}keyof(){return ev(ta.objectKeys(this.shape))}}ei.create=(e,t)=>new ei({shape:()=>e,unknownKeys:"strip",catchall:et.create(),typeName:tc.ZodObject,...S(t)}),ei.strictCreate=(e,t)=>new ei({shape:()=>e,unknownKeys:"strict",catchall:et.create(),typeName:tc.ZodObject,...S(t)}),ei.lazycreate=(e,t)=>new ei({shape:e,unknownKeys:"strip",catchall:et.create(),typeName:tc.ZodObject,...S(t)});class ea extends O{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new s(e.ctx.common.issues));return f(t,{code:o.invalid_union,unionErrors:n}),p});{let e;let r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new s(e));return f(t,{code:o.invalid_union,unionErrors:i}),p}}get options(){return this._def.options}}ea.create=(e,t)=>
9new ea({options:e,typeName:tc.ZodUnion,...S(t)});let eo=e=>{if(e instanceof ep)return eo(e.schema);if(e instanceof eE)return eo(e.innerType());if(e instanceof em)return[e.value];if(e instanceof ey)return e.options;if(e instanceof eg)return ta.objectValues(e.enum);if(e instanceof ex)return eo(e._def.innerType);if(e instanceof Y)return[void 0];else if(e instanceof X)return[null];else if(e instanceof e_)return[void 0,...eo(e.unwrap())];else if(e instanceof ew)return[null,...eo(e.unwrap())];else if(e instanceof eT)return eo(e.unwrap());else if(e instanceof eC)return eo(e.unwrap());else if(e instanceof ek)return eo(e._def.innerType);else return[]};class es extends O{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.object)return f(t,{code:o.invalid_type,expected:i.object,received:t.parsedType}),p;let n=this.discriminator,r=t.data[n],a=this.optionsMap.get(r);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(f(t,{code:o.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),p)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let n of t){let t=eo(n.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(r.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);r.set(i,n)}}return new es({typeName:tc.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...S(n)})}}class el extends O{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(y(e)||y(r))return p;let s=function e(t,n){let r=a(t),o=a(n);if(t===n)return{valid:!0,data:t};if(r===i.object&&o===i.object){let r=ta.objectKeys(n),i=ta.objectKeys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1};a[r]=i.data}return{valid:!0,data:a}}if(r===i.array&&o===i.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let i=0;i<t.length;i++){let a=e(t[i],n[i]);if(!a.valid)return{valid:!1};r.push(a.data)}return{valid:!0,data:r}}return r===i.date&&o===i.date&&+t==+n?{valid:!0,data:t}:{valid:!1}}(e.value,r.value);return s.valid?((g(e)||g(r))&&t.dirty(),{status:t.value,value:s.data}):(f(n,{code:o.invalid_intersection_types}),p)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}el.create=(e,t,n)=>new el({left:e,right:t,typeName:tc.ZodIntersection,...S(n)});class eu extends O{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.array)return f(n,{code:o.invalid_type,expected:i.array,received:n.parsedType}),p;if(n.data.length<this._def.items.length)return f(n,{code:o.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),p;!this._def.rest&&n.data.length>this._def.items.length&&(f(n,{code:o.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new x(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>h.mergeArray(t,e)):h.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new eu({...this._def,rest:e})}}eu.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new eu({items:e,typeName:tc.ZodTuple,rest:null,...S(t)})};class ec extends O{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.object)return f(n,{code:o.invalid_type,expected:i.object,received:n.parsedType}),p;let r=[],a=this._def.keyType,s=this._def.valueType;for(let e in n.data)r.push({key:a._parse(new x(n,e,n.path,e)),value:s._parse(new x(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?h.mergeObjectAsync(t,r):h.mergeObjectSync(t,r)}
9get element(){return this._def.valueType}static create(e,t,n){return new ec(t instanceof O?{keyType:e,valueType:t,typeName:tc.ZodRecord,...S(n)}:{keyType:W.create(),valueType:e,typeName:tc.ZodRecord,...S(t)})}}class ed extends O{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.map)return f(n,{code:o.invalid_type,expected:i.map,received:n.parsedType}),p;let r=this._def.keyType,a=this._def.valueType,s=[...n.data.entries()].map(([e,t],i)=>({key:r._parse(new x(n,e,n.path,[i,"key"])),value:a._parse(new x(n,t,n.path,[i,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of s){let r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return p;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of s){let r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return p;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}ed.create=(e,t,n)=>new ed({valueType:t,keyType:e,typeName:tc.ZodMap,...S(n)});class ef extends O{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.set)return f(n,{code:o.invalid_type,expected:i.set,received:n.parsedType}),p;let r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(f(n,{code:o.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(f(n,{code:o.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let a=this._def.valueType;function s(e){let n=new Set;for(let r of e){if("aborted"===r.status)return p;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let l=[...n.data.values()].map((e,t)=>a._parse(new x(n,e,n.path,t)));return n.common.async?Promise.all(l).then(e=>s(e)):s(l)}min(e,t){return new ef({...this._def,minSize:{value:e,message:ts.toString(t)}})}max(e,t){return new ef({...this._def,maxSize:{value:e,message:ts.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ef.create=(e,t)=>new ef({valueType:e,minSize:null,maxSize:null,typeName:tc.ZodSet,...S(t)});class eh extends O{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.function)return f(t,{code:o.invalid_type,expected:i.function,received:t.parsedType}),p;function n(e,n){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c(),l].filter(e=>!!e),issueData:{code:o.invalid_arguments,argumentsError:n}})}function r(e,n){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c(),l].filter(e=>!!e),issueData:{code:o.invalid_return_type,returnTypeError:n}})}let a={errorMap:t.common.contextualErrorMap},u=t.data;if(this._def.returns instanceof eb){let e=this;return v(async function(...t){let i=new s([]),o=await e._def.args.parseAsync(t,a).catch(e=>{throw i.addIssue(n(t,e)),i}),l=await Reflect.apply(u,this,o);return await e._def.returns._def.type.parseAsync(l,a).catch(e=>{throw i.addIssue(r(l,e)),i})})}{let e=this;return v(function(...t){let i=e._def.args.safeParse(t,a);if(!i.success)throw new s([n(t,i.error)]);let o=Reflect.apply(u,this,i.data),l=e._def.returns.safeParse(o,a);if(!l.success)throw new s([r(o,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eh({...this._def,args:eu.create(e).rest(ee.create())})}returns(e){return new eh({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new eh({args:e||eu.create([]).rest(ee.create()),returns:t||ee.create(),typeName:tc.ZodFunction,...S(n)})}}class ep extends O{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ep.create=(e,t)=>
9new ep({getter:e,typeName:tc.ZodLazy,...S(t)});class em extends O{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return f(t,{received:t.data,code:o.invalid_literal,expected:this._def.value}),p}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ev(e,t){return new ey({values:e,typeName:tc.ZodEnum,...S(t)})}em.create=(e,t)=>new em({value:e,typeName:tc.ZodLiteral,...S(t)});class ey extends O{constructor(){super(...arguments),tl.set(this,void 0)}_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return f(t,{expected:ta.joinValues(n),received:t.parsedType,code:o.invalid_type}),p}if(_(this,tl,"f")||w(this,tl,new Set(this._def.values),"f"),!_(this,tl,"f").has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return f(t,{received:t.data,code:o.invalid_enum_value,options:n}),p}return v(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ey.create(e,{...this._def,...t})}exclude(e,t=this._def){return ey.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}tl=new WeakMap,ey.create=ev;class eg extends O{constructor(){super(...arguments),tu.set(this,void 0)}_parse(e){let t=ta.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==i.string&&n.parsedType!==i.number){let e=ta.objectValues(t);return f(n,{expected:ta.joinValues(e),received:n.parsedType,code:o.invalid_type}),p}if(_(this,tu,"f")||w(this,tu,new Set(ta.getValidEnumValues(this._def.values)),"f"),!_(this,tu,"f").has(e.data)){let e=ta.objectValues(t);return f(n,{received:n.data,code:o.invalid_enum_value,options:e}),p}return v(e.data)}get enum(){return this._def.values}}tu=new WeakMap,eg.create=(e,t)=>new eg({values:e,typeName:tc.ZodNativeEnum,...S(t)});class eb extends O{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==i.promise&&!1===t.common.async?(f(t,{code:o.invalid_type,expected:i.promise,received:t.parsedType}),p):v((t.parsedType===i.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eb.create=(e,t)=>new eb({type:e,typeName:tc.ZodPromise,...S(t)});class eE extends O{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===tc.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{f(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return p;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?p:"dirty"===r.status||"dirty"===t.value?m(r.value):r});{if("aborted"===t.value)return p;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?p:"dirty"===r.status||"dirty"===t.value?m(r.value):r}}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?p:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?p:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type){if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>b(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!b(e))return e;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}}ta.assertNever(r)}}
9eE.create=(e,t,n)=>new eE({schema:e,typeName:tc.ZodEffects,effect:t,...S(n)}),eE.createWithPreprocess=(e,t,n)=>new eE({schema:t,effect:{type:"preprocess",transform:e},typeName:tc.ZodEffects,...S(n)});class e_ extends O{_parse(e){return this._getType(e)===i.undefined?v(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}e_.create=(e,t)=>new e_({innerType:e,typeName:tc.ZodOptional,...S(t)});class ew extends O{_parse(e){return this._getType(e)===i.null?v(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ew.create=(e,t)=>new ew({innerType:e,typeName:tc.ZodNullable,...S(t)});class ex extends O{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===i.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ex.create=(e,t)=>new ex({innerType:e,typeName:tc.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...S(t)});class ek extends O{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return E(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new s(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new s(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}ek.create=(e,t)=>new ek({innerType:e,typeName:tc.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...S(t)});class eS extends O{_parse(e){if(this._getType(e)!==i.nan){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.nan,received:t.parsedType}),p}return{status:"valid",value:e.data}}}eS.create=e=>new eS({typeName:tc.ZodNaN,...S(e)});let eO=Symbol("zod_brand");class eT extends O{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class eA extends O{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?p:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?p:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new eA({in:e,out:t,typeName:tc.ZodPipeline})}}class eC extends O{_parse(e){let t=this._def.innerType._parse(e),n=e=>(b(e)&&(e.value=Object.freeze(e.value)),e);return E(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}function eN(e,t={},n){return e?J.create().superRefine((r,i)=>{var a,o;if(!e(r)){let e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,s=null===(o=null!==(a=e.fatal)&&void 0!==a?a:n)||void 0===o||o;i.addIssue({code:"custom",..."string"==typeof e?{message:e}:e,fatal:s})}}):J.create()}eC.create=(e,t)=>new eC({innerType:e,typeName:tc.ZodReadonly,...S(t)});let eR={object:ei.lazycreate};(ti=tc||(tc={})).ZodString="ZodString",ti.ZodNumber="ZodNumber",ti.ZodNaN="ZodNaN",ti.ZodBigInt="ZodBigInt",ti.ZodBoolean="ZodBoolean",ti.ZodDate="ZodDate",ti.ZodSymbol="ZodSymbol",ti.ZodUndefined="ZodUndefined",ti.ZodNull="ZodNull",ti.ZodAny="ZodAny",ti.ZodUnknown="ZodUnknown",ti.ZodNever="ZodNever",ti.ZodVoid="ZodVoid",ti.ZodArray="ZodArray",ti.ZodObject="ZodObject",ti.ZodUnion="ZodUnion",ti.ZodDiscriminatedUnion="ZodDiscriminatedUnion",ti.ZodIntersection="ZodIntersection",ti.ZodTuple="ZodTuple",ti.ZodRecord="ZodRecord",ti.ZodMap="ZodMap",ti.ZodSet="ZodSet",ti.ZodFunction="ZodFunction",ti.ZodLazy="ZodLazy",ti.ZodLiteral="ZodLiteral",ti.ZodEnum="ZodEnum",ti.ZodEffects="ZodEffects",ti.ZodNativeEnum="ZodNativeEnum",ti.ZodOptional="ZodOptional",ti.ZodNullable="ZodNullable",ti.ZodDefault="ZodDefault",ti.ZodCatch="ZodCatch",ti.ZodPromise="ZodPromise",ti.ZodBranded="ZodBranded",ti.ZodPipeline="ZodPipeline",ti.ZodReadonly="ZodReadonly";let eL=W.create,eP=V.create,eI=eS.create,ej=$.create,eD=Q.create,eM=K.create,eU=G.create,eF=Y.create,eB=X.create,eq=J.create,eZ=ee.create,ez=et.create,eH=en.create,eW=er.create,eV=ei.create,e$=ei.strictCreate,eQ=ea.create,eK=es.create,eG=el.create,eY=eu.create,eX=ec.create,eJ=ed.create,e0=ef.create,e1=eh.create,e2=ep.create,e4=em.create,e3=ey.create,e5=eg.create,e6=eb.create,e8=eE.create,e9=e_.create,e7=ew.create,te=eE.createWithPreprocess,tt
9=eA.create;var tn,tr,ti,ta,to,ts,tl,tu,tc,td=Object.freeze({__proto__:null,defaultErrorMap:l,setErrorMap:function(e){u=e},getErrorMap:c,makeIssue:d,EMPTY_PATH:[],addIssueToContext:f,ParseStatus:h,INVALID:p,DIRTY:m,OK:v,isAborted:y,isDirty:g,isValid:b,isAsync:E,get util(){return ta},get objectUtil(){return to},ZodParsedType:i,getParsedType:a,ZodType:O,datetimeRegex:H,ZodString:W,ZodNumber:V,ZodBigInt:$,ZodBoolean:Q,ZodDate:K,ZodSymbol:G,ZodUndefined:Y,ZodNull:X,ZodAny:J,ZodUnknown:ee,ZodNever:et,ZodVoid:en,ZodArray:er,ZodObject:ei,ZodUnion:ea,ZodDiscriminatedUnion:es,ZodIntersection:el,ZodTuple:eu,ZodRecord:ec,ZodMap:ed,ZodSet:ef,ZodFunction:eh,ZodLazy:ep,ZodLiteral:em,ZodEnum:ey,ZodNativeEnum:eg,ZodPromise:eb,ZodEffects:eE,ZodTransformer:eE,ZodOptional:e_,ZodNullable:ew,ZodDefault:ex,ZodCatch:ek,ZodNaN:eS,BRAND:eO,ZodBranded:eT,ZodPipeline:eA,ZodReadonly:eC,custom:eN,Schema:O,ZodSchema:O,late:eR,get ZodFirstPartyTypeKind(){return tc},coerce:{string:e=>W.create({...e,coerce:!0}),number:e=>V.create({...e,coerce:!0}),boolean:e=>Q.create({...e,coerce:!0}),bigint:e=>$.create({...e,coerce:!0}),date:e=>K.create({...e,coerce:!0})},any:eq,array:eW,bigint:ej,boolean:eD,date:eM,discriminatedUnion:eK,effect:e8,enum:e3,function:e1,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>eN(t=>t instanceof e,t),intersection:eG,lazy:e2,literal:e4,map:eJ,nan:eI,nativeEnum:e5,never:ez,null:eB,nullable:e7,number:eP,object:eV,oboolean:()=>eD().optional(),onumber:()=>eP().optional(),optional:e9,ostring:()=>eL().optional(),pipeline:tt,preprocess:te,promise:e6,record:eX,set:e0,strictObject:e$,string:eL,symbol:eU,transformer:e8,tuple:eY,undefined:eF,union:eQ,unknown:eZ,void:eH,NEVER:p,ZodIssueCode:o,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:s})}}]);
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.