﻿(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{3108:function(e,t,n){var r=n(7294),a=n(5697);function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var l=i(r),o=i(a),s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},c=function(e){var t=e.bgColor,n=e.completed,r=e.baseBgColor,a=e.height,i=e.width,o=e.margin,c=e.padding,u=e.borderRadius,d=e.labelAlignment,p=e.labelColor,f=e.labelSize,h=e.isLabelVisible,m=e.customLabelStyles,v=e.transitionDuration,g=e.transitionTimingFunction,x=e.className,b=e.dir,y=e.ariaValuemin,w=e.ariaValuemax,k=e.ariaValuetext,S=e.maxCompleted,j=e.customLabel,C=e.animateOnRender,N=e.barContainerClassName,T=e.completedClassName,E=e.labelClassName,D=e.initCompletedOnAnimation,M=void 0===D?0:D,_="left"===d?"flex-start":"center"===d?"center":"right"===d?"flex-end":null,A="number"==typeof M?"".concat(M,"%"):M,L=function(e,t){if(e){var n=Number(t)/e;return n>1?"100%":"".concat(100*n,"%")}return A}(S,n),I=l.useState(A),P=I[0],O=I[1],R={height:a,width:C?P:L,background:t,transition:"width ".concat(v||"1s"," ").concat(g||"ease-in-out"),borderRadius:"inherit",display:"flex",alignItems:"center",justifyContent:"outside"!==d&&_?_:"normal"},F=s({padding:"outside"===d?"0 0 0 5px":"5px",color:p,fontWeight:"bold",fontSize:f,display:h?"initial":"none"},m),B=j||("number"==typeof n?"".concat(n,"%"):"".concat(n));return l.useEffect(function(){C&&requestAnimationFrame(function(){return O(L)})},[L,C]),l.createElement("div",{style:x?void 0:{display:"outside"===d?"flex":"initial",alignItems:"outside"===d?"center":"initial"},className:x,dir:b,role:"progressbar","aria-valuenow":parseFloat(B),"aria-valuemin":y,"aria-valuemax":w,"aria-valuetext":"".concat(null===k?B:k)},l.createElement("div",{style:N?void 0:{height:a,background:r,borderRadius:u,padding:c,width:i,margin:o,overflow:"hidden"},className:N},l.createElement("div",{style:T?void 0:R,className:T},"outside"!==d&&l.createElement("span",{style:E?void 0:F,className:E},B))),"outside"===d&&l.createElement("span",{style:E?void 0:F,className:E},B))};c.propTypes={completed:o.oneOfType([o.string,o.number]).isRequired,bgColor:o.string,baseBgColor:o.string,height:o.string,width:o.string,borderRadius:o.string,margin:o.string,padding:o.string,labelAlignment:o.oneOf(["left","center","right","outside"]),labelColor:o.string,labelSize:o.string,isLabelVisible:o.bool,className:o.string,dir:o.oneOf(["rtl","ltr","auto"]),maxCompleted:o.number,customLabel:o.string,animateOnRender:o.bool,barContainerClassName:o.string,completedClassName:o.string,labelClassName:o.string,initCompletedOnAnimation:o.oneOfType([o.string,o.number])},c.defaultProps={bgColor:"#6a1b9a",height:"20px",width:"100%",borderRadius:"50px",labelAlignment:"right",baseBgColor:"#e0e0de",labelColor:"#fff",labelSize:"15px",isLabelVisible:!0,dir:"ltr",ariaValuemin:0,ariaValuemax:100,ariaValuetext:null,maxCompleted:100,animateOnRender:!1,initCompletedOnAnimation:0},t.Z=c},4184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var l=a.apply(null,n);l&&e.push(l)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var o in n)r.call(n,o)&&n[o]&&e.push(o)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0!==(n=(function(){return a}).apply(t,[]))&&(e.exports=n)}()},7856:function(e){var t;t=function(){"use strict";function e(t){return(e="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})(t)}function t(e,n){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,n)}function n(e,r,a){return(n=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?function(e,n,r){var a=[null];a.push.apply(a,n);var i=new(Function.bind.apply(e,a));return r&&t(i,r.prototype),i}:Reflect.construct).apply(null,arguments)}function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}}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}var l,o=Object.entries,s=Object.setPrototypeOf,c=Object.isFrozen,u=Object.getPrototypeOf,d=Object.getOwnPropertyDescriptor,p=Object.freeze,f=Object.seal,h=Object.create,m="undefined"!=typeof Reflect&&Reflect,v=m.apply,g=m.construct;v||(v=function(e,t,n){return e.apply(t,n)}),p||(p=function(e){return e}),f||(f=function(e){return e}),g||(g=function(e,t){return n(e,r(t))});var x=D(Array.prototype.forEach),b=D(Array.prototype.pop),y=D(Array.prototype.push),w=D(String.prototype.toLowerCase),k=D(String.prototype.toString),S=D(String.prototype.match),j=D(String.prototype.replace),C=D(String.prototype.indexOf),N=D(String.prototype.trim),T=D(RegExp.prototype.test),E=(l=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return g(l,t)});function D(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return v(e,t,r)}}function M(e,t,n){n=n||w,s&&s(e,null);for(var r=t.length;r--;){var a=t[r];if("string"==typeof a){var i=n(a);i!==a&&(c(t)||(t[r]=i),a=i)}e[a]=!0}return e}function _(e){var t,n=h(null),r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,l=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw l}}}}(o(e));try{for(r.s();!(t=r.n()).done;){var i,l=(i=t.value,function(e){if(Array.isArray(e))return e}(i)||function(e,t){var n,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],l=!0,o=!1;try{for(a=a.call(e);!(l=(n=a.next()).done)&&(i.push(n.value),2!==i.length);l=!0);}catch(e){o=!0,r=e}finally{try{l||null==a.return||a.return()}finally{if(o)throw r}}return i}}(i,2)||a(i,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.")}()),s=l[0],c=l[1];n[s]=c}}catch(e){r.e(e)}finally{r.f()}return n}function A(e,t){for(;null!==e;){var n=d(e,t);if(n){if(n.get)return D(n.get);if("function"==typeof n.value)return D(n.value)}e=u(e)}return function(e){return console.warn("fallback value for",e),null}}var L=p(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=p(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),P=p(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),O=p(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),R=p(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),F=p(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=p(["#text"]),z=p(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Z=p(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),H=p(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U=p(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=f(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=f(/<%[\w\W]*|[\w\W]*%>/gm),G=f(/\${[\w\W]*}/gm),Y=f(/^data-[\-\w.\u00B7-\uFFFF]/),q=f(/^aria-[\-\w]+$/),K=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=f(/^(?:\w+script|data):/i),X=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=f(/^html$/i),Q=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,a="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(a)&&(r=n.currentScript.getAttribute(a));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function t(){var n,a,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,l=function(e){return t(e)};if(l.version="3.0.0",l.removed=[],!i||!i.document||9!==i.document.nodeType)return l.isSupported=!1,l;var s=i.document,c=i.document,u=i.DocumentFragment,d=i.HTMLTemplateElement,f=i.Node,h=i.Element,m=i.NodeFilter,v=i.NamedNodeMap,g=void 0===v?i.NamedNodeMap||i.MozNamedAttrMap:v,D=i.HTMLFormElement,ee=i.DOMParser,et=i.trustedTypes,en=h.prototype,er=A(en,"cloneNode"),ea=A(en,"nextSibling"),ei=A(en,"childNodes"),el=A(en,"parentNode");if("function"==typeof d){var eo=c.createElement("template");eo.content&&eo.content.ownerDocument&&(c=eo.content.ownerDocument)}var es=Q(et,s),ec=es?es.createHTML(""):"",eu=c,ed=eu.implementation,ep=eu.createNodeIterator,ef=eu.createDocumentFragment,eh=eu.getElementsByTagName,em=s.importNode,ev={};l.isSupported="function"==typeof o&&"function"==typeof el&&ed&&void 0!==ed.createHTMLDocument;var eg=K,ex=null,eb=M({},[].concat(r(L),r(I),r(P),r(R),r(B))),ey=null,ew=M({},[].concat(r(z),r(Z),r(H),r(U))),ek=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),eS=null,ej=null,eC=!0,eN=!0,eT=!1,eE=!0,eD=!1,eM=!1,e_=!1,eA=!1,eL=!1,eI=!1,eP=!1,eO=!0,eR=!1,eF=!0,eB=!1,ez={},eZ=null,eH=M({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eU=null,eV=M({},["audio","video","img","source","image","track"]),eW=null,eG=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eY="http://www.w3.org/1998/Math/MathML",eq="http://www.w3.org/2000/svg",eK="http://www.w3.org/1999/xhtml",e$=eK,eX=!1,eJ=null,eQ=M({},[eY,eq,eK],k),e0=["application/xhtml+xml","text/html"],e1=null,e2=c.createElement("form"),e3=function(e){return e instanceof RegExp||e instanceof Function},e6=function(t){e1&&e1===t||(t&&"object"===e(t)||(t={}),t=_(t),a="application/xhtml+xml"===(n=n=-1===e0.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE)?k:w,ex="ALLOWED_TAGS"in t?M({},t.ALLOWED_TAGS,a):eb,ey="ALLOWED_ATTR"in t?M({},t.ALLOWED_ATTR,a):ew,eJ="ALLOWED_NAMESPACES"in t?M({},t.ALLOWED_NAMESPACES,k):eQ,eW="ADD_URI_SAFE_ATTR"in t?M(_(eG),t.ADD_URI_SAFE_ATTR,a):eG,eU="ADD_DATA_URI_TAGS"in t?M(_(eV),t.ADD_DATA_URI_TAGS,a):eV,eZ="FORBID_CONTENTS"in t?M({},t.FORBID_CONTENTS,a):eH,eS="FORBID_TAGS"in t?M({},t.FORBID_TAGS,a):{},ej="FORBID_ATTR"in t?M({},t.FORBID_ATTR,a):{},ez="USE_PROFILES"in t&&t.USE_PROFILES,eC=!1!==t.ALLOW_ARIA_ATTR,eN=!1!==t.ALLOW_DATA_ATTR,eT=t.ALLOW_UNKNOWN_PROTOCOLS||!1,eE=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,eD=t.SAFE_FOR_TEMPLATES||!1,eM=t.WHOLE_DOCUMENT||!1,eL=t.RETURN_DOM||!1,eI=t.RETURN_DOM_FRAGMENT||!1,eP=t.RETURN_TRUSTED_TYPE||!1,eA=t.FORCE_BODY||!1,eO=!1!==t.SANITIZE_DOM,eR=t.SANITIZE_NAMED_PROPS||!1,eF=!1!==t.KEEP_CONTENT,eB=t.IN_PLACE||!1,eg=t.ALLOWED_URI_REGEXP||eg,e$=t.NAMESPACE||eK,t.CUSTOM_ELEMENT_HANDLING&&e3(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ek.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&e3(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ek.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ek.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eD&&(eN=!1),eI&&(eL=!0),ez&&(ex=M({},r(B)),ey=[],!0===ez.html&&(M(ex,L),M(ey,z)),!0===ez.svg&&(M(ex,I),M(ey,Z),M(ey,U)),!0===ez.svgFilters&&(M(ex,P),M(ey,Z),M(ey,U)),!0===ez.mathMl&&(M(ex,R),M(ey,H),M(ey,U))),t.ADD_TAGS&&(ex===eb&&(ex=_(ex)),M(ex,t.ADD_TAGS,a)),t.ADD_ATTR&&(ey===ew&&(ey=_(ey)),M(ey,t.ADD_ATTR,a)),t.ADD_URI_SAFE_ATTR&&M(eW,t.ADD_URI_SAFE_ATTR,a),t.FORBID_CONTENTS&&(eZ===eH&&(eZ=_(eZ)),M(eZ,t.FORBID_CONTENTS,a)),eF&&(ex["#text"]=!0),eM&&M(ex,["html","head","body"]),ex.table&&(M(ex,["tbody"]),delete eS.tbody),p&&p(t),e1=t)},e5=M({},["mi","mo","mn","ms","mtext"]),e4=M({},["foreignobject","desc","title","annotation-xml"]),e8=M({},["title","style","font","a","script"]),e7=M({},I);M(e7,P),M(e7,O);var e9=M({},R);M(e9,F);var te=function(e){var t=el(e);t&&t.tagName||(t={namespaceURI:e$,tagName:"template"});var r=w(e.tagName),a=w(t.tagName);return!!eJ[e.namespaceURI]&&(e.namespaceURI===eq?t.namespaceURI===eK?"svg"===r:t.namespaceURI===eY?"svg"===r&&("annotation-xml"===a||e5[a]):!!e7[r]:e.namespaceURI===eY?t.namespaceURI===eK?"math"===r:t.namespaceURI===eq?"math"===r&&e4[a]:!!e9[r]:e.namespaceURI===eK?(t.namespaceURI!==eq||!!e4[a])&&(t.namespaceURI!==eY||!!e5[a])&&!e9[r]&&(e8[r]||!e7[r]):"application/xhtml+xml"===n&&!!eJ[e.namespaceURI])},tt=function(e){y(l.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},tn=function(e,t){try{y(l.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){y(l.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ey[e]){if(eL||eI)try{tt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}}},tr=function(e){if(eA)e="<remove></remove>"+e;else{var t,r,a=S(e,/^[\r\n\t ]+/);r=a&&a[0]}"application/xhtml+xml"===n&&e$===eK&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=es?es.createHTML(e):e;if(e$===eK)try{t=new ee().parseFromString(i,n)}catch(e){}if(!t||!t.documentElement){t=ed.createDocument(e$,"template",null);try{t.documentElement.innerHTML=eX?ec:i}catch(e){}}var l=t.body||t.documentElement;return(e&&r&&l.insertBefore(c.createTextNode(r),l.childNodes[0]||null),e$===eK)?eh.call(t,eM?"html":"body")[0]:eM?t.documentElement:l},ta=function(e){return ep.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT,null,!1)},ti=function(t){return"object"===e(f)?t instanceof f:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},tl=function(e,t,n){ev[e]&&x(ev[e],function(e){e.call(l,t,n,e1)})},to=function(e){if(tl("beforeSanitizeElements",e,null),e instanceof D&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof g)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes))return tt(e),!0;var t,n=a(e.nodeName);if(tl("uponSanitizeElement",e,{tagName:n,allowedTags:ex}),e.hasChildNodes()&&!ti(e.firstElementChild)&&(!ti(e.content)||!ti(e.content.firstElementChild))&&T(/<[/\w]/g,e.innerHTML)&&T(/<[/\w]/g,e.textContent))return tt(e),!0;if(!ex[n]||eS[n]){if(!eS[n]&&tc(n)&&(ek.tagNameCheck instanceof RegExp&&T(ek.tagNameCheck,n)||ek.tagNameCheck instanceof Function&&ek.tagNameCheck(n)))return!1;if(eF&&!eZ[n]){var r=el(e)||e.parentNode,i=ei(e)||e.childNodes;if(i&&r)for(var o=i.length,s=o-1;s>=0;--s)r.insertBefore(er(i[s],!0),ea(e))}return tt(e),!0}return e instanceof h&&!te(e)||("noscript"===n||"noembed"===n)&&T(/<\/no(script|embed)/i,e.innerHTML)?(tt(e),!0):(eD&&3===e.nodeType&&(t=j(t=e.textContent,V," "),t=j(t,W," "),t=j(t,G," "),e.textContent!==t&&(y(l.removed,{element:e.cloneNode()}),e.textContent=t)),tl("afterSanitizeElements",e,null),!1)},ts=function(e,t,n){if(eO&&("id"===t||"name"===t)&&(n in c||n in e2))return!1;if(eN&&!ej[t]&&T(Y,t));else if(eC&&T(q,t));else if(!ey[t]||ej[t]){if(!(tc(e)&&(ek.tagNameCheck instanceof RegExp&&T(ek.tagNameCheck,e)||ek.tagNameCheck instanceof Function&&ek.tagNameCheck(e))&&(ek.attributeNameCheck instanceof RegExp&&T(ek.attributeNameCheck,t)||ek.attributeNameCheck instanceof Function&&ek.attributeNameCheck(t))||"is"===t&&ek.allowCustomizedBuiltInElements&&(ek.tagNameCheck instanceof RegExp&&T(ek.tagNameCheck,n)||ek.tagNameCheck instanceof Function&&ek.tagNameCheck(n))))return!1}else if(eW[t]);else if(T(eg,j(n,X,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===C(n,"data:")&&eU[e]);else if(eT&&!T($,j(n,X,"")));else if(n)return!1;return!0},tc=function(e){return e.indexOf("-")>0},tu=function(t){tl("beforeSanitizeAttributes",t,null);var n,r,i,o,s=t.attributes;if(s){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ey};for(o=s.length;o--;){var u=(n=s[o]).name,d=n.namespaceURI;if(r="value"===u?n.value:N(n.value),i=a(u),c.attrName=i,c.attrValue=r,c.keepAttr=!0,c.forceKeepAttr=void 0,tl("uponSanitizeAttribute",t,c),r=c.attrValue,!c.forceKeepAttr&&(tn(u,t),c.keepAttr)){if(!eE&&T(/\/>/i,r)){tn(u,t);continue}eD&&(r=j(r,V," "),r=j(r,W," "),r=j(r,G," "));var p=a(t.nodeName);if(ts(p,i,r)){if(eR&&("id"===i||"name"===i)&&(tn(u,t),r="user-content-"+r),es&&"object"===e(et)&&"function"==typeof et.getAttributeType){if(d);else switch(et.getAttributeType(p,i)){case"TrustedHTML":r=es.createHTML(r);break;case"TrustedScriptURL":r=es.createScriptURL(r)}}try{d?t.setAttributeNS(d,u,r):t.setAttribute(u,r),b(l.removed)}catch(e){}}}}tl("afterSanitizeAttributes",t,null)}},td=function e(t){var n,r=ta(t);for(tl("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)tl("uponSanitizeShadowNode",n,null),to(n)||(n.content instanceof u&&e(n.content),tu(n));tl("afterSanitizeShadowDOM",t,null)};return l.sanitize=function(e){var t,n,r,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((eX=!e)&&(e="<!-->"),"string"!=typeof e&&!ti(e)){if("function"!=typeof e.toString)throw E("toString is not a function");if("string"!=typeof(e=e.toString()))throw E("dirty is not a string, aborting")}if(!l.isSupported)return e;if(e_||e6(o),l.removed=[],"string"==typeof e&&(eB=!1),eB){if(e.nodeName){var c=a(e.nodeName);if(!ex[c]||eS[c])throw E("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof f)1===(n=(t=tr("<!---->")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===n.nodeName?t=n:"HTML"===n.nodeName?t=n:t.appendChild(n);else{if(!eL&&!eD&&!eM&&-1===e.indexOf("<"))return es&&eP?es.createHTML(e):e;if(!(t=tr(e)))return eL?null:eP?ec:""}t&&eA&&tt(t.firstChild);for(var d=ta(eB?e:t);r=d.nextNode();)to(r)||(r.content instanceof u&&td(r.content),tu(r));if(eB)return e;if(eL){if(eI)for(i=ef.call(t.ownerDocument);t.firstChild;)i.appendChild(t.firstChild);else i=t;return(ey.shadowroot||ey.shadowrootmod)&&(i=em.call(s,i,!0)),i}var p=eM?t.outerHTML:t.innerHTML;return eM&&ex["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&T(J,t.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+p),eD&&(p=j(p,V," "),p=j(p,W," "),p=j(p,G," ")),es&&eP?es.createHTML(p):p},l.setConfig=function(e){e6(e),e_=!0},l.clearConfig=function(){e1=null,e_=!1},l.isValidAttribute=function(e,t,n){return e1||e6({}),ts(a(e),a(t),n)},l.addHook=function(e,t){"function"==typeof t&&(ev[e]=ev[e]||[],y(ev[e],t))},l.removeHook=function(e){if(ev[e])return b(ev[e])},l.removeHooks=function(e){ev[e]&&(ev[e]=[])},l.removeAllHooks=function(){ev={}},l}()},e.exports=t()},8679:function(e,t,n){"use strict";var r=n(9864),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function s(e){return r.isMemo(e)?l:o[e.$$typeof]||a}o[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[r.Memo]=l;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var a=f(n);a&&a!==h&&e(t,a,r)}var l=u(n);d&&(l=l.concat(d(n)));for(var o=s(t),m=s(n),v=0;v<l.length;++v){var g=l[v];if(!i[g]&&!(r&&r[g])&&!(m&&m[g])&&!(o&&o[g])){var x=p(n,g);try{c(t,g,x)}catch(e){}}}}return t}},9238:function(e,t,n){e.exports=window.DOMPurify||(window.DOMPurify=n(7856).default||n(7856))},3454:function(e,t,n){"use strict";var r,a;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(a=n.g.process)?void 0:a.env)?n.g.process:n(7663)},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(6117)}])},3398:function(e,t){"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.module.reference")},254:function(e,t,n){"use strict";n(3398)},6092:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},a=n(47),i={date:(0,a.Z)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,a.Z)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.Z)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},l={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},o=n(2834),s={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,o.Z)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,o.Z)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,o.Z)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,o.Z)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,o.Z)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},c=n(7632),u={code:"en-US",formatDistance:function(e,t,n){var a,i=r[e];return(a="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"in "+a:a+" ago":a},formatLong:i,formatRelative:function(e,t,n,r){return l[e]},localize:s,match:{ordinalNumber:(0,n(6669).Z)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.Z)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,c.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.Z)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,c.Z)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,c.Z)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},795:function(e,t,n){"use strict";n.d(t,{j:function(){return a}});var r={};function a(){return r}},2282:function(e,t){"use strict";var n=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},r=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};t.Z={p:r,P:function(e,t){var a,i=e.match(/(P+)(p+)?/)||[],l=i[1],o=i[2];if(!o)return n(e,t);switch(l){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",n(l,t)).replace("{{time}}",r(o,t))}}},8389:function(e,t,n){"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:function(){return r}})},4471:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(6381),a=n(568),i=n(1582);function l(e){(0,a.Z)(1,arguments);var t=(0,r.default)(e),n=t.getUTCFullYear(),l=new Date(0);l.setUTCFullYear(n+1,0,4),l.setUTCHours(0,0,0,0);var o=(0,i.Z)(l),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var c=(0,i.Z)(s);return t.getTime()>=o.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}},2310:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(6381),a=n(1582),i=n(4471),l=n(568);function o(e){(0,l.Z)(1,arguments);var t=(0,r.default)(e);return Math.round(((0,a.Z)(t).getTime()-(function(e){(0,l.Z)(1,arguments);var t=(0,i.Z)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,a.Z)(n)})(t).getTime())/6048e5)+1}},256:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(6381),a=n(568),i=n(7285),l=n(3024),o=n(795);function s(e,t){(0,a.Z)(1,arguments);var n,s,c,u,d,p,f,h,m=(0,r.default)(e),v=m.getUTCFullYear(),g=(0,o.j)(),x=(0,l.Z)(null!==(n=null!==(s=null!==(c=null!==(u=null==t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null==t?void 0:null===(d=t.locale)||void 0===d?void 0:null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==c?c:g.firstWeekContainsDate)&&void 0!==s?s:null===(f=g.locale)||void 0===f?void 0:null===(h=f.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==n?n:1);if(!(x>=1&&x<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(v+1,0,x),b.setUTCHours(0,0,0,0);var y=(0,i.Z)(b,t),w=new Date(0);w.setUTCFullYear(v,0,x),w.setUTCHours(0,0,0,0);var k=(0,i.Z)(w,t);return m.getTime()>=y.getTime()?v+1:m.getTime()>=k.getTime()?v:v-1}},9291:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(6381),a=n(7285),i=n(256),l=n(568),o=n(3024),s=n(795);function c(e,t){(0,l.Z)(1,arguments);var n=(0,r.default)(e);return Math.round(((0,a.Z)(n,t).getTime()-(function(e,t){(0,l.Z)(1,arguments);var n,r,c,u,d,p,f,h,m=(0,s.j)(),v=(0,o.Z)(null!==(n=null!==(r=null!==(c=null!==(u=null==t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null==t?void 0:null===(d=t.locale)||void 0===d?void 0:null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==c?c:m.firstWeekContainsDate)&&void 0!==r?r:null===(f=m.locale)||void 0===f?void 0:null===(h=f.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==n?n:1),g=(0,i.Z)(e,t),x=new Date(0);return x.setUTCFullYear(g,0,v),x.setUTCHours(0,0,0,0),(0,a.Z)(x,t)})(n,t).getTime())/6048e5)+1}},6645:function(e,t,n){"use strict";n.d(t,{Do:function(){return l},Iu:function(){return i},qp:function(){return o}});var r=["D","DD"],a=["YY","YYYY"];function i(e){return -1!==r.indexOf(e)}function l(e){return -1!==a.indexOf(e)}function o(e,t,n){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},568:function(e,t,n){"use strict";function r(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},1582:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(6381),a=n(568);function i(e){(0,a.Z)(1,arguments);var t=(0,r.default)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((n<1?7:0)+n-1)),t.setUTCHours(0,0,0,0),t}},7285:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(6381),a=n(568),i=n(3024),l=n(795);function o(e,t){(0,a.Z)(1,arguments);var n,o,s,c,u,d,p,f,h=(0,l.j)(),m=(0,i.Z)(null!==(n=null!==(o=null!==(s=null!==(c=null==t?void 0:t.weekStartsOn)&&void 0!==c?c:null==t?void 0:null===(u=t.locale)||void 0===u?void 0:null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==s?s:h.weekStartsOn)&&void 0!==o?o:null===(p=h.locale)||void 0===p?void 0:null===(f=p.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,r.default)(e),g=v.getUTCDay();return v.setUTCDate(v.getUTCDate()-((g<m?7:0)+g-m)),v.setUTCHours(0,0,0,0),v}},3024:function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{Z:function(){return r}})},7633:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(3024),a=n(6381),i=n(568);function l(e,t){(0,i.Z)(2,arguments);var n=(0,a.default)(e),l=(0,r.Z)(t);return isNaN(l)?new Date(NaN):(l&&n.setDate(n.getDate()+l),n)}},6797:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(3024),a=n(8450),i=n(568);function l(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(t);return(0,a.Z)(e,36e5*n)}},8450:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(3024),a=n(6381),i=n(568);function l(e,t){return(0,i.Z)(2,arguments),new Date((0,a.default)(e).getTime()+(0,r.Z)(t))}},7859:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(3024),a=n(8450),i=n(568);function l(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(t);return(0,a.Z)(e,6e4*n)}},7930:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(3024),a=n(6381),i=n(568);function l(e,t){(0,i.Z)(2,arguments);var n=(0,a.default)(e),l=(0,r.Z)(t);if(isNaN(l))return new Date(NaN);if(!l)return n;var o=n.getDate(),s=new Date(n.getTime());return(s.setMonth(n.getMonth()+l+1,0),o>=s.getDate())?s:(n.setFullYear(s.getFullYear(),s.getMonth(),o),n)}},5680:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(3024),a=n(7930),i=n(568);function l(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(t);return(0,a.default)(e,3*n)}},3472:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(3024),a=n(7633),i=n(568);function l(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(t);return(0,a.default)(e,7*n)}},932:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(3024),a=n(7930),i=n(568);function l(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(t);return(0,a.default)(e,12*n)}},2042:function(e,t,n){"use strict";n.d(t,{qk:function(){return i},vh:function(){return a},yJ:function(){return r}});var r=6e4,a=36e5,i=1e3},5945:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(8389),a=n(8494),i=n(568);function l(e,t){(0,i.Z)(2,arguments);var n=(0,a.default)(e),l=(0,a.default)(t);return Math.round((n.getTime()-(0,r.Z)(n)-(l.getTime()-(0,r.Z)(l)))/864e5)}},9769:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e,t){(0,a.Z)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return 12*(n.getFullYear()-i.getFullYear())+(n.getMonth()-i.getMonth())}},2041:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(2350),a=n(8389),i=n(568);function l(e,t,n){(0,i.Z)(2,arguments);var l=(0,r.default)(e,n),o=(0,r.default)(t,n);return Math.round((l.getTime()-(0,a.Z)(l)-(o.getTime()-(0,a.Z)(o)))/6048e5)}},5688:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e,t){(0,a.Z)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return n.getFullYear()-i.getFullYear()}},5343:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e){(0,a.Z)(1,arguments);var t=(0,r.default)(e);return t.setHours(23,59,59,999),t}},154:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e){(0,a.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},8825:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(795),a=n(6381),i=n(3024),l=n(568);function o(e,t){(0,l.Z)(1,arguments);var n,o,s,c,u,d,p,f,h=(0,r.j)(),m=(0,i.Z)(null!==(n=null!==(o=null!==(s=null!==(c=null==t?void 0:t.weekStartsOn)&&void 0!==c?c:null==t?void 0:null===(u=t.locale)||void 0===u?void 0:null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==s?s:h.weekStartsOn)&&void 0!==o?o:null===(p=h.locale)||void 0===p?void 0:null===(f=p.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,a.default)(e),g=v.getDay();return v.setDate(v.getDate()+((g<m?-7:0)+6-(g-m))),v.setHours(23,59,59,999),v}},1999:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e){(0,a.Z)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}},7204:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return D}});var r=n(2304),a=n(7940),i=n(6381),l=n(568),o=n(2310),s=n(4471),c=n(9291),u=n(256);function d(e,t){for(var n=Math.abs(e).toString();n.length<t;)n="0"+n;return(e<0?"-":"")+n}var p={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return d("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):d(n+1,2)},d:function(e,t){return d(e.getUTCDate(),t.length)},h:function(e,t){return d(e.getUTCHours()%12||12,t.length)},H:function(e,t){return d(e.getUTCHours(),t.length)},m:function(e,t){return d(e.getUTCMinutes(),t.length)},s:function(e,t){return d(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length;return d(Math.floor(e.getUTCMilliseconds()*Math.pow(10,n-3)),t.length)}},f={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function h(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),i=r%60;return 0===i?n+String(a):n+String(a)+(t||"")+d(i,2)}function m(e,t){return e%60==0?(e>0?"-":"+")+d(Math.abs(e)/60,2):v(e,t)}function v(e,t){var n=Math.abs(e);return(e>0?"-":"+")+d(Math.floor(n/60),2)+(t||"")+d(n%60,2)}var g={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear();return n.ordinalNumber(r>0?r:1-r,{unit:"year"})}return p.y(e,t)},Y:function(e,t,n,r){var a=(0,u.Z)(e,r),i=a>0?a:1-a;return"YY"===t?d(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):d(i,t.length)},R:function(e,t){return d((0,s.Z)(e),t.length)},u:function(e,t){return d(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return d(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return d(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return p.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return d(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var a=(0,c.Z)(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):d(a,t.length)},I:function(e,t,n){var r=(0,o.Z)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):d(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):p.d(e,t)},D:function(e,t,n){var r=function(e){(0,l.Z)(1,arguments);var t=(0,i.default)(e),n=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((n-t.getTime())/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):d(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var a=e.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return d(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var a=e.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return d(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return d(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,a=e.getUTCHours();switch(r=12===a?f.noon:0===a?f.midnight:a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,a=e.getUTCHours();switch(r=a>=17?f.evening:a>=12?f.afternoon:a>=4?f.morning:f.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return p.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):p.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):d(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):d(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):p.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):p.s(e,t)},S:function(e,t){return p.S(e,t)},X:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return m(a);case"XXXX":case"XX":return v(a);default:return v(a,":")}},x:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return m(a);case"xxxx":case"xx":return v(a);default:return v(a,":")}},O:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+h(a,":");default:return"GMT"+v(a,":")}},z:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+h(a,":");default:return"GMT"+v(a,":")}},t:function(e,t,n,r){return d(Math.floor((r._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,r){return d((r._originalDate||e).getTime(),t.length)}},x=n(2282),b=n(8389),y=n(6645),w=n(3024),k=n(795),S=n(6092),j=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,C=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,N=/^'([^]*?)'?$/,T=/''/g,E=/[a-zA-Z]/;function D(e,t,n){(0,l.Z)(2,arguments);var o,s,c,u,d,p,f,h,m,v,D,M,_,A,L,I,P,O,R=String(t),F=(0,k.j)(),B=null!==(o=null!==(s=null==n?void 0:n.locale)&&void 0!==s?s:F.locale)&&void 0!==o?o:S.Z,z=(0,w.Z)(null!==(c=null!==(u=null!==(d=null!==(p=null==n?void 0:n.firstWeekContainsDate)&&void 0!==p?p:null==n?void 0:null===(f=n.locale)||void 0===f?void 0:null===(h=f.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==d?d:F.firstWeekContainsDate)&&void 0!==u?u:null===(m=F.locale)||void 0===m?void 0:null===(v=m.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==c?c:1);if(!(z>=1&&z<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Z=(0,w.Z)(null!==(D=null!==(M=null!==(_=null!==(A=null==n?void 0:n.weekStartsOn)&&void 0!==A?A:null==n?void 0:null===(L=n.locale)||void 0===L?void 0:null===(I=L.options)||void 0===I?void 0:I.weekStartsOn)&&void 0!==_?_:F.weekStartsOn)&&void 0!==M?M:null===(P=F.locale)||void 0===P?void 0:null===(O=P.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==D?D:0);if(!(Z>=0&&Z<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!B.localize)throw RangeError("locale must contain localize property");if(!B.formatLong)throw RangeError("locale must contain formatLong property");var H=(0,i.default)(e);if(!(0,r.default)(H))throw RangeError("Invalid time value");var U=(0,b.Z)(H),V=(0,a.Z)(H,U),W={firstWeekContainsDate:z,weekStartsOn:Z,locale:B,_originalDate:H};return R.match(C).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,x.Z[t])(e,B.formatLong):e}).join("").match(j).map(function(r){if("''"===r)return"'";var a,i=r[0];if("'"===i)return(a=r.match(N))?a[1].replace(T,"'"):r;var l=g[i];if(l)return!(null!=n&&n.useAdditionalWeekYearTokens)&&(0,y.Do)(r)&&(0,y.qp)(r,t,String(e)),!(null!=n&&n.useAdditionalDayOfYearTokens)&&(0,y.Iu)(r)&&(0,y.qp)(r,t,String(e)),l(V,r,B.localize,W);if(i.match(E))throw RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r}).join("")}},9986:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e){return(0,a.Z)(1,arguments),(0,r.default)(e).getDate()}},8931:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e){return(0,a.Z)(1,arguments),(0,r.default)(e).getDay()}},6314:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e){return(0,a.Z)(1,arguments),(0,r.default)(e).getHours()}},9378:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(6381),a=n(2350),i=n(568);function l(e){return(0,i.Z)(1,arguments),(0,a.default)(e,{weekStartsOn:1})}function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e);return Math.round((l(t).getTime()-(function(e){(0,i.Z)(1,arguments);var t=function(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear(),a=new Date(0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);var o=l(a),s=new Date(0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);var c=l(s);return t.getTime()>=o.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),l(n)})(t).getTime())/6048e5)+1}},5502:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e){return(0,a.Z)(1,arguments),(0,r.default)(e).getMinutes()}},6702:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e){return(0,a.Z)(1,arguments),(0,r.default)(e).getMonth()}},6789:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e){return(0,a.Z)(1,arguments),Math.floor((0,r.default)(e).getMonth()/3)+1}},9724:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e){return(0,a.Z)(1,arguments),(0,r.default)(e).getSeconds()}},6696:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e){return(0,a.Z)(1,arguments),(0,r.default)(e).getTime()}},3237:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e){return(0,a.Z)(1,arguments),(0,r.default)(e).getFullYear()}},4174:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e,t){(0,a.Z)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return n.getTime()>i.getTime()}},2256:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e,t){(0,a.Z)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return n.getTime()<i.getTime()}},2897:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(1002),a=n(568);function i(e){return(0,a.Z)(1,arguments),e instanceof Date||"object"===(0,r.Z)(e)&&"[object Date]"===Object.prototype.toString.call(e)}},9634:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e,t){(0,a.Z)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return n.getTime()===i.getTime()}},9905:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(8494),a=n(568);function i(e,t){(0,a.Z)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return n.getTime()===i.getTime()}},5500:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e,t){(0,a.Z)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()}},3280:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(5831),a=n(568);function i(e,t){(0,a.Z)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return n.getTime()===i.getTime()}},1151:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e,t){(0,a.Z)(2,arguments);var n=(0,r.default)(e),i=(0,r.default)(t);return n.getFullYear()===i.getFullYear()}},2304:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(2897),a=n(6381),i=n(568);function l(e){return(0,i.Z)(1,arguments),(!!(0,r.default)(e)||"number"==typeof e)&&!isNaN(Number((0,a.default)(e)))}},5538:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e,t){(0,a.Z)(2,arguments);var n=(0,r.default)(e).getTime(),i=(0,r.default)(t.start).getTime(),l=(0,r.default)(t.end).getTime();if(!(i<=l))throw RangeError("Invalid interval");return n>=i&&n<=l}},47:function(e,t,n){"use strict";function r(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}n.d(t,{Z:function(){return r}})},2834:function(e,t,n){"use strict";function r(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):a;r=e.formattingValues[i]||e.formattingValues[a]}else{var l=e.defaultWidth,o=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[l]}return r[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,{Z:function(){return r}})},7632:function(e,t,n){"use strict";function r(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.width,i=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],l=t.match(i);if(!l)return null;var o=l[0],s=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(s,function(e){return e.test(o)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(s,function(e){return e.test(o)});return n=e.valueCallback?e.valueCallback(c):c,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(o.length)}}}n.d(t,{Z:function(){return r}})},6669:function(e,t,n){"use strict";function r(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var a=r[0],i=t.match(e.parsePattern);if(!i)return null;var l=e.valueCallback?e.valueCallback(i[0]):i[0];return{value:l=n.valueCallback?n.valueCallback(l):l,rest:t.slice(a.length)}}}n.d(t,{Z:function(){return r}})},2011:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(1002),a=n(6381),i=n(568);function l(e){var t,n;if((0,i.Z)(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==(0,r.Z)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach(function(e){var t=(0,a.default)(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)}),n||new Date(NaN)}},2117:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(1002),a=n(6381),i=n(568);function l(e){var t,n;if((0,i.Z)(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==(0,r.Z)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach(function(e){var t=(0,a.default)(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)}),n||new Date(NaN)}},2980:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(2042),a=n(568),i=n(3024);function l(e,t){(0,a.Z)(1,arguments);var n,l,m,v=(0,i.Z)(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==v&&1!==v&&0!==v)throw RangeError("additionalDigits must be 0, 1 or 2");if(!("string"==typeof e||"[object String]"===Object.prototype.toString.call(e)))return new Date(NaN);var g=function(e){var t,n={},r=e.split(o.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],o.timeZoneDelimiter.test(n.date)&&(n.date=e.split(o.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var a=o.timezone.exec(t);a?(n.time=t.replace(a[1],""),n.timezone=a[1]):n.time=t}return n}(e);if(g.date){var x=function(e,t){var n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?a:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(g.date,v);l=function(e,t){if(null===t)return new Date(NaN);var n,r,a=e.match(s);if(!a)return new Date(NaN);var i=!!a[4],l=d(a[1]),o=d(a[2])-1,c=d(a[3]),u=d(a[4]),p=d(a[5])-1;if(i)return u>=1&&u<=53&&p>=0&&p<=6?((n=new Date(0)).setUTCFullYear(t,0,4),r=n.getUTCDay()||7,n.setUTCDate(n.getUTCDate()+((u-1)*7+p+1-r)),n):new Date(NaN);var m=new Date(0);return o>=0&&o<=11&&c>=1&&c<=(f[o]||(h(t)?29:28))&&l>=1&&l<=(h(t)?366:365)?(m.setUTCFullYear(t,o,Math.max(l,c)),m):new Date(NaN)}(x.restDateString,x.year)}if(!l||isNaN(l.getTime()))return new Date(NaN);var b=l.getTime(),y=0;if(g.time&&isNaN(y=function(e){var t=e.match(c);if(!t)return NaN;var n=p(t[1]),a=p(t[2]),i=p(t[3]);return(24===n?0===a&&0===i:i>=0&&i<60&&a>=0&&a<60&&n>=0&&n<25)?n*r.vh+a*r.yJ+1e3*i:NaN}(g.time)))return new Date(NaN);if(g.timezone){if(isNaN(m=function(e){if("Z"===e)return 0;var t=e.match(u);if(!t)return 0;var n="+"===t[1]?-1:1,a=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return i>=0&&i<=59?n*(a*r.vh+i*r.yJ):NaN}(g.timezone)))return new Date(NaN)}else{var w=new Date(b+y),k=new Date(0);return k.setFullYear(w.getUTCFullYear(),w.getUTCMonth(),w.getUTCDate()),k.setHours(w.getUTCHours(),w.getUTCMinutes(),w.getUTCSeconds(),w.getUTCMilliseconds()),k}return new Date(b+y+m)}var o={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},s=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,c=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,u=/^([+-])(\d{2})(?::?(\d{2}))?$/;function d(e){return e?parseInt(e):1}function p(e){return e&&parseFloat(e.replace(",","."))||0}var f=[31,null,31,30,31,30,31,31,30,31,30,31];function h(e){return e%400==0||e%4==0&&e%100!=0}},1035:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eA}});var r=n(1002),a=n(1563);function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,a.Z)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,l=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw l}}}}var l=n(6092),o=n(7940),s=n(6381),c=n(2282),u=n(8389),d=n(6645),p=n(3024),f=n(568),h=n(7326),m=n(136),v=n(1120);function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(g=function(){return!!e})()}var x=n(2963);function b(e){var t=g();return function(){var n,r=(0,v.Z)(e);return n=t?Reflect.construct(r,arguments,(0,v.Z)(this).constructor):r.apply(this,arguments),(0,x.Z)(this,n)}}var y=n(5671),w=n(3144),k=n(4942),S=function(){function e(){(0,y.Z)(this,e),(0,k.Z)(this,"priority",void 0),(0,k.Z)(this,"subPriority",0)}return(0,w.Z)(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),j=function(e){(0,m.Z)(n,e);var t=b(n);function n(e,r,a,i,l){var o;return(0,y.Z)(this,n),(o=t.call(this)).value=e,o.validateValue=r,o.setValue=a,o.priority=i,l&&(o.subPriority=l),o}return(0,w.Z)(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(S),C=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",10),(0,k.Z)((0,h.Z)(e),"subPriority",-1),e}return(0,w.Z)(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(S),N=function(){function e(){(0,y.Z)(this,e),(0,k.Z)(this,"incompatibleTokens",void 0),(0,k.Z)(this,"priority",void 0),(0,k.Z)(this,"subPriority",void 0)}return(0,w.Z)(e,[{key:"run",value:function(e,t,n,r){var a=this.parse(e,t,n,r);return a?{setter:new j(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),T=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",140),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["R","u","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(N),E=n(2042),D={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},M={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function _(e,t){return e?{value:t(e.value),rest:e.rest}:e}function A(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function L(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,a=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,l=n[5]?parseInt(n[5],10):0;return{value:r*(a*E.vh+i*E.yJ+l*E.qk),rest:t.slice(n[0].length)}}function I(e){return A(D.anyDigitsSigned,e)}function P(e,t){switch(e){case 1:return A(D.singleDigit,t);case 2:return A(D.twoDigits,t);case 3:return A(D.threeDigits,t);case 4:return A(D.fourDigits,t);default:return A(RegExp("^\\d{1,"+e+"}"),t)}}function O(e,t){switch(e){case 1:return A(D.singleDigitSigned,t);case 2:return A(D.twoDigitsSigned,t);case 3:return A(D.threeDigitsSigned,t);case 4:return A(D.fourDigitsSigned,t);default:return A(RegExp("^-?\\d{1,"+e+"}"),t)}}function R(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function F(e,t){var n,r=t>0,a=r?t:1-t;if(a<=50)n=e||100;else{var i=a+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?n:1-n}function B(e){return e%400==0||e%4==0&&e%100!=0}var z=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",130),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return _(P(4,e),r);case"yo":return _(n.ordinalNumber(e,{unit:"year"}),r);default:return _(P(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var a=F(n.year,r);return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(N),Z=n(256),H=n(7285),U=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",130),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return _(P(4,e),r);case"Yo":return _(n.ordinalNumber(e,{unit:"year"}),r);default:return _(P(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var a=(0,Z.Z)(e,r);if(n.isTwoDigitYear){var i=F(n.year,a);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,H.Z)(e,r)}var l="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(l,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,H.Z)(e,r)}}]),n}(N),V=n(1582),W=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",130),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t){return"R"===t?O(4,e):O(t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),(0,V.Z)(r)}}]),n}(N),G=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",130),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t){return"u"===t?O(4,e):O(t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(N),Y=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",120),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return P(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),n}(N),q=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",120),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return P(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),n}(N),K=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),(0,k.Z)((0,h.Z)(e),"priority",110),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return _(A(D.month,e),r);case"MM":return _(P(2,e),r);case"Mo":return _(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(N),$=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",110),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return _(A(D.month,e),r);case"LL":return _(P(2,e),r);case"Lo":return _(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(N),X=n(9291),J=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",100),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return A(D.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return P(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return(0,H.Z)(function(e,t,n){(0,f.Z)(2,arguments);var r=(0,s.default)(e),a=(0,p.Z)(t),i=(0,X.Z)(r,n)-a;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,n,r),r)}}]),n}(N),Q=n(2310),ee=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",100),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return A(D.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return P(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return(0,V.Z)(function(e,t){(0,f.Z)(2,arguments);var n=(0,s.default)(e),r=(0,p.Z)(t),a=(0,Q.Z)(n)-r;return n.setUTCDate(n.getUTCDate()-7*a),n}(e,n))}}]),n}(N),et=[31,28,31,30,31,30,31,31,30,31,30,31],en=[31,29,31,30,31,30,31,31,30,31,30,31],er=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",90),(0,k.Z)((0,h.Z)(e),"subPriority",1),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return A(D.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return P(t.length,e)}}},{key:"validate",value:function(e,t){var n=B(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=en[r]:t>=1&&t<=et[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(N),ea=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",90),(0,k.Z)((0,h.Z)(e),"subpriority",1),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return A(D.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return P(t.length,e)}}},{key:"validate",value:function(e,t){return B(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(N),ei=n(795);function el(e,t,n){(0,f.Z)(2,arguments);var r,a,i,l,o,c,u,d,h=(0,ei.j)(),m=(0,p.Z)(null!==(r=null!==(a=null!==(i=null!==(l=null==n?void 0:n.weekStartsOn)&&void 0!==l?l:null==n?void 0:null===(o=n.locale)||void 0===o?void 0:null===(c=o.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==i?i:h.weekStartsOn)&&void 0!==a?a:null===(u=h.locale)||void 0===u?void 0:null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==r?r:0);if(!(m>=0&&m<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,s.default)(e),g=(0,p.Z)(t),x=v.getUTCDay();return v.setUTCDate(v.getUTCDate()+(((g%7+7)%7<m?7:0)+g-x)),v}var eo=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",90),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=el(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(N),es=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",90),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n,r){var a=function(e){return(e+r.weekStartsOn+6)%7+7*Math.floor((e-1)/7)};switch(t){case"e":case"ee":return _(P(t.length,e),a);case"eo":return _(n.ordinalNumber(e,{unit:"day"}),a);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=el(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(N),ec=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",90),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n,r){var a=function(e){return(e+r.weekStartsOn+6)%7+7*Math.floor((e-1)/7)};switch(t){case"c":case"cc":return _(P(t.length,e),a);case"co":return _(n.ordinalNumber(e,{unit:"day"}),a);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=el(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(N),eu=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",90),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return P(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return _(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return _(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return _(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return _(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=function(e,t){(0,f.Z)(2,arguments);var n=(0,p.Z)(t);n%7==0&&(n-=7);var r=(0,s.default)(e),a=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+a),r}(e,n)).setUTCHours(0,0,0,0),e}}]),n}(N),ed=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",80),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(R(n),0,0,0),e}}]),n}(N),ep=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",80),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(R(n),0,0,0),e}}]),n}(N),ef=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",80),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["a","b","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(R(n),0,0,0),e}}]),n}(N),eh=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",70),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["H","K","k","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return A(D.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return P(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(N),em=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",70),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return A(D.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return P(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(N),ev=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",70),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["h","H","k","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return A(D.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return P(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(N),eg=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",70),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return A(D.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return P(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){return e.setUTCHours(n<=24?n%24:n,0,0,0),e}}]),n}(N),ex=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",60),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return A(D.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return P(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(N),eb=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",50),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return A(D.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return P(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(N),ey=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",30),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["t","T"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t){return _(P(t.length,e),function(e){return Math.floor(e*Math.pow(10,-t.length+3))})}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(N),ew=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",10),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["t","T","x"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t){switch(t){case"X":return L(M.basicOptionalMinutes,e);case"XX":return L(M.basic,e);case"XXXX":return L(M.basicOptionalSeconds,e);case"XXXXX":return L(M.extendedOptionalSeconds,e);default:return L(M.extended,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(N),ek=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",10),(0,k.Z)((0,h.Z)(e),"incompatibleTokens",["t","T","X"]),e}return(0,w.Z)(n,[{key:"parse",value:function(e,t){switch(t){case"x":return L(M.basicOptionalMinutes,e);case"xx":return L(M.basic,e);case"xxxx":return L(M.basicOptionalSeconds,e);case"xxxxx":return L(M.extendedOptionalSeconds,e);default:return L(M.extended,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(N),eS=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",40),(0,k.Z)((0,h.Z)(e),"incompatibleTokens","*"),e}return(0,w.Z)(n,[{key:"parse",value:function(e){return I(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(N),ej=function(e){(0,m.Z)(n,e);var t=b(n);function n(){var e;(0,y.Z)(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,k.Z)((0,h.Z)(e),"priority",20),(0,k.Z)((0,h.Z)(e),"incompatibleTokens","*"),e}return(0,w.Z)(n,[{key:"parse",value:function(e){return I(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(N),eC={G:new T,y:new z,Y:new U,R:new W,u:new G,Q:new Y,q:new q,M:new K,L:new $,w:new J,I:new ee,d:new er,D:new ea,E:new eo,e:new es,c:new ec,i:new eu,a:new ed,b:new ep,B:new ef,h:new eh,H:new em,K:new ev,k:new eg,m:new ex,s:new eb,S:new ey,X:new ew,x:new ek,t:new eS,T:new ej},eN=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,eT=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,eE=/^'([^]*?)'?$/,eD=/''/g,eM=/\S/,e_=/[a-zA-Z]/;function eA(e,t,n,a){(0,f.Z)(3,arguments);var h=String(e),m=String(t),v=(0,ei.j)(),g=null!==(y=null!==(w=null==a?void 0:a.locale)&&void 0!==w?w:v.locale)&&void 0!==y?y:l.Z;if(!g.match)throw RangeError("locale must contain match property");var x=(0,p.Z)(null!==(k=null!==(S=null!==(j=null!==(N=null==a?void 0:a.firstWeekContainsDate)&&void 0!==N?N:null==a?void 0:null===(T=a.locale)||void 0===T?void 0:null===(E=T.options)||void 0===E?void 0:E.firstWeekContainsDate)&&void 0!==j?j:v.firstWeekContainsDate)&&void 0!==S?S:null===(D=v.locale)||void 0===D?void 0:null===(M=D.options)||void 0===M?void 0:M.firstWeekContainsDate)&&void 0!==k?k:1);if(!(x>=1&&x<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=(0,p.Z)(null!==(_=null!==(A=null!==(L=null!==(I=null==a?void 0:a.weekStartsOn)&&void 0!==I?I:null==a?void 0:null===(P=a.locale)||void 0===P?void 0:null===(O=P.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==L?L:v.weekStartsOn)&&void 0!==A?A:null===(R=v.locale)||void 0===R?void 0:null===(F=R.options)||void 0===F?void 0:F.weekStartsOn)&&void 0!==_?_:0);if(!(b>=0&&b<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===m)return""===h?(0,s.default)(n):new Date(NaN);var y,w,k,S,j,N,T,E,D,M,_,A,L,I,P,O,R,F,B,z={firstWeekContainsDate:x,weekStartsOn:b,locale:g},Z=[new C],H=m.match(eT).map(function(e){var t=e[0];return t in c.Z?(0,c.Z[t])(e,g.formatLong):e}).join("").match(eN),U=[],V=i(H);try{for(V.s();!(B=V.n()).done;){var W=function(){var t=B.value;!(null!=a&&a.useAdditionalWeekYearTokens)&&(0,d.Do)(t)&&(0,d.qp)(t,m,e),!(null!=a&&a.useAdditionalDayOfYearTokens)&&(0,d.Iu)(t)&&(0,d.qp)(t,m,e);var n=t[0],r=eC[n];if(r){var i=r.incompatibleTokens;if(Array.isArray(i)){var l=U.find(function(e){return i.includes(e.token)||e.token===n});if(l)throw RangeError("The format string mustn't contain `".concat(l.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===r.incompatibleTokens&&U.length>0)throw RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));U.push({token:n,fullToken:t});var o=r.run(h,t,g.match,z);if(!o)return{v:new Date(NaN)};Z.push(o.setter),h=o.rest}else{if(n.match(e_))throw RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(eE)[1].replace(eD,"'")),0!==h.indexOf(t))return{v:new Date(NaN)};h=h.slice(t.length)}}();if("object"===(0,r.Z)(W))return W.v}}catch(e){V.e(e)}finally{V.f()}if(h.length>0&&eM.test(h))return new Date(NaN);var G=Z.map(function(e){return e.priority}).sort(function(e,t){return t-e}).filter(function(e,t,n){return n.indexOf(e)===t}).map(function(e){return Z.filter(function(t){return t.priority===e}).sort(function(e,t){return t.subPriority-e.subPriority})}).map(function(e){return e[0]}),Y=(0,s.default)(n);if(isNaN(Y.getTime()))return new Date(NaN);var q,K=(0,o.Z)(Y,(0,u.Z)(Y)),$={},X=i(G);try{for(X.s();!(q=X.n()).done;){var J=q.value;if(!J.validate(K,z))return new Date(NaN);var Q=J.set(K,$,z);Array.isArray(Q)?(K=Q[0],function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}($,Q[1])):K=Q}}catch(e){X.e(e)}finally{X.f()}return K}},8774:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(3024),a=n(6381),i=n(568);function l(e,t){(0,i.Z)(2,arguments);var n=(0,a.default)(e),l=(0,r.Z)(t);return n.setHours(l),n}},4845:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(3024),a=n(6381),i=n(568);function l(e,t){(0,i.Z)(2,arguments);var n=(0,a.default)(e),l=(0,r.Z)(t);return n.setMinutes(l),n}},6954:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(3024),a=n(6381),i=n(568);function l(e,t){(0,i.Z)(2,arguments);var n=(0,a.default)(e),l=(0,r.Z)(t),o=n.getFullYear(),s=n.getDate(),c=new Date(0);c.setFullYear(o,l,15),c.setHours(0,0,0,0);var u=function(e){(0,i.Z)(1,arguments);var t=(0,a.default)(e),n=t.getFullYear(),r=t.getMonth(),l=new Date(0);return l.setFullYear(n,r+1,0),l.setHours(0,0,0,0),l.getDate()}(c);return n.setMonth(l,Math.min(s,u)),n}},8617:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(3024),a=n(6381),i=n(6954),l=n(568);function o(e,t){(0,l.Z)(2,arguments);var n=(0,a.default)(e),o=(0,r.Z)(t),s=Math.floor(n.getMonth()/3)+1;return(0,i.default)(n,n.getMonth()+3*(o-s))}},6329:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(3024),a=n(6381),i=n(568);function l(e,t){(0,i.Z)(2,arguments);var n=(0,a.default)(e),l=(0,r.Z)(t);return n.setSeconds(l),n}},3783:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(3024),a=n(6381),i=n(568);function l(e,t){(0,i.Z)(2,arguments);var n=(0,a.default)(e),l=(0,r.Z)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(l),n)}},4470:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(1002),a=n(6381),i=n(6954),l=n(3024),o=n(568);function s(e,t){if((0,o.Z)(2,arguments),"object"!==(0,r.Z)(t)||null===t)throw RangeError("values parameter must be an object");var n=(0,a.default)(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=(0,i.default)(n,t.month)),null!=t.date&&n.setDate((0,l.Z)(t.date)),null!=t.hours&&n.setHours((0,l.Z)(t.hours)),null!=t.minutes&&n.setMinutes((0,l.Z)(t.minutes)),null!=t.seconds&&n.setSeconds((0,l.Z)(t.seconds)),null!=t.milliseconds&&n.setMilliseconds((0,l.Z)(t.milliseconds)),n)}},8494:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e){(0,a.Z)(1,arguments);var t=(0,r.default)(e);return t.setHours(0,0,0,0),t}},258:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e){(0,a.Z)(1,arguments);var t=(0,r.default)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},5831:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e){(0,a.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth();return t.setMonth(n-n%3,1),t.setHours(0,0,0,0),t}},2350:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(6381),a=n(3024),i=n(568),l=n(795);function o(e,t){(0,i.Z)(1,arguments);var n,o,s,c,u,d,p,f,h=(0,l.j)(),m=(0,a.Z)(null!==(n=null!==(o=null!==(s=null!==(c=null==t?void 0:t.weekStartsOn)&&void 0!==c?c:null==t?void 0:null===(u=t.locale)||void 0===u?void 0:null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==s?s:h.weekStartsOn)&&void 0!==o?o:null===(p=h.locale)||void 0===p?void 0:null===(f=p.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,r.default)(e),g=v.getDay();return v.setDate(v.getDate()-((g<m?7:0)+g-m)),v.setHours(0,0,0,0),v}},8078:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(6381),a=n(568);function i(e){(0,a.Z)(1,arguments);var t=(0,r.default)(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}},5394:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(7633),a=n(568),i=n(3024);function l(e,t){(0,a.Z)(2,arguments);var n=(0,i.Z)(t);return(0,r.default)(e,-n)}},5516:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(6797),a=n(568),i=n(3024);function l(e,t){(0,a.Z)(2,arguments);var n=(0,i.Z)(t);return(0,r.default)(e,-n)}},7940:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(8450),a=n(568),i=n(3024);function l(e,t){(0,a.Z)(2,arguments);var n=(0,i.Z)(t);return(0,r.Z)(e,-n)}},6640:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(7859),a=n(568),i=n(3024);function l(e,t){(0,a.Z)(2,arguments);var n=(0,i.Z)(t);return(0,r.default)(e,-n)}},9359:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(3024),a=n(7930),i=n(568);function l(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(t);return(0,a.default)(e,-n)}},1806:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(3024),a=n(5680),i=n(568);function l(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(t);return(0,a.default)(e,-n)}},8257:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(3024),a=n(3472),i=n(568);function l(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(t);return(0,a.default)(e,-n)}},5717:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(3024),a=n(932),i=n(568);function l(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(t);return(0,a.default)(e,-n)}},6381:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(1002),a=n(568);function i(e){(0,a.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,r.Z)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},4080:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return b}});let r=n(8754),a=n(1757),i=n(5893),l=a._(n(7294)),o=r._(n(3935)),s=r._(n(3867)),c=n(5283),u=n(6594),d=n(3945);n(3179);let p=n(1928),f=r._(n(3872)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function m(e,t,n,r,a,i,l){let o=null==e?void 0:e.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&a(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,a=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>a,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{a=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function v(e){return l.use?{fetchPriority:e}:{fetchpriority:e}}let g=(0,l.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:a,height:o,width:s,decoding:c,className:u,style:d,fetchPriority:p,placeholder:f,loading:h,unoptimized:g,fill:x,onLoadRef:b,onLoadingCompleteRef:y,setBlurComplete:w,setShowAltText:k,sizesInput:S,onLoad:j,onError:C,...N}=e;return(0,i.jsx)("img",{...N,...v(p),loading:h,width:s,height:o,decoding:c,"data-nimg":x?"fill":"1",className:u,style:d,sizes:a,srcSet:r,src:n,ref:(0,l.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(C&&(e.src=e.src),e.complete&&m(e,f,b,y,w,g,S))},[n,f,b,y,w,C,g,S,t]),onLoad:e=>{m(e.currentTarget,f,b,y,w,g,S)},onError:e=>{k(!0),"empty"!==f&&w(!0),C&&C(e)}})});function x(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...v(n.fetchPriority)};return t&&o.default.preload?(o.default.preload(n.src,r),null):(0,i.jsx)(s.default,{children:(0,i.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let b=(0,l.forwardRef)((e,t)=>{let n=(0,l.useContext)(p.RouterContext),r=(0,l.useContext)(d.ImageConfigContext),a=(0,l.useMemo)(()=>{var e;let t=h||r||u.imageConfigDefault,n=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),a=t.deviceSizes.sort((e,t)=>e-t),i=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:n,deviceSizes:a,qualities:i}},[r]),{onLoad:o,onLoadingComplete:s}=e,m=(0,l.useRef)(o);(0,l.useEffect)(()=>{m.current=o},[o]);let v=(0,l.useRef)(s);(0,l.useEffect)(()=>{v.current=s},[s]);let[b,y]=(0,l.useState)(!1),[w,k]=(0,l.useState)(!1),{props:S,meta:j}=(0,c.getImgProps)(e,{defaultLoader:f.default,imgConf:a,blurComplete:b,showAltText:w});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g,{...S,unoptimized:j.unoptimized,placeholder:j.placeholder,fill:j.fill,onLoadRef:m,onLoadingCompleteRef:v,setBlurComplete:y,setShowAltText:k,sizesInput:e.sizes,ref:t}),j.priority?(0,i.jsx)(x,{isAppRouter:!n,imgAttributes:S}):null]})});("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)},2602: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 o},noSSR:function(){return l}});let r=n(8754);n(5893),n(7294);let a=r._(n(5491));function i(e){return{default:(null==e?void 0:e.default)||e}}function l(e,t){return delete t.webpack,delete t.modules,e(t)}function o(e,t){let n=a.default,r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e});let o=(r={...r,...t}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=o?o().then(i):Promise.resolve(i(()=>null))}):(delete r.webpack,delete r.modules,l(n,r))}("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)},5283:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return o}}),n(3179);let r=n(6630),a=n(6594);function i(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function o(e,t){var n,o;let s,c,u,{src:d,sizes:p,unoptimized:f=!1,priority:h=!1,loading:m,className:v,quality:g,width:x,height:b,fill:y=!1,style:w,overrideSrc:k,onLoad:S,onLoadingComplete:j,placeholder:C="empty",blurDataURL:N,fetchPriority:T,decoding:E="async",layout:D,objectFit:M,objectPosition:_,lazyBoundary:A,lazyRoot:L,...I}=e,{imgConf:P,showAltText:O,blurComplete:R,defaultLoader:F}=t,B=P||a.imageConfigDefault;if("allSizes"in B)s=B;else{let e=[...B.deviceSizes,...B.imageSizes].sort((e,t)=>e-t),t=B.deviceSizes.sort((e,t)=>e-t),r=null==(n=B.qualities)?void 0:n.sort((e,t)=>e-t);s={...B,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===F)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let z=I.loader||F;delete I.loader,delete I.srcSet;let Z="__next_img_default"in z;if(Z){if("custom"===s.loader)throw Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=z;z=t=>{let{config:n,...r}=t;return e(r)}}if(D){"fill"===D&&(y=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[D];e&&(w={...w,...e});let t={responsive:"100vw",fill:"100vw"}[D];t&&!p&&(p=t)}let H="",U=l(x),V=l(b);if("object"==typeof(o=d)&&(i(o)||void 0!==o.src)){let e=i(d)?d.default:d;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(c=e.blurWidth,u=e.blurHeight,N=N||e.blurDataURL,H=e.src,!y){if(U||V){if(U&&!V){let t=U/e.width;V=Math.round(e.height*t)}else if(!U&&V){let t=V/e.height;U=Math.round(e.width*t)}}else U=e.width,V=e.height}}let W=!h&&("lazy"===m||void 0===m);(!(d="string"==typeof d?d:H)||d.startsWith("data:")||d.startsWith("blob:"))&&(f=!0,W=!1),s.unoptimized&&(f=!0),Z&&d.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(T="high");let G=l(g),Y=Object.assign(y?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:M,objectPosition:_}:{},O?{}:{color:"transparent"},w),q=R||"empty"===C?null:"blur"===C?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:U,heightInt:V,blurWidth:c,blurHeight:u,blurDataURL:N||"",objectFit:Y.objectFit})+'")':'url("'+C+'")',K=q?{backgroundSize:Y.objectFit||"cover",backgroundPosition:Y.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:q}:{},$=function(e){let{config:t,src:n,unoptimized:r,width:a,quality:i,sizes:l,loader:o}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:s,kind:c}=function(e,t,n){let{deviceSizes:r,allSizes:a}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:a.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:a,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>a.find(t=>t>=e)||a[a.length-1]))],kind:"x"}}(t,a,l),u=s.length-1;return{sizes:l||"w"!==c?l:"100vw",srcSet:s.map((e,r)=>o({config:t,src:n,quality:i,width:e})+" "+("w"===c?e:r+1)+c).join(", "),src:o({config:t,src:n,quality:i,width:s[u]})}}({config:s,src:d,unoptimized:f,width:U,quality:G,sizes:p,loader:z});return{props:{...I,loading:W?"lazy":m,fetchPriority:T,width:U,height:V,decoding:E,className:v,style:{...Y,...K},sizes:$.sizes,srcSet:$.srcSet,src:k||$.src},meta:{unoptimized:f,priority:h,placeholder:C,fill:y}}}},6630:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:a,blurDataURL:i,objectFit:l}=e,o=r?40*r:t,s=a?40*a:n,c=o&&s?"viewBox='0 0 "+o+" "+s+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+c+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(c?"none":"contain"===l?"xMidYMid":"cover"===l?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},6210: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 s},getImageProps:function(){return o}});let r=n(8754),a=n(5283),i=n(4080),l=r._(n(3872));function o(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let s=i.Image},3872:function(e,t){"use strict";function n(e){var t;let{config:n,src:r,width:a,quality:i}=e,l=i||(null==(t=n.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return n.path+"?url="+encodeURIComponent(r)+"&w="+a+"&q="+l}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},1159:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return r}});let r=n(8754)._(n(7294)).default.createContext(null)},5491:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let r=n(8754)._(n(7294)),a=n(1159),i=[],l=[],o=!1;function s(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function u(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),i=null;function s(){if(!i){let t=new c(e,n);i={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return i.promise()}if(!o){let e=n.webpack?n.webpack():n.modules;e&&l.push(t=>{for(let n of e)if(t.includes(n))return s()})}function u(e,t){!function(){s();let e=r.default.useContext(a.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let l=r.default.useSyncExternalStore(i.subscribe,i.getCurrentValue,i.getCurrentValue);return r.default.useImperativeHandle(t,()=>({retry:i.retry}),[]),r.default.useMemo(()=>{var t;return l.loading||l.error?r.default.createElement(n.loading,{isLoading:l.loading,pastDelay:l.pastDelay,timedOut:l.timedOut,error:l.error,retry:i.retry}):l.loaded?r.default.createElement((t=l.loaded)&&t.default?t.default:t,e):null},[e,l])}return u.preload=()=>s(),u.displayName="LoadableComponent",r.default.forwardRef(u)}(s,e)}function d(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then(()=>{if(e.length)return d(e,t)})}u.preloadAll=()=>new Promise((e,t)=>{d(i).then(e,t)}),u.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(o=!0,t());d(l,e).then(n,n)})),window.__NEXT_PRELOADREADY=u.preloadReady;let p=u},9249:function(e,t,n){"use strict";n.d(t,{k:function(){return l},x:function(){return i}});var r=n(2238),a=n(1955);let i=async e=>{let t={method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json",keyId:"c5f7187c-3a1f-4d69-8ad6-18e1b8363806"}},n=await fetch("".concat("https://apiextra.seamilano.eu/ols-auth/v1","/auth/login"),t),i=await n.json();var l=new Date;if(l.setHours(l.getHours()+r.Y8),i.token){let e={token:i.token,signToken:i.signToken,tokenEshop:i.tokenEshop,start:l.getTime(),username:i.user.email,userId:i.user.userId,codTessera:i.user.codTessera,loyalityNumber:i.user.codTessera};return a.Z.set("token",JSON.stringify(e)),e}throw Error("Login error: "+n)},l=async e=>{await fetch("".concat("https://apiextra.seamilano.eu/ols-auth/v1","/auth/logout"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:e,keyId:"c5f7187c-3a1f-4d69-8ad6-18e1b8363806"}}).then(e=>{a.Z.remove("token")}).finally(()=>{a.Z.remove("token")}).catch(e=>{console.error("[Logout] error -> ",e)})}},1643:function(e,t,n){"use strict";let r=(0,n(4480).cn)({default:[],key:"airlineListAtomKey"});t.Z=r},7200:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});let r=(0,n(4480).cn)({default:null,key:"hoveredElement"})},9208:function(e,t,n){"use strict";let r=(0,n(4480).cn)({default:"ds",key:"IdPage"});t.Z=r},8449:function(e,t,n){"use strict";n.d(t,{OJ:function(){return x},MM:function(){return d},qm:function(){return c},tE:function(){return l},OV:function(){return k},bM:function(){return y},cX:function(){return w},v$:function(){return f},hD:function(){return g},iV:function(){return v},wy:function(){return a},A_:function(){return u},Rz:function(){return s},M:function(){return h},iY:function(){return m},QX:function(){return p.Z},c:function(){return b},Qw:function(){return S},EC:function(){return o},OO:function(){return i}});var r=n(4480),a=(0,r.cn)({default:"it",key:"languageAtomKey"}),i=(0,r.cn)({default:!1,key:"sideMenuAtom"}),l=(0,r.cn)({default:[],key:"flightList"}),o=(0,r.cn)({default:[],key:"serviceList"}),s=(0,r.cn)({default:null,key:"lastFlightListCall"}),c=(0,r.cn)({default:null,key:"flightDetails"}),u=(0,r.cn)({default:null,key:"lastFlightDetailsCall"}),d=(0,r.cn)({default:"",key:"CrumbsItem"}),p=n(9208),f=(0,r.cn)({default:!1,key:"HideCrumbs"}),h=(0,r.cn)({key:"loyaltyBalanceDataAtomKey",default:null}),m=(0,r.cn)({key:"loyaltyCatalogDataAtomKey",default:null}),v=(0,r.cn)({default:!1,key:"isSearchingFlightsAtomKey"}),g=(0,r.cn)({default:!1,key:"isDialogLoginOpenAtomKey"}),x=(0,r.cn)({default:"",key:"airlineIataAtomKey"}),b=(0,r.cn)({default:[],key:"previousFlightList"}),y=(0,r.cn)({default:[],key:"globalSearchResultAtomKey"}),w=(0,r.cn)({key:"GlobalSearchTermAtomKey",default:""}),k=(0,r.cn)({key:"GlobalSearchInfoAtomKey",default:{callInProgress:!1,searchStarted:!1,resultListInfo:null}}),S=(0,r.cn)({default:!1,key:"searchMenuAtom"})},2238:function(e,t,n){"use strict";n.d(t,{Et:function(){return l},Y8:function(){return r},lz:function(){return a},v3:function(){return i}});let r=8,a=(e,t,n)=>"".concat("https://secure.seamilano.eu/","/idp/pwdRemind?language=").concat(e,"&site_origin=").concat(t,"&return_url=").concat(n),i=(e,t,n)=>"".concat("https://secure.seamilano.eu/","/idp/registration?company=&language=").concat(e,"&return_url=").concat(n,"&site_origin=").concat(t),l=(e,t,n,r)=>"".concat("https://secure.seamilano.eu/","/idp/profile?company=&return_url=").concat(r,"&sign_token=").concat(e,"&currentUrl=profile&site_origin=").concat(n,"&language=").concat(t)},2399:function(e,t,n){"use strict";var r=n(5893);let a=e=>{let{className:t,color:n=""}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"256",height:"256",viewBox:"0 0 256 256",className:t,children:(0,r.jsxs)("g",{fill:"#000",strokeMiterlimit:"10",strokeWidth:"1",transform:"matrix(2.81 0 0 2.81 1.407 1.407)",children:[(0,r.jsx)("path",{d:"M45 66.739c-11.987 0-21.74-9.752-21.74-21.739S33.013 23.26 45 23.26 66.739 33.013 66.739 45 56.987 66.739 45 66.739zm0-37.479c-8.679 0-15.74 7.061-15.74 15.74S36.321 60.739 45 60.739 60.739 53.679 60.739 45 53.679 29.26 45 29.26z"}),(0,r.jsx)("path",{d:"M45 66.763c-14.477 0-28.953-6.054-43.328-18.16C.609 47.708 0 46.395 0 45s.609-2.708 1.672-3.603c28.751-24.214 57.906-24.214 86.656 0C89.391 42.293 90 43.605 90 45s-.609 2.707-1.672 3.602C73.953 60.709 59.477 66.763 45 66.763zM6.726 45c25.74 21.046 50.809 21.048 76.547 0-25.737-21.046-50.806-21.048-76.547 0zm77.733.984l.004.003-.004-.003z"}),(0,r.jsx)("circle",{cx:"45",cy:"45",r:"7"})]})})},i=e=>{let{className:t}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"63",height:"15",fill:"none",viewBox:"0 0 63 15",children:(0,r.jsx)("path",{fill:"#000",d:"M1.2 6.497a1 1 0 000 2v-2zm60.707 1.707a1 1 0 000-1.414L55.543.426A1 1 0 1054.13 1.84l5.657 5.657-5.657 5.657a1 1 0 001.414 1.414l6.364-6.364zM1.2 8.497h60v-2h-60v2z"})})},l=e=>{let{className:t}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 21",className:t,children:[(0,r.jsxs)("g",{clipPath:"url(#clip0_3216_360)",children:[(0,r.jsx)("path",{d:"M10.5 0A10.502 10.502 0 0121 10.5 10.5 10.5 0 1110.5 0zm0 18.9a8.398 8.398 0 008.4-8.4A8.399 8.399 0 004.56 4.56 8.399 8.399 0 0010.5 18.9z"}),(0,r.jsx)("path",{d:"M10.5 8.744c.278 0 .545.107.742.298.198.19.308.448.308.717v6.088c0 .363-.2.697-.525.879a1.082 1.082 0 01-1.05 0 1.009 1.009 0 01-.525-.879V9.759c0-.27.11-.527.307-.718.197-.19.464-.297.743-.297zM9.465 4.559a1.456 1.456 0 011.588-.306c.366.132.655.42.787.787.083.173.123.363.117.554A1.46 1.46 0 0110.5 7.052a1.458 1.458 0 01-.554-.117 1.697 1.697 0 01-.481-.306 1.456 1.456 0 01-.306-1.589c.07-.178.173-.342.306-.48v-.001z"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_3216_360",children:(0,r.jsx)("path",{d:"M0 0H21V21H0z",transform:"matrix(-1 0 0 1 21 0)"})})})]})},o=e=>{let{className:t}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"16",fill:"none",viewBox:"0 0 13 16",children:(0,r.jsx)("path",{stroke:"#666666",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M9.727 8.32h1.18a.506.506 0 01.507.506v5.738a.506.506 0 01-.506.506H1.795a.506.506 0 01-.506-.506V8.826a.506.506 0 01.506-.506h1.182m6.75 0V4.945c0-1.125-.675-3.375-3.375-3.375S2.977 3.82 2.977 4.945V8.32m6.75 0h-6.75"})})},s=e=>{let{className:t}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 27",className:t,children:[(0,r.jsx)("g",{fill:"#fff",clipPath:"url(#clip0_6279_39880)",children:(0,r.jsx)("path",{d:"M9.568 2.464c0 1.265-.951 2.29-2.124 2.29S5.32 3.73 5.32 2.464c0-1.265.951-2.29 2.124-2.29S9.568 1.2 9.568 2.464M13.321 10.836a.83.83 0 00.78-.375.982.982 0 00.09-.916.862.862 0 00-.691-.541c-1.876-.099-3.638-.995-4.902-2.492a1.318 1.318 0 00-1.13-.54.798.798 0 00-.33.092h-.086C3.732 7.575.895 13.208.776 13.446a.98.98 0 00-.067.697.904.904 0 00.41.544.795.795 0 00.648.072.867.867 0 00.504-.443A20.692 20.692 0 016.62 8.418c-.085 3.178-.722 10.707-4.74 16.185a.981.981 0 00.128 1.31.82.82 0 001.214-.138c2.079-2.968 3.529-6.392 4.248-10.03 1.13 1.09 3.236 3.774 4.374 9.279.043.206.151.39.306.521.155.13.347.199.543.194h.187a.855.855 0 00.532-.402.974.974 0 00.114-.688c-1.512-7.328-4.638-10.149-5.657-10.9.256-1.657.406-3.331.45-5.01 1.445 1.205 3.182 1.934 5.003 2.097z"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_6279_39880",children:(0,r.jsx)("path",{fill:"#fff",d:"M0 0H13.591V25.946H0z",transform:"translate(.674 .174)"})})})]})},c=e=>{let{className:t,color:n="white"}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"19",viewBox:"0 0 14 19",className:t,children:(0,r.jsx)("path",{stroke:n,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M1 17.32h12m-6-16v12m0 0l3.5-3.5M7 13.32l-3.5-3.5"})})},u=e=>{let{className:t,color:n="black"}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 16",className:t,children:(0,r.jsx)("path",{fill:n,d:"M2.1 15.3c-.3 0-.6-.1-.9-.4-.5-.5-.5-1.3 0-1.8L6.3 8 1.2 3c-.5-.5-.5-1.3 0-1.8S2.5.7 3 1.2l6 6c.2.2.4.6.4.9s-.2.6-.4.9l-6 6c-.2.2-.6.3-.9.3z"})})},d=e=>{let{className:t,color:n="black"}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 16",className:t,children:(0,r.jsx)("path",{fill:n,d:"M2.1 15.3c-.3 0-.6-.1-.9-.4-.5-.5-.5-1.3 0-1.8L6.3 8 1.2 3c-.5-.5-.5-1.3 0-1.8S2.5.7 3 1.2l6 6c.2.2.4.6.4.9s-.2.6-.4.9l-6 6c-.2.2-.6.3-.9.3z"})})},p=e=>{let{className:t,fill:n="black",stroke:a="black"}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 16",className:t,children:(0,r.jsx)("path",{fill:n,stroke:a,d:"M2.1 15.3c-.3 0-.6-.1-.9-.4-.5-.5-.5-1.3 0-1.8L6.3 8 1.2 3c-.5-.5-.5-1.3 0-1.8S2.5.7 3 1.2l6 6c.2.2.4.6.4.9s-.2.6-.4.9l-6 6c-.2.2-.6.3-.9.3z"})})},f=e=>{let{className:t,fill:n="black",stroke:a="black"}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"38",viewBox:"0 0 30 38",fill:"none",children:(0,r.jsx)("path",{d:"M1.29289 18.4614C0.902369 18.8519 0.902369 19.485 1.29289 19.8756L7.65685 26.2395C8.04738 26.63 8.68054 26.63 9.07107 26.2395C9.46159 25.849 9.46159 25.2158 9.07107 24.8253L3.41421 19.1685L9.07107 13.5116C9.46159 13.1211 9.46159 12.4879 9.07107 12.0974C8.68054 11.7069 8.04738 11.7069 7.65685 12.0974L1.29289 18.4614ZM2 20.1685H22V18.1685H2V20.1685Z",fill:"black"})})},h=e=>{let{className:t}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 16",className:t,children:(0,r.jsx)("path",{d:"M14.022 15.064C12.3832 15.064 10.7309 14.6399 9.0652 13.7916C7.39952 12.9434 5.89461 11.8497 4.55493 10.5104C3.21524 9.17111 2.12117 7.66664 1.2727 6.00147C0.424233 4.33629 0 2.6845 0 1.04611C0 0.764858 0.0937779 0.528251 0.276868 0.345215C0.464424 0.157715 0.69217 0.0639648 0.960107 0.0639648H3.48318C3.70646 0.0639648 3.89848 0.135393 4.06371 0.273786C4.22894 0.416643 4.34058 0.613072 4.39863 0.863072L4.9345 3.22914C4.96576 3.43897 4.95237 3.63539 4.89878 3.81843C4.84519 4.00593 4.76035 4.14879 4.63977 4.25147L2.56326 6.30504C3.42513 7.73361 4.3763 8.95682 5.41233 9.97914C6.44835 10.997 7.64067 11.8854 8.99375 12.6443L11.0256 10.5461C11.173 10.3988 11.3337 10.2872 11.5079 10.2202C11.6776 10.1533 11.8607 10.1443 12.0527 10.1845L14.1962 10.6533C14.4329 10.7113 14.6294 10.8318 14.7767 11.0104C14.9241 11.189 15 11.4033 15 11.6577V14.0684C15 14.3497 14.9062 14.5863 14.7231 14.7738C14.5356 14.9613 14.3034 15.0506 14.0176 15.0506L14.022 15.064ZM2.07651 5.42111L3.90741 3.63539C3.90741 3.63539 3.93867 3.59075 3.95207 3.54611C3.96547 3.50147 3.96547 3.46575 3.95207 3.4345L3.46085 1.18004C3.46085 1.13539 3.44299 1.09968 3.40726 1.07736C3.37154 1.05504 3.32688 1.04611 3.28669 1.04611H1.09408C1.06282 1.04611 1.03602 1.05504 1.01369 1.07736C0.991367 1.09968 0.982435 1.12646 0.982435 1.15771C0.969038 1.73807 1.05389 2.38093 1.23698 3.08629C1.42453 3.79164 1.7014 4.56843 2.07205 5.41664L2.07651 5.42111ZM13.9104 14.0818C13.955 14.0818 13.9863 14.0684 14.0086 14.0461C14.031 14.0238 14.0444 13.997 14.0444 13.9702V11.7827C14.0444 11.7381 14.031 11.6979 14.0086 11.6577C13.9863 11.622 13.9461 11.6041 13.8881 11.6041L11.8785 11.18C11.8473 11.18 11.8249 11.18 11.8026 11.1934C11.7803 11.2024 11.7535 11.2113 11.7267 11.2291L9.94046 13.1041C10.5344 13.4033 11.1998 13.6354 11.9277 13.8095C12.6556 13.9836 13.3209 14.0729 13.9149 14.0863L13.9104 14.0818Z"})})},m=e=>{let{className:t,color:n="black"}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23",height:"25",fill:"none",viewBox:"0 0 23 25",className:t+' hidden',children:(0,r.jsx)("path",{stroke:n,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M22 24v-3c0-1.591-.553-3.117-1.538-4.243C19.478 15.632 18.142 15 16.75 15H6.25c-1.392 0-2.728.632-3.712 1.757C1.553 17.883 1 19.41 1 21v3M11.5 12a5.5 5.5 0 100-11 5.5 5.5 0 000 11z"})})},v=e=>{let{className:t,color:n="black"}=e;return(0,r.jsxs)("svg",{width:"19",height:"20",viewBox:"0 0 19 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M18.0197 19.9441V17.4658C18.0197 16.1512 17.5628 14.8905 16.7494 13.961C15.9361 13.0315 14.833 12.5093 13.6827 12.5093H5.00883C3.8586 12.5093 2.75548 13.0315 1.94214 13.961C1.1288 14.8905 0.671875 16.1512 0.671875 17.4658V19.9441",fill:n}),(0,r.jsx)("path",{d:"M9.34426 10.0308C11.8536 10.0308 13.8877 7.99662 13.8877 5.48733C13.8877 2.97803 11.8536 0.943848 9.34426 0.943848C6.83497 0.943848 4.80078 2.97803 4.80078 5.48733C4.80078 7.99662 6.83497 10.0308 9.34426 10.0308Z",fill:n})]})},g=e=>{let{className:t,color:n="black"}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"none",viewBox:"0 0 25 25",className:t,children:(0,r.jsx)("path",{stroke:n,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M11.222 21.445c5.646 0 10.223-4.577 10.223-10.223C21.445 5.577 16.867 1 11.222 1 5.577 1 1 5.577 1 11.222c0 5.646 4.577 10.223 10.222 10.223zM24 24l-5.559-5.558"})})},x=e=>{let{className:t,color:n="black"}=e;return(0,r.jsxs)("svg",{width:"20",height:"24",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("g",{"clip-path":"url(#clip0_6_4)",children:[(0,r.jsx)("path",{d:"M13.7118 10.27H11.3875L10.8547 8.4765C10.449 7.11146 10.1362 6.9086 8.71237 6.9086C7.18239 6.9086 5.14432 7.64799 5.58037 9.11351L6.8582 13.4058C7.23927 14.6874 8.41851 15.5671 9.757 15.5671H14.8038L16.8836 20.631C17.1453 21.2699 17.8903 21.5581 18.5141 21.2642C19.062 21.0064 19.3331 20.3845 19.1511 19.8082L17.5093 14.6192C17.187 13.5992 16.2409 12.9072 15.1698 12.9072H10.7542C10.1021 12.9072 9.5276 12.4787 9.3437 11.855L8.73323 9.8093",stroke:"#2B2B2B","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M3.62193 11.1952C2.13366 12.4635 1.19141 14.3499 1.19141 16.4582C1.19141 20.2746 4.28739 23.3687 8.1038 23.3687C10.6424 23.3687 12.8587 22.0036 14.0607 19.9674",stroke:"#2B2B2B","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M7.5216 4.95773C8.71631 4.95773 9.68481 3.98923 9.68481 2.79452C9.68481 1.59982 8.71631 0.631317 7.5216 0.631317C6.3269 0.631317 5.3584 1.59982 5.3584 2.79452C5.3584 3.98923 6.3269 4.95773 7.5216 4.95773Z",stroke:"#2B2B2B","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_6_4",children:(0,r.jsx)("rect",{width:"19.2774",height:"24",fill:"white",transform:"translate(0.560059)"})})})]})},b=e=>{let{className:t}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1",height:"28",fill:"none",viewBox:"0 0 1 28",className:t,children:(0,r.jsx)("path",{stroke:"#333",strokeLinecap:"round",d:"M.5.5v27"})})},y=e=>{let{className:t}=e;return(0,r.jsxs)("svg",{className:t,width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("line",{x1:"11.5615",y1:"12",x2:"30.4384",y2:"12",stroke:"#333333",strokeWidth:"2"}),(0,r.jsx)("line",{x1:"11.5615",y1:"20",x2:"30.4384",y2:"20",stroke:"#333333",strokeWidth:"2"}),(0,r.jsx)("line",{x1:"11.5615",y1:"28",x2:"30.4384",y2:"28",stroke:"#333333",strokeWidth:"2"})]})},w=e=>{let{className:t,color:n="black"}=e;return(0,r.jsxs)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"42",height:"42",viewBox:"0 0 42 42",color:n,children:[(0,r.jsx)("path",{stroke:n,strokeWidth:"2",d:"M12.265 28.321L28.321 12.265"}),(0,r.jsx)("path",{stroke:n,strokeWidth:"2",d:"M12.269 12.265L28.325 28.321"})]})},k=e=>{let{className:t}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"42",viewBox:"0 0 42 42",className:t,children:(0,r.jsx)("path",{d:"M15.5,37.1c-0.1,0-0.3,0-0.4,0c-0.3-0.1-0.6-0.2-0.9-0.3c-0.3-0.2-0.5-0.4-0.7-0.7L3.3,22c0,0,0,0,0,0l0,0l0,0   C1.8,19.6,1,17,1,14.3s0.8-5.4,2.3-7.7c2.1-3.2,5.4-5.3,9.1-6.1c3.8-0.8,7.7-0.1,10.9,1.9c1.6,1,3,2.3,4.1,3.8   c1.1,1.5,1.8,3.2,2.3,5.1c0.4,1.8,0.4,3.7,0.1,5.5c-0.3,1.8-1.1,3.6-2.1,5.1L27.6,22c-0.1,0.1-0.2,0.2-0.2,0.3l-9.8,13.7   c-0.2,0.2-0.4,0.4-0.6,0.6c-0.3,0.2-0.6,0.3-0.9,0.4C15.9,37.1,15.7,37.1,15.5,37.1z M5,20.8l0.3,0.5l9.8,13.6   c0,0.1,0.1,0.1,0.1,0.1c0.1,0,0.1,0.1,0.2,0.1c0.1,0,0.1,0,0.2,0c0.1,0,0.1,0,0.2-0.1c0.1,0,0.1-0.1,0.1-0.1l9.8-13.6   c0.1-0.2,0.2-0.3,0.3-0.4l0,0c0.9-1.3,1.5-2.8,1.8-4.4c0.3-1.6,0.3-3.2-0.1-4.7c-0.3-1.6-1-3-1.9-4.3c-0.9-1.3-2.1-2.4-3.5-3.3   c-2.8-1.7-6.2-2.4-9.4-1.7C9.6,3.1,6.8,5,5,7.7c-1.3,2-2,4.2-2,6.6C3,16.6,3.7,18.8,5,20.8z M15.5,20.7c-1.8,0-3.4-0.7-4.7-1.9   c-1.2-1.2-2-2.9-2-4.6s0.7-3.4,2-4.6c1.3-1.2,2.9-1.9,4.7-1.9c1.8,0,3.4,0.7,4.7,1.9c1.2,1.2,2,2.9,2,4.6s-0.7,3.4-2,4.6   C18.9,20.1,17.3,20.7,15.5,20.7z M15.5,9.8c-1.2,0-2.4,0.5-3.3,1.3c-0.9,0.8-1.3,2-1.3,3.2s0.5,2.3,1.3,3.2c0.9,0.8,2.1,1.3,3.3,1.3   c1.2,0,2.4-0.5,3.3-1.3c0.9-0.8,1.3-2,1.3-3.2s-0.5-2.3-1.3-3.2C17.9,10.3,16.7,9.8,15.5,9.8z"})})},S=e=>{let{className:t}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"5",height:"30",fill:"none",viewBox:"0 0 5 30",className:t,children:(0,r.jsx)("path",{stroke:"#666666",strokeDasharray:"1 8",strokeLinecap:"round",strokeWidth:"4",d:"M2.5 2.219L2.5 27.22"})})},j=e=>{let{className:t}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"27",height:"34",viewBox:"0 0 13 15",className:t,children:(0,r.jsx)("path",{d:"M6.56 7.237c.342 0 .631-.12.875-.36.24-.241.36-.535.36-.877 0-.343-.12-.633-.36-.877-.24-.24-.533-.36-.876-.36-.342 0-.632.12-.875.36-.24.24-.36.534-.36.877 0 .342.12.632.36.876.24.24.533.36.875.36zm0 5.849c1.563-1.425 2.721-2.718 3.47-3.88.748-1.16 1.12-2.181 1.12-3.065 0-1.389-.446-2.527-1.335-3.41-.89-.884-1.974-1.326-3.256-1.326-1.282 0-2.369.442-3.259 1.325-.89.884-1.33 2.022-1.33 3.411 0 .884.38 1.905 1.147 3.068.766 1.159 1.913 2.453 3.442 3.877zm0 1.396c-1.897-1.615-3.313-3.114-4.245-4.5C1.38 8.598.91 7.319.91 6.138c0-1.763.568-3.17 1.702-4.22C3.749.867 5.066.345 6.559.345c1.494 0 2.81.523 3.944 1.572 1.137 1.05 1.705 2.457 1.705 4.224 0 1.177-.47 2.46-1.401 3.845-.936 1.386-2.352 2.884-4.248 4.5v-.004z"})})},C=e=>{let{className:t}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"34",viewBox:"0 0 13 15",className:t,children:(0,r.jsx)("path",{d:"M6.56 7.237c.342 0 .631-.12.875-.36.24-.241.36-.535.36-.877 0-.343-.12-.633-.36-.877-.24-.24-.533-.36-.876-.36-.342 0-.632.12-.875.36-.24.24-.36.534-.36.877 0 .342.12.632.36.876.24.24.533.36.875.36zm0 5.849c1.563-1.425 2.721-2.718 3.47-3.88.748-1.16 1.12-2.181 1.12-3.065 0-1.389-.446-2.527-1.335-3.41-.89-.884-1.974-1.326-3.256-1.326-1.282 0-2.369.442-3.259 1.325-.89.884-1.33 2.022-1.33 3.411 0 .884.38 1.905 1.147 3.068.766 1.159 1.913 2.453 3.442 3.877zm0 1.396c-1.897-1.615-3.313-3.114-4.245-4.5C1.38 8.598.91 7.319.91 6.138c0-1.763.568-3.17 1.702-4.22C3.749.867 5.066.345 6.559.345c1.494 0 2.81.523 3.944 1.572 1.137 1.05 1.705 2.457 1.705 4.224 0 1.177-.47 2.46-1.401 3.845-.936 1.386-2.352 2.884-4.248 4.5v-.004z"})})},N=e=>{let{className:t,color:n,stroke:a}=e;return(0,r.jsx)("svg",{className:t,stroke:a,color:n,xmlns:"http://www.w3.org/2000/svg",width:"31",height:"37",viewBox:"0 0 31 37",fill:"none",children:(0,r.jsx)("path",{d:"M3.2764 21.2227L3.34492 21.3155C3.42866 21.4332 3.51621 21.5473 3.60375 21.6722L13.5232 35.0268C13.6395 35.183 13.7876 35.3161 13.9589 35.4185C14.1302 35.521 14.3214 35.5908 14.5215 35.6239C14.7216 35.6571 14.9267 35.6529 15.1251 35.6116C15.3235 35.5704 15.5112 35.4929 15.6776 35.3835C15.8255 35.2861 15.9543 35.1654 16.0583 35.0268L25.9549 21.6829C26.05 21.558 26.1414 21.4367 26.2327 21.3262L26.2936 21.2406C27.2715 19.8244 27.9421 18.2416 28.267 16.5825C28.5919 14.9235 28.5648 13.2207 28.1873 11.5714C27.8098 9.92215 27.0892 8.35875 26.0668 6.97052C25.0444 5.58229 23.7401 4.39643 22.2284 3.48069C19.1765 1.63262 15.4663 0.996125 11.9137 1.71119C8.36103 2.42625 5.25693 4.43431 3.28402 7.29376C1.85175 9.3706 1.08984 11.7908 1.08984 14.2636C1.08984 16.7364 1.85175 19.1566 3.28402 21.2334L3.2764 21.2227ZM14.7945 8.92743C16.3088 8.92743 17.7611 9.49113 18.8318 10.4945C19.9026 11.4979 20.5041 12.8588 20.5041 14.2779C20.5041 15.6969 19.9026 17.0578 18.8318 18.0612C17.7611 19.0646 16.3088 19.6283 14.7945 19.6283C13.2803 19.6283 11.828 19.0646 10.7573 18.0612C9.68651 17.0578 9.08496 15.6969 9.08496 14.2779C9.08496 12.8588 9.68651 11.4979 10.7573 10.4945C11.828 9.49113 13.2803 8.92743 14.7945 8.92743Z",stroke:n,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})})},T=e=>{let{className:t,color:n,stroke:a}=e;return(0,r.jsxs)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"60px",height:"60px",viewBox:"0 0 60 60",enableBackground:"new 0 0 60 60",children:["  ",(0,r.jsx)("image",{id:"image0",width:"60",height:"60",x:"0",y:"0",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAABGdBTUEAALGPC/xhBQAAACBjSFJN   AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAA   CXBIWXMAAA7EAAAOxAGVKw4bAAATWUlEQVRo3uWbZ4xc13XHf+e+96bvzhZu3+XukhQldkkUKcsW   rGJZtiU5si0gsuxYBtINBEiQ8iGAAUVBAH8w4g8BgthIgR0Hjg3YgZ1iuVvVRaZEkWrksi53ye19   duq79+TDm5kddkpcOR9ygQcMZt499/zPOfe0ewf+nw15qxNin/0s+06flYrzDMb4ez/ye2lNul71   zAaBdkVaBQREr5s7VYOIom5acROh07nxQwemZo4cKuHQUixjXz/xsvLMM+8A4Cee4LZDedr+/FF/   07x2SmA24bEFp4MKXaDNiGRQSUd09boBS5U/hWWEBVVWjHBWYULgbFF49cjrB+bsD07oaztT5D//   5PoB3jsy5e0/nNtg0/PDCLcaMXcAt3m+NyDGj6GKqgpoje71a7hKR0RAjALqwkpRnZtQOIyzT1nr   Xg6W2icO704vPL+rt3JdgIf27KFvz62S/LMnY5snFwcM4aOg94vxBlHXrKppMSaQOpn1wHgZNqtL   qHOoaojIqvG8RReGRxX9iap7Kt45duyp+YXisft+97KU/Cst07VzH7c89vsb7OTsHYo+ALxXRLZ4   vu+rOpy1qFMUd1XhrcOIpCmCGOMb42WN72fVuW6c6wPZUpke+PrOlv6njxExdBnRXXp88gt/5zXt   ur1XrH8vwiPimbtETFqtNbXtqQ3zRd5ZvKrauE+0vpoxiDFOrVtxzn7bKV8uleTgVz6yd/lSdLwL   v+jbtZ9t73+Yzfc9NADBIxj5HeP7t6OawjlTX1gEARGpGvQ7DDjax1JbR6itqQoRS3Ex3iZUh43Y   0X2PfWZahjeXzz33wysD3vaBj5p9v/WHvU70IYRPi5jdxpiEs7a6lEh1KamDfIfBngc8YkGlqu9o   dysIYjwvBnSJ0OPEzhfj8fHCm8cqubmJywPe/tVvxltWc/cJfMr4/m3GmLirVOq2W9PqrxPkJXHL   mtC1yo1zToznxY3x+lAXb01n5vbv2HrOX5kLR0dHATB1Ek88wd6RKW94crEf9H3imdvV2pithDUZ   1uDWp2gt1Kr+Wp/6ulVealsMQJ1FnU0Z4z1ojPkEQ7t6tj/+hTrTdQ3v37eP27fv6pSVwuMi+mFj   /C5UjdShCud/+L8f0rClIlVI1bxFjO/H1DlKamfIeOPx5Wx+bOSFKCzF/vKzdN/3gBeeXRg2xrtf   xGxRZ41qNBnViyxYq9+1xQNaY16DqbwzoxbhS06ZyFeoOHeJdzTSx5oVDAEPYvRwuTU3C6gPsPPo   tHTfGetWo7eJZwY93/dtuRyZyuUyRBECI9w/3M3e7hace+fSjtrwRVgsV/jSKyeZzpcuZikCHfnu   MESMlxV1+5x12/q27TqS/vSncz6AnxbP8+UmVO5BtcVVpVedigCBWbPlminFjJCNB8wv53jm9AR5   987YuwKBwO29bfS2txL3PeK+V1VITbcQuvoXKGCMiDppEZE7e2/ed2Lz3v0vRpmWGk9gqxp5F5BW   ayNHr4pRZSATZ09PO3E/2vJJz8NUBdDfnGLk1Cg/OzWBzWTXo2a4GLAITYHHjh6PhO/xwKZuiqEF   oBg6LIp1ytHpBUYWVwmjDahVXmKK7kS4IefkJR/g3Y9/KlVU1x+LpTbYMPScDasmomxrSfLwjQM0   JeOEbg1MzT9mAi8yewHPmHfErEUE43mIZwjEMNicwjZkXkpk7jd3NPODkTF+Mb2MFSPqnAI+IoOK   Djixvg+QD/1+Y6RNqVc7AGTjAfds6iURBPzHG2dYcVp30orii/DA5p63B6KmvWt836lSsUo+DPnP   4xMslMqYhg0UE+X+4S7u3dLPWP4Uo6slRBWMMX4s1h0WS8O+8+I+gBFzgyBd6pxUzUAUaEvG6cok   OTaf4/BcjpJza3FYlbhnKIYXe8vL5tUa7TXfCM2Bx2roKFkXva969WRGoOKUU0s5plZL58VhI9DX   nObujZ30ZjOczpXqUvU8X0IpN7kKLSZiUHtBW1VVGkWudW1WKSJI1ZRqi5Vr7vlqqqqCBaUv4fPb   u4fZ0ZJaSyauRc21aqWeEhBpse431qyv/rqCWiuCppxxG6vhU5JA0LiwAIurBaaWc/RkEgTSSKoR   h5JIJkgk4lfAGs0TIGEMd/S2MZhN867eNrIxr05Tr+DwDIJvqgZ4nlKqWgR6MgmWVlc5MzOPkbVN   U6Wb9n2NADs0qRA7z3oElioh5/JlmgOPjmqZ3xibo1CgdG9op7O9LQIlDYFf6yVs3cH0Jnxu6myl   bJXB1ma2ZOKYmrbqPJ4/XwHPCHHfo2gttp7RrjmurC+0xzwWypbZkm0QxVohCepHGlbxAe/CIOoQ   TiysosAdG7vxL8q2IF+xJIKARBBcygKxGoWM0Dl8Ve4c6sET4ccnz7FYqnD35j5a4j4Va7FOsQ1W   pg2EfCMkPUPFgbvAEJxTdnW10paM8/rMIs73G6A0RBapZloiF/xSBSPAyPwy48t5bmxrYnNzkiNL   hQZSykolJOF7pALvPLMUYEPcZ6AlQ8o3pAx0pBJs62jmxPwKPx6dIhb43Lmxk0e29nFmcYWiQj5U   JlfynFstYev0hMAY0oHHmbkFSuXyeYC7kz43d2RZLJV56dwc9uIisA7Qr3N3gdRqEioqPDc2zSd2   DHHfpl4Wj44zVU3rnCpzhcgbJqplhqk63HTg8ciN/Qy1NhEYQykMKVvHbL7E06OTVMTjxYl5+pqS   9DWlGMqmSQQ+VpW5fJGvvTnG2EqxWuMrcd8Q9wwnJ6fJl8rgRxaVjfl8YHMPHekk3zlyhvxlwNbG   FXta1ayNkYU83x85w0Pbhvno1j7+a2Scs6slnAgLhTLWKbFKCWyIehHJUJWZQonhljQVq3z79ZOM   LKxi/YBcxaLAxGqJL786SuBCOuMej+65gY50ksWypVALd1VLy3gGEaHoxXEmqs9bYx4f3NTNLd3t   PH9qnFdmlnBXKWMu/2tDjAuBVxaLPH3qHD3JgE/sHOKO3jaaAo+VcoV8JWSoPUtTPKjH4FLo+O7x   c3zvzVNYG3Lbxh7SqWQdrESFO6uhRYKAfUO9pAKPn41O8O2Rs8wVynU+fCP0JiONlv0YycBnz4Zm   Htu2kR0bmvnl6ATPT61QxDQ0YS4d06+o4agyjGx9pRzyo9EZpnN5HrxxkI/eNMDOuRWOL+ZYLFUY   2tBK89kFcrlifV5RhRdmclgd5YHtm3hwSy/fqoOJ6CZ8wz0bO9nb08Zzx8/ww7F5crqmB1UlHvhs   626n4pSudILdHc3s6MiCwo+Oj/PCuTmK1HzIlRuKVwS8JqkoD6+I4ZX5PDOHT3LnQCdb25rY3JbB   E8E6R9Yo56qr1txCBcMrSyX2FSpsSAQkPVNnDCDmefQ0pShUHC/NF+tgG1PPjBHaEzGa4wH3DXVS   sY4T8zmeH5vm5NIq5dq+lav3J64KuEZJqkmHRTiTL/PNo+MMZpPsbG9mczZNX0sTe/o6OZY7S9iY   /YiA8Yj7hjNTM8wsLdPV3ExvOsZcocLUapGp5RyDzUnEmDUhV+cbhP5UQMIT5vMFjs4tM7KY5+jc   MkUVdK1he03NmGsETK2NUk0KoAIcWypwbD5Hb8Ln47s2sTGTIFBLqA1dVCDteyQ8j1giwbsHOrm1   r5O+piSz+RIvT85hRPBF8MMS6hyYNZP2Dezo7SBfKvONV45xvBDijF8r9q89D6+Ot96ZaQjaAojn   ca7kGJlbpiURY3dXK0ZqWoqS2SZx+KJs72rng1sHCARemV6kEIbcM9jNbX0dGIGUC6n30Krr9Dcl   GWhKMlMMGS0pavy6IC/k6VrGtWv4PPpV0NW9KkY4ODHHrd2t7GjLcHByngqmvqdaU3F8Y1gqFDk8   s8zPx2dZDB0pA7f1tHFzR5b+bIbBrg6Ojs1RqW0J59jclKA5HvCTUxOExoDTqzqmdQd8IXCAeSuc   WS2zpTXDDdkUry0VMVWhHJ1d5luvn2aqFDKeK0YZFELFKj85M8NrM4sMN6c4tbBMZS380pmKsaez   hZnVIm/MrmCdXrTuWx3X32ysJvrF0PKzsRmCIGBnexNxtdVTEFh0wi+mlzm9UsRqLW2tFQbCZCHk   hYlFJku61sFA2ZZN0t2c5oXTEyxV7HWzuj6A17rBjOeKHJxYYE9fJ3s6sngNijDGXJDBSh2cVH9v   3IvD2TT3bunn3EqBE7ly7SzrupuE69JOrkWgQmh5enSSmdU8H7phgC2tmYa6tCYfqZtk4+eaEITI   lN+/qQdR5UcnxpmuZl3r0S9bF8DS4LkniyHfHxkjEOWhzb0MNqfOY/a8Orfx2KT6VsYT7u5tZTib   5sDUIm8sFtbS3HU40zIA6urXFK4btADHV0OePztHRyrOx7b2sb09QyBrhyGNAGqLGqC/KcEj2zay   v7+TV6bmeWZsFofUo8F6jGo9LA5w12sztT1aVvjp2CwOuHewi9+8aYCfj89yeGaZqXyxfvAFoOpo   8j12d7VyR187XZkkBycXeOrkJEvlsC6Y9QLtVxnNK5SvlxgNKWHZKc+OzTG5vMrdGzu4a2MHN3e1   MracZ7pYoWQtgRHaYgE96Tj92QyLhRLfeeM0hxbyrJTtBaSvF66qOokAKywi5BHRWs789jGvFRsl   53htfpUzy3n2dzbz4e2b6EwnKLs1bXlGSHiGQ9NLfPf4OFP5Mpa17bF+Q8qCXYgSD6dTGFmuXylY   jxtWNSJGWLIwUYlumrx4dpbJQpl0EFB2loQR3ruxk6PTC4yvljBizifzNmFr7dBJBIkqtLyzOu5H   eN24wZsziDYkOtftxGr9KE+gK51ABEYWchycWa6GK6U7neCOvg20+BBU7wPVu5/rNxRY9tQ/EzXi   E2ZMkGnnXFhvYl8UMt6WhEGVmGfY3JJhqVBiseqIlKj7mK9YpleL7O7rpD2VWJ+zqcbSVJ1WisUC   MI1H3gBMHD64DDrlbJhT57QxxFzPqNEZbkqwsTnJ61MLnFtarZeZAiwVSxycmKUtlWBrU2KtBXc9   Ao/WVRPd4Atx7nVRfdP3pGIAxl962arKuKLHRKQkYt7WZcn6WW2DdnszCe7f3EO5EnJwaoFy9XKC   1h/D0YU8o4srvG9LPzs6mqPOZ52mvg1Oqvcfo3S1CPxSnR60jtAABL5aFfeaqn5PjFkwfr17q9cq   5cb7LQCBMQw3J/nY1n4Gsxlem1vhbCEkFfikfI909ckEPrnQ8dPj4/jq+I0tfexubyLle+dxf+18   NGZyoKoFVXe06MLTBzN55wMc78y6G+zqaEoSzzlrHlTVLkSiS2jX6Dxq/WNEaI/7vKdvA7d0t9Ke   jGFVGWhO8fHtGy+9TSTKtIIgoCXm8+j2QV6fW+bZMzOM5QprL12D1GvO0ngezoarqvoawpHTR19a   /tnyjHoAhRdeoLm1zQ696z1huVjuB+03ntdUX6XxdO4KjSOptmruG+ri3sEuFGW5HFIKHcnAJxsP   aL7M0xQPqDiN2rYSVUspUQ6fm8UZv07/ipqtfhQRPM/HWXsC+HcNvGeef/nZpdznPrfWAHh5QxOm   vWV6+0Lh38B1AR8BSag6qUVVuWq0UtKBT28myUKxzNffHCNXCd+y8xMRHtjUTRMhJr+CzcavMiMq   sOtX0kXUWVsGDony3wc3dk1OHjgANHQ88k8+ybNPPllOvXzqyND03FM2tBu9INhnxIu5SoU66is0   zGqtFyNQso5zuQIr1TD0VgEvFSt0UT3/vRpcrdmeRMidrqqGP1bk6we+9qWzB776j/VT+4vKw7kD   LxTV8qxz+k0XhifVuVA8v6pZARFVVa275EuzXLv+WK95r/WpHZ1ei4taO7gTBdR4HqAFVA9Y3JdX   kpUfHBzqKTbOuainNfP3n3cv79o3fstjf/A/qi7hrH7Si8W2qrMBRDcE6v9pUJXLaTsd89jdmaVk   L3t1+Yoq60rF0Xzp0tAjU1JZ+xzZglJS1Vcd9osl6z1/+B/+pWS//qXzpl4E+PShQ5w+dMht+djD   pzPxzm96npezpdLDiNxhPC8N4KzV+lFbQydciM6DC6El5Xs8tLnnbWdOvhFOrK7gvDUWGx1TvVHv   eRjjYW1YtmH5x6ryr0Xn//QrD9w6x4MX072sP+nYvp39j/+R6b9lf6codwk8jMgtCIO+H0vUbsTX   GKmaoRgRhrMputKJtwl1bSzkSxyZXayfSNY2SnQrPtpizoY5YAzlDXXua+VY+alf/eNXS69+44uX   lPWVHehdd9G7e6/s+tRnMkPTy5vE4yGEB7xYcKM6l1LnAgFTPwo8r0W3PuNiigoiFpESqjln7WHg   Kd+ZH6bGR07+7Zk38vZv/vqy9K6Jrw1/8hd86COfDNKr5V7EHxZxe1S4V5DdYqTTi8UTiAjRHzBY   u/+zHmBrrSGDCGor5dDZcAzHi6o8g8hriBnVGTd55J/+NHzmKv9huna+nniCG4+eovOW95qBvXva   myvmXcBNItqrRvoEMigJhYRAoOvQIKzm86FAEcgDy6CzKpwSyyFPeemXX/vnpWA17c4d/BWnTz9z   LTTf4njiCfY+/sdy2/FTgQ1DowEJFdcXWK9X1HQi2iFIRiFArqPai7JEq05zKsyDGxd1p4zKbCXh   l5LWs23+YvhX99zzltb4X7Wqj2Ijfq/lAAAAO3RFWHRDb21tZW50AHhyOmQ6REFGeEp2enlET0k6   OCxqOjY4NjE2NDA2MzczMzEzNDk0MDgsdDoyMzEwMjAxNGaPBC8AAAAldEVYdGRhdGU6Y3JlYXRl   ADIwMjMtMTAtMjBUMTc6MDE6MjUrMDI6MDAxFQxyAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIzLTEw   LTIwVDE3OjAxOjI1KzAyOjAwQEi0zgAAAABJRU5ErkJggg=="})]})},E=e=>{let{className:t,color:n,stroke:a}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 60 60",children:(0,r.jsx)("image",{width:"60",height:"60",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAO3RFWHRDb21tZW50AHhyOmQ6REFGeEp2enlET0k6MixqOjQxMTQ0NDQxNDY2NTcxODc0NjYsdDoyMzEwMTMxNOGgobQAAATiaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8eDp4bXBtZXRhIHhtbG5zOng9J2Fkb2JlOm5zOm1ldGEvJz4KICAgICAgICA8cmRmOlJERiB4bWxuczpyZGY9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMnPgoKICAgICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0nJwogICAgICAgIHhtbG5zOmRjPSdodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyc+CiAgICAgICAgPGRjOnRpdGxlPgogICAgICAgIDxyZGY6QWx0PgogICAgICAgIDxyZGY6bGkgeG1sOmxhbmc9J3gtZGVmYXVsdCc+UHJvZ2V0dG8gc2VuemEgdGl0b2xvIC0gMTwvcmRmOmxpPgogICAgICAgIDwvcmRmOkFsdD4KICAgICAgICA8L2RjOnRpdGxlPgogICAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgoKICAgICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0nJwogICAgICAgIHhtbG5zOkF0dHJpYj0naHR0cDovL25zLmF0dHJpYnV0aW9uLmNvbS9hZHMvMS4wLyc+CiAgICAgICAgPEF0dHJpYjpBZHM+CiAgICAgICAgPHJkZjpTZXE+CiAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSdSZXNvdXJjZSc+CiAgICAgICAgPEF0dHJpYjpDcmVhdGVkPjIwMjMtMTAtMTM8L0F0dHJpYjpDcmVhdGVkPgogICAgICAgIDxBdHRyaWI6RXh0SWQ+NzQ0MjBiNjktNWY4MS00NmZmLWJjNmItOWQxOGZkNGMzMDJhPC9BdHRyaWI6RXh0SWQ+CiAgICAgICAgPEF0dHJpYjpGYklkPjUyNTI2NTkxNDE3OTU4MDwvQXR0cmliOkZiSWQ+CiAgICAgICAgPEF0dHJpYjpUb3VjaFR5cGU+MjwvQXR0cmliOlRvdWNoVHlwZT4KICAgICAgICA8L3JkZjpsaT4KICAgICAgICA8L3JkZjpTZXE+CiAgICAgICAgPC9BdHRyaWI6QWRzPgogICAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgoKICAgICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0nJwogICAgICAgIHhtbG5zOnBkZj0naHR0cDovL25zLmFkb2JlLmNvbS9wZGYvMS4zLyc+CiAgICAgICAgPHBkZjpBdXRob3I+U2ltb25hIDwvcGRmOkF1dGhvcj4KICAgICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KCiAgICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9JycKICAgICAgICB4bWxuczp4bXA9J2h0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8nPgogICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+Q2FudmE8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgICAgICA8L3JkZjpSREY+CiAgICAgICAgPC94OnhtcG1ldGE+fJ9VNQAADz1JREFUeJzlW3t0FFWa/33VDeEtogjpah47DC4KdnVSVU3APeuu62N3VqFZdwcd6AiapIOM+AAcPe6u7HrkHIeE0aNCdxIcSYOvRQV1XMfH+FyBdFVINyAjA6NAd4eAj4FAkKTrfvtHd0NIOpBHZ9Zz9ndOTlJV9371+9W997vfd+8N4f8Z6P+awJ8b3RYsKyqYMVBWtIt7Uq+/YZNwfNv6YEt3y9u7W1BWNHiKF60UQtwLwNYrdv0Bwgfb1gev7W7xbgsWgmEJoRNgA1ELEXX7q/YHmHkImIeAMbUn9ewA4HCpSETN8xZMRE0QYAFAvCFcHY8YT/eabQ4gu/Ulsku9G8CJC5Vtr89edLsf29YHMXtVtUt2qXNBGJ4pKNkH5Es2ScpcW62t05gZiaj5rbGhal9/COkuPMXlsdRfNGbJR7s3Ie1XhCWEaGtrPONlGMfjUfMlc0NgJwDYvwyH4V1VVeJUp69mwcPbGxVWEsJqd4O534X0HDw02dp6S/s7ZDvXxYxTpy8h8L0HTONZe9HCRVNlt/a0SCbziKQDzGLXeawXAbikH1j3Bt+lf7eA+YP2D5jPthIRXSWSPN7h1p+JR83tdlnRSpg5D8BXry29s0giNMUincezw6XCW1Ft4IcjOJn+3bTmhsKbshVwKioEY6y3ono7mMfrPn+ZBPBVAGC306ZE1MwqFkhNSwAu7itLdV4ZHC51kMOlDlLnlfXVHHCemCAWMfEXun5YstEmAADzNAnpOdVmQ9t5zabGb6wvzBwuFZIk5c1Zve6NOavXvS5JNLAv9rqDrwwD4LPaJBD9EQBOfy80p6JeqH6fvJasaHC41DtYiOtYiOsdLm2hw3XBd/aai1NRMWqyG0Jw6iUk/VGKN4Q/Tl3Q1ZOK9CHdeZPTrdq68XHOQUoY5cmK+mDmnqyoD8mK1rtWJros/VeyqyKxiInLZ04fCqIiAByuDXwsXT5Dfx2gVgCDL52izupSCBEAtKTIa/ldjfWukGldAOMBtKV/JvSmlf+mvBxgHgoAYO5ymF19ZzmYMRvMwwC0DhhIb0gb7yr9DuC3AdCYaeriiy8vyFqZABDRkdQ7kNcTgrrPj3jEPNO6RLSJiF4Fzray3APRLS0MIhqbvszqe5zKTWjcWY98l3ZX+tZ/HzTDf7IDjHjEeFpWtFlgzJzkmX7d4MG29+pqg+cYsNkBkvANWwCYJ2R/iYpYxMx0X8mpqEOZMQLARd6KqtuQbt262sBjsqKRw6XeAmCCx+dfUQdscLi0Y0Q4zqCT4VBAtLfZHswAM18KACTRoWw8BDfiqn8pv5aZZyLVnZ8WDNglAhperH5XVrTPAMx0uLUnvti69WqHSz3WPr4+VG/gijnWvkGDJIDoR9mIjJzshjbf/3cORbvVNnCgg4VwsBAOkqTRzExsWSCiVxIRY3ciasJbUf0KM8+FzfbQ9AWLf8EsjpIkJUiSGvX5ZYlE1Hjho6o1v+v0ZVOKJ4MIiah5sCOX4ZPcOLavYaTTrT3FzMTAp6MuGfh+OGpCikVMtLUJJKLm3UT0PZinXrtoyTOyog1sP7ZiEROD8qRM/OwcV6gP6shj8GA75ALPqyAqsVpbfyKSSTeA0cKyToIRJ5Ii9RuDD2dIf73HfJhIioKREMJqAXCZSCYLrNbWn0CiEtntefW7PzR0aj0GCJI0CQBiDcb+9mJ1nx/H9kXy5lSuW8PMV4LolBEK3r3zg60A0tkSAairDdTrPv8DsqL9CsA8z+2LWl+7/857pxf7j29Pd28i2suUIptsE4UAPuv08QXXgvDz9OU3sR11ZYmo8RVAjQAdbYyGk/GoCaei4pOatfsBUmVFHQ2ww+HSJsqKVgVgVOqb8PqO9mMRE97K6h8JwUMAMBg7AUB2qSAC4hHjojmrn30C4NvAsOIN4eUAGjK9VQKAeNTEyEkF2LK87CkCBRgswLzQW1nzbv5VmtupqNB9fry2rOQAmBsB0LhCbXo2j755Wel98Ybw4yASAF0iu/UFAPbGI0ZjOBRIZlojFjGRiJpIRI0kwI3xiLlXdusLQTQKRFbeAKwKhwJLO3pwh0vFoR3GzPTlKRD2eIr9iEdNaPPLC72VNe+BeQEzWwA984fP6p4Jh876ozOp3+ev1cBT7MebD5XeHW8Ir0Cqe3uc6vQPZlfWPAYgX1Y0ENFWABg7TZvecQyHQ0GML1CTW5aXPZiIhFeCIADcrBcvel5W1GHZpp+0Bx/urax5AcA/ArASkfBj/3VPyQONUSPZMU+XFQ2y21OUvjTDoWArMxyL39ux0qlOfx/MGgin4g3hR15fXnLPn/bvOKd+pzg0HXDDU+y/yaHoTxDRpPSjBLOokggXCYH7AD644/mqiVufC3aKeDI5trei6lGHS3sIRDYAj6+5vuDBjmV1nx968aLHAX4AzMlE1FhphIKPAOjkFNPravCuqt4NwpUE1DAhQSSVAsgHAGbel4iE76mrDb4lUWcbEjogFjFBAIxQ8M3NS0tmsBCVAL4G4CCSVjCk9LxG4yyBwmzdetv6IIpu92PzsrJ/A/BZ2qs6OhVEen4H56dj9bquxAJAPGLin1bXTALhilRlWkAk/Xta7NcsRMXmpSUzG6PmW4momdVG1jWteLobOVzq0S3LSpc5FC2o+/x+kmxzATgzXGcsLJ/95N8WZA25Yg0G0tmQDACHdxm7Mx/nx0WeYXl5Eu/+aNtJux1oabH2DB4sAcBlXYkFUr3h0I7wLbKiUVqwHaAYC+vFcCgYTESMfQCwvUMM0R7dWm7NeMAJmn7ZpVNUr6yo9wGYAiC8e1OV56OqQNZ6D3zWMPjECXECAIVDwZvjEePjeWvWzfm+1bYEAEYOF0+su/OOLbrPf42saG8AEDteCA7d+uvg99k4MABvRfXbAG4E0b54g/HLb/eaW76sCx9hPttQ50O3Vi0zhgTjyP+sC1TNXlV1QFa0twGoLad4msOl7sq2CHjyhJiG1LBhj88/GbcvWnGqVdKElYr3v2u2heasXheGEBvTjoCSSUwF0MkYEaD7yscDuA4AwrWBf41HjJcutPjYEZ3G8PmQSM+fR/fUvwfgEABJ95WXSFn6SSr6Ma44w9du/xUzayxEC5g3g3kLW6KFmXVI0hNna/KV2fwCM2FcgeoDYAPjGyK82VOxQA8FA6nx1dbGVjxiPJemMk8whnUk6SzQMK5QV84QFnyaiN4/sjt84+vLS+esuaHQ27Q7/PdE9DsAp9PFqGjBInfHMexwqXAoWp5loQwAbHZ6vq42eLKn3IFeCAZS8+1ETa8C0WkAl+o+/+KOZSwLOFQfjhFJx4ho+ze/D9+06+Xg9VufDXwai6R6yrZfBz5568GS647uDs8iojARHTtYHz7QMXNyKhpkRZ2HdPKx7bnA2p7m4xn0ao/IqaggieCtqF5rWVwO4MjmZaWTJMKJTOs4FRWTijzU0mJNI9AXiajRms37OtNzK4jyHK7Cy4WFnebzVWeeyy4Vslu3a/PLdgCYRsCLm5eV3tYdB5UNvd4UcyoqZtyxaMLoK9UvwJyXiBgP79tet3LXppremuyETGSm+/x+2a0HwGyFQ8GrExFje28F96pLZ7DtucABiRAEAIdbf3DIENuUgttK+2KyE3Rf+ThngWclmEFEL8f7IBbog+BYxET+VSpevb/kP0F0GMzDtfn+Z+12aVBPVi+6gu7zg4gGyIq6hoUYBdC35sbAL/q6T9unbc94xMSUG2afAvPeEWMdc0E03unWhx4/3PguwNzc1Ngru0W3+1FXG4Qv9Jv/IJJKAOZE1FzcfDjx8Z533ugL5Vzs8zIO1ht7RzrkkcPHOmaAeYasaMnmpsZPeyPaU+zH0T31uOb+FaUjxsqr0gHJOvPVzY82vFTdZ7Z9Ftzc1Iip/zALe377xvtTbpxdAMJfgnCt7NKGNjclPgWQ7I5op6Ji2BgHjh9uzLv5l9UPDR8rrwKzBKLfhEPB0qN76lt722PaI2dHF9J57TBvZc1GgGcREcD8brzBuNfYEPgcyJ4UZObTWMTE3KdqJl96hVYBolksGAT+ZPv6td5E1Py2N1FVNuT0rIbu8yMRNYfMXlW1iiSplAUPkOz2b8DilVNfmYHoh3V745HwycTZbAyyog8BxI/14kULSZKKWYhRlFpc31hXG/h5PGKcyJVYoB8Op3iKUw7HW1H9U9mtPw6iiSwEJJsNAJlgsVMkk98CIJKkkWSzTwWzh1mk6LA4GGswHklEjQ2JiJHsyxSUDf1yGkdWVBAAwRit+/zFsqJVAACRdO4b0x4pJRY8aBA9sn19sKatjRs7rovnCv16/MipqMh3aQN1n/80AAZ4A5hGSQPs4wBAtCW/ZkIjAfMA8JblpcMIaOnpNk5P0O/nrRa/Wz+VGbsAsBEKTq4LBfe3f+6tqJ7ocKlfAuBwKFgQDgUj/cmnT6HlheBUVLS1Wpmwq0Wy4UDH50c+/+4ggGMAaHyhdnVvs6Duot8EO1wqmAkDBtq96VsfbnsueM7WZiq33i8AfAgAY6aq/9xffDLo1xbWfP5pzDwLABp3Gi9na714xEAiatSmt2OvyXepRblOQNqjXwTrPj/Sm9+VSEVzX8YbzJezOSOJgCOf128B826klowq7XZpUB9OBpwXOT8zmQ4+BngrqlcQ0QIAnIiai3//zusN2ULD402NcLo1BvDl8DHyXBBNcCqe0c1N8XckgnU8B+Fke+RMsKxouGhsPsZMdF7810sffRLgJemljLUhX+njzU17u6wrBCMcCu6TFW3Y8DH5M0kiTVb0ic2HE1sBnBgxVkZzUyInPHMyLaXiaGPILZXPLmAbLWZLXJkOJpoBfgGg0xeyAQBg2EC4FcAoEEGSpP0sxNq69YFAPGqczEWI2WfBTkXFBM1Dyq1lGyTJ9jNhJTPnQVIvoB66CRZnj+cwp44RCrE5HAr8tK42eP6jVd1At48Pd4VYxMTsiuq/AtHPhJVkkqQdLKzDAHGKs3UhE12CSBrLllUAIi8zbgLwWl/59lkwADBjMlJduHHL0jvVXISGmWMMd/223gS4EIALORCcq2kp0wuzLsX2BrGICX1+GUBo7vCOPqFfA48fInItOKcHqtO5cE5t5mQMt8OIu96pX5JTi8zO9l6/r8i14Eskm/3J3JljCEsg3ci9d/ftkBPBI0bY3j9+zKoCYURm7zfHOAngpVwY+sH8w9WfC/8Ll6rRalv4BewAAAAASUVORK5CYII="})})},D=e=>{let{className:t}=e;return(0,r.jsx)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"13",height:"15",fill:"black",viewBox:"0 0 20 15",children:(0,r.jsx)("polygon",{points:"8.3,15.1 0.4,7.2 2.6,5.1 8.3,10.9 18.8,0.4 20.9,2.5 "})})},M=e=>{let{className:t}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"20",fill:"none",viewBox:"0 0 19 20",className:t,children:(0,r.jsx)("path",{fill:"#000",d:"M3.284 16.25l.414-.717 2.53-.305 3.33-5.767L.526 7.297l.57-.988 10.342-.102 3.071-5.32c.148-.255.364-.423.65-.504.287-.085.563-.046.83.109.269.155.438.378.51.665.07.292.033.564-.112.815l-3.07 5.319 5.104 9.021-.57.987-6.413-6.754L8.12 16.29l1.01 2.379-.414.718-2.251-2.347-3.181-.79z"})})},_=e=>{let{className:t}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"18",fill:"none",viewBox:"0 0 19 18",children:(0,r.jsx)("path",{fill:"#333",d:"M9.1 18c-2.502 0-4.63-.879-6.375-2.636C.974 13.606.101 11.484.101 9c0-2.485.873-4.63 2.618-6.376C4.464.88 6.598 0 9.101 0c1.636 0 3.09.358 4.363 1.079 1.273.715 2.346 1.703 3.213 2.957v-3.4c0-.181.06-.333.181-.454A.659.659 0 0117.343 0c.2 0 .364.06.485.182a.617.617 0 01.182.454V5.88c0 .26-.079.466-.243.618a.857.857 0 01-.606.23H11.95a.626.626 0 01-.485-.2.676.676 0 01-.181-.466c0-.176.06-.34.181-.467a.626.626 0 01.485-.2h4.06a8.65 8.65 0 00-2.848-2.958c-1.17-.739-2.527-1.103-4.06-1.103-2.164 0-3.982.74-5.467 2.23C2.15 5.049 1.41 6.862 1.41 9.007c0 2.14.745 3.952 2.23 5.436 1.485 1.485 3.31 2.23 5.473 2.23a7.666 7.666 0 004.255-1.26c1.303-.836 2.266-1.976 2.897-3.406a.582.582 0 01.254-.303.74.74 0 01.376-.121c.26 0 .448.079.557.242.11.164.128.352.049.576a8.792 8.792 0 01-3.303 4.079c-1.515 1.024-3.212 1.533-5.091 1.527L9.1 18z"})})},A=e=>{let{className:t}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"60",height:"60",viewBox:"0 0 81 80",fill:"none",children:(0,r.jsx)("rect",{x:"0.125",width:"70",height:"70",rx:"23",fill:"#14688E"})})},L=e=>{let{className:t}=e;return(0,r.jsx)("svg",{width:"49",height:"26",viewBox:"0 0 49 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,r.jsx)("path",{d:"M48.6159 21.3103C48.6159 21.8608 48.5111 22.406 48.3074 22.9145C48.1037 23.4231 47.8052 23.8852 47.4289 24.2743C47.0526 24.6634 46.6058 24.9719 46.1143 25.1823C45.6227 25.3926 45.0958 25.5005 44.5639 25.5H12.7379C12.5382 25.4968 12.3433 25.4357 12.1754 25.3237L3.28713 20.1337C3.05168 19.9917 2.87426 19.7658 2.78806 19.4982L0.779867 13.9843C0.591133 13.4963 0.564592 12.9571 0.704421 12.4516C0.844251 11.9462 1.14251 11.5033 1.55225 11.1926C2.01174 10.8451 2.57571 10.6782 3.14323 10.7218C3.71074 10.7653 4.24475 11.0165 4.64969 11.4303L10.1158 17.141H17.5623L12.5478 4.50208C12.2931 3.86594 12.266 3.15669 12.4711 2.50168C12.6763 1.84668 13.1004 1.28884 13.6672 0.928352C14.234 0.567862 14.9065 0.428337 15.5637 0.534833C16.221 0.64133 16.8201 0.986871 17.2533 1.5094L30.2531 17.1H44.5639C45.0974 17.1 45.6256 17.209 46.1182 17.4208C46.6109 17.6326 47.0583 17.943 47.4347 18.3342C47.8112 18.7253 48.1094 19.1896 48.3121 19.7003C48.5148 20.211 48.618 20.7581 48.6159 21.3103Z",fill:"#14688E"})})},I=e=>{let{className:t}=e;return(0,r.jsx)("svg",{width:"124",height:"24",viewBox:"0 0 124 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,r.jsx)("path",{d:"M1.61597 10.5C0.78754 10.5 0.115967 11.1716 0.115967 12C0.115967 12.8284 0.78754 13.5 1.61597 13.5V10.5ZM122.677 13.0607C123.262 12.4749 123.262 11.5251 122.677 10.9393L113.131 1.3934C112.545 0.807611 111.595 0.807611 111.009 1.3934C110.424 1.97919 110.424 2.92893 111.009 3.51472L119.495 12L111.009 20.4853C110.424 21.0711 110.424 22.0208 111.009 22.6066C111.595 23.1924 112.545 23.1924 113.131 22.6066L122.677 13.0607ZM1.61597 13.5H121.616V10.5H1.61597V13.5Z",fill:"black"})})},P=e=>{let{className:t}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"60",height:"60",viewBox:"0 0 81 80",fill:"none",children:(0,r.jsx)("rect",{width:"70",height:"70",rx:"23",fill:"#666666"})})},O=e=>{let{className:t}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"60",height:"60",viewBox:"0 0 81 80",fill:"none",className:t,children:(0,r.jsx)("rect",{width:"70",height:"70",rx:"23",fill:"black"})})},R=e=>{let{className:t}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"2em",viewBox:"0 0 512 512",className:t,children:(0,r.jsx)("path",{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"})})},F=e=>{let{className:t}=e;return(0,r.jsx)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"70",height:"55",viewBox:"0 0 78 55",fill:"none",children:(0,r.jsx)("path",{d:"M37.0853 32.799L7.38234 4.37199C7.58936 4.32153 7.7991 4.29322 8.01052 4.29322H8.01219H69.9878C70.2 4.29322 70.4102 4.32154 70.6171 4.37196L40.9713 32.7993L40.9711 32.7995C40.3576 33.3884 39.6807 33.6585 39.0298 33.6585C38.3788 33.6585 37.7009 33.3883 37.0854 32.799L37.0853 32.799ZM4.75442 47.1799V8.46241L24.9927 27.8369L4.86774 48.1317C4.79401 47.8321 4.75442 47.5133 4.75442 47.1799ZM53.0652 27.8034L73.2439 8.46158V47.1748C73.2439 47.497 73.2039 47.8049 73.131 48.0967L53.0652 27.8034ZM8.01219 -0.5C3.54911 -0.5 0 3.28522 0 7.79304V47.1765C0 51.6834 3.54496 55.5 8.01219 55.5H69.9878C74.4533 55.5 78 51.6835 78 47.1765V7.79304C78 3.28345 74.4508 -0.5 69.9878 -0.5H8.01219ZM44.2458 36.2762L49.6125 31.1329L68.9663 50.7068H9.06463L28.4459 31.1627L33.8115 36.2765C33.8117 36.2767 33.8119 36.2769 33.8121 36.2771C36.7301 39.0709 41.3274 39.0747 44.2458 36.2762Z",fill:"#14688E",stroke:"#14688E"})})},B=e=>{let{className:t,color:n="black"}=e;return(0,r.jsx)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"9",height:"16",fill:"none",viewBox:"0 0 9 16",children:(0,r.jsx)("path",{stroke:n,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M1.203 1.553L7.65 8l-6.447 6.447"})})},z=e=>{let{className:t}=e;return(0,r.jsx)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"8",height:"16",fill:"none",viewBox:"0 0 9 16",children:(0,r.jsx)("path",{stroke:"",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M1.203 1.553L7.65 8l-6.447 6.447"})})},Z=e=>{let{className:t,color:n="black"}=e;return(0,r.jsx)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"8.5",height:"8.5",fill:"none",viewBox:"0 0 9 16",children:(0,r.jsx)("path",{stroke:n,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"4",d:"M1.203 1.553L7.65 8l-6.447 6.447"})})},H=e=>{let{className:t}=e;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"51",height:"5",fill:"none",viewBox:"0 0 51 5",children:(0,r.jsx)("path",{stroke:"#666666",strokeDasharray:"1 8",strokeLinecap:"round",strokeWidth:"4",d:"M2 2.5L49 2.5"})})},U=e=>{let{className:t}=e;return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"68",height:"68",fill:"none",viewBox:"0 0 68 68",children:[(0,r.jsx)("rect",{width:"67.727",height:"67.727",x:"0.215",fill:"#E6E6E6",rx:"23"}),(0,r.jsx)("path",{stroke:"#14688E",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",d:"M32.538 44.646c6.805 0 12.323-5.517 12.323-12.323S39.343 20 32.538 20c-6.806 0-12.323 5.517-12.323 12.323s5.517 12.323 12.323 12.323zM20.213 44.646L44.86 20M47.943 47.727l-6.7-6.7"})]})},V=e=>{let{className:t}=e;return(0,r.jsx)("svg",{width:"258px",height:"8px",viewBox:"0 0 258 8",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:(0,r.jsxs)("g",{fill:"#666666",children:[(0,r.jsx)("rect",{id:"Rectangle",x:1,y:3,width:"253.387",height:2,rx:1}),(0,r.jsx)("circle",{id:"Oval",cx:4,cy:4,r:4}),(0,r.jsx)("circle",{id:"Oval",cx:"54.00002",cy:4,r:4}),(0,r.jsx)("circle",{id:"Oval",cx:"104.00012",cy:4,r:4}),(0,r.jsx)("circle",{id:"Oval",cx:"154.00012",cy:4,r:4}),(0,r.jsx)("circle",{id:"Oval",cx:"204.00012",cy:4,r:4}),(0,r.jsx)("circle",{id:"Oval",cx:"254.00012",cy:4,r:4})]})})},W=e=>{let{className:t}=e;return(0,r.jsx)("svg",{width:"258px",height:"8px",viewBox:"0 0 258 8",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:(0,r.jsxs)("g",{children:[(0,r.jsx)("rect",{id:"Rectangle",fill:"#666666",x:1,y:3,width:"253.387",height:2,rx:1}),(0,r.jsx)("circle",{id:"Oval",fill:"#E20129",cx:4,cy:4,r:4}),(0,r.jsx)("circle",{id:"Oval",fill:"#E20129",cx:"54.00002",cy:4,r:4}),(0,r.jsx)("circle",{id:"Oval",fill:"#E20129",cx:"104.00012",cy:4,r:4}),(0,r.jsx)("circle",{id:"Oval",fill:"#E20129",cx:"154.00012",cy:4,r:4}),(0,r.jsx)("circle",{id:"Oval",fill:"#E20129",cx:"204.00012",cy:4,r:4}),(0,r.jsx)("circle",{id:"Oval",fill:"#E20129",cx:"254.00012",cy:4,r:4}),(0,r.jsx)("rect",{id:"Rectangle",fill:"#E20129",x:1,y:2,width:251,height:4,rx:2})]})})},G=e=>{let{className:t}=e;return(0,r.jsxs)("svg",{width:"41",height:"40",viewBox:"0 0 41 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M6.73979 25.6019C6.4621 25.8796 6.33106 26.2716 6.38594 26.6605C6.44081 27.0493 6.67524 27.3898 7.01892 27.5798L10.6792 29.6032L12.678 33.2378C12.8675 33.5823 13.208 33.8176 13.5973 33.873C13.9866 33.9284 14.3792 33.7974 14.6572 33.5194L15.4702 32.7064C15.7478 32.4288 15.8789 32.0368 15.8241 31.648L15.4109 28.7165L20.2904 23.837L25.6565 33.7142C25.8447 34.0606 26.1854 34.298 26.5757 34.3545C26.9659 34.4111 27.3599 34.2801 27.6387 34.0013L28.7566 32.8835C29.0696 32.5704 29.1937 32.1152 29.0829 31.6866L25.6628 18.4646L31.1788 12.9487C31.698 12.4294 31.9686 11.771 31.9877 11.0471L31.988 11.032C31.9988 10.2744 31.7137 9.59196 31.1778 9.05604C30.6534 8.53167 29.9773 8.22745 29.1944 8.24597C28.4624 8.25823 27.8039 8.53638 27.2852 9.05508L21.7685 14.5718L8.57106 11.1759C8.14286 11.0657 7.68832 11.1899 7.37568 11.5025L6.25783 12.6204C5.97889 12.8993 5.84799 13.2936 5.9047 13.684C5.96141 14.0744 6.19908 14.4151 6.54586 14.6031L16.3959 19.9444L11.493 24.8473L8.61363 24.4354C8.22408 24.3797 7.83103 24.5107 7.55277 24.7889L6.73979 25.6019Z",stroke:"#14688E","stroke-width":"2.5","stroke-linejoin":"round"}),(0,r.jsx)("path",{d:"M36.8073 36.0665L4.1875 3.44678",stroke:"#14688E","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})]})},Y=e=>{let{className:t,color:n="black"}=e;return(0,r.jsxs)("svg",{className:t,width:"24",height:"19",viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("g",{clipPath:"url(#clip0_10799_269)",children:[(0,r.jsx)("path",{d:"M5.66602 4.9248H6.11583",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M5.66602 8.19775H6.11583",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M5.66602 11.4702H6.11583",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M5.66602 14.7432H6.11583",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M22.6026 7.5854C22.5464 5.19397 23.2773 1.45604 19.9037 1.30176H3.35052C-0.0230978 1.47241 0.71235 5.17994 0.651625 7.5854C2.7905 8.10903 2.7905 11.5594 0.651625 12.0831C0.707852 14.4745 -0.0230978 18.2124 3.35052 18.3667H19.9037C23.2773 18.196 22.5419 14.4885 22.6026 12.0831C20.4637 11.5594 20.4637 8.10903 22.6026 7.5854Z",stroke:n,strokeMiterlimit:"10",strokeLinecap:"round"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_10799_269",children:(0,r.jsx)("rect",{width:"22.9091",height:"18",fill:"white",transform:"translate(0.171875 0.833984)"})})})]})},q=e=>{let{className:t,color:n="black"}=e;return(0,r.jsxs)("svg",{className:t,width:"24",height:"19",viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("g",{clipPath:"url(#clip0_10799_605)",children:[(0,r.jsx)("path",{d:"M23.1026 6.97553C23.0464 4.5841 23.7773 0.84618 20.4037 0.691895H3.85052C0.476902 0.862544 1.21235 4.57008 1.15163 6.97553C3.2905 7.49917 3.2905 10.9496 1.15163 11.4732C1.20785 13.8646 0.476902 17.6025 3.85052 17.7568H20.4037C23.7773 17.5862 23.0419 13.8786 23.1026 11.4732C20.9637 10.9496 20.9637 7.49917 23.1026 6.97553Z",fill:n,stroke:n,strokeMiterlimit:"10",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M6.16602 4.31494H6.61583",stroke:"#E6E6E6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M6.16602 7.58789H6.61583",stroke:"#E6E6E6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M6.16602 10.8604H6.61583",stroke:"#E6E6E6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M6.16602 14.1333H6.61583",stroke:"#E6E6E6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_10799_605",children:(0,r.jsx)("rect",{width:"22.9091",height:"18",fill:"white",transform:"translate(0.671875 0.224121)"})})})]})},K=e=>{let{className:t,color:n="black"}=e;return(0,r.jsx)("svg",{className:t,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M0.960083 12.2387C0.849009 12.3498 0.796591 12.5066 0.818542 12.6621C0.840494 12.8176 0.934264 12.9538 1.07174 13.0298L3.52652 14.3868L4.86737 16.825C4.94316 16.9628 5.07937 17.057 5.23507 17.0791C5.39078 17.1013 5.54783 17.0489 5.65904 16.9376L6.18676 16.4099C6.29781 16.2989 6.35023 16.1421 6.32831 15.9866L6.03841 13.9299L9.61045 10.3579L13.2927 17.1356C13.368 17.2742 13.5042 17.3692 13.6603 17.3918C13.8164 17.4144 13.974 17.362 14.0856 17.2505L14.8112 16.5249C14.9364 16.3997 14.986 16.2175 14.9417 16.0461L12.6771 7.2912L16.3834 3.58486C16.662 3.30627 16.8071 2.95565 16.8174 2.5625L16.8175 2.5625L16.8176 2.55648C16.8233 2.1511 16.6728 1.7885 16.3828 1.49847C16.0974 1.21308 15.7386 1.05363 15.3218 1.06379C14.9267 1.07015 14.5761 1.21823 14.2964 1.49785L10.5898 5.20449L1.851 2.95587C1.67973 2.9118 1.49791 2.96149 1.37285 3.08654L0.64724 3.81216C0.535662 3.92373 0.483302 4.08144 0.505987 4.23759C0.528671 4.39375 0.623738 4.53003 0.762451 4.60525L7.52306 8.27123L3.93536 11.8589L1.91215 11.5696C1.75633 11.5473 1.59911 11.5997 1.4878 11.711L0.960083 12.2387Z",stroke:n,strokeLinejoin:"round"})})},$=e=>{let{className:t,color:n="black"}=e;return(0,r.jsx)("svg",{className:t,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M1.46008 13.8485C1.34901 13.9596 1.29659 14.1164 1.31854 14.272C1.34049 14.4275 1.43426 14.5637 1.57174 14.6397L4.02652 15.9967L5.36737 18.4349C5.44316 18.5727 5.57937 18.6668 5.73507 18.689C5.89078 18.7111 6.04783 18.6587 6.15904 18.5475L6.68676 18.0198C6.79781 17.9087 6.85023 17.752 6.82831 17.5964L6.53841 15.5398L10.1105 11.9677L13.7927 18.7455C13.868 18.8841 14.0042 18.979 14.1603 19.0016C14.3164 19.0242 14.474 18.9719 14.5856 18.8603L15.3112 18.1347C15.4364 18.0095 15.486 17.8274 15.4417 17.656L13.1771 8.90106L16.8834 5.19473C17.162 4.91614 17.3071 4.56552 17.3174 4.17236L17.3175 4.17236L17.3176 4.16634C17.3233 3.76096 17.1728 3.39836 16.8828 3.10833C16.5974 2.82294 16.2386 2.6635 15.8218 2.67365C15.4267 2.68002 15.0761 2.82809 14.7964 3.10772L11.0898 6.81435L2.351 4.56574C2.17973 4.52166 1.99791 4.57135 1.87285 4.69641L1.14724 5.42202C1.03566 5.5336 0.983302 5.6913 1.00599 5.84745C1.02867 6.00361 1.12374 6.13989 1.26245 6.21511L8.02306 9.8811L4.43536 13.4688L2.41215 13.1794C2.25633 13.1571 2.09911 13.2095 1.9878 13.3208L1.46008 13.8485Z",fill:n,stroke:n,strokeLinejoin:"round"})})},X=e=>{let{className:t,color:n="black"}=e;return(0,r.jsxs)("svg",{className:t,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M18.6762 16.1205C18.6872 16.5172 18.6199 16.9123 18.4782 17.283C18.3366 17.6537 18.1232 17.9928 17.8505 18.281C17.5777 18.5692 17.2508 18.8009 16.8885 18.9627C16.5262 19.1245 16.1355 19.2133 15.7389 19.224H3.67328C2.87762 19.224 2.11451 18.908 1.5517 18.3454C0.988884 17.7829 0.672423 17.0198 0.671875 16.224L1.49928 7.91917C1.57428 7.17988 1.92167 6.49498 2.4738 5.9978C3.02593 5.50062 3.74329 5.22675 4.4862 5.22952H14.866C15.6088 5.22633 16.3261 5.50011 16.878 5.99742C17.4299 6.49473 17.7767 7.17988 17.8508 7.91917L18.6762 16.1205Z",stroke:n,strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M5.68359 5.21515C5.68633 4.15714 6.10788 3.14328 6.85603 2.39535C7.60418 1.64742 8.61804 1.22631 9.67581 1.22412C10.2013 1.22385 10.7218 1.32715 11.2074 1.52811C11.693 1.72908 12.1342 2.02378 12.5059 2.39536C12.8776 2.76695 13.1725 3.20815 13.3737 3.69376C13.5748 4.17936 13.6784 4.69985 13.6784 5.22549",stroke:n,strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M13.6784 9.52295C13.6784 10.0486 13.5748 10.5691 13.3737 11.0547C13.1725 11.5403 12.8776 11.9815 12.5059 12.3531C12.1342 12.7247 11.693 13.0194 11.2074 13.2203C10.7218 13.4213 10.2013 13.5246 9.67581 13.5243C8.61625 13.5221 7.60083 13.0996 6.85238 12.3494C6.10393 11.5993 5.68359 10.5827 5.68359 9.52295",stroke:n,strokeLinecap:"round",strokeLinejoin:"round"})]})},J=e=>{let{className:t,color:n="black"}=e;return(0,r.jsxs)("svg",{className:t,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M19.1762 16.3403C19.1872 16.737 19.1199 17.132 18.9782 17.5027C18.8366 17.8734 18.6232 18.2126 18.3505 18.5008C18.0777 18.789 17.7508 19.0206 17.3885 19.1824C17.0262 19.3442 16.6355 19.433 16.2389 19.4437H4.17328C3.37762 19.4437 2.61451 19.1277 2.0517 18.5651C1.48888 18.0026 1.17242 17.2395 1.17188 16.4437L1.99928 8.1389C2.07428 7.39961 2.42167 6.7147 2.9738 6.21752C3.52593 5.72034 4.24329 5.44648 4.9862 5.44925H15.366C16.1088 5.44606 16.8261 5.71983 17.378 6.21714C17.9299 6.71445 18.2767 7.39961 18.3508 8.1389L19.1762 16.3403Z",fill:n,stroke:n,strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M6.18359 5.43487C6.18633 4.37687 6.60788 3.36301 7.35603 2.61508C8.10418 1.86715 9.11804 1.44603 10.1758 1.44385C10.7013 1.44358 11.2218 1.54687 11.7074 1.74784C12.193 1.94881 12.6342 2.2435 13.0059 2.61509C13.3776 2.98668 13.6725 3.42788 13.8737 3.91348C14.0748 4.39909 14.1784 4.91958 14.1784 5.44522",stroke:n,strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M14.1784 9.74268C14.1784 10.2683 14.0748 10.7888 13.8737 11.2744C13.6725 11.76 13.3776 12.2012 13.0059 12.5728C12.6342 12.9444 12.193 13.2391 11.7074 13.4401C11.2218 13.641 10.7013 13.7443 10.1758 13.744C9.11625 13.7419 8.10083 13.3193 7.35238 12.5691C6.60393 11.819 6.18359 10.8025 6.18359 9.74268",stroke:"#E6E6E6",strokeLinecap:"round",strokeLinejoin:"round"})]})},Q=e=>{let{className:t,color:n="black"}=e;return(0,r.jsx)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:n,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M7.5 3.75A1.5 1.5 0 006 5.25v13.5a1.5 1.5 0 001.5 1.5h6a1.5 1.5 0 001.5-1.5V15a.75.75 0 011.5 0v3.75a3 3 0 01-3 3h-6a3 3 0 01-3-3V5.25a3 3 0 013-3h6a3 3 0 013 3V9A.75.75 0 0115 9V5.25a1.5 1.5 0 00-1.5-1.5h-6zm5.03 4.72a.75.75 0 010 1.06l-1.72 1.72h10.94a.75.75 0 010 1.5H10.81l1.72 1.72a.75.75 0 11-1.06 1.06l-3-3a.75.75 0 010-1.06l3-3a.75.75 0 011.06 0z",clipRule:"evenodd"})})},ee=e=>{let{className:t,color:n="black"}=e;return(0,r.jsxs)("svg",{className:t,width:"40px",height:"26px",viewBox:"0 0 40 26",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("title",{children:"Artboard"}),(0,r.jsxs)("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[(0,r.jsx)("rect",{id:"Rectangle",fill:n,x:"1",y:"0",width:"2",height:"26"}),(0,r.jsx)("rect",{id:"Rectangle",stroke:n,fill:n,x:"6.5",y:"0.5",width:"3",height:"25"}),(0,r.jsx)("rect",{id:"Rectangle",fill:n,x:"12",y:"0",width:"2",height:"26"}),(0,r.jsx)("rect",{id:"Rectangle",fill:n,x:"17",y:"0",width:"4",height:"26"}),(0,r.jsx)("rect",{id:"Rectangle",fill:n,x:"24",y:"0",width:"3",height:"26"}),(0,r.jsx)("rect",{id:"Rectangle",fill:n,x:"29",y:"0",width:"4",height:"26"}),(0,r.jsx)("rect",{id:"Rectangle",fill:n,x:"36",y:"0",width:"2",height:"26"})]})]})},et=e=>{let{className:t}=e;return(0,r.jsxs)("svg",{width:"35",height:"25",viewBox:"0 0 35 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsxs)("g",{clipPath:"url(#clip0_6367_45763)",children:[(0,r.jsx)("path",{d:"M33.4375 23.8403H1.5625",stroke:"#14688E",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M31.0743 2.81902C31.2448 3.11449 31.357 3.43984 31.4042 3.77649C31.4515 4.11313 31.4329 4.45447 31.3496 4.78099C31.2664 5.1075 31.12 5.41279 30.9188 5.6794C30.7177 5.94601 30.4658 6.16872 30.1775 6.33479L12.9375 16.2883C12.8284 16.349 12.7039 16.3772 12.5782 16.3696L6.15539 16.364C5.98385 16.3615 5.81776 16.2957 5.68816 16.1791L2.89187 13.848C2.6384 13.6451 2.45695 13.364 2.3761 13.049C2.29524 12.7341 2.31956 12.4031 2.44523 12.1082C2.58647 11.778 2.84026 11.512 3.16118 11.3579C3.4821 11.2038 3.84919 11.1716 4.19677 11.2671L8.92714 12.6223L12.9609 10.2934L6.32841 5.07876C5.99337 4.81701 5.75889 4.44487 5.66708 4.02918C5.57527 3.61349 5.63215 3.18148 5.8275 2.81075C6.02284 2.44001 6.34386 2.15483 6.7329 2.00642C7.12194 1.85801 7.55352 1.8561 7.95012 2.00103L19.8227 6.30242L27.5748 1.82676C27.8637 1.65993 28.1836 1.55324 28.5161 1.51282C28.8486 1.4724 29.1871 1.49906 29.5123 1.59125C29.8374 1.68344 30.1428 1.83935 30.4108 2.05005C30.6789 2.26074 30.9043 2.52206 31.0743 2.81902V2.81902Z",stroke:"#14688E",strokeWidth:"2",strokeLinejoin:"round"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_6367_45763",children:(0,r.jsx)("rect",{width:"34",height:"24.65",fill:"white",transform:"translate(0.5 0.239258)"})})})]})},en=e=>{let{className:t}=e;return(0,r.jsxs)("svg",{width:"35",height:"30",viewBox:"0 0 35 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M33.4375 28.8403H1.5625",stroke:"#14688E",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M30.6668 19.7248C30.5785 20.0544 30.4277 20.3637 30.2231 20.6352C30.0185 20.9066 29.764 21.1349 29.4742 21.3069C29.1845 21.4789 28.8651 21.5912 28.5343 21.6375C28.2036 21.6838 27.868 21.6632 27.5467 21.5767L8.31802 16.4244C8.19788 16.3902 8.08995 16.3221 8.00647 16.2279L3.46875 11.6823C3.34927 11.5592 3.2783 11.3953 3.26914 11.2211L2.94019 7.59554C2.90445 7.27282 2.9749 6.94577 3.14044 6.66587C3.30599 6.38598 3.55723 6.16913 3.85462 6.04947C4.18797 5.91586 4.55548 5.90727 4.89137 6.02522C5.22727 6.14317 5.50962 6.37997 5.6879 6.69324L8.07447 10.9964L12.5735 12.2019L11.571 3.82475C11.5192 3.40275 11.6165 2.97381 11.8455 2.61495C12.0745 2.2561 12.4202 1.99084 12.8205 1.86682C13.2208 1.7428 13.6494 1.76815 14.0295 1.9383C14.4095 2.10845 14.716 2.41227 14.894 2.79518L20.2476 14.2319L28.8939 16.5487C29.2162 16.635 29.5179 16.7858 29.7816 16.9923C30.0452 17.1989 30.2658 17.4571 30.4305 17.7522C30.5952 18.0473 30.7009 18.3734 30.7414 18.712C30.782 19.0505 30.7566 19.3947 30.6668 19.7248V19.7248Z",stroke:"#14688E",strokeWidth:"2",strokeLinejoin:"round"})]})},er=e=>{let{className:t}=e;return(0,r.jsxs)("svg",{width:"61",height:"61",viewBox:"0 0 61 61",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("rect",{x:"0.5",y:"0.756836",width:"60",height:"60",rx:"23",fill:"#E6E6E6"}),(0,r.jsx)("path",{d:"M46.8112 47.0665L14.1914 14.4468",stroke:"#14688E",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M42.4657 38.5941C42.4803 39.1214 42.3909 39.6464 42.2026 40.1391C42.0143 40.6318 41.7307 41.0826 41.3682 41.4657C41.0056 41.8488 40.5711 42.1566 40.0895 42.3717C39.608 42.5867 39.0888 42.7048 38.5616 42.719H22.5245C21.4669 42.719 20.4526 42.299 19.7046 41.5513C18.9565 40.8036 18.5359 39.7893 18.5352 38.7316L19.6349 27.6932C19.7346 26.7105 20.1963 25.8002 20.9302 25.1394C21.6641 24.4785 22.6175 24.1145 23.605 24.1182H37.4013C38.3886 24.114 39.3421 24.4779 40.0757 25.1389C40.8092 25.7999 41.2702 26.7105 41.3687 27.6932L42.4657 38.5941Z",stroke:"#14688E",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M25.1953 24.0991C25.1989 22.6929 25.7592 21.3453 26.7537 20.3512C27.7481 19.3571 29.0956 18.7973 30.5016 18.7944C31.2001 18.7941 31.8918 18.9314 32.5373 19.1985C33.1827 19.4656 33.7692 19.8573 34.2633 20.3512C34.7573 20.8451 35.1492 21.4315 35.4166 22.077C35.684 22.7224 35.8216 23.4142 35.8216 24.1129",stroke:"#14688E",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M35.8216 29.8247C35.8216 30.5234 35.684 31.2152 35.4166 31.8606C35.1492 32.5061 34.7573 33.0925 34.2633 33.5864C33.7692 34.0803 33.1827 34.472 32.5373 34.7391C31.8918 35.0062 31.2001 35.1435 30.5016 35.1432C29.0933 35.1402 27.7436 34.5786 26.7488 33.5815C25.754 32.5844 25.1953 31.2333 25.1953 29.8247",stroke:"#14688E",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},ea=e=>{let{className:t,color:n="black"}=e;return(0,r.jsx)("svg",{className:t,fill:n,width:"9",height:"16",viewBox:"0 0 9 16",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{id:"Vector",d:"M8.99202 13.0096C8.72852 13.0096 8.50717 12.92 8.33326 12.7355C8.15935 12.5511 8.06976 12.335 8.06976 12.0873C8.06976 11.8238 8.15935 11.6024 8.33326 11.4285C8.50717 11.2546 8.72852 11.165 8.99202 11.165C9.25553 11.165 9.47687 11.2546 9.65078 11.4285C9.8247 11.6024 9.91429 11.8238 9.91429 12.0873C9.91429 12.335 9.8247 12.5511 9.65078 12.7355C9.47687 12.92 9.25553 13.0096 8.99202 13.0096ZM4.77595 13.0096C4.51244 13.0096 4.2911 12.92 4.11719 12.7355C3.94327 12.5511 3.85368 12.335 3.85368 12.0873C3.85368 11.8238 3.94327 11.6024 4.11719 11.4285C4.2911 11.2546 4.51244 11.165 4.77595 11.165C5.03945 11.165 5.2608 11.2546 5.43471 11.4285C5.60862 11.6024 5.69822 11.8238 5.69822 12.0873C5.69822 12.335 5.60862 12.5511 5.43471 12.7355C5.2608 12.92 5.03945 13.0096 4.77595 13.0096ZM13.2081 13.0096C12.9446 13.0096 12.7232 12.92 12.5493 12.7355C12.3754 12.5511 12.2858 12.335 12.2858 12.0873C12.2858 11.8238 12.3754 11.6024 12.5493 11.4285C12.7232 11.2546 12.9446 11.165 13.2081 11.165C13.4716 11.165 13.6929 11.2546 13.8669 11.4285C14.0408 11.6024 14.1304 11.8238 14.1304 12.0873C14.1304 12.335 14.0408 12.5511 13.8669 12.7355C13.6929 12.92 13.4716 13.0096 13.2081 13.0096ZM8.99202 17.1466C8.72852 17.1466 8.50717 17.057 8.33326 16.8673C8.15935 16.6775 8.06976 16.4667 8.06976 16.2243C8.06976 15.9608 8.15935 15.7395 8.33326 15.5656C8.50717 15.3916 8.72852 15.302 8.99202 15.302C9.25553 15.302 9.47687 15.3916 9.65078 15.5656C9.8247 15.7395 9.91429 15.9608 9.91429 16.2243C9.91429 16.472 9.8247 16.6881 9.65078 16.8673C9.47687 17.0517 9.25553 17.1466 8.99202 17.1466ZM4.77595 17.1466C4.51244 17.1466 4.2911 17.057 4.11719 16.8673C3.94327 16.6775 3.85368 16.4667 3.85368 16.2243C3.85368 15.9608 3.94327 15.7395 4.11719 15.5656C4.2911 15.3916 4.51244 15.302 4.77595 15.302C5.03945 15.302 5.2608 15.3916 5.43471 15.5656C5.60862 15.7395 5.69822 15.9608 5.69822 16.2243C5.69822 16.472 5.60862 16.6881 5.43471 16.8673C5.2608 17.0517 5.03945 17.1466 4.77595 17.1466ZM13.2081 17.1466C12.9446 17.1466 12.7232 17.057 12.5493 16.8673C12.3754 16.6775 12.2858 16.4667 12.2858 16.2243C12.2858 15.9608 12.3754 15.7395 12.5493 15.5656C12.7232 15.3916 12.9446 15.302 13.2081 15.302C13.4716 15.302 13.6929 15.3916 13.8669 15.5656C14.0408 15.7395 14.1304 15.9608 14.1304 16.2243C14.1304 16.472 14.0408 16.6881 13.8669 16.8673C13.6929 17.0517 13.4716 17.1466 13.2081 17.1466ZM1.58754 20.7566C1.18175 20.7566 0.83919 20.609 0.549335 20.3086C0.25948 20.0082 0.117188 19.6657 0.117188 19.281V4.07675C0.117188 3.67095 0.25948 3.3284 0.549335 3.03327C0.83919 2.74342 1.18702 2.60112 1.58754 2.60112H3.56383V1.389C3.56383 1.21509 3.62707 1.06226 3.74828 0.941045C3.86949 0.819833 4.02233 0.756592 4.19624 0.756592C4.39123 0.756592 4.54933 0.819833 4.67055 0.941045C4.79176 1.06226 4.855 1.21509 4.855 1.389V2.60112H13.1554V1.36265C13.1554 1.18874 13.2186 1.04118 13.3398 0.930505C13.4611 0.819833 13.6139 0.756592 13.7878 0.756592C13.9617 0.756592 14.1146 0.819833 14.2358 0.941045C14.357 1.06226 14.4202 1.20455 14.4202 1.36265V2.60112H16.3965C16.8023 2.60112 17.1449 2.74342 17.4347 3.03327C17.7246 3.32313 17.8721 3.67095 17.8721 4.07675V19.281C17.8721 19.6657 17.7246 20.0082 17.4347 20.3086C17.1449 20.609 16.797 20.7566 16.3965 20.7566H1.58754V20.7566ZM1.58754 19.5972H16.3965C16.4861 19.5972 16.5599 19.5656 16.6178 19.5076C16.6758 19.4496 16.7074 19.3706 16.7074 19.2862V8.87253H1.27134V19.281C1.27134 19.3706 1.30296 19.4443 1.3662 19.5023C1.42944 19.5603 1.50322 19.5919 1.58754 19.5919V19.5972ZM1.27134 7.71311H16.7127V4.07675C16.7127 3.98716 16.6811 3.91338 16.6231 3.85014C16.5651 3.78689 16.4861 3.75527 16.4018 3.75527H1.58754C1.49795 3.75527 1.42417 3.78689 1.36093 3.85014C1.29769 3.91338 1.26607 3.98716 1.26607 4.07675V7.71311H1.27134Z",fill:"black"})})},ei=e=>{let{className:t,color:n="black"}=e;return(0,r.jsxs)("svg",{className:t,fill:n,width:"9",height:"16",viewBox:"0 0 9 16",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.5425 19.7421C15.4156 19.7421 19.366 15.7917 19.366 10.9186C19.366 6.04548 15.4156 2.09505 10.5425 2.09505C5.66938 2.09505 1.71895 6.04548 1.71895 10.9186C1.71895 15.7917 5.66938 19.7421 10.5425 19.7421ZM10.5425 20.9186C16.0653 20.9186 20.5425 16.4414 20.5425 10.9186C20.5425 5.39573 16.0653 0.918579 10.5425 0.918579C5.01963 0.918579 0.54248 5.39573 0.54248 10.9186C0.54248 16.4414 5.01963 20.9186 10.5425 20.9186Z",fill:"black"}),(0,r.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.5426 4.62292C10.8675 4.62292 11.1308 4.88629 11.1308 5.21116V10.5522H15.2833C15.6082 10.5522 15.8716 10.8156 15.8716 11.1405C15.8716 11.4653 15.6082 11.7287 15.2833 11.7287H10.5426C10.2177 11.7287 9.95435 11.4653 9.95435 11.1405V5.21116C9.95435 4.88629 10.2177 4.62292 10.5426 4.62292Z",fill:"black"})]})};t.Z=e=>{let{iconName:t,className:n,fill:el,stroke:eo,color:es="black"}=e;return(0,r.jsx)(r.Fragment,{children:(()=>{switch(t.toLowerCase()){case"show-password":return(0,r.jsx)(a,{className:n,color:es});case"accordion-divider":return(0,r.jsx)(S,{className:n});case"airplane-takeoff":return(0,r.jsx)(et,{className:n});case"airplane-landing":return(0,r.jsx)(en,{className:n});case"airplane-outline":return(0,r.jsx)(K,{className:n,color:es});case"airplane-solid":return(0,r.jsx)($,{className:n,color:es});case"arrow":return(0,r.jsx)(u,{className:n,color:es});case"arrow_alert":return(0,r.jsx)(d,{className:n,color:es});case"arrow-profile":return(0,r.jsx)(p,{className:n,stroke:eo,fill:el});case"arrow-back":return(0,r.jsx)(f,{className:n,stroke:eo,fill:el});case"burger":return(0,r.jsx)(y,{className:n});case"close":return(0,r.jsx)(w,{className:n,color:es});case"info":return(0,r.jsx)(l,{className:n});case"phone":return(0,r.jsx)(h,{className:n});case"user":return(0,r.jsx)(m,{className:n,color:es});case"user-solid":return(0,r.jsx)(v,{className:n,color:es});case"search":return(0,r.jsx)(g,{className:n,color:es});case"prm":return(0,r.jsx)(x,{className:n,color:es});case"divider":return(0,r.jsx)(b,{className:n});case"marker":return(0,r.jsx)(k,{className:n});case"location":return(0,r.jsx)(j,{className:n});case"location-destination":return(0,r.jsx)(C,{className:n});case"location-reward":return(0,r.jsx)(N,{className:n,stroke:eo,fill:el,color:es});case"cup-bg-blue":return(0,r.jsx)(T,{className:n,stroke:eo,fill:el,color:es});case"cup-blue":return(0,r.jsx)(E,{className:n,stroke:eo,fill:el,color:es});case"check":return(0,r.jsx)(D,{className:n});case"airplane":return(0,r.jsx)(M,{className:n});case"refresh":return(0,r.jsx)(_,{className:n});case"active-square":return(0,r.jsx)(A,{className:n});case"black-square":return(0,r.jsx)(O,{className:n});case"black-circle":return(0,r.jsx)(R,{className:n});case"not-active-square":return(0,r.jsx)(P,{className:n});case"mail":return(0,r.jsx)(F,{className:n});case"departureplane":return(0,r.jsx)(L,{className:n});case"longarrow":return(0,r.jsx)(I,{className:n});case"longarrow-mobile":return(0,r.jsx)(i,{className:n});case"chevron-r":return(0,r.jsx)(B,{color:es,className:n});case"chevron-r-search":return(0,r.jsx)(z,{color:es,className:n});case"chevron-r-airlines":return(0,r.jsx)(Z,{color:es,className:n});case"bar-points-full":return(0,r.jsx)(V,{className:n});case"bar-points-progress":return(0,r.jsx)(W,{className:n});case"fidelity-card-outline":return(0,r.jsx)(Y,{className:n,color:es});case"fidelity-card-solid":return(0,r.jsx)(q,{className:n,color:es});case"bag-outline":return(0,r.jsx)(X,{className:n,color:es});case"bag-solid":return(0,r.jsx)(J,{className:n,color:es});case"logout":return(0,r.jsx)(Q,{className:n,color:es});case"qrcode-account":return(0,r.jsx)(ee,{className:n,color:es});case"noflights":return(0,r.jsx)(G,{className:n});case"nopurchases":return(0,r.jsx)(er,{className:n});case"download":return(0,r.jsx)(c,{color:es,className:n});case"dots":return(0,r.jsx)(H,{className:n});case"no-result":return(0,r.jsx)(U,{className:n});case"walking":return(0,r.jsx)(s,{className:n});case"calendar":return(0,r.jsx)(ea,{className:n});case"clock":return(0,r.jsx)(ei,{className:n});case"lock":return(0,r.jsx)(o,{className:n})}})()})}},2831:function(e,t,n){"use strict";var r=n(5893),a=n(8903),i=n(4480),l=n(7200),o=n(7294),s=n(5397),c=n(8449),u=n(2120);t.Z=e=>{let{navigationData:t,hostPageData:n=null,language:d}=e,{i18n:p}=(0,u.$G)(),f=d||p.language,h=(0,i.Zl)(l.k),m=(0,o.useRef)(null),[v]=(0,a.dD)(),[g,x]=(0,o.useState)(),[b]=null==t?void 0:t.data,y=(0,o.useMemo)(()=>{var e,t;let n=null===(t=b.ti.find(e=>{var t;return(null===(t=e.label)||void 0===t?void 0:t.toLowerCase())==="malpensa"}).xtaxAirport)||void 0===t?void 0:null===(e=t.ti)||void 0===e?void 0:e.upiLogoBlack;return{path:(null==n?void 0:n.mediaserverpath)+"/"+(null==n?void 0:n.resourcename),description:"",alt:""}},[t]),w=b.ti.find(e=>{var t;return(null===(t=e.label)||void 0===t?void 0:t.toLowerCase())==="malpensa"}).ti,[k,S]=(0,i.FV)(c.Qw);async function j(){return await fetch("".concat("https://integration.emmasuite.com/api/bigcommerce/hasher/").concat("420e2720-4a03-43aa-9bf7-15ae7a5a0203"))}async function C(e){return await fetch("".concat("https://integration.emmasuite.com/api/bcappsea/passthrough","/categories"),{method:"GET",headers:{"x-auth-hash":e,"x-auth-instance-id":"420e2720-4a03-43aa-9bf7-15ae7a5a0203"}})}function N(e){return null==e||e.map(e=>{switch(e.name){case"Borse":return e.name="Bags",e.custom_url.url="/en"+e.custom_url.url,e;case"Orologi":return e.name="Watches",e.custom_url.url="/en"+e.custom_url.url,e;case"Profumi":return e.name="Fragrances",e.custom_url.url="/en"+e.custom_url.url,e;case"Beauty":return e.custom_url.url="/en/beauty",e;case"Accessori":return e.name="Accessories",e.custom_url.url="/en"+e.custom_url.url,e;case"Alcolici":return e.name="Spirits",e.custom_url.url="/en"+e.custom_url.url,e;case"Food":return e.custom_url.url="/en/food",e;case"Abbigliamento":return e.name="Clothing",e.custom_url.url="/en"+e.custom_url.url,e;case"Gioielli e bigiotteria":return e.name="Jewelry",e.custom_url.url="/en"+e.custom_url.url,e;case"Scarpe":return e.name="Shoes",e.custom_url.url="/en"+e.custom_url.url,e}}),e}return(0,o.useEffect)(()=>{j().then(e=>null==e?void 0:e.json()).then(e=>{C(e.hash).then(e=>null==e?void 0:e.json()).then(e=>{x(e.filter(e=>24===e.parent_id))}).catch(e=>console.error("[ShopLayoutPage] getCategoryData error -> ",e))}).catch(e=>{console.error("[ShopLayoutPage] getHasher error -> ",e)})},[]),(0,a.O3)(m,()=>{S(!1),h(null)}),(0,r.jsxs)("header",{ref:m,className:"relative mx-auto max-w-cont-1 w-full ",children:[(0,r.jsx)(s.W_,{language:f,onSearchClick:()=>{S(!k)},hostPageData:n,navItems:w,imageUrl:y}),(0,r.jsx)(s.Vn,{language:f,navItems:w,categoryData:"it"==f?g:N(g)}),k&&!v?(0,r.jsx)(s.Ce,{}):null,(0,r.jsx)(s.HX,{language:f,isMobile:v,imageUrl:y}),(0,r.jsx)(s.oT,{language:f,hostPageData:n,menuItems:w,imageUrl:y,categoryData:"it"==f?g:N(g)})]})}},5397:function(e,t,n){"use strict";let r;n.d(t,{M_:function(){return uY},LL:function(){return uU},bZ:function(){return ul},WV:function(){return cu},Oo:function(){return sL},zx:function(){return lV},CS:function(){return uv},iS:function(){return oG},Rr:function(){return oY},WZ:function(){return sO},Lt:function(){return oH},ub:function(){return uO},SV:function(){return ut},fW:function(){return uK},w6:function(){return uC},fF:function(){return u4},$_:function(){return A},$b:function(){return sk},l:function(){return u5},Vn:function(){return ur},HX:function(){return um},oT:function(){return uh},_v:function(){return cA},zu:function(){return un},bK:function(){return uX},W_:function(){return lq},F0:function(){return uP},qW:function(){return uQ},ZO:function(){return u6},Ce:function(){return up},bg:function(){return uI},K9:function(){return uT},YF:function(){return uL},uh:function(){return cj},Y7:function(){return u9}});var a,i,l,o,s,c,u,d,p,f,h,m,v,g,x,b,y,w=n(5893),k=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default";return"mob"===n?({1:"mob:grid-cols-1",2:"mob:grid-cols-2",3:"mob:grid-cols-3",4:"mob:grid-cols-4",5:"mob:grid-cols-5",6:"mob:grid-cols-6",7:"mob:grid-cols-7",8:"mob:grid-cols-8",9:"mob:grid-cols-9",10:"mob:grid-cols-10",11:"mob:grid-cols-11",12:"mob:grid-cols-12"})[Math.min(e,t)]:"tab"===n?({1:"tab:grid-cols-1",2:"tab:grid-cols-2",3:"tab:grid-cols-3",4:"tab:grid-cols-4",5:"tab:grid-cols-5",6:"tab:grid-cols-6",7:"tab:grid-cols-7",8:"tab:grid-cols-8",9:"tab:grid-cols-9",10:"tab:grid-cols-10",11:"tab:grid-cols-11",12:"tab:grid-cols-12"})[Math.min(e,t)]:"desk"===n?({1:"desk:grid-cols-1",2:"desk:grid-cols-2",3:"desk:grid-cols-3",4:"desk:grid-cols-4",5:"desk:grid-cols-5",6:"desk:grid-cols-6",7:"desk:grid-cols-7",8:"desk:grid-cols-8",9:"desk:grid-cols-9",10:"desk:grid-cols-10",11:"desk:grid-cols-11",12:"desk:grid-cols-12"})[Math.min(e,t)]:({1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"})[Math.min(e,t)]},S=n(2399),j=()=>[{id:1,label:"Malpensa",siteUrl:"https://www.milanomalpensa-airport.com"},{id:2,label:"Linate",siteUrl:"https://www.milanolinate-airport.com"}],C=n(7294),N=n.t(C,2),T=n(8903),E=n(2593),D=n(2120),M=n(5675),_=n.n(M),A=e=>{var t,n,r,a,i,l,o,s,c,u,d,p,f,h,m,v,g,x;let{dataFooter:b,lang:y}=e,{t:N,i18n:M}=(0,D.$G)(),A=b[0],L=y||M.language,I=(null==A?void 0:null===(t=A.lstSiteMap)||void 0===t?void 0:t.length)?null==A?void 0:A.lstSiteMap.length:0,P=(null==A?void 0:null===(n=A.lstSocial)||void 0===n?void 0:n.length)?null==A?void 0:A.lstSocial.length:0,O=(null==A?void 0:null===(r=A.lstAppStore)||void 0===r?void 0:r.length)?null==A?void 0:A.lstAppStore.length:0,R=(null==A?void 0:A.flgTarget)?"_blank":"_self",F=(null==A?void 0:A.flgTargetPrm)?"_blank":"_self",B=(null==A?void 0:A.flgTargetSea)?"_blank":"_self",z=(null==A?void 0:null===(i=A.xtaxAirport)||void 0===i?void 0:null===(a=i.ti)||void 0===a?void 0:a.upiLogoWhite)?A.xtaxAirport.ti.upiLogoWhite.mediaserverpath+"/"+A.xtaxAirport.ti.upiLogoWhite.resourcename:"",Z=(null==A?void 0:null===(l=A.upiImageDeskPrm)||void 0===l?void 0:l.mediaserverpath)?(null==A?void 0:null===(o=A.upiImageDeskPrm)||void 0===o?void 0:o.mediaserverpath)+"/"+(null==A?void 0:null===(s=A.upiImageDeskPrm)||void 0===s?void 0:s.resourcename):"",H=(null==A?void 0:null===(c=A.upiImageDeskSea)||void 0===c?void 0:c.mediaserverpath)+"/"+(null==A?void 0:null===(u=A.upiImageDeskSea)||void 0===u?void 0:u.resourcename),U=(null==A?void 0:A.txbSubtitle)&&(null==A?void 0:A.txbSubtitle[L])?null==A?void 0:A.txbSubtitle[L]:"",V=(null==A?void 0:A.lblCellphoneNumber)&&(null==A?void 0:A.lblCellphoneNumber[L])?null==A?void 0:A.lblCellphoneNumber[L]:"",W=(null==A?void 0:A.lblAppStore)&&(null==A?void 0:A.lblAppStore[L])?null==A?void 0:A.lblAppStore[L]:"",G=(null==A?void 0:A.lblLinkSea)&&(null==A?void 0:A.lblLinkSea[L])?null==A?void 0:A.lblLinkSea[L]:"",Y=(null==A?void 0:A.lblLinkPrm)&&(null==A?void 0:A.lblLinkPrm[L])?null==A?void 0:A.lblLinkPrm[L]:(null==A?void 0:null===(d=A.xconGenericPagePrm)||void 0===d?void 0:d.lblUrlPath)&&(null==A?void 0:null===(p=A.xconGenericPagePrm)||void 0===p?void 0:p.lblUrlPath[L])?null==A?void 0:null===(f=A.xconGenericPagePrm)||void 0===f?void 0:f.lblUrlPath[L]:"",q="Content Copyright "+new Date().getFullYear()+" S.E.A. S.p.A. P.IVA 00826040156",K=j(),$=(0,C.useRef)(null),[X,J]=(0,C.useState)(!1);(0,T.O3)($,()=>{J(!1)});let Q=(0,w.jsx)("a",{href:"/".concat(L),target:R,rel:"_blank"===R?"noopener noreferrer":void 0,children:(0,w.jsx)("div",{className:"relative",style:{width:241,height:29},children:z?(0,w.jsx)(_(),{src:z,alt:"logoAirport",fill:!0,sizes:"241px",className:"object-contain",unoptimized:!0}):(0,w.jsx)("div",{"aria-hidden":"true",className:"w-full h-full bg-gray-300 rounded"})})}),ee=(0,w.jsx)("h2",{className:"desk:text-sm",children:U}),et=(0,w.jsx)("a",{href:G,target:B,className:"flex justify-end",rel:"_blank"===B?"noopener noreferrer":void 0,children:(0,w.jsx)("span",{className:"x-relative",style:{},children:H?(0,w.jsx)(_(),{src:H,alt:"seaIcon",fill:!0,sizes:"120px",className:"w-fit seaIcon tabhidden",unoptimized:!0}):(0,w.jsx)("div",{"aria-hidden":"true",className:"w-full h-full bg-gray-300 rounded"})})}),en=Z?(0,w.jsx)("a",{href:Y,target:F,className:"flex justify-end",rel:"_blank"===F?"noopener noreferrer":void 0,children:(0,w.jsx)("div",{className:"relative max-w-none",style:{width:40,height:40},children:(0,w.jsx)(_(),{src:Z,alt:"disableIcon",fill:!0,sizes:"40px",className:"max-w-none disableIcon",unoptimized:!0})})}):null,er=V?(0,w.jsxs)("a",{href:"tel:".concat(V),className:"text-[#E6E6E6] flex gap-2 items-center font-bold desk:font-normal",children:[(0,w.jsx)(S.Z,{iconName:"phone",className:"fill-[#E6E6E6] w-6 h-6 desk:w-4 desk:h-4"}),V]}):null,ea=0==O?null:(0,w.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,w.jsx)("p",{className:"desk:text-sm",children:W}),(0,w.jsx)("div",{className:"flex gap-4",children:null==A?void 0:null===(h=A.lstAppStore)||void 0===h?void 0:h.map(e=>{let t=e.id,n=e.lblUrlAppStore,r=e.upiImageDeskLogo.alt,a=e.upiImageDeskLogo.mediaserverpath+"/"+e.upiImageDeskLogo.resourcename;return(0,w.jsx)("a",{href:n,rel:"noopener noreferrer",target:"_blank",children:(0,w.jsx)("div",{className:"relative",style:{width:112,height:40},children:a?(0,w.jsx)(_(),{src:a,alt:r,fill:!0,sizes:"112px",className:"object-contain",unoptimized:!0}):(0,w.jsx)("div",{"aria-hidden":"true",className:"w-full h-full bg-gray-300 rounded"})})},t)})})]}),ei=0==P?null:(0,w.jsx)("div",{className:"flex gap-11 desk:gap-5 tab:col-start-2 social-media",children:null==A?void 0:null===(m=A.lstSocial)||void 0===m?void 0:m.map(e=>{let t=e.id,n=e.lblUrlSocial,r=e.flgTargetSocial?"_blank":"_self",a=e.upiImageSocial.mediaserverpath+"/"+e.upiImageSocial.resourcename,i=e.upiImageSocial.alt;return(0,w.jsx)("a",{href:n,target:r,"aria-label":i,rel:e.flgTargetSocial?"noopener noreferrer":void 0,children:(0,w.jsx)("div",{className:"relative",style:{width:20,height:20},children:a?(0,w.jsx)(_(),{src:a,alt:i,fill:!0,sizes:"20px",className:"object-contain",unoptimized:!0}):(0,w.jsx)("div",{"aria-hidden":"true",className:"w-full h-full bg-gray-300 rounded"})})},t)})}),el=(0,w.jsx)("div",{className:"flex flex-col gap-5 py-3",children:null==A?void 0:null===(v=A.lstSiteMap)||void 0===v?void 0:v.map(e=>{let t=e.id,n=e.lblTitle[L],r=e.flgTargetSiteMap?"_blank":"_self",a=e.lblLinkSiteMap[L],[i,l]=(0,C.useState)(!1);return(0,w.jsxs)("div",{className:"flex flex-col",onClick:()=>i?l(!1):l(!0),children:[(0,w.jsxs)("div",{className:"flex gap-3 items-center",children:[a?(0,w.jsx)("a",{href:a,target:r,className:"text-[#E6E6E6] font-bold text-xl",rel:e.flgTargetSiteMap?"noopener noreferrer":void 0,children:n}):(0,w.jsx)("div",{className:"text-[#E6E6E6] font-bold text-xl",children:n}),(0,w.jsx)(S.Z,{iconName:"arrow",color:"#FFFFFF",className:"fill-[#FFFFFF] h-3 w-3"})]}),(0,w.jsx)("div",{className:"".concat(i?"":"hidden"," ml-3 mt-2 flex flex-col"),children:e.lstLink.map(t=>{let n=t.id,r=t.lblUrlField[L],a=e.flgTargetSiteMap?"_blank":"_self",i=t.lblFieldName[L];return(0,w.jsx)("a",{href:r,target:a,className:"pb-2 text-sm font-bold",rel:e.flgTargetSiteMap?"noopener noreferrer":void 0,children:i},n)})})]},t)})}),eo=(0,w.jsx)("div",{className:"grid ".concat(k(I,3)),children:null==A?void 0:null===(g=A.lstSiteMap)||void 0===g?void 0:g.map(e=>{let t=e.id,n=e.lblTitle[L],r=e.flgTargetSiteMap?"_blank":"_self",a=e.lblLinkSiteMap[L];return(0,w.jsxs)("div",{className:"flex flex-col px-4",children:[a?(0,w.jsx)("a",{href:a,target:r,className:"text-[#E6E6E6] pb-8 text-sm",rel:e.flgTargetSiteMap?"noopener noreferrer":void 0,children:n}):(0,w.jsx)("div",{className:"text-[#E6E6E6] pb-8 text-sm",role:"heading","aria-level":2,children:n}),e.lstLink.map(t=>{let n=t.id,r=t.lblUrlField[L],a=e.flgTargetSiteMap?"_blank":"_self",i=t.lblFieldName[L];return(0,w.jsx)("a",{href:r,target:a,className:"pb-2 text-sm font-bold",rel:e.flgTargetSiteMap?"noopener noreferrer":void 0,children:i},n)})]},t)})});return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{className:"bg-[#333333] text-[#FFFFFF] flex flex-col gap-8",children:[(0,w.jsxs)("div",{className:"tab:hidden flex flex-col gap-8 px-6 pt-9",children:[Q,ee,er,el,ei]}),(0,w.jsxs)("div",{className:"tab:flex desk:hidden tabhidden flex-col gap-8 px-6 pt-14",children:[(0,w.jsxs)("div",{className:"grid grid-cols-2 gap-28",children:[(0,w.jsxs)("div",{className:"flex flex-col gap-8",children:[Q,ee]}),el]}),(0,w.jsxs)("div",{className:"grid grid-cols-2 items-center gap-28",children:[er,ei]})]}),(0,w.jsxs)("div",{className:"desk:flex px-6 pt-24 max-w-cont-1 mx-auto w-full tabhidden",children:[(0,w.jsxs)("div",{className:"grid grid-cols-6 gap-16",children:[(0,w.jsxs)("div",{className:"flex flex-col gap-7 col-span-2 px-0",children:[Q,ee,er,ei]}),(0,w.jsx)("div",{className:"col-span-4 flex justify-center",children:eo})]}),(0,w.jsx)("div",{children:en})]}),(0,w.jsxs)("div",{className:"grid grid-cols-5 pb-14 tab:pb-7 items-end max-w-cont-1 mx-auto px-6 w-full",children:[(0,w.jsx)("div",{className:"col-span-4",children:ea}),(0,w.jsx)("div",{className:"block tab:hidden col-span-1",children:en}),(0,w.jsx)("div",{className:"tab:block col-span-1",children:et})]})]}),(0,w.jsx)("div",{className:"border-4 border-[#E20129]"}),(0,w.jsxs)("div",{className:"text-xs bg-lightblack ",children:[(0,w.jsxs)("div",{className:"p-6 flex justify-between flex-col tab:flex-row gap-y-5 max-w-cont-1 w-full mx-auto",children:[(0,w.jsx)("div",{className:"text-[#E6E6E6] font-bold flex gap-2",children:(0,w.jsx)("div",{className:"text-black",children:(0,w.jsxs)("div",{className:"p-2 gap-3 flex text-sm text-lightgrey custom-select",children:[(0,w.jsx)("div",{children:N("homepage.footer_airport")}),(0,w.jsxs)("div",{className:"relative",children:[(0,w.jsxs)("div",{className:"selectedOpt  gap-2 items-center flex cursor-pointer",onClick:()=>J(!X),children:["Malpensa"," ",(0,w.jsx)(S.Z,{color:"lightgrey",className:"rotate-90",iconName:"chevron-r"})]}),X?(0,w.jsx)("div",{ref:$,className:"flex flex-col z-10 bg-lightblack border border-lightgrey p-2 rounded-xl absolute top-7 left-0",children:K.map(e=>(0,w.jsx)("a",{className:"custom-select-opt cursor-pointer",href:e.siteUrl,children:e.label},e.id))}):null]})]})})}),(0,w.jsx)("div",{className:"flex flex-wrap gap-x-10 gap-y-3 tab:gap-x-5 desk:gap-x-10 items-start",children:null==A?void 0:null===(x=A.lstLinkSubfooter)||void 0===x?void 0:x.map(e=>{let t=e.id,n=e.lblFieldNameSubfooter[L],r=e.flgTargetSiteMapSubFooter?"_blank":"_self";return(0,w.jsxs)("div",{className:"flex flex-col",children:[(0,w.jsx)("a",{href:(0,E.Z)(e,L),target:r,className:"text-[#FFFFFF] underline underline-offset-1 hover:no-underline",rel:e.flgTargetSiteMapSubFooter?"noopener noreferrer":void 0,children:n}),"privacy"===n.toLowerCase()&&(0,w.jsxs)("a",{href:"#",className:"iubenda-cs-preferences-link flex items-center mt-3 text-[#FFFFFF] underline underline-offset-1 hover:no-underline whitespace-nowrap",children:[(0,w.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 14",className:"w-4 h-4",role:"img","aria-label":"Your Privacy Choices",children:[(0,w.jsx)("path",{d:"M22.6 0H7.4C3.5 0 .4 3.1.4 7s3.1 7 7 7h15.2c3.9 0 7-3.1 7-7s-3.1-7-7-7zM1.6 7c0-3.2 2.6-5.8 5.8-5.8h9.9l-3.1 11.6H7.4C4.2 12.8 1.6 10.2 1.6 7z",fill:"#0066FF"}),(0,w.jsx)("path",{d:"M24.6 4a.56.56 0 00-.8 0l-2.2 2.2-2.2-2.2a.56.56 0 10-.8.8L21 7l-2.2 2.2a.56.56 0 00.8.8l2.2-2.2 2.2 2.2a.56.56 0 00.8-.8L22.5 7l2.2-2.2a.56.56 0 000-.8z",fill:"#FFFFFF"}),(0,w.jsx)("path",{d:"M12.7 4.1a.56.56 0 00-.8 0L8 8.6 6.2 6.9a.56.56 0 10-.8.8l2.2 2.2a.56.56 0 00.8 0l4-4.7a.56.56 0 000-.8z",fill:"#0066FF"})]}),(0,w.jsx)("span",{className:"ml-1",children:"it"===L?"Preferenze cookie":"Cookie Preferences"})]})]},t)})})]}),(0,w.jsx)("p",{className:"bg-[#E6E6E6] text-[#333333] p-3 text-center text-xs",children:q})]})]})},L=n(8449),I=n(7200),P=n(4480),O=n(1163),R=n.n(O),F=n(9249),B=n(6197),z=n(9522),Z=n.n(z),H=n(9175),U=function(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=function e(t){var n,r,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t){if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r)}return a}(e))&&(r&&(r+=" "),r+=t);return r};function V(e,t,n){let r={};for(let a in e){let i=e[a],l="",o=!0;for(let e=0;e<i.length;e+=1){let r=i[e];r&&(l+=(!0===o?"":" ")+t(r),o=!1,n&&n[r]&&(l+=" "+n[r]))}r[a]=l}return r}function W(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function G(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function Y(e){let t;if(e.type)return e;if("#"===e.charAt(0))return Y(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let n=e.indexOf("("),r=e.substring(0,n);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw Error(W(9,e));let a=e.substring(n+1,e.length-1);if("color"===r){if(t=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(t))throw Error(W(10,t))}else a=a.split(",");return{type:r,values:a=a.map(e=>parseFloat(e)),colorSpace:t}}let q=e=>{let t=Y(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")},K=(e,t)=>{try{return q(e)}catch(t){return e}};function $(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function X(e){let{values:t}=e=Y(e),n=t[0],r=t[1]/100,a=t[2]/100,i=r*Math.min(a,1-a),l=(e,t=(e+n/30)%12)=>a-i*Math.max(Math.min(t-3,9-t,1),-1),o="rgb",s=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(o+="a",s.push(t[3])),$({type:o,values:s})}function J(e){let t="hsl"===(e=Y(e)).type||"hsla"===e.type?Y(X(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Q(e,t){return e=Y(e),t=G(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,$(e)}function ee(e,t,n){try{return Q(e,t)}catch(t){return e}}function et(e,t){if(e=Y(e),t=G(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return $(e)}function en(e,t,n){try{return et(e,t)}catch(t){return e}}function er(e,t){if(e=Y(e),t=G(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return $(e)}function ea(e,t,n){try{return er(e,t)}catch(t){return e}}function ei(e,t,n){try{return function(e,t=.15){return J(e)>.5?et(e,t):er(e,t)}(e,t)}catch(t){return e}}var el=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e},eo=e=>el(e)&&"classes"!==e;function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function ec(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var eu=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ed=ec(function(e){return eu.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),ep=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),ef=Math.abs,eh=String.fromCharCode,em=Object.assign;function ev(e,t,n){return e.replace(t,n)}function eg(e,t){return e.indexOf(t)}function ex(e,t){return 0|e.charCodeAt(t)}function eb(e,t,n){return e.slice(t,n)}function ey(e){return e.length}function ew(e,t){return t.push(e),e}var ek=1,eS=1,ej=0,eC=0,eN=0,eT="";function eE(e,t,n,r,a,i,l){return{value:e,root:t,parent:n,type:r,props:a,children:i,line:ek,column:eS,length:l,return:""}}function eD(e,t){return em(eE("",null,null,"",null,null,0),e,{length:-e.length},t)}function eM(){return eN=eC<ej?ex(eT,eC++):0,eS++,10===eN&&(eS=1,ek++),eN}function e_(){return ex(eT,eC)}function eA(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function eL(e){return ek=eS=1,ej=ey(eT=e),eC=0,[]}function eI(e){var t,n;return(t=eC-1,n=function e(t){for(;eM();)switch(eN){case t:return eC;case 34:case 39:34!==t&&39!==t&&e(eN);break;case 40:41===t&&e(t);break;case 92:eM()}return eC}(91===e?e+2:40===e?e+1:e),eb(eT,t,n)).trim()}var eP="-ms-",eO="-moz-",eR="-webkit-",eF="comm",eB="rule",ez="decl",eZ="@keyframes";function eH(e,t){for(var n="",r=e.length,a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function eU(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ez:return e.return=e.return||e.value;case eF:return"";case eZ:return e.return=e.value+"{"+eH(e.children,r)+"}";case eB:e.value=e.props.join(",")}return ey(n=eH(e.children,r))?e.return=e.value+"{"+n+"}":""}function eV(e,t,n,r,a,i,l,o,s,c,u){for(var d=a-1,p=0===a?i:[""],f=p.length,h=0,m=0,v=0;h<r;++h)for(var g=0,x=eb(e,d+1,d=ef(m=l[h])),b=e;g<f;++g)(b=(m>0?p[g]+" "+x:ev(x,/&\f/g,p[g])).trim())&&(s[v++]=b);return eE(e,t,n,0===a?eB:o,s,c,u)}function eW(e,t,n,r){return eE(e,t,n,ez,eb(e,0,r),eb(e,r+1,-1),r)}var eG=function(e,t,n){for(var r=0,a=0;r=a,a=e_(),38===r&&12===a&&(t[n]=1),!eA(a);)eM();return eb(eT,e,eC)},eY=function(e,t){var n=-1,r=44;do switch(eA(r)){case 0:38===r&&12===e_()&&(t[n]=1),e[n]+=eG(eC-1,t,n);break;case 2:e[n]+=eI(r);break;case 4:if(44===r){e[++n]=58===e_()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=eh(r)}while(r=eM());return e},eq=function(e,t){var n;return n=eY(eL(e),t),eT="",n},eK=new WeakMap,e$=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||eK.get(n))&&!r){eK.set(e,!0);for(var a=[],i=eq(t,a),l=n.props,o=0,s=0;o<i.length;o++)for(var c=0;c<l.length;c++,s++)e.props[s]=a[o]?i[o].replace(/&\f/g,l[c]):l[c]+" "+i[o]}}},eX=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},eJ=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ez:e.return=function e(t,n){switch(45^ex(t,0)?(((n<<2^ex(t,0))<<2^ex(t,1))<<2^ex(t,2))<<2^ex(t,3):0){case 5103:return eR+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return eR+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return eR+t+eO+t+eP+t+t;case 6828:case 4268:return eR+t+eP+t+t;case 6165:return eR+t+eP+"flex-"+t+t;case 5187:return eR+t+ev(t,/(\w+).+(:[^]+)/,eR+"box-$1$2"+eP+"flex-$1$2")+t;case 5443:return eR+t+eP+"flex-item-"+ev(t,/flex-|-self/,"")+t;case 4675:return eR+t+eP+"flex-line-pack"+ev(t,/align-content|flex-|-self/,"")+t;case 5548:return eR+t+eP+ev(t,"shrink","negative")+t;case 5292:return eR+t+eP+ev(t,"basis","preferred-size")+t;case 6060:return eR+"box-"+ev(t,"-grow","")+eR+t+eP+ev(t,"grow","positive")+t;case 4554:return eR+ev(t,/([^-])(transform)/g,"$1"+eR+"$2")+t;case 6187:return ev(ev(ev(t,/(zoom-|grab)/,eR+"$1"),/(image-set)/,eR+"$1"),t,"")+t;case 5495:case 3959:return ev(t,/(image-set\([^]*)/,eR+"$1$`$1");case 4968:return ev(ev(t,/(.+:)(flex-)?(.*)/,eR+"box-pack:$3"+eP+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+eR+t+t;case 4095:case 3583:case 4068:case 2532:return ev(t,/(.+)-inline(.+)/,eR+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ey(t)-1-n>6)switch(ex(t,n+1)){case 109:if(45!==ex(t,n+4))break;case 102:return ev(t,/(.+:)(.+)-([^]+)/,"$1"+eR+"$2-$3$1"+eO+(108==ex(t,n+3)?"$3":"$2-$3"))+t;case 115:return~eg(t,"stretch")?e(ev(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==ex(t,n+1))break;case 6444:switch(ex(t,ey(t)-3-(~eg(t,"!important")&&10))){case 107:return ev(t,":",":"+eR)+t;case 101:return ev(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+eR+(45===ex(t,14)?"inline-":"")+"box$3$1"+eR+"$2$3$1"+eP+"$2box$3")+t}break;case 5936:switch(ex(t,n+11)){case 114:return eR+t+eP+ev(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return eR+t+eP+ev(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return eR+t+eP+ev(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return eR+t+eP+t+t}return t}(e.value,e.length);break;case eZ:return eH([eD(e,{value:ev(e.value,"@","@"+eR)})],r);case eB:if(e.length){var a,i;return a=e.props,i=function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return eH([eD(e,{props:[ev(t,/:(read-\w+)/,":"+eO+"$1")]})],r);case"::placeholder":return eH([eD(e,{props:[ev(t,/:(plac\w+)/,":"+eR+"input-$1")]}),eD(e,{props:[ev(t,/:(plac\w+)/,":"+eO+"$1")]}),eD(e,{props:[ev(t,/:(plac\w+)/,eP+"input-$1")]})],r)}return""},a.map(i).join("")}}}],eQ={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},e0=/[A-Z]|^ms/g,e1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,e2=function(e){return 45===e.charCodeAt(1)},e3=function(e){return null!=e&&"boolean"!=typeof e},e6=ec(function(e){return e2(e)?e:e.replace(e0,"-$&").toLowerCase()}),e5=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(e1,function(e,t,n){return p={name:t,styles:n,next:p},t})}return 1===eQ[e]||e2(e)||"number"!=typeof t||0===t?t:t+"px"};function e4(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)p={name:r.name,styles:r.styles,next:p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=e4(e,t,n[a])+";";else for(var i in n){var l=n[i];if("object"!=typeof l)null!=t&&void 0!==t[l]?r+=i+"{"+t[l]+"}":e3(l)&&(r+=e6(i)+":"+e5(i,l)+";");else if(Array.isArray(l)&&"string"==typeof l[0]&&(null==t||void 0===t[l[0]]))for(var o=0;o<l.length;o++)e3(l[o])&&(r+=e6(i)+":"+e5(i,l[o])+";");else{var s=e4(e,t,l);switch(i){case"animation":case"animationName":r+=e6(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var a=p,i=n(e);return p=a,e4(e,t,i)}}if(null==t)return n;var l=t[n];return void 0!==l?l:n}var e8=/label:\s*([^\s;{]+)\s*(;|$)/g;function e7(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r,a=!0,i="";p=void 0;var l=e[0];null==l||void 0===l.raw?(a=!1,i+=e4(n,t,l)):i+=l[0];for(var o=1;o<e.length;o++)i+=e4(n,t,e[o]),a&&(i+=l[o]);e8.lastIndex=0;for(var s="";null!==(r=e8.exec(i));)s+="-"+r[1];return{name:function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(i)+s,styles:i,next:p}}var e9=!!N.useInsertionEffect&&N.useInsertionEffect,te=e9||function(e){return e()},tt=e9||C.useLayoutEffect,tn=C.createContext("undefined"!=typeof HTMLElement?function(e){var t,n,r,a,i,l,o=e.key;if("css"===o){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var c=e.stylisPlugins||eJ,u={},d=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+o+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)u[t[n]]=!0;d.push(e)});var p=(n=(t=[e$,eX].concat(c,[eU,(r=function(e){l.insert(e)},function(e){!e.root&&(e=e.return)&&r(e)})])).length,function(e,r,a,i){for(var l="",o=0;o<n;o++)l+=t[o](e,r,a,i)||"";return l}),f=function(e){var t,n;return eH((n=function e(t,n,r,a,i,l,o,s,c){for(var u,d=0,p=0,f=o,h=0,m=0,v=0,g=1,x=1,b=1,y=0,w="",k=i,S=l,j=a,C=w;x;)switch(v=y,y=eM()){case 40:if(108!=v&&58==ex(C,f-1)){-1!=eg(C+=ev(eI(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:C+=eI(y);break;case 9:case 10:case 13:case 32:C+=function(e){for(;eN=e_();)if(eN<33)eM();else break;return eA(e)>2||eA(eN)>3?"":" "}(v);break;case 92:C+=function(e,t){for(var n;--t&&eM()&&!(eN<48)&&!(eN>102)&&(!(eN>57)||!(eN<65))&&(!(eN>70)||!(eN<97)););return n=eC+(t<6&&32==e_()&&32==eM()),eb(eT,e,n)}(eC-1,7);continue;case 47:switch(e_()){case 42:case 47:ew(eE(u=function(e,t){for(;eM();)if(e+eN===57)break;else if(e+eN===84&&47===e_())break;return"/*"+eb(eT,t,eC-1)+"*"+eh(47===e?e:eM())}(eM(),eC),n,r,eF,eh(eN),eb(u,2,-2),0),c);break;default:C+="/"}break;case 123*g:s[d++]=ey(C)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+p:-1==b&&(C=ev(C,/\f/g,"")),m>0&&ey(C)-f&&ew(m>32?eW(C+";",a,r,f-1):eW(ev(C," ","")+";",a,r,f-2),c);break;case 59:C+=";";default:if(ew(j=eV(C,n,r,d,p,i,s,w,k=[],S=[],f),l),123===y){if(0===p)e(C,n,j,j,k,l,f,s,S);else switch(99===h&&110===ex(C,3)?100:h){case 100:case 108:case 109:case 115:e(t,j,j,a&&ew(eV(t,j,j,0,0,i,s,w,i,k=[],f),S),i,S,f,s,a?k:S);break;default:e(C,j,j,j,[""],S,0,s,S)}}}d=p=m=0,g=b=1,w=C="",f=o;break;case 58:f=1+ey(C),m=v;default:if(g<1){if(123==y)--g;else if(125==y&&0==g++&&125==(eN=eC>0?ex(eT,--eC):0,eS--,10===eN&&(eS=1,ek--),eN))continue}switch(C+=eh(y),y*g){case 38:b=p>0?1:(C+="\f",-1);break;case 44:s[d++]=(ey(C)-1)*b,b=1;break;case 64:45===e_()&&(C+=eI(eM())),h=e_(),p=f=ey(w=C+=function(e){for(;!eA(e_());)eM();return eb(eT,e,eC)}(eC)),y++;break;case 45:45===v&&2==ey(C)&&(g=0)}}return l}("",null,null,null,[""],t=eL(t=e),0,[0],t),eT="",n),p)};i=function(e,t,n,r){l=n,f(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:o,sheet:new ep({key:o,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:u,registered:{},insert:i};return h.sheet.hydrate(d),h}({key:"css"}):null);tn.Provider;var tr=function(e){return(0,C.forwardRef)(function(t,n){return e(t,(0,C.useContext)(tn),n)})},ta=C.createContext({}),ti=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},tl=function(e,t,n){ti(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next;while(void 0!==a)}},to=function(e){return"theme"!==e},ts=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ed:to},tc=function(e,t,n){var r;if(t){var a=t.shouldForwardProp;r=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},tu=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ti(t,n,r),te(function(){return tl(t,n,r)}),null},td=(function e(t,n){var r,a,i=t.__emotion_real===t,l=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,a=n.target);var o=tc(t,n,i),s=o||ts(l),c=!s("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],u[0][f])}var h=tr(function(e,t,n){var r,i,u,p=c&&e.as||l,f="",h=[],m=e;if(null==e.theme){for(var v in m={},e)m[v]=e[v];m.theme=C.useContext(ta)}"string"==typeof e.className?(r=t.registered,i=e.className,u="",i.split(" ").forEach(function(e){void 0!==r[e]?h.push(r[e]+";"):e&&(u+=e+" ")}),f=u):null!=e.className&&(f=e.className+" ");var g=e7(d.concat(h),t.registered,m);f+=t.key+"-"+g.name,void 0!==a&&(f+=" "+a);var x=c&&void 0===o?ts(p):s,b={};for(var y in e)(!c||"as"!==y)&&x(y)&&(b[y]=e[y]);return b.className=f,n&&(b.ref=n),C.createElement(C.Fragment,null,C.createElement(tu,{cache:t,serialized:g,isStringTag:"string"==typeof p}),C.createElement(p,b))});return h.displayName=void 0!==r?r:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=l,h.__emotion_styles=d,h.__emotion_forwardProp=o,Object.defineProperty(h,"toString",{value:function(){return"."+a}}),h.withComponent=function(t,r){return e(t,es({},n,r,{shouldForwardProp:tc(h,r,!0)})).apply(void 0,d)},h}}).bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){td[e]=td(e)});let tp=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function tf(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function th(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return tf(e)&&tf(t)&&Object.keys(t).forEach(a=>{tf(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&tf(e[a])?r[a]=th(e[a],t[a],n):n.clone?r[a]=tf(t[a])?function e(t){if(!tf(t))return t;let n={};return Object.keys(t).forEach(r=>{n[r]=e(t[r])}),n}(t[a]):t[a]:r[a]=t[a]}),r}let tm=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};var tv={borderRadius:4};let tg={xs:0,sm:600,md:900,lg:1200,xl:1536},tx={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${tg[e]}px)`},tb={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:tg[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ty(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||tx;return t.reduce((r,a,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){let e=r.breakpoints||tx;return Object.keys(t).reduce((a,i)=>{var l;if(l=e.keys,"@"===i||i.startsWith("@")&&(l.some(e=>i.startsWith(`@${e}`))||i.match(/^@\d/))){let e=function(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,a]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(a).up(i)}(r.containerQueries?r:tb,i);e&&(a[e]=n(t[i],i))}else Object.keys(e.values||tg).includes(i)?a[e.up(i)]=n(t[i],i):a[i]=t[i];return a},{})}return n(t)}function tw(e){if("string"!=typeof e)throw Error(W(7));return e.charAt(0).toUpperCase()+e.slice(1)}function tk(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function tS(e,t,n,r=n){let a;return a="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:tk(e,n)||r,t&&(a=t(a,r,e)),a}var tj=function(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:a}=e,i=e=>{if(null==e[t])return null;let i=e[t],l=tk(e.theme,r)||{};return ty(e,i,e=>{let r=tS(l,a,e);return(e===r&&"string"==typeof e&&(r=tS(l,a,`${t}${"default"===e?"":tw(e)}`,e)),!1===n)?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i},tC=function(e,t){return t?th(e,t,{clone:!1}):e};let tN={m:"margin",p:"padding"},tT={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},tE={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},tD=function(e){let t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!tE[e])return[e];e=tE[e]}let[t,n]=e.split(""),r=tN[t],a=tT[n]||"";return Array.isArray(a)?a.map(e=>r+e):[r+a]}),tM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],t_=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],tA=[...tM,...t_];function tL(e,t,n,r){let a=tk(e,t,!0)??n;return"number"==typeof a||"string"==typeof a?e=>"string"==typeof e?e:"string"==typeof a?`calc(${e} * ${a})`:a*e:Array.isArray(a)?e=>{if("string"==typeof e)return e;let t=a[Math.abs(e)];return e>=0?t:"number"==typeof t?-t:`-${t}`}:"function"==typeof a?a:()=>void 0}function tI(e){return tL(e,"spacing",8,"spacing")}function tP(e,t){return"string"==typeof t||null==t?t:e(t)}function tO(e,t){let n=tI(e.theme);return Object.keys(e).map(r=>(function(e,t,n,r){var a;if(!t.includes(n))return null;let i=(a=tD(n),e=>a.reduce((t,n)=>(t[n]=tP(r,e),t),{})),l=e[n];return ty(e,l,i)})(e,t,r,n)).reduce(tC,{})}function tR(e){return tO(e,tM)}function tF(e){return tO(e,t_)}function tB(e){return tO(e,tA)}function tz(e=8,t=tI({spacing:e})){if(e.mui)return e;let n=(...e)=>(0===e.length?[1]:e).map(e=>{let n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}tR.propTypes={},tR.filterProps=tM,tF.propTypes={},tF.filterProps=t_,tB.propTypes={},tB.filterProps=tA;var tZ=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?tC(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n};function tH(e){return"number"!=typeof e?e:`${e}px solid`}function tU(e,t){return tj({prop:e,themeKey:"borders",transform:t})}let tV=tU("border",tH),tW=tU("borderTop",tH),tG=tU("borderRight",tH),tY=tU("borderBottom",tH),tq=tU("borderLeft",tH),tK=tU("borderColor"),t$=tU("borderTopColor"),tX=tU("borderRightColor"),tJ=tU("borderBottomColor"),tQ=tU("borderLeftColor"),t0=tU("outline",tH),t1=tU("outlineColor"),t2=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=tL(e.theme,"shape.borderRadius",4,"borderRadius");return ty(e,e.borderRadius,e=>({borderRadius:tP(t,e)}))}return null};t2.propTypes={},t2.filterProps=["borderRadius"],tZ(tV,tW,tG,tY,tq,tK,t$,tX,tJ,tQ,t2,t0,t1);let t3=e=>{if(void 0!==e.gap&&null!==e.gap){let t=tL(e.theme,"spacing",8,"gap");return ty(e,e.gap,e=>({gap:tP(t,e)}))}return null};t3.propTypes={},t3.filterProps=["gap"];let t6=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=tL(e.theme,"spacing",8,"columnGap");return ty(e,e.columnGap,e=>({columnGap:tP(t,e)}))}return null};t6.propTypes={},t6.filterProps=["columnGap"];let t5=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=tL(e.theme,"spacing",8,"rowGap");return ty(e,e.rowGap,e=>({rowGap:tP(t,e)}))}return null};t5.propTypes={},t5.filterProps=["rowGap"];let t4=tj({prop:"gridColumn"}),t8=tj({prop:"gridRow"}),t7=tj({prop:"gridAutoFlow"}),t9=tj({prop:"gridAutoColumns"}),ne=tj({prop:"gridAutoRows"}),nt=tj({prop:"gridTemplateColumns"});function nn(e,t){return"grey"===t?t:e}function nr(e){return e<=1&&0!==e?`${100*e}%`:e}tZ(t3,t6,t5,t4,t8,t7,t9,ne,nt,tj({prop:"gridTemplateRows"}),tj({prop:"gridTemplateAreas"}),tj({prop:"gridArea"})),tZ(tj({prop:"color",themeKey:"palette",transform:nn}),tj({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nn}),tj({prop:"backgroundColor",themeKey:"palette",transform:nn}));let na=tj({prop:"width",transform:nr}),ni=e=>void 0!==e.maxWidth&&null!==e.maxWidth?ty(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||tg[t];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:nr(t)}}):null;ni.filterProps=["maxWidth"];let nl=tj({prop:"minWidth",transform:nr}),no=tj({prop:"height",transform:nr}),ns=tj({prop:"maxHeight",transform:nr}),nc=tj({prop:"minHeight",transform:nr});tj({prop:"size",cssProperty:"width",transform:nr}),tj({prop:"size",cssProperty:"height",transform:nr}),tZ(na,ni,nl,no,ns,nc,tj({prop:"boxSizing"}));var nu={border:{themeKey:"borders",transform:tH},borderTop:{themeKey:"borders",transform:tH},borderRight:{themeKey:"borders",transform:tH},borderBottom:{themeKey:"borders",transform:tH},borderLeft:{themeKey:"borders",transform:tH},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:tH},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:t2},color:{themeKey:"palette",transform:nn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nn},backgroundColor:{themeKey:"palette",transform:nn},p:{style:tF},pt:{style:tF},pr:{style:tF},pb:{style:tF},pl:{style:tF},px:{style:tF},py:{style:tF},padding:{style:tF},paddingTop:{style:tF},paddingRight:{style:tF},paddingBottom:{style:tF},paddingLeft:{style:tF},paddingX:{style:tF},paddingY:{style:tF},paddingInline:{style:tF},paddingInlineStart:{style:tF},paddingInlineEnd:{style:tF},paddingBlock:{style:tF},paddingBlockStart:{style:tF},paddingBlockEnd:{style:tF},m:{style:tR},mt:{style:tR},mr:{style:tR},mb:{style:tR},ml:{style:tR},mx:{style:tR},my:{style:tR},margin:{style:tR},marginTop:{style:tR},marginRight:{style:tR},marginBottom:{style:tR},marginLeft:{style:tR},marginX:{style:tR},marginY:{style:tR},marginInline:{style:tR},marginInlineStart:{style:tR},marginInlineEnd:{style:tR},marginBlock:{style:tR},marginBlockStart:{style:tR},marginBlockEnd:{style:tR},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:t3},rowGap:{style:t5},columnGap:{style:t6},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:nr},maxWidth:{style:ni},minWidth:{transform:nr},height:{transform:nr},maxHeight:{transform:nr},minHeight:{transform:nr},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};let nd=function(){function e(e,t,n,r){let a={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};let{cssProperty:l=e,themeKey:o,transform:s,style:c}=i;if(null==t)return null;if("typography"===o&&"inherit"===t)return{[e]:t};let u=tk(n,o)||{};return c?c(a):ty(a,t,t=>{let n=tS(u,s,t);return(t===n&&"string"==typeof t&&(n=tS(u,s,`${e}${"default"===t?"":tw(t)}`,t)),!1===l)?n:{[l]:n}})}return function t(n){let{sx:r,theme:a={}}=n||{};if(!r)return null;let i=a.unstable_sxConfig??nu;function l(n){var r;let l=n;if("function"==typeof n)l=n(a);else if("object"!=typeof n)return n;if(!l)return null;let o=function(e={}){return e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{})||{}}(a.breakpoints),s=Object.keys(o),c=o;return Object.keys(l).forEach(n=>{var r;let o="function"==typeof(r=l[n])?r(a):r;if(null!=o){if("object"==typeof o){if(i[n])c=tC(c,e(n,o,a,i));else{let e=ty({theme:a},o,e=>({[n]:e}));(function(...e){let t=new Set(e.reduce((e,t)=>e.concat(Object.keys(t)),[]));return e.every(e=>t.size===Object.keys(e).length)})(e,o)?c[n]=t({sx:o,theme:a}):c=tC(c,e)}}else c=tC(c,e(n,o,a,i))}}),function(e,t){if(!e.containerQueries)return t;let n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{let n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{let r=t[n];return delete e[n],e[n]=r,e},{...t}):t}(a,(r=c,s.reduce((e,t)=>{let n=e[t];return n&&0!==Object.keys(n).length||delete e[t],e},r)))}return Array.isArray(r)?r.map(l):l(r)}}();function np(e,t){if(this.vars){if(!this.colorSchemes?.[e]||"function"!=typeof this.getColorSchemeSelector)return{};let n=this.getColorSchemeSelector(e);return"&"===n?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return this.palette.mode===e?t:{}}nd.filterProps=["sx"];var nf=function(e={},...t){let{breakpoints:n={},palette:r={},spacing:a,shape:i={},...l}=e,o=function(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...a}=e,i=tm(t),l=Object.keys(i);function o(e){let r="number"==typeof t[e]?t[e]:e;return`@media (min-width:${r}${n})`}function s(e){let a="number"==typeof t[e]?t[e]:e;return`@media (max-width:${a-r/100}${n})`}function c(e,a){let i=l.indexOf(a);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[l[i]]?t[l[i]]:a)-r/100}${n})`}return{keys:l,values:i,up:o,down:s,between:c,only:function(e){return l.indexOf(e)+1<l.length?c(e,l[l.indexOf(e)+1]):o(e)},not:function(e){let t=l.indexOf(e);return 0===t?o(l[1]):t===l.length-1?s(l[t]):c(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...a}}(n),s=tz(a),c=th({breakpoints:o,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:s,shape:{...tv,...i}},l);return(c=function(e){let t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let a=t(e.breakpoints.not(...n),r);return a.includes("not all and")?a.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):a}}let r={},a=e=>(n(r,e),r);return n(a),{...e,containerQueries:a}}(c)).applyStyles=np,(c=t.reduce((e,t)=>th(e,t),c)).unstable_sxConfig={...nu,...l?.unstable_sxConfig},c.unstable_sx=function(e){return nd({sx:e,theme:this})},c};let nh=nf();function nm(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function nv(e,t,n){return!function(e){for(let t in e)return!1;return!0}(t)?t[e]||t:n}let ng=Symbol("mui.processed_props");function nx(e,t,n){if(ng in e)return e[ng];let r={...e,theme:nv(t,e.theme,n)};return e[ng]=r,r[ng]=r,r}function nb(e,t){let n="function"==typeof e?e(t):e;if(Array.isArray(n))return n.flatMap(e=>nb(e,t));if(Array.isArray(n?.variants)){let e;let{variants:r,...a}=n,i=a;e:for(let n=0;n<r.length;n+=1){let a=r[n];if("function"==typeof a.props){if(e??={...t,...t.ownerState,ownerState:t.ownerState},!a.props(e))continue}else for(let e in a.props)if(t[e]!==a.props[e]&&t.ownerState?.[e]!==a.props[e])continue e;Array.isArray(i)||(i=[i]),"function"==typeof a.style?(e??={...t,...t.ownerState,ownerState:t.ownerState},i.push(a.style(e))):i.push(a.style)}return i}return n}var ny={black:"#000",white:"#fff"},nw={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},nk={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},nS={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},nj={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},nC={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},nN={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},nT={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};let nE={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ny.white,default:ny.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},nD={text:{primary:ny.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ny.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function nM(e,t,n,r){let a=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=er(e.main,a):"dark"===t&&(e.dark=et(e.main,i)))}function n_(e){let{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...a}=e,i=e.primary||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:nC[200],light:nC[50],dark:nC[400]}:{main:nC[700],light:nC[400],dark:nC[800]}}(t),l=e.secondary||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:nk[200],light:nk[50],dark:nk[400]}:{main:nk[500],light:nk[300],dark:nk[700]}}(t),o=e.error||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:nS[500],light:nS[300],dark:nS[700]}:{main:nS[700],light:nS[400],dark:nS[800]}}(t),s=e.info||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:nN[400],light:nN[300],dark:nN[700]}:{main:nN[700],light:nN[500],dark:nN[900]}}(t),c=e.success||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:nT[400],light:nT[300],dark:nT[700]}:{main:nT[800],light:nT[500],dark:nT[900]}}(t),u=e.warning||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:nj[400],light:nj[300],dark:nj[700]}:{main:"#ed6c02",light:nj[500],dark:nj[900]}}(t);function d(e){return function(e,t){let n=J(e),r=J(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,nD.text.primary)>=n?nD.text.primary:nE.text.primary}let p=e=>{let{color:t,name:n,mainShade:a=500,lightShade:i=300,darkShade:l=700}=e;if(!(t={...t}).main&&t[a]&&(t.main=t[a]),!t.hasOwnProperty("main"))throw Error(W(11,n?" (".concat(n,")"):"",a));if("string"!=typeof t.main)throw Error(W(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return nM(t,"light",i,r),nM(t,"dark",l,r),t.contrastText||(t.contrastText=d(t.main)),t};return th({common:{...ny},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:o,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:c,name:"success"}),grey:nw,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r,...{dark:nD,light:nE}[t]},a)}let nA=(e,t,n,r=[])=>{let a=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(a)?a[Number(e)]=n:a&&"object"==typeof a&&(a[e]=n):a&&"object"==typeof a&&(a[e]||(a[e]=r.includes(e)?[]:{}),a=a[e])})},nL=(e,t,n)=>{!function e(r,a=[],i=[]){Object.entries(r).forEach(([r,l])=>{n&&(!n||n([...a,r]))||null==l||("object"==typeof l&&Object.keys(l).length>0?e(l,[...a,r],Array.isArray(l)?[...i,r]:i):t([...a,r],l,i))})}(e)},nI=(e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function nP(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},a={},i={},l={};return nL(e,(e,t,o)=>{if(("string"==typeof t||"number"==typeof t)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:""}${e.join("-")}`,s=nI(e,t);Object.assign(a,{[r]:s}),nA(i,e,`var(${r})`,o),nA(l,e,`var(${r}, ${s})`,o)}},e=>"vars"===e[0]),{css:a,vars:i,varsWithDefaults:l}}var nO=function(e,t={}){let{getSelector:n=function(t,n){let r=a;if("class"===a&&(r=".%s"),"data"===a&&(r="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(r=`[${a}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";let r=i[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"},disableCssColorScheme:r,colorSchemeSelector:a}=t,{colorSchemes:i={},components:l,defaultColorScheme:o="light",...s}=e,{vars:c,css:u,varsWithDefaults:d}=nP(s,t),p=d,f={},{[o]:h,...m}=i;if(Object.entries(m||{}).forEach(([e,n])=>{let{vars:r,css:a,varsWithDefaults:i}=nP(n,t);p=th(p,i),f[e]={css:a,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=nP(h,t);p=th(p,r),f[o]={css:e,vars:n}}return{vars:p,generateThemeVars:()=>{let e={...c};return Object.entries(f).forEach(([,{vars:t}])=>{e=th(e,t)}),e},generateStyleSheets:()=>{let t=[],a=e.defaultColorScheme||"light";function l(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}l(n(void 0,{...u}),u);let{[a]:o,...s}=f;if(o){let{css:e}=o,t=i[a]?.palette?.mode,s=!r&&t?{colorScheme:t,...e}:{...e};l(n(a,{...s}),s)}return Object.entries(s).forEach(([e,{css:t}])=>{let a=i[e]?.palette?.mode,o=!r&&a?{colorScheme:a,...t}:{...t};l(n(e,{...o}),o)}),t}}};let nR={textTransform:"uppercase"},nF='"Roboto", "Helvetica", "Arial", sans-serif';function nB(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return["".concat(t[0],"px ").concat(t[1],"px ").concat(t[2],"px ").concat(t[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(t[4],"px ").concat(t[5],"px ").concat(t[6],"px ").concat(t[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(t[8],"px ").concat(t[9],"px ").concat(t[10],"px ").concat(t[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}let nz=["none",nB(0,2,1,-1,0,1,1,0,0,1,3,0),nB(0,3,1,-2,0,2,2,0,0,1,5,0),nB(0,3,3,-2,0,3,4,0,0,1,8,0),nB(0,2,4,-1,0,4,5,0,0,1,10,0),nB(0,3,5,-1,0,5,8,0,0,1,14,0),nB(0,3,5,-1,0,6,10,0,0,1,18,0),nB(0,4,5,-2,0,7,10,1,0,2,16,1),nB(0,5,5,-3,0,8,10,1,0,3,14,2),nB(0,5,6,-3,0,9,12,1,0,3,16,2),nB(0,6,6,-3,0,10,14,1,0,4,18,3),nB(0,6,7,-4,0,11,15,1,0,4,20,3),nB(0,7,8,-4,0,12,17,2,0,5,22,4),nB(0,7,8,-4,0,13,19,2,0,5,24,4),nB(0,7,9,-4,0,14,21,2,0,5,26,4),nB(0,8,9,-5,0,15,22,2,0,6,28,5),nB(0,8,10,-5,0,16,24,2,0,6,30,5),nB(0,8,11,-5,0,17,26,2,0,6,32,5),nB(0,9,11,-5,0,18,28,2,0,7,34,6),nB(0,9,12,-6,0,19,29,2,0,7,36,6),nB(0,10,13,-6,0,20,31,3,0,8,38,7),nB(0,10,13,-6,0,21,33,3,0,8,40,7),nB(0,10,14,-6,0,22,35,3,0,8,42,7),nB(0,11,14,-7,0,23,36,3,0,9,44,8),nB(0,11,15,-7,0,24,38,3,0,9,46,8)],nZ={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},nH={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function nU(e){return"".concat(Math.round(e),"ms")}function nV(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}var nW={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},nG=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t,n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];let{breakpoints:i,mixins:l={},spacing:o,palette:s={},transitions:c={},typography:u={},shape:d,...p}=e;if(e.vars)throw Error(W(20));let f=n_(s),h=nf(e),m=th(h,{mixins:{toolbar:{minHeight:56,[(t=h.breakpoints).up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...l},palette:f,shadows:nz.slice(),typography:function(e,t){let{fontFamily:n=nF,fontSize:r=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:o=700,htmlFontSize:s=16,allVariants:c,pxToRem:u,...d}="function"==typeof t?t(e):t,p=r/14,f=u||(e=>"".concat(e/s*p,"rem")),h=(e,t,r,a,i)=>({fontFamily:n,fontWeight:e,fontSize:f(t),lineHeight:r,...n===nF?{letterSpacing:"".concat(Math.round(a/t*1e5)/1e5,"em")}:{},...i,...c}),m={h1:h(a,96,1.167,-1.5),h2:h(a,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(l,14,1.75,.4,nR),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,nR),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return th({htmlFontSize:s,pxToRem:f,fontFamily:n,fontSize:r,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:o,...m},d,{clone:!1})}(f,u),transitions:function(e){let t={...nZ,...e.easing},n={...nH,...e.duration};return{getAutoHeightDuration:nV,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{duration:a=n.standard,easing:i=t.easeInOut,delay:l=0,...o}=r;return(Array.isArray(e)?e:[e]).map(e=>"".concat(e," ").concat("string"==typeof a?a:nU(a)," ").concat(i," ").concat("string"==typeof l?l:nU(l))).join(",")},...e,easing:t,duration:n}}(c),zIndex:{...nW}});return m=th(m,p),(m=r.reduce((e,t)=>th(e,t),m)).unstable_sxConfig={...nu,...null==p?void 0:p.unstable_sxConfig},m.unstable_sx=function(e){return nd({sx:e,theme:this})},m};function nY(e){return Math.round(10*(e<1?5.11916*e**2:4.5*Math.log(e+1)+2))/1e3}let nq=[...Array(25)].map((e,t)=>{if(0===t)return"none";let n=nY(t);return"linear-gradient(rgba(255 255 255 / ".concat(n,"), rgba(255 255 255 / ").concat(n,"))")});function nK(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function n$(e){return"dark"===e?nq:[]}function nX(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!(null===(t=e[1])||void 0===t?void 0:t.match(/(mode|contrastThreshold|tonalOffset)/))}var nJ=e=>[...[...Array(25)].map((t,n)=>"--".concat(e?"".concat(e,"-"):"","overlays-").concat(n)),"--".concat(e?"".concat(e,"-"):"","palette-AppBar-darkBg"),"--".concat(e?"".concat(e,"-"):"","palette-AppBar-darkColor")],nQ=e=>(t,n)=>{let r=e.rootSelector||":root",a=e.colorSchemeSelector,i=a;if("class"===a&&(i=".%s"),"data"===a&&(i="[data-%s]"),(null==a?void 0:a.startsWith("data-"))&&!a.includes("%s")&&(i="[".concat(a,'="%s"]')),e.defaultColorScheme===t){if("dark"===t){let a={};return(nJ(e.cssVarPrefix).forEach(e=>{a[e]=n[e],delete n[e]}),"media"===i)?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,["".concat(r,", ").concat(i.replace("%s",t))]:n}:{[r]:{...n,...a}}}if(i&&"media"!==i)return"".concat(r,", ").concat(i.replace("%s",String(t)))}else if(t){if("media"===i)return{["@media (prefers-color-scheme: ".concat(String(t),")")]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function n0(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={...e};return!function e(t){let n=Object.entries(t);for(let r=0;r<n.length;r++){let[a,i]=n[r];!(tf(i)||void 0===i||"string"==typeof i||"boolean"==typeof i||"number"==typeof i||Array.isArray(i))||a.startsWith("unstable_")?delete t[a]:tf(i)&&(t[a]={...i},e(t[a]))}}(t),"import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ".concat(JSON.stringify(t,null,2),";\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;")}function n1(e,t,n){!e[t]&&n&&(e[t]=n)}function n2(e){return e&&e.startsWith("hsl")?X(e):e}function n3(e,t){"".concat(t,"Channel") in e||(e["".concat(t,"Channel")]=K(n2(e[t]),"MUI: Can't create `palette.".concat(t,"Channel` because `palette.").concat(t,"` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().")+"\n"+"To suppress this warning, you need to explicitly provide the `palette.".concat(t,'Channel` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.')))}let n6=e=>{try{return e()}catch(e){}},n5=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mui";return function(e=""){return(t,...n)=>`var(--${e?`${e}-`:""}${t}${function t(...n){if(!n.length)return"";let r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}(...n)})`}(e)};function n4(e,t,n,r){if(!t)return;t=!0===t?{}:t;let a="dark"===r?"dark":"light";if(!n){e[r]=function(e){let{palette:t={mode:"light"},opacity:n,overlays:r,...a}=e,i=n_(t);return{palette:i,opacity:{...nK(i.mode),...n},overlays:r||n$(i.mode),...a}}({...t,palette:{mode:a,...null==t?void 0:t.palette}});return}let{palette:i,...l}=nG({...n,palette:{mode:a,...null==t?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...nK(a),...null==t?void 0:t.opacity},overlays:(null==t?void 0:t.overlays)||n$(a)},l}function n8(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:n_({...!0===n?{}:n.palette,mode:t})})}let n7=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let{palette:a,cssVariables:i=!1,colorSchemes:l=a?void 0:{light:!0},defaultColorScheme:o=null==a?void 0:a.mode,...s}=e,c=o||"light",u=null==l?void 0:l[c],d={...l,...a?{[c]:{..."boolean"!=typeof u&&u,palette:a}}:void 0};if(!1===i){if(!("colorSchemes"in e))return nG(e,...n);let t=a;"palette"in e||!d[c]||(!0!==d[c]?t=d[c].palette:"dark"!==c||(t={mode:"dark"}));let r=nG({...e,palette:t},...n);return r.defaultColorScheme=c,r.colorSchemes=d,"light"===r.palette.mode&&(r.colorSchemes.light={...!0!==d.light&&d.light,palette:r.palette},n8(r,"dark",d.dark)),"dark"===r.palette.mode&&(r.colorSchemes.dark={...!0!==d.dark&&d.dark,palette:r.palette},n8(r,"light",d.light)),r}return a||"light"in d||"light"!==c||(d.light=!0),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t,n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];let{colorSchemes:i={light:!0},defaultColorScheme:l,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:c=nX,colorSchemeSelector:u=i.light&&i.dark?"media":void 0,rootSelector:d=":root",...p}=e,f=Object.keys(i)[0],h=l||(i.light&&"light"!==f?"light":f),m=n5(s),{[h]:v,light:g,dark:x,...b}=i,y={...b},w=v;if(("dark"!==h||"dark"in i)&&("light"!==h||"light"in i)||(w=!0),!w)throw Error(W(21,h));let k=n4(y,w,p,h);g&&!y.light&&n4(y,g,void 0,"light"),x&&!y.dark&&n4(y,x,void 0,"dark");let S={defaultColorScheme:h,...k,cssVarPrefix:s,colorSchemeSelector:u,rootSelector:d,getCssVar:m,colorSchemes:y,font:{...function(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}(k.typography),...k.font},spacing:"number"==typeof(t=p.spacing)?"".concat(t,"px"):"string"==typeof t||"function"==typeof t||Array.isArray(t)?t:"8px"};Object.keys(S.colorSchemes).forEach(e=>{let t=S.colorSchemes[e].palette,n=e=>{let n=e.split("-"),r=n[1],a=n[2];return m(e,t[r][a])};if("light"===t.mode&&(n1(t.common,"background","#fff"),n1(t.common,"onBackground","#000")),"dark"===t.mode&&(n1(t.common,"background","#000"),n1(t.common,"onBackground","#fff")),function(e,t){t.forEach(t=>{e[t]||(e[t]={})})}(t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),"light"===t.mode){n1(t.Alert,"errorColor",en(t.error.light,.6)),n1(t.Alert,"infoColor",en(t.info.light,.6)),n1(t.Alert,"successColor",en(t.success.light,.6)),n1(t.Alert,"warningColor",en(t.warning.light,.6)),n1(t.Alert,"errorFilledBg",n("palette-error-main")),n1(t.Alert,"infoFilledBg",n("palette-info-main")),n1(t.Alert,"successFilledBg",n("palette-success-main")),n1(t.Alert,"warningFilledBg",n("palette-warning-main")),n1(t.Alert,"errorFilledColor",n6(()=>t.getContrastText(t.error.main))),n1(t.Alert,"infoFilledColor",n6(()=>t.getContrastText(t.info.main))),n1(t.Alert,"successFilledColor",n6(()=>t.getContrastText(t.success.main))),n1(t.Alert,"warningFilledColor",n6(()=>t.getContrastText(t.warning.main))),n1(t.Alert,"errorStandardBg",ea(t.error.light,.9)),n1(t.Alert,"infoStandardBg",ea(t.info.light,.9)),n1(t.Alert,"successStandardBg",ea(t.success.light,.9)),n1(t.Alert,"warningStandardBg",ea(t.warning.light,.9)),n1(t.Alert,"errorIconColor",n("palette-error-main")),n1(t.Alert,"infoIconColor",n("palette-info-main")),n1(t.Alert,"successIconColor",n("palette-success-main")),n1(t.Alert,"warningIconColor",n("palette-warning-main")),n1(t.AppBar,"defaultBg",n("palette-grey-100")),n1(t.Avatar,"defaultBg",n("palette-grey-400")),n1(t.Button,"inheritContainedBg",n("palette-grey-300")),n1(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),n1(t.Chip,"defaultBorder",n("palette-grey-400")),n1(t.Chip,"defaultAvatarColor",n("palette-grey-700")),n1(t.Chip,"defaultIconColor",n("palette-grey-700")),n1(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),n1(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),n1(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),n1(t.LinearProgress,"primaryBg",ea(t.primary.main,.62)),n1(t.LinearProgress,"secondaryBg",ea(t.secondary.main,.62)),n1(t.LinearProgress,"errorBg",ea(t.error.main,.62)),n1(t.LinearProgress,"infoBg",ea(t.info.main,.62)),n1(t.LinearProgress,"successBg",ea(t.success.main,.62)),n1(t.LinearProgress,"warningBg",ea(t.warning.main,.62)),n1(t.Skeleton,"bg","rgba(".concat(n("palette-text-primaryChannel")," / 0.11)")),n1(t.Slider,"primaryTrack",ea(t.primary.main,.62)),n1(t.Slider,"secondaryTrack",ea(t.secondary.main,.62)),n1(t.Slider,"errorTrack",ea(t.error.main,.62)),n1(t.Slider,"infoTrack",ea(t.info.main,.62)),n1(t.Slider,"successTrack",ea(t.success.main,.62)),n1(t.Slider,"warningTrack",ea(t.warning.main,.62));let e=ei(t.background.default,.8);n1(t.SnackbarContent,"bg",e),n1(t.SnackbarContent,"color",n6(()=>t.getContrastText(e))),n1(t.SpeedDialAction,"fabHoverBg",ei(t.background.paper,.15)),n1(t.StepConnector,"border",n("palette-grey-400")),n1(t.StepContent,"border",n("palette-grey-400")),n1(t.Switch,"defaultColor",n("palette-common-white")),n1(t.Switch,"defaultDisabledColor",n("palette-grey-100")),n1(t.Switch,"primaryDisabledColor",ea(t.primary.main,.62)),n1(t.Switch,"secondaryDisabledColor",ea(t.secondary.main,.62)),n1(t.Switch,"errorDisabledColor",ea(t.error.main,.62)),n1(t.Switch,"infoDisabledColor",ea(t.info.main,.62)),n1(t.Switch,"successDisabledColor",ea(t.success.main,.62)),n1(t.Switch,"warningDisabledColor",ea(t.warning.main,.62)),n1(t.TableCell,"border",ea(ee(t.divider,1),.88)),n1(t.Tooltip,"bg",ee(t.grey[700],.92))}if("dark"===t.mode){n1(t.Alert,"errorColor",ea(t.error.light,.6)),n1(t.Alert,"infoColor",ea(t.info.light,.6)),n1(t.Alert,"successColor",ea(t.success.light,.6)),n1(t.Alert,"warningColor",ea(t.warning.light,.6)),n1(t.Alert,"errorFilledBg",n("palette-error-dark")),n1(t.Alert,"infoFilledBg",n("palette-info-dark")),n1(t.Alert,"successFilledBg",n("palette-success-dark")),n1(t.Alert,"warningFilledBg",n("palette-warning-dark")),n1(t.Alert,"errorFilledColor",n6(()=>t.getContrastText(t.error.dark))),n1(t.Alert,"infoFilledColor",n6(()=>t.getContrastText(t.info.dark))),n1(t.Alert,"successFilledColor",n6(()=>t.getContrastText(t.success.dark))),n1(t.Alert,"warningFilledColor",n6(()=>t.getContrastText(t.warning.dark))),n1(t.Alert,"errorStandardBg",en(t.error.light,.9)),n1(t.Alert,"infoStandardBg",en(t.info.light,.9)),n1(t.Alert,"successStandardBg",en(t.success.light,.9)),n1(t.Alert,"warningStandardBg",en(t.warning.light,.9)),n1(t.Alert,"errorIconColor",n("palette-error-main")),n1(t.Alert,"infoIconColor",n("palette-info-main")),n1(t.Alert,"successIconColor",n("palette-success-main")),n1(t.Alert,"warningIconColor",n("palette-warning-main")),n1(t.AppBar,"defaultBg",n("palette-grey-900")),n1(t.AppBar,"darkBg",n("palette-background-paper")),n1(t.AppBar,"darkColor",n("palette-text-primary")),n1(t.Avatar,"defaultBg",n("palette-grey-600")),n1(t.Button,"inheritContainedBg",n("palette-grey-800")),n1(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),n1(t.Chip,"defaultBorder",n("palette-grey-700")),n1(t.Chip,"defaultAvatarColor",n("palette-grey-300")),n1(t.Chip,"defaultIconColor",n("palette-grey-300")),n1(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),n1(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),n1(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),n1(t.LinearProgress,"primaryBg",en(t.primary.main,.5)),n1(t.LinearProgress,"secondaryBg",en(t.secondary.main,.5)),n1(t.LinearProgress,"errorBg",en(t.error.main,.5)),n1(t.LinearProgress,"infoBg",en(t.info.main,.5)),n1(t.LinearProgress,"successBg",en(t.success.main,.5)),n1(t.LinearProgress,"warningBg",en(t.warning.main,.5)),n1(t.Skeleton,"bg","rgba(".concat(n("palette-text-primaryChannel")," / 0.13)")),n1(t.Slider,"primaryTrack",en(t.primary.main,.5)),n1(t.Slider,"secondaryTrack",en(t.secondary.main,.5)),n1(t.Slider,"errorTrack",en(t.error.main,.5)),n1(t.Slider,"infoTrack",en(t.info.main,.5)),n1(t.Slider,"successTrack",en(t.success.main,.5)),n1(t.Slider,"warningTrack",en(t.warning.main,.5));let e=ei(t.background.default,.98);n1(t.SnackbarContent,"bg",e),n1(t.SnackbarContent,"color",n6(()=>t.getContrastText(e))),n1(t.SpeedDialAction,"fabHoverBg",ei(t.background.paper,.15)),n1(t.StepConnector,"border",n("palette-grey-600")),n1(t.StepContent,"border",n("palette-grey-600")),n1(t.Switch,"defaultColor",n("palette-grey-300")),n1(t.Switch,"defaultDisabledColor",n("palette-grey-600")),n1(t.Switch,"primaryDisabledColor",en(t.primary.main,.55)),n1(t.Switch,"secondaryDisabledColor",en(t.secondary.main,.55)),n1(t.Switch,"errorDisabledColor",en(t.error.main,.55)),n1(t.Switch,"infoDisabledColor",en(t.info.main,.55)),n1(t.Switch,"successDisabledColor",en(t.success.main,.55)),n1(t.Switch,"warningDisabledColor",en(t.warning.main,.55)),n1(t.TableCell,"border",en(ee(t.divider,1),.68)),n1(t.Tooltip,"bg",ee(t.grey[700],.92))}n3(t.background,"default"),n3(t.background,"paper"),n3(t.common,"background"),n3(t.common,"onBackground"),n3(t,"divider"),Object.keys(t).forEach(e=>{let n=t[e];n&&"object"==typeof n&&(n.main&&n1(t[e],"mainChannel",K(n2(n.main))),n.light&&n1(t[e],"lightChannel",K(n2(n.light))),n.dark&&n1(t[e],"darkChannel",K(n2(n.dark))),n.contrastText&&n1(t[e],"contrastTextChannel",K(n2(n.contrastText))),"text"===e&&(n3(t[e],"primary"),n3(t[e],"secondary")),"action"===e&&(n.active&&n3(t[e],"active"),n.selected&&n3(t[e],"selected")))})});let j={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:nQ(S=r.reduce((e,t)=>th(e,t),S))},{vars:C,generateThemeVars:N,generateStyleSheets:T}=nO(S,j);return S.vars=C,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(e=>{let[t,n]=e;S[t]=n}),S.generateThemeVars=N,S.generateStyleSheets=T,S.generateSpacing=function(){return tz(p.spacing,tI(this))},S.getColorSchemeSelector=function(e){return"media"===u?`@media (prefers-color-scheme: ${e})`:u?u.startsWith("data-")&&!u.includes("%s")?`[${u}="${e}"] &`:"class"===u?`.${e} &`:"data"===u?`[data-${e}] &`:`${u.replace("%s",e)} &`:"&"},S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=c,S.unstable_sxConfig={...nu,...null==p?void 0:p.unstable_sxConfig},S.unstable_sx=function(e){return nd({sx:e,theme:this})},S.toRuntimeSource=n0,S}({...s,colorSchemes:d,defaultColorScheme:c,..."boolean"!=typeof i&&i},...n)}();var n9="$$material";let re=function(e={}){let{themeId:t,defaultTheme:n=nh,rootShouldForwardProp:r=nm,slotShouldForwardProp:a=nm}=e,i=e=>nd(nx(e,t,n));return i.__mui_systemSx=!0,(e,l={})=>{var o;let s;tp(e,e=>e.filter(e=>!e?.__mui_systemSx));let{name:c,slot:u,skipVariantsResolver:d,skipSx:p,overridesResolver:f=(o=u?u.charAt(0).toLowerCase()+u.slice(1):u)?(e,t)=>t[o]:null,...h}=l,m=void 0!==d?d:u&&"Root"!==u&&"root"!==u||!1,v=p||!1,g=nm;"Root"===u||"root"===u?g=r:u?g=a:"string"==typeof e&&e.charCodeAt(0)>96&&(g=void 0);let x=td(e,{shouldForwardProp:g,label:s,...h}),b=e=>"function"==typeof e&&e.__emotion_real!==e||tf(e)?r=>nb(e,nx(r,t,n)):e,y=(r,...a)=>{let l=b(r),o=a?a.map(b):[];c&&f&&o.push(e=>{let r=nv(t,e.theme,n);if(!r.components||!r.components[c]||!r.components[c].styleOverrides)return null;let a=r.components[c].styleOverrides,i={},l=nx(e,t,n);for(let e in a)i[e]=nb(a[e],l);return f(e,i)}),c&&!m&&o.push(e=>{let r=nv(t,e.theme,n),a=r?.components?.[c]?.variants;return a?nb({variants:a},nx(e,t,n)):null}),v||o.push(i);let s=o.length-a.length;if(Array.isArray(r)&&s>0){let e=Array(s).fill("");(l=[...r,...e]).raw=[...r.raw,...e]}let u=x(l,...o);return e.muiName&&(u.muiName=e.muiName),u};return x.withConfig&&(y.withConfig=x.withConfig),y}}({themeId:n9,defaultTheme:n7,rootShouldForwardProp:eo}),rt={theme:void 0};function rn(e){let t,n;return r=>{let a=t;return(void 0===a||r.theme!==n)&&(rt.theme=r.theme,t=a=e(rt),n=r.theme),a}}function rr(e,t){let n={...t};for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if("components"===r||"slots"===r)n[r]={...e[r],...n[r]};else if("componentsProps"===r||"slotProps"===r){let a=e[r],i=t[r];if(i){if(a)for(let e in n[r]={...i},a)Object.prototype.hasOwnProperty.call(a,e)&&(n[r][e]=rr(a[e],i[e]));else n[r]=i}else n[r]=a||{}}else void 0===n[r]&&(n[r]=e[r])}return n}let ra=C.createContext(void 0);function ri(e){return function({props:e,name:t}){return function(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let a=t.components[n];return a.defaultProps?rr(a.defaultProps,r):a.styleOverrides||a.variants?r:rr(a,r)}({props:e,name:t,theme:{components:C.useContext(ra)}})}(e)}let rl=C.createContext({});function ro(e){try{return e.matches(":focus-visible")}catch(e){}return!1}function rs(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function rc(...e){return C.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{rs(e,t)})},e)}let ru="undefined"!=typeof window?C.useLayoutEffect:C.useEffect;var rd=function(e){let t=C.useRef(e);return ru(()=>{t.current=e}),C.useRef((...e)=>(0,t.current)(...e)).current};let rp={};function rf(e,t){let n=C.useRef(rp);return n.current===rp&&(n.current=e(t)),n}class rh{static create(){return new rh}static use(){let e=rf(rh.create).current,[t,n]=C.useState(!1);return e.shouldMount=t,e.setShouldMount=n,C.useEffect(e.mountEffect,[t]),e}mount(){return this.mounted||(this.mounted=function(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.mount().then(()=>{var e;return null===(e=this.ref.current)||void 0===e?void 0:e.start(...t)})}stop(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.mount().then(()=>{var e;return null===(e=this.ref.current)||void 0===e?void 0:e.stop(...t)})}pulsate(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.mount().then(()=>{var e;return null===(e=this.ref.current)||void 0===e?void 0:e.pulsate(...t)})}constructor(){this.mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())},this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}}function rm(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function rv(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}var rg=n(7326),rx=n(9611);function rb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,rx.Z)(e,t)}var ry=C.createContext(null);function rw(e,t){var n=Object.create(null);return e&&C.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=t&&(0,C.isValidElement)(e)?t(e):e}),n}function rk(e,t,n){return null!=n[t]?n[t]:e.props[t]}var rS=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},rj=function(e){function t(t,n){var r,a=(r=e.call(this,t,n)||this).handleExited.bind((0,rg.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},r}rb(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,a=t.children,i=t.handleExited;return{children:t.firstRender?rw(e.children,function(t){return(0,C.cloneElement)(t,{onExited:i.bind(null,t),in:!0,appear:rk(t,"appear",e),enter:rk(t,"enter",e),exit:rk(t,"exit",e)})}):(Object.keys(r=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,a=Object.create(null),i=[];for(var l in e)l in t?i.length&&(a[l]=i,i=[]):i.push(l);var o={};for(var s in t){if(a[s])for(r=0;r<a[s].length;r++){var c=a[s][r];o[a[s][r]]=n(c)}o[s]=n(s)}for(r=0;r<i.length;r++)o[i[r]]=n(i[r]);return o}(a,n=rw(e.children))).forEach(function(t){var l=r[t];if((0,C.isValidElement)(l)){var o=t in a,s=t in n,c=a[t],u=(0,C.isValidElement)(c)&&!c.props.in;s&&(!o||u)?r[t]=(0,C.cloneElement)(l,{onExited:i.bind(null,l),in:!0,exit:rk(l,"exit",e),enter:rk(l,"enter",e)}):s||!o||u?s&&o&&(0,C.isValidElement)(c)&&(r[t]=(0,C.cloneElement)(l,{onExited:i.bind(null,l),in:c.props.in,exit:rk(l,"exit",e),enter:rk(l,"enter",e)})):r[t]=(0,C.cloneElement)(l,{in:!1})}}),r),firstRender:!1}},n.handleExited=function(e,t){var n=rw(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=es({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=rv(e,["component","childFactory"]),a=this.state.contextValue,i=rS(this.state.children).map(n);return(delete r.appear,delete r.enter,delete r.exit,null===t)?C.createElement(ry.Provider,{value:a},i):C.createElement(ry.Provider,{value:a},C.createElement(t,r,i))},t}(C.Component);rj.propTypes={},rj.defaultProps={component:"div",childFactory:function(e){return e}};let rC=[];class rN{static create(){return new rN}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function rT(){var e;let t=rf(rN.create).current;return e=t.disposeEffect,C.useEffect(e,rC),t}var rE=n(8679),rD=n.n(rE),rM=tr(function(e,t){var n=e7([e.styles],void 0,C.useContext(ta)),r=C.useRef();return tt(function(){var e=t.key+"-global",a=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,l=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),null!==l&&(i=!0,l.setAttribute("data-emotion",e),a.hydrate([l])),r.current=[a,i],function(){a.flush()}},[t]),tt(function(){var e=r.current,a=e[0];if(e[1]){e[1]=!1;return}if(void 0!==n.next&&tl(t,n.next,!0),a.tags.length){var i=a.tags[a.tags.length-1].nextElementSibling;a.before=i,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});function r_(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return e7(t)}var rA=function(){var e=r_.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};let rL=e=>e,rI=(r=rL,{configure(e){r=e},generate:e=>r(e),reset(){r=rL}}),rP={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function rO(e,t,n="Mui"){let r=rP[t];return r?`${n}-${r}`:`${rI.generate(e)}-${t}`}function rR(e,t,n="Mui"){let r={};return t.forEach(t=>{r[t]=rO(e,t,n)}),r}let rF=rR("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);function rB(){let e=rm(["\n  0% {\n    transform: scale(0);\n    opacity: 0.1;\n  }\n\n  100% {\n    transform: scale(1);\n    opacity: 0.3;\n  }\n"]);return rB=function(){return e},e}function rz(){let e=rm(["\n  0% {\n    opacity: 1;\n  }\n\n  100% {\n    opacity: 0;\n  }\n"]);return rz=function(){return e},e}function rZ(){let e=rm(["\n  0% {\n    transform: scale(1);\n  }\n\n  50% {\n    transform: scale(0.92);\n  }\n\n  100% {\n    transform: scale(1);\n  }\n"]);return rZ=function(){return e},e}function rH(){let e=rm(["\n  opacity: 0;\n  position: absolute;\n\n  &."," {\n    opacity: 0.3;\n    transform: scale(1);\n    animation-name: ",";\n    animation-duration: ","ms;\n    animation-timing-function: ",";\n  }\n\n  &."," {\n    animation-duration: ","ms;\n  }\n\n  & ."," {\n    opacity: 1;\n    display: block;\n    width: 100%;\n    height: 100%;\n    border-radius: 50%;\n    background-color: currentColor;\n  }\n\n  & ."," {\n    opacity: 0;\n    animation-name: ",";\n    animation-duration: ","ms;\n    animation-timing-function: ",";\n  }\n\n  & ."," {\n    position: absolute;\n    /* @noflip */\n    left: 0px;\n    top: 0;\n    animation-name: ",";\n    animation-duration: 2500ms;\n    animation-timing-function: ",";\n    animation-iteration-count: infinite;\n    animation-delay: 200ms;\n  }\n"]);return rH=function(){return e},e}let rU=rA(rB()),rV=rA(rz()),rW=rA(rZ()),rG=re("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),rY=re(function(e){let{className:t,classes:n,pulsate:r=!1,rippleX:a,rippleY:i,rippleSize:l,in:o,onExited:s,timeout:c}=e,[u,d]=C.useState(!1),p=U(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f=U(n.child,u&&n.childLeaving,r&&n.childPulsate);return o||u||d(!0),C.useEffect(()=>{if(!o&&null!=s){let e=setTimeout(s,c);return()=>{clearTimeout(e)}}},[s,o,c]),(0,w.jsx)("span",{className:p,style:{width:l,height:l,top:-(l/2)+i,left:-(l/2)+a},children:(0,w.jsx)("span",{className:f})})},{name:"MuiTouchRipple",slot:"Ripple"})(rH(),rF.rippleVisible,rU,550,e=>{let{theme:t}=e;return t.transitions.easing.easeInOut},rF.ripplePulsate,e=>{let{theme:t}=e;return t.transitions.duration.shorter},rF.child,rF.childLeaving,rV,550,e=>{let{theme:t}=e;return t.transitions.easing.easeInOut},rF.childPulsate,rW,e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),rq=C.forwardRef(function(e,t){let{center:n=!1,classes:r={},className:a,...i}=ri({props:e,name:"MuiTouchRipple"}),[l,o]=C.useState([]),s=C.useRef(0),c=C.useRef(null);C.useEffect(()=>{c.current&&(c.current(),c.current=null)},[l]);let u=C.useRef(!1),d=rT(),p=C.useRef(null),f=C.useRef(null),h=C.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:a,rippleSize:i,cb:l}=e;o(e=>[...e,(0,w.jsx)(rY,{classes:{ripple:U(r.ripple,rF.ripple),rippleVisible:U(r.rippleVisible,rF.rippleVisible),ripplePulsate:U(r.ripplePulsate,rF.ripplePulsate),child:U(r.child,rF.child),childLeaving:U(r.childLeaving,rF.childLeaving),childPulsate:U(r.childPulsate,rF.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:a,rippleSize:i},s.current)]),s.current+=1,c.current=l},[r]),m=C.useCallback(function(){let e,t,r,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},{pulsate:o=!1,center:s=n||i.pulsate,fakeElement:c=!1}=i;if((null==a?void 0:a.type)==="mousedown"&&u.current){u.current=!1;return}(null==a?void 0:a.type)==="touchstart"&&(u.current=!0);let m=c?null:f.current,v=m?m.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(!s&&void 0!==a&&(0!==a.clientX||0!==a.clientY)&&(a.clientX||a.touches)){let{clientX:n,clientY:r}=a.touches&&a.touches.length>0?a.touches[0]:a;e=Math.round(n-v.left),t=Math.round(r-v.top)}else e=Math.round(v.width/2),t=Math.round(v.height/2);s?(r=Math.sqrt((2*v.width**2+v.height**2)/3))%2==0&&(r+=1):r=Math.sqrt((2*Math.max(Math.abs((m?m.clientWidth:0)-e),e)+2)**2+(2*Math.max(Math.abs((m?m.clientHeight:0)-t),t)+2)**2),(null==a?void 0:a.touches)?null===p.current&&(p.current=()=>{h({pulsate:o,rippleX:e,rippleY:t,rippleSize:r,cb:l})},d.start(80,()=>{p.current&&(p.current(),p.current=null)})):h({pulsate:o,rippleX:e,rippleY:t,rippleSize:r,cb:l})},[n,h,d]),v=C.useCallback(()=>{m({},{pulsate:!0})},[m]),g=C.useCallback((e,t)=>{if(d.clear(),(null==e?void 0:e.type)==="touchend"&&p.current){p.current(),p.current=null,d.start(0,()=>{g(e,t)});return}p.current=null,o(e=>e.length>0?e.slice(1):e),c.current=t},[d]);return C.useImperativeHandle(t,()=>({pulsate:v,start:m,stop:g}),[v,m,g]),(0,w.jsx)(rG,{className:U(rF.root,r.root,a),ref:f,...i,children:(0,w.jsx)(rj,{component:null,exit:!0,children:l})})});function rK(e){return rO("MuiButtonBase",e)}let r$=rR("MuiButtonBase",["root","disabled","focusVisible"]),rX=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:a}=e,i=V({root:["root",t&&"disabled",n&&"focusVisible"]},rK,a);return n&&r&&(i.root+=" ".concat(r)),i},rJ=re("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(r$.disabled)]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),rQ=C.forwardRef(function(e,t){let n=ri({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:a=!1,children:i,className:l,component:o="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:p,LinkComponent:f="a",onBlur:h,onClick:m,onContextMenu:v,onDragLeave:g,onFocus:x,onFocusVisible:b,onKeyDown:y,onKeyUp:k,onMouseDown:S,onMouseLeave:j,onMouseUp:N,onTouchEnd:T,onTouchMove:E,onTouchStart:D,tabIndex:M=0,TouchRippleProps:_,touchRippleRef:A,type:L,...I}=n,P=C.useRef(null),O=rh.use(),R=rc(O.ref,A),[F,B]=C.useState(!1);s&&F&&B(!1),C.useImperativeHandle(r,()=>({focusVisible:()=>{B(!0),P.current.focus()}}),[]);let z=O.shouldMount&&!c&&!s;function Z(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u;return rd(r=>(t&&t(r),n||O[e](r),!0))}C.useEffect(()=>{F&&d&&!c&&O.pulsate()},[c,d,F,O]);let H=Z("start",S),V=Z("stop",v),W=Z("stop",g),G=Z("stop",N),Y=Z("stop",e=>{F&&e.preventDefault(),j&&j(e)}),q=Z("start",D),K=Z("stop",T),$=Z("stop",E),X=Z("stop",e=>{ro(e.target)||B(!1),h&&h(e)},!1),J=rd(e=>{P.current||(P.current=e.currentTarget),ro(e.target)&&(B(!0),b&&b(e)),x&&x(e)}),Q=()=>{let e=P.current;return o&&"button"!==o&&!("A"===e.tagName&&e.href)},ee=rd(e=>{d&&!e.repeat&&F&&" "===e.key&&O.stop(e,()=>{O.start(e)}),e.target===e.currentTarget&&Q()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&Q()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))}),et=rd(e=>{d&&" "===e.key&&F&&!e.defaultPrevented&&O.stop(e,()=>{O.pulsate(e)}),k&&k(e),m&&e.target===e.currentTarget&&Q()&&" "===e.key&&!e.defaultPrevented&&m(e)}),en=o;"button"===en&&(I.href||I.to)&&(en=f);let er={};"button"===en?(er.type=void 0===L?"button":L,er.disabled=s):(I.href||I.to||(er.role="button"),s&&(er["aria-disabled"]=s));let ea=rc(t,P),ei={...n,centerRipple:a,component:o,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:M,focusVisible:F},el=rX(ei);return(0,w.jsxs)(rJ,{as:en,className:U(el.root,l),ownerState:ei,onBlur:X,onClick:m,onContextMenu:V,onFocus:J,onKeyDown:ee,onKeyUp:et,onMouseDown:H,onMouseLeave:Y,onMouseUp:G,onDragLeave:W,onTouchEnd:K,onTouchMove:$,onTouchStart:q,ref:ea,tabIndex:s?-1:M,type:L,...er,...I,children:[i,z?(0,w.jsx)(rq,{ref:R,center:a,..._}):null]})}),r0=rR("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),r1=rR("MuiListItemIcon",["root","alignItemsFlexStart"]),r2=rR("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function r3(e){return rO("MuiMenuItem",e)}let r6=rR("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),r5=e=>{let{disabled:t,dense:n,divider:r,disableGutters:a,selected:i,classes:l}=e,o=V({root:["root",n&&"dense",t&&"disabled",!a&&"gutters",r&&"divider",i&&"selected"]},r3,l);return{...l,...o}},r4=re(rQ,{shouldForwardProp:e=>eo(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(rn(e=>{let{theme:t}=e;return{...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(r6.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):Q(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(r6.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):Q(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(r6.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):Q(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):Q(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(r6.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(r6.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(r0.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(r0.inset)]:{marginLeft:52},["& .".concat(r2.root)]:{marginTop:0,marginBottom:0},["& .".concat(r2.inset)]:{paddingLeft:36},["& .".concat(r1.root)]:{minWidth:36},variants:[{props:e=>{let{ownerState:t}=e;return!t.disableGutters},style:{paddingLeft:16,paddingRight:16}},{props:e=>{let{ownerState:t}=e;return t.divider},style:{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"}},{props:e=>{let{ownerState:t}=e;return!t.dense},style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:e=>{let{ownerState:t}=e;return t.dense},style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,["& .".concat(r1.root," svg")]:{fontSize:"1.25rem"}}}]}})),r8=C.forwardRef(function(e,t){let n;let r=ri({props:e,name:"MuiMenuItem"}),{autoFocus:a=!1,component:i="li",dense:l=!1,divider:o=!1,disableGutters:s=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p,...f}=r,h=C.useContext(rl),m=C.useMemo(()=>({dense:l||h.dense||!1,disableGutters:s}),[h.dense,l,s]),v=C.useRef(null);ru(()=>{a&&v.current&&v.current.focus()},[a]);let g={...r,dense:m.dense,divider:o,disableGutters:s},x=r5(r),b=rc(v,t);return r.disabled||(n=void 0!==d?d:-1),(0,w.jsx)(rl.Provider,{value:m,children:(0,w.jsx)(r4,{ref:b,role:u,tabIndex:n,component:i,focusVisibleClassName:U(x.focusVisible,c),className:U(x.root,p),...f,ownerState:g,classes:x})})});function r7(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function r9(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(r7(e.value)&&""!==e.value||t&&r7(e.defaultValue)&&""!==e.defaultValue)}var ae=function(e,t){return C.isValidElement(e)&&-1!==t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)};let at=C.createContext(void 0);function an(e){return rO("MuiFormControl",e)}rR("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);let ar=e=>{let{classes:t,margin:n,fullWidth:r}=e;return V({root:["root","none"!==n&&"margin".concat(tw(n)),r&&"fullWidth"]},an,t)},aa=re("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return{...t.root,...t["margin".concat(tw(n.margin))],...n.fullWidth&&t.fullWidth}}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),ai=C.forwardRef(function(e,t){let n;let r=ri({props:e,name:"MuiFormControl"}),{children:a,className:i,color:l="primary",component:o="div",disabled:s=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:p=!1,margin:f="none",required:h=!1,size:m="medium",variant:v="outlined",...g}=r,x={...r,color:l,component:o,disabled:s,error:c,fullWidth:d,hiddenLabel:p,margin:f,required:h,size:m,variant:v},b=ar(x),[y,k]=C.useState(()=>{let e=!1;return a&&C.Children.forEach(a,t=>{if(!ae(t,["Input","Select"]))return;let n=ae(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}),e}),[S,j]=C.useState(()=>{let e=!1;return a&&C.Children.forEach(a,t=>{ae(t,["Input","Select"])&&(r9(t.props,!0)||r9(t.props.inputProps,!0))&&(e=!0)}),e}),[N,T]=C.useState(!1);s&&N&&T(!1);let E=void 0===u||s?N:u;C.useRef(!1);let D=C.useMemo(()=>({adornedStart:y,setAdornedStart:k,color:l,disabled:s,error:c,filled:S,focused:E,fullWidth:d,hiddenLabel:p,size:m,onBlur:()=>{T(!1)},onEmpty:()=>{j(!1)},onFilled:()=>{j(!0)},onFocus:()=>{T(!0)},registerEffect:n,required:h,variant:v}),[y,l,s,c,S,E,d,p,n,h,m,v]);return(0,w.jsx)(at.Provider,{value:D,children:(0,w.jsx)(aa,{as:o,ownerState:x,className:U(b.root,i),ref:t,...g,children:a})})});function al(e){return parseInt(C.version,10)>=19?e.props?.ref:e?.ref}n(254);let ao=0,as={...N}.useId;function ac(e){return e&&e.ownerDocument||document}let au=C.createContext(),ad=()=>C.useContext(au)??!1;var ap=function(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}},af=function(e,t=[]){if(void 0===e)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n},ah=function(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t},am=function(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:i}=e;if(!t){let e=U(n?.className,i,a?.className,r?.className),t={...n?.style,...a?.style,...r?.style},l={...n,...a,...r};return e.length>0&&(l.className=e),Object.keys(t).length>0&&(l.style=t),{props:l,internalRef:void 0}}let l=af({...a,...r}),o=ah(r),s=ah(a),c=t(l),u=U(c?.className,n?.className,i,a?.className,r?.className),d={...c?.style,...n?.style,...a?.style,...r?.style},p={...c,...n,...s,...o};return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}},av=function(e,t,n){return"function"==typeof e?e(t,n):e},ag=function(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:a=!1,...i}=e,l=a?{}:av(n,r),{props:o,internalRef:s}=am({...i,externalSlotProps:l}),c=rc(s,l?.ref,e.additionalProps?.ref);return ap(t,{...o,ref:c},r)};function ax(e){return rO("MuiList",e)}rR("MuiList",["root","padding","dense","subheader"]);let ab=e=>{let{classes:t,disablePadding:n,dense:r,subheader:a}=e;return V({root:["root",!n&&"padding",r&&"dense",a&&"subheader"]},ax,t)},ay=re("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:e=>{let{ownerState:t}=e;return!t.disablePadding},style:{paddingTop:8,paddingBottom:8}},{props:e=>{let{ownerState:t}=e;return t.subheader},style:{paddingTop:0}}]}),aw=C.forwardRef(function(e,t){let n=ri({props:e,name:"MuiList"}),{children:r,className:a,component:i="ul",dense:l=!1,disablePadding:o=!1,subheader:s,...c}=n,u=C.useMemo(()=>({dense:l}),[l]),d={...n,component:i,dense:l,disablePadding:o},p=ab(d);return(0,w.jsx)(rl.Provider,{value:u,children:(0,w.jsxs)(ay,{as:i,className:U(p.root,a),ref:t,ownerState:d,...c,children:[s,r]})})});function ak(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function aS(e){return ac(e).defaultView||window}function aj(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function aC(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function aN(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join("")))}function aT(e,t,n,r,a,i){let l=!1,o=a(e,t,!!t&&n);for(;o;){if(o===e.firstChild){if(l)return!1;l=!0}let t=!r&&(o.disabled||"true"===o.getAttribute("aria-disabled"));if(o.hasAttribute("tabindex")&&aN(o,i)&&!t)return o.focus(),!0;o=a(e,o,n)}return!1}let aE=C.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:a=!1,children:i,className:l,disabledItemsFocusable:o=!1,disableListWrap:s=!1,onKeyDown:c,variant:u="selectedMenu",...d}=e,p=C.useRef(null),f=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ru(()=>{r&&p.current.focus()},[r]),C.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,t)=>{let{direction:n}=t,r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){let t="".concat(ak(aS(e)),"px");p.current.style["rtl"===n?"paddingLeft":"paddingRight"]=t,p.current.style.width="calc(100% + ".concat(t,")")}return p.current}}),[]);let h=rc(p,t),m=-1;C.Children.forEach(i,(e,t)=>{if(!C.isValidElement(e)){m===t&&(m+=1)>=i.length&&(m=-1);return}e.props.disabled||("selectedMenu"===u&&e.props.selected?m=t:-1!==m||(m=t)),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1)>=i.length&&(m=-1)});let v=C.Children.map(i,(e,t)=>{if(t===m){let t={};return a&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),C.cloneElement(e,t)}return e});return(0,w.jsx)(aw,{role:"menu",ref:h,className:l,onKeyDown:e=>{let t=p.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey){c&&c(e);return}let r=ac(t).activeElement;if("ArrowDown"===n)e.preventDefault(),aT(t,r,s,o,aj);else if("ArrowUp"===n)e.preventDefault(),aT(t,r,s,o,aC);else if("Home"===n)e.preventDefault(),aT(t,null,s,o,aj);else if("End"===n)e.preventDefault(),aT(t,null,s,o,aC);else if(1===n.length){let a=f.current,i=n.toLowerCase(),l=performance.now();a.keys.length>0&&(l-a.lastTime>500?(a.keys=[],a.repeating=!0,a.previousKeyMatched=!0):a.repeating&&i!==a.keys[0]&&(a.repeating=!1)),a.lastTime=l,a.keys.push(i);let s=r&&!a.repeating&&aN(r,a);a.previousKeyMatched&&(s||aT(t,r,!1,o,aj,a))?e.preventDefault():a.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1,...d,children:v})});var aD=function(e){return"string"==typeof e};function aM(e,t=166){let n;function r(...a){clearTimeout(n),n=setTimeout(()=>{e.apply(this,a)},t)}return r.clear=()=>{clearTimeout(n)},r}var a_=n(3935),aA={disabled:!1},aL="unmounted",aI="exited",aP="entering",aO="entered",aR="exiting",aF=function(e){function t(t,n){r=e.call(this,t,n)||this;var r,a,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(a=aI,r.appearStatus=aP):a=aO:a=t.unmountOnExit||t.mountOnEnter?aL:aI,r.state={status:a},r.nextCallback=null,r}rb(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===aL?{status:aI}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==aP&&n!==aO&&(t=aP):(n===aP||n===aO)&&(t=aR)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){if(this.cancelNextCallback(),t===aP){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a_.findDOMNode(this);n&&n.scrollTop}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===aI&&this.setState({status:aL})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,a=this.props.nodeRef?[r]:[a_.findDOMNode(this),r],i=a[0],l=a[1],o=this.getTimeouts(),s=r?o.appear:o.enter;if(!e&&!n||aA.disabled){this.safeSetState({status:aO},function(){t.props.onEntered(i)});return}this.props.onEnter(i,l),this.safeSetState({status:aP},function(){t.props.onEntering(i,l),t.onTransitionEnd(s,function(){t.safeSetState({status:aO},function(){t.props.onEntered(i,l)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a_.findDOMNode(this);if(!t||aA.disabled){this.safeSetState({status:aI},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:aR},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:aI},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a_.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=a[0],l=a[1];this.props.addEndListener(i,l)}null!=e&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===aL)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,rv(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return C.createElement(ry.Provider,{value:null},"function"==typeof n?n(e,r):C.cloneElement(C.Children.only(n),r))},t}(C.Component);function aB(){}aF.contextType=ry,aF.propTypes={},aF.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:aB,onEntering:aB,onEntered:aB,onExit:aB,onExiting:aB,onExited:aB},aF.UNMOUNTED=aL,aF.EXITED=aI,aF.ENTERING=aP,aF.ENTERED=aO,aF.EXITING=aR;var az=function(e=null){let t=C.useContext(ta);return t&&0!==Object.keys(t).length?t:e};let aZ=nf();var aH=function(e=aZ){return az(e)};function aU(){let e=aH(n7);return e[n9]||e}let aV=e=>e.scrollTop;function aW(e,t){var n,r;let{timeout:a,easing:i,style:l={}}=e;return{duration:null!==(n=l.transitionDuration)&&void 0!==n?n:"number"==typeof a?a:a[t.mode]||0,easing:null!==(r=l.transitionTimingFunction)&&void 0!==r?r:"object"==typeof i?i[t.mode]:i,delay:l.transitionDelay}}function aG(e){return"scale(".concat(e,", ").concat(e**2,")")}let aY={entering:{opacity:1,transform:aG(1)},entered:{opacity:1,transform:"none"}},aq="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),aK=C.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:a,easing:i,in:l,onEnter:o,onEntered:s,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=aF,...v}=e,g=rT(),x=C.useRef(),b=aU(),y=C.useRef(null),k=rc(y,al(a),t),S=e=>t=>{if(e){let n=y.current;void 0===t?e(n):e(n,t)}},j=S(c),N=S((e,t)=>{let n;aV(e);let{duration:r,delay:a,easing:l}=aW({style:f,timeout:h,easing:i},{mode:"enter"});"auto"===h?(n=b.transitions.getAutoHeightDuration(e.clientHeight),x.current=n):n=r,e.style.transition=[b.transitions.create("opacity",{duration:n,delay:a}),b.transitions.create("transform",{duration:aq?n:.666*n,delay:a,easing:l})].join(","),o&&o(e,t)}),T=S(s),E=S(p),D=S(e=>{let t;let{duration:n,delay:r,easing:a}=aW({style:f,timeout:h,easing:i},{mode:"exit"});"auto"===h?(t=b.transitions.getAutoHeightDuration(e.clientHeight),x.current=t):t=n,e.style.transition=[b.transitions.create("opacity",{duration:t,delay:r}),b.transitions.create("transform",{duration:aq?t:.666*t,delay:aq?r:r||.333*t,easing:a})].join(","),e.style.opacity=0,e.style.transform=aG(.75),u&&u(e)}),M=S(d);return(0,w.jsx)(m,{appear:r,in:l,nodeRef:y,onEnter:N,onEntered:T,onEntering:j,onExit:D,onExited:M,onExiting:E,addEndListener:e=>{"auto"===h&&g.start(x.current||0,e),n&&n(y.current,e)},timeout:"auto"===h?null:h,...v,children:(e,t)=>C.cloneElement(a,{style:{opacity:0,transform:aG(.75),visibility:"exited"!==e||l?void 0:"hidden",...aY[e],...f,...a.props.style},ref:k,...t})})});function a$(e){let t=[],n=[];return Array.from(e.querySelectorAll('input,select,textarea,a[href],button,[tabindex],audio[controls],video[controls],[contenteditable]:not([contenteditable="false"])')).forEach((e,r)=>{let a=function(e){let t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1===a||e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!1;let t=t=>e.ownerDocument.querySelector('input[type="radio"]'.concat(t)),n=t('[name="'.concat(e.name,'"]:checked'));return n||(n=t('[name="'.concat(e.name,'"]'))),n!==e}(e)||(0===a?t.push(e):n.push({documentOrder:r,tabIndex:a,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function aX(){return!0}aK&&(aK.muiSupportAuto=!0);var aJ=function(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:a=!1,getTabbable:i=a$,isEnabled:l=aX,open:o}=e,s=C.useRef(!1),c=C.useRef(null),u=C.useRef(null),d=C.useRef(null),p=C.useRef(null),f=C.useRef(!1),h=C.useRef(null),m=rc(al(t),h),v=C.useRef(null);C.useEffect(()=>{o&&h.current&&(f.current=!n)},[n,o]),C.useEffect(()=>{if(!o||!h.current)return;let e=ac(h.current);return!h.current.contains(e.activeElement)&&(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{a||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}},[o]),C.useEffect(()=>{if(!o||!h.current)return;let e=ac(h.current),t=t=>{v.current=t,!r&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,u.current&&u.current.focus())},n=()=>{let t=h.current;if(null===t)return;if(!e.hasFocus()||!l()||s.current){s.current=!1;return}if(t.contains(e.activeElement)||r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if((e.activeElement===c.current||e.activeElement===u.current)&&(n=i(h.current)),n.length>0){var a,o;let e=!!((null===(a=v.current)||void 0===a?void 0:a.shiftKey)&&(null===(o=v.current)||void 0===o?void 0:o.key)==="Tab"),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);let a=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(a),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,a,l,o,i]);let g=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return(0,w.jsxs)(C.Fragment,{children:[(0,w.jsx)("div",{tabIndex:o?0:-1,onFocus:g,ref:c,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;let n=t.props.onFocus;n&&n(e)}}),(0,w.jsx)("div",{tabIndex:o?0:-1,onFocus:g,ref:u,"data-testid":"sentinelEnd"})]})};let aQ=C.forwardRef(function(e,t){let{children:n,container:r,disablePortal:a=!1}=e,[i,l]=C.useState(null),o=rc(C.isValidElement(n)?al(n):null,t);return(ru(()=>{!a&&l(("function"==typeof r?r():r)||document.body)},[r,a]),ru(()=>{if(i&&!a)return rs(t,i),()=>{rs(t,null)}},[t,i,a]),a)?C.isValidElement(n)?C.cloneElement(n,{ref:o}):(0,w.jsx)(C.Fragment,{children:n}):(0,w.jsx)(C.Fragment,{children:i?a_.createPortal(n,i):i})});function a0(e,t){let{className:n,elementType:r,ownerState:a,externalForwardedProps:i,getSlotOwnerState:l,internalForwardedProps:o,...s}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...p}=i,f=u[e]||r,h=av(d[e],a),{props:{component:m,...v},internalRef:g}=am({className:n,...s,externalForwardedProps:"root"===e?p:void 0,externalSlotProps:h}),x=rc(g,null==h?void 0:h.ref,t.ref),b=l?l(v):{},y={...a,...b},w="root"===e?m||c:m,k=ap(f,{..."root"===e&&!c&&!u[e]&&o,..."root"!==e&&!u[e]&&o,...v,...w&&{as:w},ref:x},y);return Object.keys(b).forEach(e=>{delete k[e]}),[f,k]}let a1={entering:{opacity:1},entered:{opacity:1}},a2=C.forwardRef(function(e,t){let n=aU(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:l,easing:o,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:v=r,TransitionComponent:g=aF,...x}=e,b=C.useRef(null),y=rc(b,al(l),t),k=e=>t=>{if(e){let n=b.current;void 0===t?e(n):e(n,t)}},S=k(d),j=k((e,t)=>{aV(e);let r=aW({style:m,timeout:v,easing:o},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),N=k(u),T=k(h),E=k(e=>{let t=aW({style:m,timeout:v,easing:o},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)}),D=k(f);return(0,w.jsx)(g,{appear:i,in:s,nodeRef:b,onEnter:j,onEntered:N,onEntering:S,onExit:E,onExited:D,onExiting:T,addEndListener:e=>{a&&a(b.current,e)},timeout:v,...x,children:(e,t)=>C.cloneElement(l,{style:{opacity:0,visibility:"exited"!==e||s?void 0:"hidden",...a1[e],...m,...l.props.style},ref:y,...t})})});function a3(e){return rO("MuiBackdrop",e)}rR("MuiBackdrop",["root","invisible"]);let a6=e=>{let{ownerState:t,...n}=e;return n},a5=e=>{let{classes:t,invisible:n}=e;return V({root:["root",n&&"invisible"]},a3,t)},a4=re("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),a8=C.forwardRef(function(e,t){let n=ri({props:e,name:"MuiBackdrop"}),{children:r,className:a,component:i="div",invisible:l=!1,open:o,components:s={},componentsProps:c={},slotProps:u={},slots:d={},TransitionComponent:p,transitionDuration:f,...h}=n,m={...n,component:i,invisible:l},v=a5(m),g={slots:{transition:p,root:s.Root,...d},slotProps:{...c,...u}},[x,b]=a0("root",{elementType:a4,externalForwardedProps:g,className:U(v.root,a),ownerState:m}),[y,k]=a0("transition",{elementType:a2,externalForwardedProps:g,ownerState:m}),S=a6(k);return(0,w.jsx)(y,{in:o,timeout:f,...h,...S,children:(0,w.jsx)(x,{"aria-hidden":!0,...b,classes:v,ref:t,children:r})})});function a7(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function a9(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ie(e){return parseInt(aS(e).getComputedStyle(e).paddingRight,10)||0}function it(e,t,n,r,a){let i=[t,n,...r];[].forEach.call(e.children,e=>{let t=!i.includes(e),n=!function(e){let t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&a9(e,a)})}function ir(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}class ia{add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&a9(e.modalRef,!1);let r=function(e){let t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);it(t,e.mount,e.modalRef,r,!0);let a=ir(this.containers,e=>e.container===t);return -1!==a?this.containers[a].modals.push(e):this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n}mount(e,t){let n=ir(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=function(e,t){let n=[],r=e.container;if(!t.disableScrollLock){let e;if(function(e){let t=ac(e);return t.body===e?aS(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){let e=ak(aS(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight="".concat(ie(r)+e,"px");let t=ac(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight="".concat(ie(t)+e,"px")})}if(r.parentNode instanceof DocumentFragment)e=ac(r).body;else{let t=r.parentElement,n=aS(r);e=(null==t?void 0:t.nodeName)==="HTML"&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(e=>{let{value:t,el:n,property:r}=e;t?n.style.setProperty(r,t):n.style.removeProperty(r)})}}(r,t))}remove(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=this.modals.indexOf(e);if(-1===n)return n;let r=ir(this.containers,t=>t.modals.includes(e)),a=this.containers[r];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(n,1),0===a.modals.length)a.restore&&a.restore(),e.modalRef&&a9(e.modalRef,t),it(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=a.modals[a.modals.length-1];e.modalRef&&a9(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}constructor(){this.modals=[],this.containers=[]}}let ii=new ia;var il=function(e){let{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:l,children:o,onClose:s,open:c,rootRef:u}=e,d=C.useRef({}),p=C.useRef(null),f=C.useRef(null),h=rc(f,u),[m,v]=C.useState(!c),g=!!o&&o.props.hasOwnProperty("in"),x=!0;("false"===e["aria-hidden"]||!1===e["aria-hidden"])&&(x=!1);let b=()=>ac(p.current),y=()=>(d.current.modalRef=f.current,d.current.mount=p.current,d.current),w=()=>{ii.mount(y(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},k=rd(()=>{let e=("function"==typeof t?t():t)||b().body;ii.add(y(),e),f.current&&w()}),S=()=>ii.isTopModal(y()),j=rd(e=>{p.current=e,e&&(c&&S()?w():f.current&&a9(f.current,x))}),N=C.useCallback(()=>{ii.remove(y(),x)},[x]);C.useEffect(()=>()=>{N()},[N]),C.useEffect(()=>{c?k():g&&a||N()},[c,N,g,a,k]);let T=e=>t=>{var r;null===(r=e.onKeyDown)||void 0===r||r.call(e,t),"Escape"===t.key&&229!==t.which&&S()&&!n&&(t.stopPropagation(),s&&s(t,"escapeKeyDown"))},E=e=>t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),t.target===t.currentTarget&&s&&s(t,"backdropClick")};return{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=af(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:"presentation",...r,onKeyDown:T(r),ref:h}},getBackdropProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"aria-hidden":!0,...e,onClick:E(e),open:c}},getTransitionProps:()=>({onEnter:a7(()=>{v(!1),i&&i()},null==o?void 0:o.props.onEnter),onExited:a7(()=>{v(!0),l&&l(),a&&N()},null==o?void 0:o.props.onExited)}),rootRef:h,portalRef:j,isTopModal:S,exited:m,hasTransition:g}};function io(e){return rO("MuiModal",e)}rR("MuiModal",["root","hidden","backdrop"]);let is=e=>{let{open:t,exited:n,classes:r}=e;return V({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},io,r)},ic=re("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(rn(e=>{let{theme:t}=e;return{position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:e=>{let{ownerState:t}=e;return!t.open&&t.exited},style:{visibility:"hidden"}}]}})),iu=re(a8,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),id=C.forwardRef(function(e,t){let n=ri({name:"MuiModal",props:e}),{BackdropComponent:r=iu,BackdropProps:a,classes:i,className:l,closeAfterTransition:o=!1,children:s,container:c,component:u,components:d={},componentsProps:p={},disableAutoFocus:f=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:m=!1,disablePortal:v=!1,disableRestoreFocus:g=!1,disableScrollLock:x=!1,hideBackdrop:b=!1,keepMounted:y=!1,onBackdropClick:k,onClose:S,onTransitionEnter:j,onTransitionExited:N,open:T,slotProps:E={},slots:D={},theme:M,..._}=n,A={...n,closeAfterTransition:o,disableAutoFocus:f,disableEnforceFocus:h,disableEscapeKeyDown:m,disablePortal:v,disableRestoreFocus:g,disableScrollLock:x,hideBackdrop:b,keepMounted:y},{getRootProps:L,getBackdropProps:I,getTransitionProps:P,portalRef:O,isTopModal:R,exited:F,hasTransition:B}=il({...A,rootRef:t}),z={...A,exited:F},Z=is(z),H={};if(void 0===s.props.tabIndex&&(H.tabIndex="-1"),B){let{onEnter:e,onExited:t}=P();H.onEnter=e,H.onExited=t}let V={..._,slots:{root:d.Root,backdrop:d.Backdrop,...D},slotProps:{...p,...E}},[W,G]=a0("root",{elementType:ic,externalForwardedProps:V,getSlotProps:L,additionalProps:{ref:t,as:u},ownerState:z,className:U(l,null==Z?void 0:Z.root,!z.open&&z.exited&&(null==Z?void 0:Z.hidden))}),[Y,q]=a0("backdrop",{elementType:r,externalForwardedProps:V,additionalProps:a,getSlotProps:e=>I({...e,onClick:t=>{k&&k(t),(null==e?void 0:e.onClick)&&e.onClick(t)}}),className:U(null==a?void 0:a.className,null==Z?void 0:Z.backdrop),ownerState:z}),K=rc(null==a?void 0:a.ref,q.ref);return y||T||B&&!F?(0,w.jsx)(aQ,{ref:O,container:c,disablePortal:v,children:(0,w.jsxs)(W,{...G,children:[!b&&r?(0,w.jsx)(Y,{...q,ref:K}):null,(0,w.jsx)(aJ,{disableEnforceFocus:h,disableAutoFocus:f,disableRestoreFocus:g,isEnabled:R,open:T,children:C.cloneElement(s,H)})]})}):null});function ip(e){return rO("MuiPaper",e)}rR("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);let ih=e=>{let{square:t,elevation:n,variant:r,classes:a}=e;return V({root:["root",r,!t&&"rounded","elevation"===r&&"elevation".concat(n)]},ip,a)},im=re("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t["elevation".concat(n.elevation)]]}})(rn(e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:e=>{let{ownerState:t}=e;return!t.square},style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:"1px solid ".concat((t.vars||t).palette.divider)}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}})),iv=C.forwardRef(function(e,t){var n;let r=ri({props:e,name:"MuiPaper"}),a=aU(),{className:i,component:l="div",elevation:o=1,square:s=!1,variant:c="elevation",...u}=r,d={...r,component:l,elevation:o,square:s,variant:c},p=ih(d);return(0,w.jsx)(im,{as:l,ownerState:d,className:U(p.root,i),ref:t,...u,style:{..."elevation"===c&&{"--Paper-shadow":(a.vars||a).shadows[o],...a.vars&&{"--Paper-overlay":null===(n=a.vars.overlays)||void 0===n?void 0:n[o]},...!a.vars&&"dark"===a.palette.mode&&{"--Paper-overlay":"linear-gradient(".concat(Q("#fff",nY(o)),", ").concat(Q("#fff",nY(o)),")")}},...u.style}})});function ig(e){return rO("MuiPopover",e)}function ix(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function ib(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function iy(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?"".concat(e,"px"):e).join(" ")}function iw(e){return"function"==typeof e?e():e}rR("MuiPopover",["root","paper"]);let ik=e=>{let{classes:t}=e;return V({root:["root"],paper:["paper"]},ig,t)},iS=re(id,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ij=re(iv,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),iC=C.forwardRef(function(e,t){var n;let r=ri({props:e,name:"MuiPopover"}),{action:a,anchorEl:i,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:o,anchorReference:s="anchorEl",children:c,className:u,container:d,elevation:p=8,marginThreshold:f=16,open:h,PaperProps:m={},slots:v={},slotProps:g={},transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:b=aK,transitionDuration:y="auto",TransitionProps:{onEntering:k,...S}={},disableScrollLock:j=!1,...N}=r,T=null!==(n=null==g?void 0:g.paper)&&void 0!==n?n:m,E=C.useRef(),D={...r,anchorOrigin:l,anchorReference:s,elevation:p,marginThreshold:f,externalPaperSlotProps:T,transformOrigin:x,TransitionComponent:b,transitionDuration:y,TransitionProps:S},M=ik(D),_=C.useCallback(()=>{if("anchorPosition"===s)return o;let e=iw(i),t=(e&&1===e.nodeType?e:ac(E.current).body).getBoundingClientRect();return{top:t.top+ix(t,l.vertical),left:t.left+ib(t,l.horizontal)}},[i,l.horizontal,l.vertical,o,s]),A=C.useCallback(e=>({vertical:ix(e,x.vertical),horizontal:ib(e,x.horizontal)}),[x.horizontal,x.vertical]),L=C.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=A(t);if("none"===s)return{top:null,left:null,transformOrigin:iy(n)};let r=_(),a=r.top-n.vertical,l=r.left-n.horizontal,o=a+t.height,c=l+t.width,u=aS(iw(i)),d=u.innerHeight-f,p=u.innerWidth-f;if(null!==f&&a<f){let e=a-f;a-=e,n.vertical+=e}else if(null!==f&&o>d){let e=o-d;a-=e,n.vertical+=e}if(null!==f&&l<f){let e=l-f;l-=e,n.horizontal+=e}else if(c>p){let e=c-p;l-=e,n.horizontal+=e}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(l),"px"),transformOrigin:iy(n)}},[i,s,_,A,f]),[I,P]=C.useState(h),O=C.useCallback(()=>{let e=E.current;if(!e)return;let t=L(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,P(!0)},[L]);C.useEffect(()=>(j&&window.addEventListener("scroll",O),()=>window.removeEventListener("scroll",O)),[i,j,O]),C.useEffect(()=>{h&&O()}),C.useImperativeHandle(a,()=>h?{updatePosition:()=>{O()}}:null,[h,O]),C.useEffect(()=>{if(!h)return;let e=aM(()=>{O()}),t=aS(i);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[i,h,O]);let R=y;"auto"!==y||b.muiSupportAuto||(R=void 0);let F=d||(i?ac(iw(i)).body:void 0),B={slots:v,slotProps:{...g,paper:T}},[z,Z]=a0("paper",{elementType:ij,externalForwardedProps:B,additionalProps:{elevation:p,className:U(M.paper,null==T?void 0:T.className),style:I?T.style:{...T.style,opacity:0}},ownerState:D}),[H,{slotProps:V,...W}]=a0("root",{elementType:iS,externalForwardedProps:B,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:F,open:h},ownerState:D,className:U(M.root,u)}),G=rc(E,Z.ref);return(0,w.jsx)(H,{...W,...!aD(H)&&{slotProps:V,disableScrollLock:j},...N,ref:t,children:(0,w.jsx)(b,{appear:!0,in:h,onEntering:(e,t)=>{k&&k(e,t),O()},onExited:()=>{P(!1)},timeout:R,...S,children:(0,w.jsx)(z,{...Z,ref:G,children:c})})})});function iN(e){return rO("MuiMenu",e)}rR("MuiMenu",["root","paper","list"]);let iT={vertical:"top",horizontal:"right"},iE={vertical:"top",horizontal:"left"},iD=e=>{let{classes:t}=e;return V({root:["root"],paper:["paper"],list:["list"]},iN,t)},iM=re(iC,{shouldForwardProp:e=>eo(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),i_=re(ij,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),iA=re(aE,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),iL=C.forwardRef(function(e,t){var n,r;let a=ri({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:l,className:o,disableAutoFocusItem:s=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m,...v}={},variant:g="selectedMenu",slots:x={},slotProps:b={},...y}=a,k=ad(),S={...a,autoFocus:i,disableAutoFocusItem:s,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:v,variant:g},j=iD(S),N=i&&!s&&d,T=C.useRef(null),E=-1;C.Children.map(l,(e,t)=>{C.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected?E=t:-1!==E||(E=t)))});let D=null!==(n=x.paper)&&void 0!==n?n:i_,M=null!==(r=b.paper)&&void 0!==r?r:p,_=ag({elementType:x.root,externalSlotProps:b.root,ownerState:S,className:[j.root,o]}),A=ag({elementType:D,externalSlotProps:M,ownerState:S,className:j.paper});return(0,w.jsx)(iM,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?iT:iE,slots:{paper:D,root:x.root},slotProps:{root:_,paper:A},open:d,ref:t,transitionDuration:h,TransitionProps:{onEntering:(e,t)=>{T.current&&T.current.adjustStyleForScrollbar(e,{direction:k?"rtl":"ltr"}),m&&m(e,t)},...v},ownerState:S,...y,classes:f,children:(0,w.jsx)(iA,{onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},actions:T,autoFocus:i&&(-1===E||s),autoFocusItem:N,variant:g,...c,className:U(j.list,c.className),children:l})})});function iI(e){return rO("MuiNativeSelect",e)}let iP=rR("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),iO=e=>{let{classes:t,variant:n,disabled:r,multiple:a,open:i,error:l}=e;return V({select:["select",n,r&&"disabled",a&&"multiple",l&&"error"],icon:["icon","icon".concat(tw(n)),i&&"iconOpen",r&&"disabled"]},iI,t)},iR=re("select")(e=>{let{theme:t}=e;return{MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},["&.".concat(iP.disabled)]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:e=>{let{ownerState:t}=e;return"filled"!==t.variant&&"outlined"!==t.variant},style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]}}),iF=re(iR,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:eo,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{["&.".concat(iP.multiple)]:t.multiple}]}})({}),iB=re("svg")(e=>{let{theme:t}=e;return{position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,["&.".concat(iP.disabled)]:{color:(t.vars||t).palette.action.disabled},variants:[{props:e=>{let{ownerState:t}=e;return t.open},style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]}}),iz=re(iB,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t["icon".concat(tw(n.variant))],n.open&&t.iconOpen]}})({}),iZ=C.forwardRef(function(e,t){let{className:n,disabled:r,error:a,IconComponent:i,inputRef:l,variant:o="standard",...s}=e,c={...e,disabled:r,variant:o,error:a},u=iO(c);return(0,w.jsxs)(C.Fragment,{children:[(0,w.jsx)(iF,{ownerState:c,className:U(u.select,n),disabled:r,ref:l||t,...s}),e.multiple?null:(0,w.jsx)(iz,{as:i,ownerState:c,className:u.icon})]})});var iH=function({controlled:e,default:t,name:n,state:r="value"}){let{current:a}=C.useRef(void 0!==e),[i,l]=C.useState(t),o=C.useCallback(e=>{a||l(e)},[]);return[a?e:i,o]};function iU(e){return rO("MuiSelect",e)}let iV=rR("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),iW=re(iR,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{["&.".concat(iV.select)]:t.select},{["&.".concat(iV.select)]:t[n.variant]},{["&.".concat(iV.error)]:t.error},{["&.".concat(iV.multiple)]:t.multiple}]}})({["&.".concat(iV.select)]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),iG=re(iB,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t["icon".concat(tw(n.variant))],n.open&&t.iconOpen]}})({}),iY=re("input",{shouldForwardProp:e=>el(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function iq(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}let iK=e=>{let{classes:t,variant:n,disabled:r,multiple:a,open:i,error:l}=e;return V({select:["select",n,r&&"disabled",a&&"multiple",l&&"error"],icon:["icon","icon".concat(tw(n)),i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},iU,t)},i$=C.forwardRef(function(e,t){var n,r;let a,i,l;let{"aria-describedby":o,"aria-label":s,autoFocus:c,autoWidth:u,children:d,className:p,defaultOpen:h,defaultValue:m,disabled:v,displayEmpty:g,error:x=!1,IconComponent:b,inputRef:y,labelId:k,MenuProps:S={},multiple:j,name:N,onBlur:T,onChange:E,onClose:D,onFocus:M,onOpen:_,open:A,readOnly:L,renderValue:I,SelectDisplayProps:P={},tabIndex:O,type:R,value:F,variant:B="standard",...z}=e,[Z,H]=iH({controlled:F,default:m,name:"Select"}),[V,G]=iH({controlled:A,default:h,name:"Select"}),Y=C.useRef(null),q=C.useRef(null),[K,$]=C.useState(null),{current:X}=C.useRef(null!=A),[J,Q]=C.useState(),ee=rc(t,y),et=C.useCallback(e=>{q.current=e,e&&$(e)},[]),en=null==K?void 0:K.parentNode;C.useImperativeHandle(ee,()=>({focus:()=>{q.current.focus()},node:Y.current,value:Z}),[Z]),C.useEffect(()=>{h&&V&&K&&!X&&(Q(u?null:en.clientWidth),q.current.focus())},[K,u]),C.useEffect(()=>{c&&q.current.focus()},[c]),C.useEffect(()=>{if(!k)return;let e=ac(q.current).getElementById(k);if(e){let t=()=>{getSelection().isCollapsed&&q.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[k]);let er=(e,t)=>{e?_&&_(t):D&&D(t),X||(Q(u?null:en.clientWidth),G(e))},ea=C.Children.toArray(d),ei=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(j){n=Array.isArray(Z)?Z.slice():[];let t=Z.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),Z!==n&&(H(n),E)){let r=t.nativeEvent||t,a=new r.constructor(r.type,r);Object.defineProperty(a,"target",{writable:!0,value:{value:n,name:N}}),E(a,e)}j||er(!1,t)}},el=null!==K&&V;delete z["aria-invalid"];let eo=[],es=!1;(r9({value:Z})||g)&&(I?a=I(Z):es=!0);let ec=ea.map(e=>{let t;if(!C.isValidElement(e))return null;if(j){if(!Array.isArray(Z))throw Error(W(2));(t=Z.some(t=>iq(t,e.props.value)))&&es&&eo.push(e.props.children)}else(t=iq(Z,e.props.value))&&es&&(i=e.props.children);return C.cloneElement(e,{"aria-selected":t?"true":"false",onClick:ei(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});es&&(a=j?0===eo.length?null:eo.reduce((e,t,n)=>(e.push(t),n<eo.length-1&&e.push(", "),e),[]):i);let eu=J;!u&&X&&K&&(eu=en.clientWidth),l=void 0!==O?O:v?null:0;let ed=P.id||(N?"mui-component-select-".concat(N):void 0),ep={...e,variant:B,value:Z,open:el,error:x},ef=iK(ep),eh={...S.PaperProps,...null===(n=S.slotProps)||void 0===n?void 0:n.paper},em=function(e){if(void 0!==as){let e=as();return(void 0)??e}return function(e){let[t,n]=C.useState(e),r=e||t;return C.useEffect(()=>{null==t&&(ao+=1,n(`mui-${ao}`))},[t]),r}(void 0)}();return(0,w.jsxs)(C.Fragment,{children:[(0,w.jsx)(iW,{as:"div",ref:et,tabIndex:l,role:"combobox","aria-controls":em,"aria-disabled":v?"true":void 0,"aria-expanded":el?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[k,ed].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{!L&&[" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),er(!0,e))},onMouseDown:v||L?null:e=>{0===e.button&&(e.preventDefault(),q.current.focus(),er(!0,e))},onBlur:e=>{!el&&T&&(Object.defineProperty(e,"target",{writable:!0,value:{value:Z,name:N}}),T(e))},onFocus:M,...P,ownerState:ep,className:U(P.className,ef.select,p),id:ed,children:null!=(r=a)&&("string"!=typeof r||r.trim())?a:f||(f=(0,w.jsx)("span",{className:"notranslate",children:"​"}))}),(0,w.jsx)(iY,{"aria-invalid":x,value:Array.isArray(Z)?Z.join(","):Z,name:N,ref:Y,"aria-hidden":!0,onChange:e=>{let t=ea.find(t=>t.props.value===e.target.value);void 0!==t&&(H(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:v,className:ef.nativeInput,autoFocus:c,...z,ownerState:ep}),(0,w.jsx)(iG,{as:b,className:ef.icon,ownerState:ep}),(0,w.jsx)(iL,{id:"menu-".concat(N||""),anchorEl:en,open:el,onClose:e=>{er(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...S,MenuListProps:{"aria-labelledby":k,role:"listbox","aria-multiselectable":j?"true":void 0,disableListWrap:!0,id:em,...S.MenuListProps},slotProps:{...S.slotProps,paper:{...eh,style:{minWidth:eu,...null!=eh?eh.style:null}}},children:ec})]})});function iX(e){let{props:t,states:n,muiFormControl:r}=e;return n.reduce((e,n)=>(e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e),{})}function iJ(){return C.useContext(at)}function iQ(e){return rO("MuiSvgIcon",e)}rR("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);let i0=e=>{let{color:t,fontSize:n,classes:r}=e;return V({root:["root","inherit"!==t&&"color".concat(tw(t)),"fontSize".concat(tw(n))]},iQ,r)},i1=re("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t["color".concat(tw(n.color))],t["fontSize".concat(tw(n.fontSize))]]}})(rn(e=>{var t,n,r,a,i,l,o,s,c,u,d,p,f,h,m,v,g,x;let{theme:b}=e;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:null===(a=b.transitions)||void 0===a?void 0:null===(r=a.create)||void 0===r?void 0:r.call(a,"fill",{duration:null===(n=(null!==(m=b.vars)&&void 0!==m?m:b).transitions)||void 0===n?void 0:null===(t=n.duration)||void 0===t?void 0:t.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:(null===(l=b.typography)||void 0===l?void 0:null===(i=l.pxToRem)||void 0===i?void 0:i.call(l,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:(null===(s=b.typography)||void 0===s?void 0:null===(o=s.pxToRem)||void 0===o?void 0:o.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:(null===(u=b.typography)||void 0===u?void 0:null===(c=u.pxToRem)||void 0===c?void 0:c.call(u,35))||"2.1875rem"}},...Object.entries((null!==(v=b.vars)&&void 0!==v?v:b).palette).filter(e=>{let[,t]=e;return t&&t.main}).map(e=>{var t,n,r;let[a]=e;return{props:{color:a},style:{color:null===(n=(null!==(r=b.vars)&&void 0!==r?r:b).palette)||void 0===n?void 0:null===(t=n[a])||void 0===t?void 0:t.main}}}),{props:{color:"action"},style:{color:null===(p=(null!==(g=b.vars)&&void 0!==g?g:b).palette)||void 0===p?void 0:null===(d=p.action)||void 0===d?void 0:d.active}},{props:{color:"disabled"},style:{color:null===(h=(null!==(x=b.vars)&&void 0!==x?x:b).palette)||void 0===h?void 0:null===(f=h.action)||void 0===f?void 0:f.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),i2=C.forwardRef(function(e,t){let n=ri({props:e,name:"MuiSvgIcon"}),{children:r,className:a,color:i="inherit",component:l="svg",fontSize:o="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24",...p}=n,f=C.isValidElement(r)&&"svg"===r.type,h={...n,color:i,component:l,fontSize:o,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f},m={};c||(m.viewBox=d);let v=i0(h);return(0,w.jsxs)(i1,{as:l,className:U(v.root,a),focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t,...m,...p,...f&&r.props,ownerState:h,children:[f?r.props.children:r,u?(0,w.jsx)("title",{children:u}):null]})});function i3(e,t){function n(n,r){return(0,w.jsx)(i2,{"data-testid":"".concat(t,"Icon"),ref:r,...n,children:e})}return n.muiName=i2.muiName,C.memo(C.forwardRef(n))}i2&&(i2.muiName="SvgIcon");var i6=i3((0,w.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function i5(e){return parseInt(e,10)||0}let i4={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},i8=C.forwardRef(function(e,t){let{onChange:n,maxRows:r,minRows:a=1,style:i,value:l,...o}=e,{current:s}=C.useRef(null!=l),c=C.useRef(null),u=rc(t,c),d=C.useRef(null),p=C.useRef(null),f=C.useCallback(()=>{let t=c.current,n=aS(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};let i=p.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");let l=n.boxSizing,o=i5(n.paddingBottom)+i5(n.paddingTop),s=i5(n.borderBottomWidth)+i5(n.borderTopWidth),u=i.scrollHeight;i.value="x";let d=i.scrollHeight,f=u;return a&&(f=Math.max(Number(a)*d,f)),r&&(f=Math.min(Number(r)*d,f)),{outerHeightStyle:(f=Math.max(f,d))+("border-box"===l?o+s:0),overflowing:1>=Math.abs(f-u)}},[r,a,e.placeholder]),h=C.useCallback(()=>{let e=f();if(null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflowing)return;let t=e.outerHeightStyle,n=c.current;d.current!==t&&(d.current=t,n.style.height="".concat(t,"px")),n.style.overflow=e.overflowing?"hidden":""},[f]);return ru(()=>{let e,t;let n=()=>{h()},r=aM(n),a=c.current,i=aS(a);return i.addEventListener("resize",r),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(n)).observe(a),()=>{r.clear(),cancelAnimationFrame(e),i.removeEventListener("resize",r),t&&t.disconnect()}},[f,h]),ru(()=>{h()}),(0,w.jsxs)(C.Fragment,{children:[(0,w.jsx)("textarea",{value:l,onChange:e=>{s||h(),n&&n(e)},ref:u,rows:a,style:i,...o}),(0,w.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:{...i4,...i,paddingTop:0,paddingBottom:0}})]})});function i7(e){let{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?n:e):t;return(0,w.jsx)(rM,{styles:r})}var i9=function({styles:e,themeId:t,defaultTheme:n={}}){let r=aH(n),a="function"==typeof e?e(t&&r[t]||r):e;return(0,w.jsx)(i7,{styles:a})},le=function(e){return(0,w.jsx)(i9,{...e,defaultTheme:n7,themeId:n9})};function lt(e){return rO("MuiInputBase",e)}let ln=rR("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),lr=(e,t)=>{let{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat(tw(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},la=(e,t)=>{let{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},li=e=>{let{classes:t,color:n,disabled:r,error:a,endAdornment:i,focused:l,formControl:o,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return V({root:["root","color".concat(tw(n)),r&&"disabled",a&&"error",s&&"fullWidth",l&&"focused",o&&"formControl",p&&"medium"!==p&&"size".concat(tw(p)),u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},lt,t)},ll=re("div",{name:"MuiInputBase",slot:"Root",overridesResolver:lr})(rn(e=>{let{theme:t}=e;return{...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&.".concat(ln.disabled)]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:e=>{let{ownerState:t}=e;return t.multiline},style:{padding:"4px 0 5px"}},{props:e=>{let{ownerState:t,size:n}=e;return t.multiline&&"small"===n},style:{paddingTop:1}},{props:e=>{let{ownerState:t}=e;return t.fullWidth},style:{width:"100%"}}]}})),lo=re("input",{name:"MuiInputBase",slot:"Input",overridesResolver:la})(rn(e=>{let{theme:t}=e,n="light"===t.palette.mode,r={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},a={opacity:"0 !important"},i=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},["label[data-shrink=false] + .".concat(ln.formControl," &")]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},["&.".concat(ln.disabled)]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:e=>{let{ownerState:t}=e;return!t.disableInjectingGlobalStyles},style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:e=>{let{ownerState:t}=e;return t.multiline},style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),ls=(a={"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}},function(e){return(0,w.jsx)(le,{styles:"function"==typeof a?t=>a({theme:t,...e}):a})}),lc=C.forwardRef(function(e,t){var n;let r=ri({props:e,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:l,className:o,color:s,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:m,error:v,fullWidth:g=!1,id:x,inputComponent:b="input",inputProps:y={},inputRef:k,margin:S,maxRows:j,minRows:N,multiline:T=!1,name:E,onBlur:D,onChange:M,onClick:_,onFocus:A,onKeyDown:L,onKeyUp:I,placeholder:P,readOnly:O,renderSuffix:R,rows:F,size:B,slotProps:z={},slots:Z={},startAdornment:H,type:V="text",value:G,...Y}=r,q=null!=y.value?y.value:G,{current:K}=C.useRef(null!=q),$=C.useRef(),X=C.useCallback(e=>{},[]),J=rc($,k,y.ref,X),[Q,ee]=C.useState(!1),et=iJ(),en=iX({props:r,muiFormControl:et,states:["color","disabled","error","hiddenLabel","size","required","filled"]});en.focused=et?et.focused:Q,C.useEffect(()=>{!et&&p&&Q&&(ee(!1),D&&D())},[et,p,Q,D]);let er=et&&et.onFilled,ea=et&&et.onEmpty,ei=C.useCallback(e=>{r9(e)?er&&er():ea&&ea()},[er,ea]);ru(()=>{K&&ei({value:q})},[q,ei,K]),C.useEffect(()=>{ei($.current)},[]);let el=b,eo=y;T&&"input"===el&&(eo=F?{type:void 0,minRows:F,maxRows:F,...eo}:{type:void 0,maxRows:j,minRows:N,...eo},el=i8),C.useEffect(()=>{et&&et.setAdornedStart(!!H)},[et,H]);let es={...r,color:en.color||"primary",disabled:en.disabled,endAdornment:m,error:en.error,focused:en.focused,formControl:et,fullWidth:g,hiddenLabel:en.hiddenLabel,multiline:T,size:en.size,startAdornment:H,type:V},ec=li(es),eu=Z.root||c.Root||ll,ed=z.root||u.root||{},ep=Z.input||c.Input||lo;return eo={...eo,...null!==(n=z.input)&&void 0!==n?n:u.input},(0,w.jsxs)(C.Fragment,{children:[!f&&"function"==typeof ls&&(h||(h=(0,w.jsx)(ls,{}))),(0,w.jsxs)(eu,{...ed,ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),_&&_(e)},...Y,...!aD(eu)&&{ownerState:{...es,...ed.ownerState}},className:U(ec.root,ed.className,o,O&&"MuiInputBase-readOnly"),children:[H,(0,w.jsx)(at.Provider,{value:null,children:(0,w.jsx)(ep,{"aria-invalid":en.error,"aria-describedby":a,autoComplete:i,autoFocus:l,defaultValue:d,disabled:en.disabled,id:x,onAnimationStart:e=>{ei("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:P,readOnly:O,required:en.required,rows:F,value:q,onKeyDown:L,onKeyUp:I,type:V,...eo,...!aD(ep)&&{as:el,ownerState:{...es,...eo.ownerState}},ref:J,className:U(ec.input,eo.className,O&&"MuiInputBase-readOnly"),onBlur:e=>{D&&D(e),y.onBlur&&y.onBlur(e),et&&et.onBlur?et.onBlur(e):ee(!1)},onChange:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!K){let t=e.target||$.current;if(null==t)throw Error(W(1));ei({value:t.value})}y.onChange&&y.onChange(e,...n),M&&M(e,...n)},onFocus:e=>{A&&A(e),y.onFocus&&y.onFocus(e),et&&et.onFocus?et.onFocus(e):ee(!0)}})}),m,R?R({...en,startAdornment:H}):null]})]})});function lu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t=>{let[,n]=t;return n&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if("string"!=typeof e.main)return!1;for(let n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(n,e)}}function ld(e){return rO("MuiInput",e)}let lp={...ln,...rR("MuiInput",["root","underline","input"])},lf=e=>{let{classes:t,disableUnderline:n}=e,r=V({root:["root",!n&&"underline"],input:["input"]},ld,t);return{...t,...r}},lh=re(ll,{shouldForwardProp:e=>eo(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...lr(e,t),!n.disableUnderline&&t.underline]}})(rn(e=>{let{theme:t}=e,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n="rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")")),{position:"relative",variants:[{props:e=>{let{ownerState:t}=e;return t.formControl},style:{"label + &":{marginTop:16}}},{props:e=>{let{ownerState:t}=e;return!t.disableUnderline},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(lp.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(lp.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(lp.disabled,", .").concat(lp.error,"):before")]:{borderBottom:"2px solid ".concat((t.vars||t).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(n)}},["&.".concat(lp.disabled,":before")]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(lu()).map(e=>{let[n]=e;return{props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:"2px solid ".concat((t.vars||t).palette[n].main)}}}})]}})),lm=re(lo,{name:"MuiInput",slot:"Input",overridesResolver:la})({}),lv=C.forwardRef(function(e,t){var n,r,a,i;let l=ri({props:e,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text",...v}=l,g=lf(l),x={root:{ownerState:{disableUnderline:o}}},b=(null!=f?f:c)?th(null!=f?f:c,x):x,y=null!==(r=null!==(n=h.root)&&void 0!==n?n:s.Root)&&void 0!==r?r:lh,k=null!==(i=null!==(a=h.input)&&void 0!==a?a:s.Input)&&void 0!==i?i:lm;return(0,w.jsx)(lc,{slots:{root:y,input:k},slotProps:b,fullWidth:u,inputComponent:d,multiline:p,ref:t,type:m,...v,classes:g})});function lg(e){return rO("MuiFilledInput",e)}lv&&(lv.muiName="Input");let lx={...ln,...rR("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},lb=e=>{let{classes:t,disableUnderline:n,startAdornment:r,endAdornment:a,size:i,hiddenLabel:l,multiline:o}=e,s=V({root:["root",!n&&"underline",r&&"adornedStart",a&&"adornedEnd","small"===i&&"size".concat(tw(i)),l&&"hiddenLabel",o&&"multiline"],input:["input"]},lg,t);return{...t,...s}},ly=re(ll,{shouldForwardProp:e=>eo(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...lr(e,t),!n.disableUnderline&&t.underline]}})(rn(e=>{let{theme:t}=e,n="light"===t.palette.mode,r=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r}},["&.".concat(lx.focused)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r},["&.".concat(lx.disabled)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"},variants:[{props:e=>{let{ownerState:t}=e;return!t.disableUnderline},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(lx.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(lx.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")"):n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)"),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(lx.disabled,", .").concat(lx.error,"):before")]:{borderBottom:"1px solid ".concat((t.vars||t).palette.text.primary)},["&.".concat(lx.disabled,":before")]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(lu()).map(e=>{var n;let[r]=e;return{props:{disableUnderline:!1,color:r},style:{"&::after":{borderBottom:"2px solid ".concat(null===(n=(t.vars||t).palette[r])||void 0===n?void 0:n.main)}}}}),{props:e=>{let{ownerState:t}=e;return t.startAdornment},style:{paddingLeft:12}},{props:e=>{let{ownerState:t}=e;return t.endAdornment},style:{paddingRight:12}},{props:e=>{let{ownerState:t}=e;return t.multiline},style:{padding:"25px 12px 8px"}},{props:e=>{let{ownerState:t,size:n}=e;return t.multiline&&"small"===n},style:{paddingTop:21,paddingBottom:4}},{props:e=>{let{ownerState:t}=e;return t.multiline&&t.hiddenLabel},style:{paddingTop:16,paddingBottom:17}},{props:e=>{let{ownerState:t}=e;return t.multiline&&t.hiddenLabel&&"small"===t.size},style:{paddingTop:8,paddingBottom:9}}]}})),lw=re(lo,{name:"MuiFilledInput",slot:"Input",overridesResolver:la})(rn(e=>{let{theme:t}=e;return{paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:e=>{let{ownerState:t}=e;return t.hiddenLabel},style:{paddingTop:16,paddingBottom:17}},{props:e=>{let{ownerState:t}=e;return t.startAdornment},style:{paddingLeft:0}},{props:e=>{let{ownerState:t}=e;return t.endAdornment},style:{paddingRight:0}},{props:e=>{let{ownerState:t}=e;return t.hiddenLabel&&"small"===t.size},style:{paddingTop:8,paddingBottom:9}},{props:e=>{let{ownerState:t}=e;return t.multiline},style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}})),lk=C.forwardRef(function(e,t){var n,r,a,i;let l=ri({props:e,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:c,fullWidth:u=!1,hiddenLabel:d,inputComponent:p="input",multiline:f=!1,slotProps:h,slots:m={},type:v="text",...g}=l,x={...l,disableUnderline:o,fullWidth:u,inputComponent:p,multiline:f,type:v},b=lb(l),y={root:{ownerState:x},input:{ownerState:x}},k=(null!=h?h:c)?th(y,null!=h?h:c):y,S=null!==(r=null!==(n=m.root)&&void 0!==n?n:s.Root)&&void 0!==r?r:ly,j=null!==(i=null!==(a=m.input)&&void 0!==a?a:s.Input)&&void 0!==i?i:lw;return(0,w.jsx)(lc,{slots:{root:S,input:j},componentsProps:k,fullWidth:u,inputComponent:p,multiline:f,ref:t,type:v,...g,classes:b})});lk&&(lk.muiName="Input");let lS=re("fieldset",{shouldForwardProp:eo})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),lj=re("legend",{shouldForwardProp:eo})(rn(e=>{let{theme:t}=e;return{float:"unset",width:"auto",overflow:"hidden",variants:[{props:e=>{let{ownerState:t}=e;return!t.withLabel},style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:e=>{let{ownerState:t}=e;return t.withLabel},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:e=>{let{ownerState:t}=e;return t.withLabel&&t.notched},style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]}}));function lC(e){return rO("MuiOutlinedInput",e)}let lN={...ln,...rR("MuiOutlinedInput",["root","notchedOutline","input"])},lT=e=>{let{classes:t}=e,n=V({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},lC,t);return{...t,...n}},lE=re(ll,{shouldForwardProp:e=>eo(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:lr})(rn(e=>{let{theme:t}=e,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,["&:hover .".concat(lN.notchedOutline)]:{borderColor:(t.vars||t).palette.text.primary},["&.".concat(lN.focused," .").concat(lN.notchedOutline)]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(lu()).map(e=>{let[n]=e;return{props:{color:n},style:{["&.".concat(lN.focused," .").concat(lN.notchedOutline)]:{borderColor:(t.vars||t).palette[n].main}}}}),{props:{},style:{"@media (hover: none)":{["&:hover .".concat(lN.notchedOutline)]:{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}},["&.".concat(lN.error," .").concat(lN.notchedOutline)]:{borderColor:(t.vars||t).palette.error.main},["&.".concat(lN.disabled," .").concat(lN.notchedOutline)]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:e=>{let{ownerState:t}=e;return t.startAdornment},style:{paddingLeft:14}},{props:e=>{let{ownerState:t}=e;return t.endAdornment},style:{paddingRight:14}},{props:e=>{let{ownerState:t}=e;return t.multiline},style:{padding:"16.5px 14px"}},{props:e=>{let{ownerState:t,size:n}=e;return t.multiline&&"small"===n},style:{padding:"8.5px 14px"}}]}})),lD=re(function(e){let{children:t,classes:n,className:r,label:a,notched:i,...l}=e,o=null!=a&&""!==a,s={...e,notched:i,withLabel:o};return(0,w.jsx)(lS,{"aria-hidden":!0,className:r,ownerState:s,...l,children:(0,w.jsx)(lj,{ownerState:s,children:o?(0,w.jsx)("span",{children:a}):m||(m=(0,w.jsx)("span",{className:"notranslate",children:"​"}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(rn(e=>{let{theme:t}=e,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}})),lM=re(lo,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:la})(rn(e=>{let{theme:t}=e;return{padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:e=>{let{ownerState:t}=e;return t.multiline},style:{padding:0}},{props:e=>{let{ownerState:t}=e;return t.startAdornment},style:{paddingLeft:0}},{props:e=>{let{ownerState:t}=e;return t.endAdornment},style:{paddingRight:0}}]}})),l_=C.forwardRef(function(e,t){var n,r,a,i,l;let o=ri({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text",...v}=o,g=lT(o),x=iJ(),b=iX({props:o,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y={...o,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:x,fullWidth:c,hiddenLabel:b.hiddenLabel,multiline:p,size:b.size,type:m},k=null!==(a=null!==(r=h.root)&&void 0!==r?r:s.Root)&&void 0!==a?a:lE,S=null!==(l=null!==(i=h.input)&&void 0!==i?i:s.Input)&&void 0!==l?l:lM;return(0,w.jsx)(lc,{slots:{root:k,input:S},renderSuffix:e=>(0,w.jsx)(lD,{ownerState:y,className:g.notchedOutline,label:null!=d&&""!==d&&b.required?n||(n=(0,w.jsxs)(C.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:!!(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:p,ref:t,type:m,...v,classes:{...g,notchedOutline:null}})});l_&&(l_.muiName="Input");let lA=e=>{let{classes:t}=e;return t},lL={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>eo(e)&&"variant"!==e,slot:"Root"},lI=re(lv,lL)(""),lP=re(l_,lL)(""),lO=re(lk,lL)(""),lR=C.forwardRef(function(e,t){let n=function(e){let{props:t,name:n}=e;return function({props:e,name:t,defaultTheme:n,themeId:r}){let a=aH(n);return r&&(a=a[r]||a),function(e){let{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?rr(t.components[n].defaultProps,r):r}({theme:a,name:t,props:e})}({props:t,name:n,defaultTheme:n7,themeId:n9})}({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:a,classes:i={},className:l,defaultOpen:o=!1,displayEmpty:s=!1,IconComponent:c=i6,id:u,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:v=!1,native:g=!1,onClose:x,onOpen:b,open:y,renderValue:k,SelectDisplayProps:S,variant:j="outlined",...N}=n,T=g?iZ:i$,E=iX({props:n,muiFormControl:iJ(),states:["variant","error"]}),D=E.variant||j,M={...n,variant:D,classes:i},_=lA(M),{root:A,...L}=_,I=d||({standard:(0,w.jsx)(lI,{ownerState:M}),outlined:(0,w.jsx)(lP,{label:f,ownerState:M}),filled:(0,w.jsx)(lO,{ownerState:M})})[D],P=rc(t,al(I));return(0,w.jsx)(C.Fragment,{children:C.cloneElement(I,{inputComponent:T,inputProps:{children:a,error:E.error,IconComponent:c,variant:D,type:void 0,multiple:v,...g?{id:u}:{autoWidth:r,defaultOpen:o,displayEmpty:s,labelId:h,MenuProps:m,onClose:x,onOpen:b,open:y,renderValue:k,SelectDisplayProps:{id:u,...S}},...p,classes:p?th(L,p.classes):L,...d?d.props.inputProps:{}},...(v&&g||s)&&"outlined"===D?{notched:!0}:{},ref:P,className:U(I.props.className,l,_.root),...!d&&{variant:D},...N})})});lR.muiName="Select";var lF=i3((0,w.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");let lB=[{id:1,label:"IT",url:"/it"},{id:2,label:"EN",url:"/en"},{id:3,label:"中文",url:"http://milanomalpensa-airport.cn/"}];var lz=e=>{let{hostPageData:t}=e,{i18n:n}=(0,D.$G)(),{query:r}=(0,O.useRouter)(),a=n.language,[i,l]=(0,C.useState)();(0,C.useEffect)(()=>{lB.map(e=>{e.label.toLowerCase()==a&&l(e.label)})},[a]);let o=()=>window.location.href.toLowerCase().replace("/"+a.toLowerCase()+"/","/"+a+"/"),s=e=>{let n=e.replaceAll("/","");if("en"!==n&&"it"!==n)window.location.href=e;else{let e=t?null==t?void 0:t.lblUrlPath[n]:o();t&&Object.keys(r).filter(e=>"lang"!==e&&"paths"!==e).length&&(e+="?"+Object.keys(r).filter(e=>"lang"!==e&&"paths"!==e).map(e=>e+"="+r[e]).join("&")),window.location.href=e}};return i&&(0,w.jsx)("div",{children:(0,w.jsx)(ai,{sx:{m:0,minWidth:70},children:(0,w.jsx)(lR,{inputProps:{"aria-label":"Seleziona lingua"},className:"language-select forcehidden",value:"/"+i.toLowerCase(),onChange:e=>{s(e.target.value)},displayEmpty:!0,IconComponent:lF,children:lB.map(e=>(0,w.jsx)(r8,{className:e.label===i?"!hidden":"hover:text-white hover:!bg-lightblue language-item",value:e.url,children:e.label},e.id))})})})},lZ=n(2238);let lH=e=>{let{onClick:t}=e;return(0,w.jsx)("div",{onClick:t,className:"absolute top-[-6px] right-[-6px] bg-black text-white rounded-full cursor-pointer",children:(0,w.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:(0,w.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})};var lU=e=>{let{generalBgColor:t="white",inputBgColor:n="white",type:r,prefix:a,postfix:i,className:l="",placeholder:o,onPostFixClick:s,onPreFixClick:c,onChange:u,value:d,fullWidth:p=!1,label:f,...h}=e,m=(0,C.useId)();return(0,w.jsxs)("div",{className:"".concat(l," customTextInputWrapper w-full flex justify-between items-center p-3 rounded-2xl bg-[").concat(t,"]"),children:[f?(0,w.jsx)("label",{htmlFor:m,className:"sr-only",children:f}):null,a?(0,w.jsx)("div",{className:"iconPrefixer ml-2 mr-4",onClick:c,children:a}):null,(0,w.jsx)("input",{id:m,value:d,onChange:u,style:{outline:"none",backgroundColor:n},className:"".concat(l," w-full ").concat(i?"":"mr-2"),type:r,placeholder:o||"",...h}),(0,w.jsx)("div",{className:"iconPostfixer",children:i?(0,w.jsx)("div",{className:"iconPostfixer cursor-pointer",onClick:s,children:i}):null})]})},lV=e=>{let{centered:t=!1,text:n,size:r="md",rounded:a="rounded-full",bgColor:i="bg-lightblack",textColor:l="text-white",onClick:o,type:s,className:c="",disabled:u=!1}=e;return(0,w.jsx)("button",{type:s,className:"".concat(c," py-4 px-8 flex ").concat(t?"justify-center items-center":"","  desk:hover:text-white desk:hover:bg-lightblue transition duration-300 uppercase font-bold ").concat(l," ").concat(i," ").concat(a),onClick:o,style:{WebkitTapHighlightColor:"transparent"},disabled:u,children:(0,w.jsx)("div",{className:"whitespace-nowrap",children:n})})},lW=n(4055),lG=()=>{let e=(0,B.aC)(),[t,n]=(0,C.useState)(!1),[r,a]=(0,P.FV)(L.hD),[i,l]=(0,C.useState)(!1),[o,s]=(0,C.useState)(!1),[c,u]=(0,C.useState)(!1),[d,p]=(0,C.useState)(!1),[f,h]=(0,C.useState)(""),[m,v]=(0,C.useState)(),{i18n:g}=(0,D.$G)(),x=g.language,[b,y]=(0,C.useState)({username:"",password:""}),k=(e,t)=>{y({...b,[t]:e.target.value}),n(!1),"password"===t&&(e.target.value.length>0?u(!0):u(!1)),"username"===t&&(/\S+@\S+\.\S+/.test(e.target.value)?(h(""),p(!0)):(h(T("login.wrongEmail")),p(!1)))},j=()=>{a(!1)},N=async t=>{if(t.preventDefault(),s(!0),/\S+@\S+\.\S+/.test(null==b?void 0:b.username)?n(!1):n(!0),b)try{let t=await (0,F.x)(b);(null==t?void 0:t.token)&&(null==e||e.updateUser(t),n(!1),j())}catch(e){n(!0),console.log(e)}s(!1)},{t:T}=(0,D.$G)();return(0,C.useEffect)(()=>{var e;let t=null===(e=document)||void 0===e?void 0:e.querySelector(".click-text");document.addEventListener("mousedown",e=>{(null==t?void 0:t.contains(e.target))||"Enter"===e.key?v(!1):v(!0)})},[]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"flex justify-center items-center fixed inset-0 z-[99]",children:(0,w.jsxs)("div",{className:"relative mob:w-[415px] w-[80%] h-max bg-[#E6E6E6] rounded-2xl",children:[(0,w.jsx)("button",{className:"bg-black p-0 rounded-3xl float-right relative left-1",onClick:j,children:(0,w.jsx)(lH,{onClick:j})}),(0,w.jsx)("h3",{className:"font-semibold text-3xl font-secondary mt-8 px-8 uppercase",children:T("login.title")}),(0,w.jsx)("div",{className:"border-0 relative flex flex-col w-full outline-none focus:outline-none px-8 flex-auto",children:(0,w.jsx)("form",{children:(0,w.jsxs)("div",{className:"mt-8",children:[(0,w.jsx)("div",{className:"".concat(t||!d&&(null==b?void 0:b.username)!=""&&m?"border-2 border-solid border-red rounded-2xl":""),children:(0,w.jsx)(lU,{className:"click-text text-sm",fullWidth:!0,placeholder:T("login.placeholderEmail"),value:null==b?void 0:b.username,onChange:e=>k(e,"username"),label:T("login.placeholderEmail")})}),(0,w.jsx)("div",{className:"".concat(t?"border-2 border-solid border-red rounded-2xl":""," mt-4"),children:(0,w.jsx)(lU,{className:"text-sm",fullWidth:!0,placeholder:T("login.placeholderPassword"),value:null==b?void 0:b.password,onChange:d?e=>k(e,"password"):()=>{},type:i?"text":"password",postfix:(0,w.jsx)("div",{onClick:()=>l(!i),children:(0,w.jsx)(S.Z,{iconName:"show-password",className:"h-6 w-5"})}),label:T("login.placeholderPassword")})}),t?(0,w.jsx)("div",{className:"flex justify-center mt-4 -mb-2 text-red font-primary font-bold text-sm",children:T("login.wrongEmailOrPassword")}):null,f&&m&&(null==b?void 0:b.username)!=""?(0,w.jsx)("div",{className:"text-center mt-4",children:(0,w.jsx)("h1",{className:"text-red text-sm font-bold",children:f})}):(0,w.jsx)(w.Fragment,{}),o?(0,w.jsx)(lW.Z,{className:"m-auto mt-6",color:"#14688E"}):(0,w.jsxs)("div",{className:"flex items-center desk:gap-x-10 gap-x-5 text-center",children:[(0,w.jsx)("div",{className:"mt-6",children:(0,w.jsx)(lV,{className:"".concat(d&&c?"bg-[black]":"bg-[grey] hover:!bg-[grey]"),type:"submit",text:T("login.loginButton"),onClick:N,disabled:!d||!c})}),(0,w.jsx)("div",{className:"underline self-center mt-5 text-sm cursor-pointer hover:text-[lightblue]",onClick:()=>{let e=window.location.origin,t=(0,lZ.lz)(x,"milanomalpensa",e);window.open(t,"_blank")},children:T("login.forgetPasswordText")})]})]})})}),(0,w.jsx)("div",{className:"w-full border-solid border border-[#14688E] mt-7"}),(0,w.jsxs)("div",{className:"flex justify-center items-center gap-2 my-5",onClick:()=>{let e=window.location.origin,t=(0,lZ.v3)(x,"milanomalpensa",e);window.open(t,"_blank")},children:[(0,w.jsx)("h3",{className:"font-bold text-[#14688E] text-base uppercase cursor-pointer flex",children:T("login.newUserText")}),(0,w.jsx)("div",{className:"w-2",children:(0,w.jsx)(S.Z,{stroke:"#14688E",fill:"#14688E",iconName:"arrow-profile"})})]})]})}),(0,w.jsx)("div",{className:"opacity-25 fixed inset-0 z-40 bg-black"})]})},lY=e=>{let{userInfo:t}=e,{t:n}=(0,D.$G)(),{i18n:r}=(0,D.$G)(),a=r.language,[i,l]=(0,C.useState)(""),[o,s]=(0,C.useState)(0),c=(0,P.Zl)(I.k),[u,d]=(0,C.useState)(""),[p,f]=(0,C.useState)(!1);async function h(){if(t.token){f(!0);try{let e=await fetch("".concat("https://apiextra.seamilano.eu/ols-auth/v1","/authenticated-user"),{method:"GET",headers:new Headers({Authorization:t.token,"Content-Type":"application/json",keyId:"c5f7187c-3a1f-4d69-8ad6-18e1b8363806"})}),n=await (null==e?void 0:e.json());l(n.firstName),s(n.points),d(n.userId)}catch(e){console.error(e)}finally{f(!1)}}}return(0,C.useEffect)(()=>{h()},[]),(0,w.jsx)("div",{className:"absolute flex -right-[132px] top-[25px] h-[331px] shadow-2xl",children:(0,w.jsx)(w.Fragment,{children:(0,w.jsx)("div",{className:"bg-white w-[267px] pt-10 pl-10 pr-5",children:p?(0,w.jsx)(lW.Z,{className:"m-auto mt-16",color:"#14688E"}):(0,w.jsxs)(w.Fragment,{children:[" ",(0,w.jsxs)("div",{className:"text-2xl font-semibold font-primary",children:[n("account.hello")," ",i,"!"]}),(0,w.jsx)("div",{className:"mt-4",children:(0,w.jsxs)("ul",{className:"flex flex-col gap-2 text-lg",children:[(0,w.jsx)("a",{href:"/".concat(a,"/profile/flighttracking"),onClick:()=>c(null),children:(0,w.jsx)("li",{className:"cursor-pointer hover:underline hover:text-[lightblue]",children:n("account.flightsTracking")})}),(0,w.jsx)("a",{href:"/".concat(a,"/profile/purchase"),onClick:()=>c(null),children:(0,w.jsx)("li",{className:"cursor-pointer hover:underline hover:text-[lightblue]",children:n("account.myPurchases")})}),(0,w.jsx)("a",{href:"/".concat(a,"/profile/account"),onClick:()=>c(null),children:(0,w.jsx)("li",{className:"cursor-pointer hover:underline hover:text-[lightblue]",children:n("account.myAccount")})})]})})]})})})})},lq=e=>{let{imageUrl:t,navItems:n,hostPageData:r=null,language:a,onSearchClick:i=()=>{}}=e,[l,o,s]=(0,H.Z)(),[c,u]=(0,P.FV)(L.hD),d=(0,O.useRouter)(),{i18n:p}=(0,D.$G)(),f=a||p.language,h=(0,P.Zl)(L.OO),[m,v]=(0,P.FV)(I.k),g=(0,B.aC)(),x=(null==g?void 0:g.user)?"bg-lightblue/20":"",b=(0,C.useMemo)(()=>n.map(e=>({label:e.labelMultilanguage[f],link:(0,E.Z)(e,f),id:e.metainfo.id})),[n,f]),y=()=>u(!c),k=()=>i(),j=async()=>{(null==g?void 0:g.user)&&(await (0,F.k)(g.user.token),g.removeUser())};return(0,w.jsxs)("nav",{className:"text-black px-6 h-16 flex justify-between ".concat(o||l?"":"justify-center"," items-center w-full max-w-full"),children:[(0,w.jsxs)("div",{className:"flex items-center gap-4 flex-none",children:[(l||o)&&(0,w.jsx)("button",{"aria-label":"Apri menu",onClick:()=>h(!0),children:(0,w.jsx)(S.Z,{iconName:"burger"})}),(0,w.jsx)("div",{className:"logoContainer cursor-pointer",onClick:()=>d.push("/".concat(f)),children:(0,w.jsx)(_(),{src:(null==t?void 0:t.path)||"/logo.svg",alt:(null==t?void 0:t.alt)||"Logo",width:248,height:37,priority:!0,sizes:"(max-width: 1024px) 32vw, 248px",className:"aspect-[185.87/26]",unoptimized:!0})})]}),!o&&!l&&(0,w.jsx)("div",{className:"".concat(Z().navItemsContainer," flex gap-4 w-fit justify-center max-w-6/12 items-center"),children:b.map(e=>(0,w.jsx)("div",{onClick:()=>{if (['联系方式', '新闻动态'].includes(e.label))return;v(e.id===m?null:e.id)},className:"cursor-pointer h-16 flex items-center",children:(0,w.jsxs)("div",{className:"".concat(Z().navItem," font-bold bg-white flex flex-col items-center justify-center relative h-full"),children:[(0,w.jsx)(
['联系方式','新闻动态'].includes(e.label)?"a":"div",

{className:"w-min whitespace-nowrap",children:e.label
,href: ['联系方式', '新闻动态'].includes(e.label) ? ({ 联系方式: '/assistance/contacts', 新闻动态:'/news/'}[e.label]):''
}),(0,w.jsx)("div",


{className: `${['联系方式', '新闻动态'].includes(e.label)?"onlylink ":""}`.concat(e.id===m?"h-1 w-full absolute left-0 right-0 bottom-0 bg-[#14688E]":Z().decorator)}


)]})},e.id))}),(0,w.jsxs)("div",{className:"flex gap-6 ".concat(o||l?"w-2/12":"w-3.5/12"," justify-end items-center"),children:[(0,w.jsxs)("div",{className:"flex justify-center items-center",children:[(0,w.jsx)("div",{className:"".concat(x," mr-3 rounded-[14px] p-2 cursor-pointer"),onClick:(null==g?void 0:g.user)?l||o?()=>d.push(s?"/".concat(f,"/profile/account"):"/".concat(f,"/profile")):()=>999!==m?v(999):v(null):y,children:(0,w.jsx)(S.Z,{iconName:"user"})}),999===m&&(0,w.jsx)("div",{className:"inline-block relative z-[21] cursor-default",children:(0,w.jsx)(lY,{userInfo:null==g?void 0:g.user})}),!o&&!l&&((null==g?void 0:g.user)?(0,w.jsx)("a",{href:"/".concat(f),className:"underline hover:text-[lightblue]",onClick:j,children:"Logout"}):(0,w.jsx)("a",{className:"underline hover:text-[lightblue] hidden",onClick:y,children:"Login"}))]}),c&&!(null==g?void 0:g.user)&&(0,w.jsx)(lG,{}),(0,w.jsxs)("div",{className:"flex justify-center gap-4 items-center",children:[(0,w.jsx)("a",{className:"hidden",href:"it"==f?"/it/assistenza/passeggeri-ridotta-mobilita":"/en/assistance/passengers-reduced-mobility","aria-label":"it"===f?"Assistenza PRM - Passeggeri a mobilit\xe0 ridotta":"PRM Assistance - Passengers with reduced mobility",children:(0,w.jsx)(S.Z,{iconName:"prm"})}),!o&&!l&&(0,w.jsx)("div",{onClick:()=>k(),className:"w-fit cursor-pointer hidden",children:(0,w.jsx)(S.Z,{iconName:"search"})}),o||l?null:(0,w.jsx)(S.Z,{iconName:"divider"}),o||l?null:(0,w.jsx)(lz,{hostPageData:r})]})]})]})},lK=n(2546),l$=n(7804),lX=n(6523),lJ=n(2586),lQ=n.n(lJ),l0=n(9238),l1=n.n(l0),l2=n(8172),l3=n(5343),l6=n(1002),l5=n(7633),l4=n(7930),l8=n(6381),l7=n(568),l9=n(3024);function oe(e,t){if((0,l7.Z)(2,arguments),!t||"object"!==(0,l6.Z)(t))return new Date(NaN);var n=t.years?(0,l9.Z)(t.years):0,r=t.months?(0,l9.Z)(t.months):0,a=t.weeks?(0,l9.Z)(t.weeks):0,i=t.days?(0,l9.Z)(t.days):0,l=t.hours?(0,l9.Z)(t.hours):0,o=t.minutes?(0,l9.Z)(t.minutes):0,s=t.seconds?(0,l9.Z)(t.seconds):0,c=(0,l8.default)(e),u=r||n?(0,l4.default)(c,r+12*n):c;return new Date((i||a?(0,l5.default)(u,i+7*a):u).getTime()+1e3*(s+60*(o+60*l)))}var ot=n(4638),on=n.n(ot),or=n(6950),oa=n.n(or),oi=e=>{let{selectedElement:t,setSelectedElement:n,terminal:r,movementType:a,placeholder:i="",searchInput:l="",setSearchInput:o=()=>console.log("Livesearch input setter not initialized!"),searchResults:s=[],setSearchResults:c=()=>console.log("Livesearch result setter not initialized!"),filterDate:u=null}=e,{i18n:d,t:p}=(0,D.$G)(),f=d.language,[h,m]=(0,C.useState)(!1),[v,g]=(0,C.useState)(!1),x=(0,O.useRouter)(),b=(0,C.useMemo)(()=>(null==s?void 0:s.map(e=>{switch(e.type){case"airline":return(0,w.jsx)("div",{onClick:()=>n(e),className:"cursor-pointer text-lightblack text-normal",children:e.data.airlineLabel},e.data.airlineId);case"destination":return(0,w.jsx)("div",{onClick:()=>n(e),className:"cursor-pointer text-lightblack text-normal",children:e.data.airportLabel},e.data.airlineIata);case"flight":var t;return(0,w.jsx)("a",{href:l2.Uv[a][f]+"?flightId="+e.data.flightId+"&flightNumber="+(null===(t=e.data.flightNumber)||void 0===t?void 0:t.replace(" ","")),children:(0,w.jsx)("div",{className:"cursor-pointer text-lightblack text-normal",children:e.data.airlineDescription+" "+e.data.flightNumber})},e.data.flightId)}}))||[],[s,f]),y=e=>{o(e.target.value)},k=e=>{g(!0),y(e)},j=(e,t,a)=>{fetch("".concat("https://apiextra.seamilano.eu/ols-flights/v1","/").concat(e,"/autocomplete/search?airportReferenceIata=").concat("mxp","&loadingType=P&movementType=").concat(a,"&querySearch=").concat(t).concat(u?"&dateFrom="+u:"").concat(r?"&terminal="+r:""),{headers:{"Content-Type":"application/json",keyId:"6bc034ea-ae66-40ce-891e-3dccf63cb2eb"}}).then(e=>e.json()).then(e=>{c([...e.flights.map(e=>({type:"flight",data:e})),...e.destinations.map(e=>({type:"destination",data:e})),...e.airlines.map(e=>({type:"airline",data:e}))]),x.query.searchText&&!v?e.destinations.length>0?n({type:"destination",data:e.destinations[0]}):e.airlines.length>0&&n({type:"airline",data:e.airlines.find(e=>e.airlineDescription===x.query.searchText)}):m(!0)}).catch(e=>{console.error("[LiveSearch] error -> ",e)})};return(0,C.useEffect)(()=>{l.length>=2&&j(f,l,a),l.length||c([])},[l,f,a]),(0,w.jsxs)("div",{className:"flex-1 relative w-[inherit]",children:[(0,w.jsx)(lU,{label:p("flights.livesearchPlaceholder"),placeholder:i,value:t?(null==t?void 0:t.type)==="destination"?t.data.airportLabel:(null==t?void 0:t.type)==="airline"?t.data.airlineLabel:null:l,postfix:(0,w.jsx)(S.Z,{iconName:"search"}),onChange:e=>k(e)}),h?(0,w.jsx)("div",{className:"absolute h-fit overflow-hidden bg-white py-2 w-full rounded-b-2xl",style:{top:"35px"},children:(0,w.jsx)("div",{onClick:e=>m(!1),style:{boxShadow:"0px 5px 10px rgba(0, 0, 0, 0.15)"},className:oa().customSelect+" overflow-auto max-h-64 flex rounded-b-2xl flex-col border-2 px-4 py-8 gap-8",children:b.length>=1?b:(0,w.jsx)("div",{className:"text-gray-400",children:p("flights.noResults")})})}):null]})},ol=n(9198),oo=n.n(ol),os={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"pi\xf9 di un anno",other:"pi\xf9 di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},oc=n(47),ou={date:(0,oc.Z)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,oc.Z)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,oc.Z)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},od=n(7285);function op(e,t,n){(0,l7.Z)(2,arguments);var r=(0,od.Z)(e,n),a=(0,od.Z)(t,n);return r.getTime()===a.getTime()}var of=["domenica","luned\xec","marted\xec","mercoled\xec","gioved\xec","venerd\xec","sabato"];function oh(e){return"'"+of[e]+" alle' p"}var om={lastWeek:function(e,t,n){var r=e.getUTCDay();return op(e,t,n)?oh(r):0===r?"'domenica scorsa alle' p":"'"+of[r]+" scorso alle' p"},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,t,n){var r=e.getUTCDay();return op(e,t,n)?oh(r):0===r?"'domenica prossima alle' p":"'"+of[r]+" prossimo alle' p"},other:"P"},ov=n(2834),og={ordinalNumber:function(e,t){return String(Number(e))},era:(0,ov.Z)({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:(0,ov.Z)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,ov.Z)({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:(0,ov.Z)({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","luned\xec","marted\xec","mercoled\xec","gioved\xec","venerd\xec","sabato"]},defaultWidth:"wide"}),dayPeriod:(0,ov.Z)({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})},ox=n(7632),ob={code:"it",formatDistance:function(e,t,n){var r,a=os[e];return(r="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"tra "+r:r+" fa":r},formatLong:ou,formatRelative:function(e,t,n,r){var a=om[e];return"function"==typeof a?a(t,n,r):a},localize:og,match:{ordinalNumber:(0,n(6669).Z)({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,ox.Z)({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:(0,ox.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,ox.Z)({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,ox.Z)({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:(0,ox.Z)({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}};n(5843);var oy=function(e){let t=new Date;return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()},ow=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=new Date(e);r.setHours(0,0,0,0);let a=e.getFullYear(),i=(e.getMonth()+1).toString().padStart(2,"0"),l=e.getDate().toString().padStart(2,"0"),o=oy(e)?e.getHours().toString().padStart(2,"0"):r.getHours().toString().padStart(2,"0"),s=oy(e)?e.getMinutes().toString().padStart(2,"0"):r.getMinutes().toString().padStart(2,"0");return"".concat(a).concat(t).concat(i).concat(t).concat(l)+"".concat(n?" "+"".concat(o,":").concat(s):"")},ok=e=>{let{data:t,language:n}=e,[r,a]=(0,C.useState)([]),[i,l]=(0,C.useState)(null),[o,s]=(0,C.useState)(l2.Q2),{i18n:c}=(0,D.$G)(),u=n||c.language,{t:d}=(0,D.$G)();"it"===u&&(0,ol.registerLocale)(u,ob);let p=e=>{let t=Array.prototype.slice.call(e.target.parentElement.childNodes).find(e=>"movementType"===e.name).value;s({...o,movementType:t})},f=(0,C.useCallback)(()=>{let e={movementType:o.movementType,dateFrom:ow(o.dateFrom),dateTo:(0,l$.p6)((0,l3.default)(new Date(o.dateFrom))),loadingType:l2.Q2.loadingType,airportReferenceIata:"mxp",mfFlightType:"P"};i&&(e=(null==i?void 0:i.type)==="destination"?{...e,airportDestinationIata:i.data.airportIata}:e,e=(null==i?void 0:i.type)==="airline"?{...e,airlineDescription:i.data.airlineDescription}:e,(null==i?void 0:i.type)==="destination"&&(e={...e,searchText:i.data.airportLabel}),(null==i?void 0:i.type)==="airline"&&(e={...e={...e,searchText:i.data.airlineDescription},airlineIata:i.data.airlineIata}));let n=new URLSearchParams(e);return(0,w.jsx)("a",{href:l2.Hd[o.movementType][u]+"?"+n,children:(0,w.jsx)(lV,{className:"active:bg-lightblue",text:"".concat(null==t?void 0:t.lblButton[u])})})},[u,o,i]);return(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)("div",{className:" text-black flex w-full px-3 py-5 desk:pl-12 desk:pr-8 desk:py-5 flex-col items-start gap-4 desk:gap-0 desk:flex-row desk:items-center ",children:[(0,w.jsxs)("div",{className:"radioContainer flex gap-8 mr-4",children:[(0,w.jsxs)("div",{className:"radioItem flex justify-center items-center",children:[(0,w.jsx)("div",{onClick:p,className:on().customRadio+" transition duration-300 flex items-center justify-center cursor-pointer ",style:"A"===o.movementType?{background:"black"}:{},children:(0,w.jsx)("div",{className:on().selectedItem+" "+("A"===o.movementType?on().activeRadio:"")})}),(0,w.jsx)("input",{id:"movementA",style:{display:"none"},type:"radio",name:"movementType",value:"A",defaultChecked:"A"===o.movementType}),(0,w.jsx)("label",{htmlFor:"movementA",className:"ml-2 text-sm",children:d("flights.arrivals")})]}),(0,w.jsxs)("div",{className:"radioItem flex justify-center items-center",children:[(0,w.jsx)("div",{onClick:p,className:on().customRadio+" transition duration-300 flex items-center justify-center cursor-pointer ",style:"D"===o.movementType?{background:"black"}:{},children:(0,w.jsx)("div",{className:on().selectedItem+" "+("D"===o.movementType?on().activeRadio:"")})}),(0,w.jsx)("input",{id:"movementD",style:{display:"none"},type:"radio",name:"movementType",value:"D",defaultChecked:"D"===o.movementType}),(0,w.jsx)("label",{htmlFor:"movementD",className:"ml-2 text-sm",children:d("flights.departures")})]})]}),(0,w.jsxs)("div",{className:"flex w-full desk:items-center gap-4 desk:flex-row flex-col desk:ml-14 desk:mr-4",children:[(0,w.jsxs)("div",{className:"customPickerWrapper w-full desk:w-fit desk:flex desk:flex-1 relative items-center",children:[(0,w.jsx)("label",{htmlFor:"flight-date",className:"sr-only",children:d("flights.date")}),(0,w.jsx)(oo(),{id:"flight-date",dateFormat:"dd MMMM yyyy",locale:"it"===u?"it":"en",minDate:new Date,maxDate:oe(new Date,{days:4}),wrapperClassName:"customPicker",selected:o.dateFrom,onChange:e=>s({...o,dateFrom:e})}),(0,w.jsx)(S.Z,{iconName:"chevron-r",className:"w-2 absolute right-5 top-4 transition-transform origin-center duration-300"})]}),(0,w.jsx)("div",{className:"flex-1",children:(0,w.jsx)(oi,{selectedElement:i,setSelectedElement:l,filterDate:(0,l$.p6)(o.dateFrom),searchInput:o.searchText,setSearchInput:e=>s({...o,searchText:e}),searchResults:r,setSearchResults:e=>a(e),movementType:o.movementType,placeholder:d("flights.livesearchPlaceholder").toString()})})]}),(0,w.jsx)("div",{className:"buttonWrapper desk:ml-4 flex justify-center w-full desk:w-fit",children:f()})]})})},oS=n(3539),oj=n.n(oS),oC=e=>{var t,n,r,a,i;let{tabs:l,defaultTabId:o}=e,[s,c]=(0,C.useState)(o||0),u=(0,C.useMemo)(()=>{var e;return null===(e=l.find(e=>e.id===s))||void 0===e?void 0:e.content},[s]);void 0===u&&(u=null===(i=l[0])||void 0===i?void 0:i.content);let d=l.map((e,t)=>e.label?(0,w.jsx)("div",{className:"text-black tab-item w-28 desk:w-36 text-base text-center font-bold cursor-pointer py-4 ".concat(s.toString()===e.id?oj().activeTab:"0"," "),onClick:()=>c(e.id),children:e.label},t):(0,w.jsx)("div",{className:"py-6"},t));return(0,w.jsxs)("div",{className:"tab-container desk:".concat(null===(t=l[0])||void 0===t?void 0:t.height," bg-").concat(null===(n=l[0])||void 0===n?void 0:n.bgColor," rounded-2xl w-full"),children:[(0,w.jsx)("div",{className:"tabs-container justify-start tab:justify-center desk:justify-start ".concat(null===(r=l[0])||void 0===r?void 0:r.border," flex desk:ml-").concat(null===(a=l[0])||void 0===a?void 0:a.margin," desk:gap-3"),children:d}),(0,w.jsx)("div",{className:"mt-1 tab-content",children:u})]})},oN=n(9905);function oT(e){return(0,l7.Z)(1,arguments),(0,oN.default)(e,Date.now())}var oE=n(8612),oD=e=>{let{hostPageType:t,language:n}=e,r=(0,O.useRouter)(),[a,i]=(0,C.useState)([]),[l,o]=(0,C.useState)(null),[s,c]=(0,C.useState)({...l2.Q2,dateFrom:r.query.dateFrom?new Date(r.query.dateFrom):new Date,movementType:t.includes("ricerca_volo_partenze")?"D":t.includes("ricerca_volo_arrivi")?"A":"notDefined"}),u=(0,P.Zl)(L.iV),{i18n:d,t:p}=(0,D.$G)(),f=n||d.language,h=(0,P.Zl)(L.c),m=(0,P.Zl)(L.tE),v=(0,P.Zl)(L.Rz);async function g(){let e=b();return await fetch("".concat("https://apiextra.seamilano.eu/ols-flights/v1","/").concat(f,"/operative/flights/lists").concat(e?"?"+e.toString():""),{headers:{"Content-Type":"application/json",keyId:"6bc034ea-ae66-40ce-891e-3dccf63cb2eb"}})}function x(e){let t=new Date;"D"==e.movementType?t=new Date(e.scheduledTime):"A"==e.movementType&&(t=new Date(e.scheduledArrivalTime));let n=864e5*t.getDate(),r=36e5*t.getHours()+6e4*t.getMinutes(),a=864e5*s.dateFrom.getDate(),i=36e5*s.dateFrom.getHours()+6e4*s.dateFrom.getMinutes();return n<=a&&r<i}function b(){let e=new Date(s.dateFrom);oT(e)&&e.setHours(e.getHours()-1);let n={movementType:t.includes("ricerca_volo_partenze")?"D":t.includes("ricerca_volo_arrivi")?"A":"notDefined",dateFrom:ow(e),dateTo:(0,oE.Z)((0,l3.default)(e)),loadingType:l2.Q2.loadingType,airportReferenceIata:"mxp",mfFlightType:"P"};return l&&((null==l?void 0:l.type)==="destination"&&(s.airportDestinationIata=l.data.airportIata),(null==l?void 0:l.type)==="airline"&&(s.airlineDescription=l.data.airlineDescription),(null==l?void 0:l.type)==="destination"&&(n={...n={...n,searchText:l.data.airportLabel},airportDestinationIata:s.airportDestinationIata}),(null==l?void 0:l.type)==="airline"&&(n={...n={...n,searchText:l.data.airlineDescription},airlineIata:l.data.airlineIata})),"all"!==s.terminal&&(n={...n,terminal:s.terminal}),new URLSearchParams(n)}(0,C.useEffect)(()=>{l&&(r.query.airportDestinationIata&&l.data.airportIata==r.query.airportDestinationIata||r.query.airlineIata&&l.data.airlineIata==r.query.airlineIata)&&g().then(e=>e.json()).then(e=>{let t=e.data.filter(e=>"L"==e.serviceType||"C"==e.serviceType);h(t.filter(e=>x(e))),m(t.filter(e=>!x(e))),v(new Date)})}),(0,C.useEffect)(()=>{let e=Object.keys(r.query).filter(e=>"paths"!==e&&"lang"!==e);e.length;let t={...s};e.forEach(e=>{let n=null;("dateTo"===e||"dateFrom"===e)&&(n=new Date(isNaN(Date.parse(r.query[e]))?r.query[e]+" "+new Date().getHours()+":"+new Date().getMinutes():r.query[e])),"terminal"===e&&(s.terminal=r.query[e]),"searchText"===e&&(s.searchText=r.query[e]),t={...t,[e]:n?new Date(r.query[e]):r.query[e]}}),e.length&&c(t),r.query.airportDestinationIata&&(s.airportDestinationIata=r.query.airportDestinationIata),g().then(e=>e.json()).then(e=>{if(void 0==r.query.airportDestinationIata&&void 0==r.query.airlineIata){let t=e.data.filter(e=>"L"==e.serviceType||"C"==e.serviceType);h(t.filter(e=>x(e))),m(t.filter(e=>!x(e))),v(new Date)}}).catch(e=>{h([]),m([]),v(new Date),console.error("[FlightsFilterPanel] error -> ",e)})},[r.query,t]);let y=()=>{(null==l?void 0:l.type)=="flight"?window.location.href=r.basePath+l2.Hd[s.movementType][f]+"?"+b().toString():g().then(e=>e.json()).then(e=>{let t=e.data.filter(e=>"L"==e.serviceType||"C"==e.serviceType);h(t.filter(e=>x(e))),m(t.filter(e=>!x(e))),v(new Date),u(!1)}).catch(e=>{h([]),m([]),v(new Date),u(!1),console.error("[FlightsFilterPanel] error -> ",e)})};return(0,w.jsx)("div",{className:"text-black flex bg-lightgrey rounded-2xl w-full px-6 py-8 flex-col items-start gap-4 desk:gap-0 desk:flex-row desk:items-center shadow-xl",children:(0,w.jsxs)("div",{className:"flex desk:justify-center w-full desk:items-center gap-4 desk:flex-row flex-col items-start justify-center",children:[(0,w.jsxs)("div",{className:"customPickerWrapper w-full flex desk:w-fit gap-1",children:[(0,w.jsx)(oG,{minDate:new Date,maxDate:oe(new Date,{days:4}),className:"customPicker",selected:s.dateFrom,onChange:e=>(function(e){let t=new Date(s.dateFrom);if(t.setMonth(e.getMonth()),t.setDate(e.getDate()),oT(e)){let e=new Date;t.setHours(e.getHours()),t.setMinutes(e.getMinutes())}c({...s,dateFrom:t})})(e)}),(0,w.jsx)(oY,{filterTime:e=>{let t=new Date,n=new Date(e);return t.getTime()<n.getTime()},selected:s.dateFrom,className:"customTimePicker ",onChange:e=>{let t;(t=new Date(s.dateFrom)).setHours(e.getHours(),e.getMinutes(),e.getSeconds()),c({...s,dateFrom:t})}})]}),(0,w.jsx)(oi,{selectedElement:l,setSelectedElement:o,terminal:s.terminal&&"all"!==s.terminal?s.terminal:void 0,filterDate:(s.movementType,l2.UW.D,(0,oE.Z)(s.dateFrom)),searchResults:a,setSearchResults:e=>i(e),searchInput:s.searchText,setSearchInput:e=>{l&&o(null),c({...s,searchText:e})},placeholder:p("flights.livesearchPlaceholder"),movementType:s.movementType}),(0,w.jsx)(cj,{selectedId:s.terminal,setId:e=>c({...s,terminal:e})}),(0,w.jsx)(lV,{className:"active:bg-lightblue self-center",text:p("flights.searchFlights"),onClick:()=>{u(!0),y()}})]})})},oM=n(5946);let o_=(0,P.cn)({key:"flightByDestinationList",default:null});var oA=[{label:"Africa",id:1,airports:["mxp"]},{label:"America",id:2,airports:["mxp"]},{label:"Asia",id:3,airports:["mxp"]},{label:"Europa",id:4,airports:["mxp","lin"]}],oL=[{label:"Africa",id:1,airports:["mxp"]},{label:"America",id:2,airports:["mxp"]},{label:"Asia",id:3,airports:["mxp"]},{label:"Europe",id:4,airports:["mxp","lin"]}];let oI=(0,P.cn)({default:null,key:"destinationPageAtomKey"}),oP=(0,P.cn)({default:null,key:"destinationCityAtomKey"});var oO=n(8639),oR=n.n(oO);let oF=(0,P.cn)({key:"flightByDestinationActiveList",default:!1}),oB=(0,P.cn)({default:"all",key:"categoryFilterAtom"}),oz=(0,P.cn)({default:"all",key:"areaFilterAtom"});var oZ=e=>{let{moduleData:t}=e,{i18n:n}=(0,D.$G)(),r=n.language,[a,i]=(0,C.useState)([]),l=(0,P.Zl)(o_),o=(0,P.Zl)(oF),s=(0,P.Zl)(oI);(0,C.useEffect)(()=>{s(t)},[t]);let[c,u]=(0,C.useState)(null),[d,p]=(0,C.useState)(null),[f,h]=(0,C.useState)(null),[m,v]=(0,P.FV)(oP),g=("it"===r?oA:oL).filter(e=>e.airports.includes("mxp")),x=()=>{var e;let t="Europe"!==c?null===(e=g.find(e=>e.label===c))||void 0===e?void 0:e.label:"Europa";fetch("https://resourcesols3cms.seamilano.eu"+"/rest/v1/SEA-LinMxp/contents/destinations?query=enuContinent=%27".concat(t,"%27")).then(e=>e.json()).then(e=>{var t,n;i(e.data),p(null==e?void 0:null===(n=e.resultInfo)||void 0===n?void 0:null===(t=n.paging)||void 0===t?void 0:t.next)})},b=e=>{fetch(e).then(e=>e.json()).then(e=>{var t,n;e.data.forEach(e=>{a.push(e)}),i(a),p(null==e?void 0:null===(n=e.resultInfo)||void 0===n?void 0:null===(t=n.paging)||void 0===t?void 0:t.next)})};(0,C.useEffect)(()=>{b(d)},[d]),(0,C.useEffect)(()=>{x()},[c]);let y=e=>{let t=[];return a.forEach(n=>{!t.find(e=>e.label===n.lblNation[r])&&("mxp"===e&&n.flgDeparturesFromMXP||"lin"===e&&n.flgDeparturesFromLIN)&&t.push({id:n.metainfo.id,label:n.lblNation[r]})}),t.sort((e,t)=>{var n=e.label.toUpperCase(),r=t.label.toUpperCase();return n<r?-1:n>r?1:0}),t};var k=(0,C.useMemo)(()=>a.filter(e=>e.lblNation[r]===f).sort((e,t)=>{var n=e.lblCityName[r].toUpperCase(),a=t.lblCityName[r].toUpperCase();return n<a?-1:n>a?1:0}).map((e,t)=>e.flgDeparturesFromMXP?(0,w.jsx)("option",{value:e.label,children:e.lblCityName[r]},t):(0,w.jsx)(C.Fragment,{},t)),[a,f,r]);let S=()=>{let e=a.filter(e=>e.label===m)[0].lstDestinationAirports,t=[];Promise.all(e.map(e=>fetch("".concat("https://apiextra.seamilano.eu/ols-flights/v1","/it/scheduled/flights/lists?airportReferenceIata=").concat("mxp","&loadingType=P&airportDestinationIata=").concat(e.lblIataCodeAirport),{headers:{keyId:"6bc034ea-ae66-40ce-891e-3dccf63cb2eb"}}).then(e=>e.json()).then(e=>{t.push(...e.data),t.sort((e,t)=>new Date(e.dateFrom).getTime()-new Date(t.dateFrom).getTime())}).catch(e=>{console.error("Error fetching flights:",e)}))).then(()=>{l(t),j()})},j=()=>{var e=a.filter(e=>e.label==m);o(!!e[0].flgActivePartnership&&e[0].flgActivePartnership)};return(0,w.jsx)("div",{className:"flex bg-lightgrey rounded-2xl w-full mx-auto px-6 py-8 flex-col items-start gap-4 desk:gap-0 desk:flex-row desk:items-center desk:p-10",children:(0,w.jsxs)("div",{className:"flex desk:justify-center w-full desk:items-center gap-4 desk:flex-row flex-col items-start justify-center",children:[(0,w.jsx)(oH,{onChange:e=>{u(e.target.value)},placeholder:(0,oM.t)("destinations.selectContinent"),valueList:g}),(0,w.jsx)(oH,{disabled:!(c&&y("mxp").length),onChange:e=>h(e.target.value),placeholder:(0,oM.t)("destinations.selectNation"),valueList:y("mxp")}),(0,w.jsx)(oH,{disabled:!(f&&k.length),onChange:e=>v(e.target.value),placeholder:(0,oM.t)("destinations.selectCity"),children:k}),(0,w.jsx)("div",{className:"flex justify-center w-full",children:(0,w.jsx)(lV,{text:(0,oM.t)("flights.searchFlights"),onClick:m&&m.length?()=>S():()=>{},className:"active:bg-lightblue ".concat(m&&m.length?"bg-black text-white hover:bg-lightblue":"bg-[#e0e0e0] text-[#666] cursor-default pointer-events-none")})})]})})};let oH=e=>{let{disabled:t=!1,children:n=[],placeholder:r="Seleziona un opzione",onChange:a,valueList:i}=e,[l,o]=(0,P.FV)(oz),[s,c]=(0,P.FV)(oB),u=n&&n.length?n:(null==i?void 0:i.map(e=>(0,w.jsx)("option",{id:e.id,value:e.label,selected:l===e.label||s===e.label,children:e.label},e.id)))||[];return(0,w.jsx)("div",{className:"custom-select h-[56px] w-full",children:(0,w.jsxs)("select",{disabled:t,className:"".concat(t?"":"cursor-pointer"," h-[56px] bg-white rounded-xl w-full ")+oR().dropdownWrapper,onChange:e=>a?a(e):null,children:[(0,w.jsx)("option",{className:"rounded-t-xl border-none bg-red",value:"",children:r},"default"),u]})})};var oU=e=>{let{data:t}=e,{i18n:n}=(0,D.$G)(),r=n.language,[a]=(0,T.dD)(),i=(0,C.useCallback)(()=>(0,w.jsx)("a",{href:"".concat("https://www.milanairports-shop.com","/").concat(r).concat((0,oM.t)("trains.linkTrain")),target:"_blank",rel:"noopener noreferrer","aria-label":"".concat(null==t?void 0:t.lblButton[r]," – si apre in una nuova finestra"),children:(0,w.jsx)(lV,{className:"active:bg-lightblue",text:null==t?void 0:t.lblButton[r]})}),[r]),l=l1().sanitize(null==t?void 0:t.txbSubtitle[r]);return(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)("div",{className:"text-black flex w-full px-3 py-5 desk:pl-12 desk:pr-8 desk:py-5 flex-col items-start gap-4 desk:gap-0 desk:flex-row desk:items-center justify-between",children:[(0,w.jsx)("h2",{dangerouslySetInnerHTML:{__html:l}}),(0,w.jsx)("div",{className:"".concat(a?"flex justify-center w-[100%]":""),children:i()})]})})},oV=n(8624),oW=n.n(oV),oG=e=>{var t;let{colorArrow:n="#505050",isError:r=!1,className:a,selected:i,...l}=e,o=(0,C.useRef)(null),{t:s,i18n:c}=(0,D.$G)(),u=c.language,[d,p]=(0,C.useState)(!1);"it"===u&&(0,ol.registerLocale)("it",ob);let f=i?new Date().toDateString()===new Date(i).toDateString()?s("parking.today"):new Date(i).toLocaleDateString():s("parking.date");return(0,w.jsxs)("div",{className:"h-full w-full",onClick:e=>e.stopPropagation(),children:[(0,w.jsxs)("div",{role:"button",tabIndex:0,"aria-label":(null!==(t=s("parking.date"))&&void 0!==t?t:"").toString(),onClick:()=>{p(!0),setTimeout(()=>{let e=document.querySelector(".react-datepicker__day--selected"),t=document.querySelector(".react-datepicker__day");e?e.focus():t&&t.focus()},100)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||d||(e.preventDefault(),p(!0),setTimeout(()=>{let e=document.querySelector(".react-datepicker__day--selected"),t=document.querySelector(".react-datepicker__day");e?e.focus():t&&t.focus()},100)),"Escape"===e.key&&d&&(e.preventDefault(),p(!1))},className:"bg-white py-3 desk:px-6 px-4 w-[135px] desk:w-full h-full cursor-pointer rounded-2xl desk:rounded-l-2xl ".concat(r?"border border-red":""," flex gap-4 items-center justify-between focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500"),children:[(0,w.jsx)("div",{children:f}),(0,w.jsx)(S.Z,{className:"w-2 transition-transform origin-center duration-300 ".concat(d?"rotate-90":"rotate-0"),iconName:"chevron-r",color:n})]}),(0,w.jsx)("div",{className:"overwritedPickerContainer",children:(0,w.jsx)(oo(),{ref:o,locale:"it"===u?"it":"",...l,selected:i,open:d,onClickOutside:()=>p(!1),onSelect:()=>p(!1),className:"".concat(a," ").concat(oW().reactDatePicker)})})]})},oY=e=>{var t;let{isParking:n=!1,colorArrow:r="#505050",isError:a=!1,selected:i,...l}=e,o=(0,C.useRef)(null),[s,c]=(0,C.useState)(!1),u=(0,P.sJ)(L.wy),{t:d}=(0,D.$G)();return"it"===u&&(0,ol.registerLocale)(u,ob),(0,C.useEffect)(()=>{if(!s)return;let e=setTimeout(()=>{let e=document.querySelectorAll(".react-datepicker__time-list-item");if(e.length){e.forEach(e=>{e.setAttribute("tabindex","0");let t=()=>{var t;let n=null===(t=e.textContent)||void 0===t?void 0:t.trim();if(!n)return;let[r,a]=n.split(":").map(Number),o=i?new Date(i):new Date;o.setHours(r,a,0,0),l.onChange(o),c(!1)};e.addEventListener("click",t),e.dataset.listener="true",e.addEventListener("cleanup",()=>e.removeEventListener("click",t))});let t=document.querySelector(".react-datepicker__time-list-item--selected");t&&t.focus();let n=t=>{let n=document.activeElement,r=Array.from(e).indexOf(n);"ArrowDown"===t.key&&r<e.length-1&&(t.preventDefault(),e[r+1].focus()),"ArrowUp"===t.key&&r>0&&(t.preventDefault(),e[r-1].focus()),"Enter"===t.key&&(t.preventDefault(),n.click(),c(!1)),"Escape"===t.key&&c(!1)};return document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n),e.forEach(e=>{let t=new Event("cleanup");e.dispatchEvent(t)})}}},0);return()=>clearTimeout(e)},[s,l]),(0,w.jsxs)("div",{className:"h-full w-full",onClick:e=>e.stopPropagation(),children:[(0,w.jsx)("div",{onClick:()=>c(!0),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||s||(e.preventDefault(),c(!0)),"Escape"===e.key&&s&&(e.preventDefault(),c(!1))},className:"bg-white py-3 px-6 h-full cursor-pointer rounded-2xl desk:rounded-r-2xl ".concat(a?"border border-red":""," flex gap-4 items-center justify-between"),role:"button","aria-label":null!==(t=d("parking.time"))&&void 0!==t?t:"",tabIndex:0,children:(0,w.jsxs)("div",{className:"flex items-center justify-between w-full gap-2",children:[(0,w.jsx)("span",{children:i?(0,l$.mr)(i):d("parking.hour")}),n?(0,w.jsx)(S.Z,{className:"w-2 transition-transform origin-center duration-300 ".concat(s?"rotate-90":"rotate-0"),iconName:"chevron-r",color:r}):i&&i.getHours()+":"+i.getMinutes()!=new Date().getHours()+":"+new Date().getMinutes()?(0,w.jsx)("button",{type:"button","aria-label":d("globalSearch.delete"),onClick:e=>{e.stopPropagation(),l.onChange(new Date)},className:"z-[5] text-black focus:outline-none",children:"x"}):(0,w.jsx)(S.Z,{className:"w-2 transition-transform origin-center duration-300 ".concat(s?"rotate-90":"rotate-0"),iconName:"chevron-r",color:r})]})}),(0,w.jsx)("div",{className:"overwritedPickerContainer",children:(0,w.jsx)(oo(),{ref:o,locale:"it"===u?"it":"",timeInputLabel:d("parking.time")+":",timeCaption:d("parking.time"),selected:i,timeFormat:"HH:mm",onChange:e=>{c(!1),l.onChange(e)},onClickOutside:()=>c(!1),open:s,showTimeSelect:!0,showTimeSelectOnly:!0,...l})})]})},oq=n(6797),oK=n(2256),o$=n(3454);let oX=()=>{let e=new Date,t=new Date,n=e.getMinutes();return e.setMinutes(n+30-Math.abs(n%30)),t=new Date((e=new Date(e.getTime()+(0,l$.Rw)(2,"hours")+(0,l$.Rw)(30,"minutes"))).getTime()+(0,l$.Rw)(3,"hours")),{checkInDate:e,checkOutDate:t}};var oJ=e=>{let{data:t}=e,{i18n:n}=(0,D.$G)(),r=n.language,[a,i]=(0,C.useState)(oX()),{t:l}=(0,D.$G)(),[o]=(0,T.dD)(),s=(0,C.useCallback)(()=>{var e,n;let i=new URLSearchParams({product:"PARK",airport:(null==o$?void 0:null===(e=o$.env)||void 0===e?void 0:"mxp")?null==o$?void 0:null===(n=o$.env)||void 0===n?void 0:"mxp".toString().toUpperCase():"MXP",checkInDate:(null==a?void 0:a.checkInDate)?null==a?void 0:a.checkInDate.toLocaleDateString("en-GB"):"",checkInTime:(null==a?void 0:a.checkInDate)?(0,l$.mr)(null==a?void 0:a.checkInDate):"",checkOutDate:(null==a?void 0:a.checkOutDate)?null==a?void 0:a.checkOutDate.toLocaleDateString("en-GB"):"",checkOutTime:(null==a?void 0:a.checkOutDate)?(0,l$.mr)(null==a?void 0:a.checkOutDate):""});return(0,w.jsx)("a",{href:"https://www.milanairports-shop.com"+"/".concat(r,"/search/parking?")+i,target:"_blank",children:(0,w.jsx)(lV,{className:"active:bg-lightblue",text:"".concat(null==t?void 0:t.lblButton[r])})})},[r,a]),c=()=>{let e=new Date;return e.setHours(23),e.setMinutes(59),e},u=e=>{let t=new Date,n=t.getMinutes();return t.setMinutes(n+30-Math.abs(n%30)),e>=new Date((t=new Date(t.getTime()+(0,l$.Rw)(2,"hours")+(0,l$.Rw)(30,"minutes"))).getFullYear(),t.getMonth(),t.getDate()+1)&&t.setHours(0,0,0,0),t},d=(e,t)=>{let n=new Date(e.getTime()+(0,l$.Rw)(3,"hours"));return t.toLocaleDateString("en-GB")!==n.toLocaleDateString("en-GB")&&n.setHours(0,0,0,0),n},p=e=>{i({...a,checkInDate:e,checkOutDate:(0,oq.default)(e,3)})},f=e=>{(0,oK.default)(e,(0,oq.default)(a.checkInDate,3))?i({...a,checkOutDate:(0,oq.default)(a.checkInDate,3)}):i({...a,checkOutDate:e})};return(0,C.useEffect)(()=>{a.checkOutDate&&a.checkOutDate<d(a.checkInDate?a.checkInDate:new Date,a.checkOutDate?a.checkOutDate:new Date)&&i({...a,checkOutDate:d(a.checkInDate?a.checkInDate:new Date,a.checkOutDate?a.checkOutDate:new Date)})},[a.checkInDate]),(0,C.useEffect)(()=>{s()},[]),(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)("div",{className:"text-black flex w-full px-3 py-5 desk:pl-12 desk:pr-8 desk:py-5 flex-col items-start gap-4 desk:gap-4 desk:flex-row desk:items-center justify-between",children:[(0,w.jsxs)("div",{className:"flex w-full items-center justify-between desk:gap-4",children:[(0,w.jsx)("p",{className:" desk:mr-0",children:l("flights.from")}),(0,w.jsxs)("div",{className:" customPickerWrapper w-[255px] desk:w-full flex desk:flex-1 items-center gap-1",children:[(0,w.jsx)(oG,{minDate:u(a.checkInDate?a.checkInDate:new Date),selected:a.checkInDate,popperPlacement:"bottom",onChange:e=>p(e)}),(0,w.jsx)(oY,{minTime:u(a.checkInDate?a.checkInDate:new Date),maxTime:c(),timeIntervals:30,selected:a.checkInDate,onChange:e=>p(e)})]})]}),(0,w.jsxs)("div",{className:"flex w-full items-center justify-between desk:gap-4",children:[(0,w.jsx)("p",{className:" desk:mr-0",children:l("flights.to")}),(0,w.jsxs)("div",{className:"customPickerWrapper w-[255px] desk:w-full flex desk:flex-1 items-center gap-1",children:[(0,w.jsx)(oG,{minDate:d(a.checkInDate?a.checkInDate:new Date,a.checkOutDate?a.checkOutDate:new Date),selected:a.checkOutDate,onChange:e=>f(e)}),(0,w.jsx)(oY,{minTime:d(a.checkInDate?a.checkInDate:new Date,a.checkOutDate?a.checkOutDate:new Date),maxTime:c(),timeIntervals:30,selected:a.checkOutDate,onChange:e=>f(e)})]})]}),(0,w.jsx)("div",{className:"".concat(o?"flex justify-center w-[100%]":""),children:s()})]})})},oQ=n(3454);let o0=()=>{let e=new Date,t=new Date,n=e.getMinutes();return e.setMinutes(n+30-Math.abs(n%30)),t=new Date((e=new Date(e.getTime()+(0,l$.Rw)(2,"hours")+(0,l$.Rw)(30,"minutes"))).getTime()+(0,l$.Rw)(3,"hours")),{checkInDate:e,checkOutDate:t}};var o1=e=>{let{data:t}=e,{i18n:n}=(0,D.$G)(),r=n.language,[a,i]=(0,C.useState)(o0()),{t:l}=(0,D.$G)(),[o]=(0,T.dD)(),s=(0,C.useCallback)(()=>{var e,n,i;let l=new URLSearchParams({product:"PARK",airport:(null==oQ?void 0:null===(e=oQ.env)||void 0===e?void 0:"mxp")?null==oQ?void 0:null===(n=oQ.env)||void 0===n?void 0:"mxp".toString().toUpperCase():"MXP",checkInDate:(null==a?void 0:a.checkInDate)?null==a?void 0:a.checkInDate.toLocaleDateString("en-GB"):"",checkInTime:(null==a?void 0:a.checkInDate)?(0,l$.mr)(null==a?void 0:a.checkInDate):"",checkOutDate:(null==a?void 0:a.checkOutDate)?null==a?void 0:a.checkOutDate.toLocaleDateString("en-GB"):"",checkOutTime:(null==a?void 0:a.checkOutDate)?(0,l$.mr)(null==a?void 0:a.checkOutDate):""});return(0,w.jsx)("a",{href:"https://www.milanairports-shop.com"+"/".concat(r,"/search/parking?")+l,target:"_blank",children:(0,w.jsx)(lV,{className:"active:bg-lightblue",text:"".concat(null==t?void 0:null===(i=t.lstTabber[0])||void 0===i?void 0:i.lblButton[r])})})},[r,a]),c=()=>{let e=new Date;return e.setHours(23),e.setMinutes(59),e},u=e=>{let t=new Date,n=t.getMinutes();return t.setMinutes(n+30-Math.abs(n%30)),e>=new Date((t=new Date(t.getTime()+(0,l$.Rw)(2,"hours")+(0,l$.Rw)(30,"minutes"))).getFullYear(),t.getMonth(),t.getDate()+1)&&t.setHours(0,0,0,0),t},d=(e,t)=>{let n=new Date(e.getTime()+(0,l$.Rw)(3,"hours"));return t.toLocaleDateString("en-GB")!==n.toLocaleDateString("en-GB")&&n.setHours(0,0,0,0),n},p=e=>{i({...a,checkInDate:e,checkOutDate:(0,oq.default)(e,3)})},f=e=>{(0,oK.default)(e,(0,oq.default)(a.checkInDate,3))?i({...a,checkOutDate:(0,oq.default)(a.checkInDate,3)}):i({...a,checkOutDate:e})};return(0,C.useEffect)(()=>{((null==a?void 0:a.checkOutDate)&&(null==a?void 0:a.checkOutDate.getTime())<d((null==a?void 0:a.checkInDate)?null==a?void 0:a.checkInDate:new Date,(null==a?void 0:a.checkOutDate)?null==a?void 0:a.checkOutDate:new Date).getTime()||(null==a?void 0:a.checkOutDate.getTime())>d((null==a?void 0:a.checkInDate)?null==a?void 0:a.checkInDate:new Date,(null==a?void 0:a.checkOutDate)?null==a?void 0:a.checkOutDate:new Date).getTime())&&i({...a,checkOutDate:d(a.checkInDate?a.checkInDate:new Date,a.checkOutDate?a.checkOutDate:new Date)})},[a.checkInDate]),(0,C.useEffect)(()=>{s()},[]),(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)("div",{className:"text-black bg-lightgrey rounded-2xl flex w-full px-3 py-5 desk:p-10 flex-col items-start gap-4 desk:gap-4 desk:flex-row desk:items-center justify-between whitespace-nowrap",children:[(0,w.jsxs)("div",{className:"flex w-full items-center justify-between desk:gap-4",children:[(0,w.jsx)("p",{className:"",children:l("flights.from")}),(0,w.jsxs)("div",{className:" customPickerWrapper w-[255px] desk:w-full flex desk:flex-1 items-center gap-1",children:[(0,w.jsx)(oG,{minDate:u(a.checkInDate?a.checkInDate:new Date),selected:a.checkInDate,popperPlacement:"bottom",onChange:e=>p(e)}),(0,w.jsx)(oY,{minTime:u(a.checkInDate?a.checkInDate:new Date),maxTime:c(),timeIntervals:30,selected:a.checkInDate,onChange:e=>p(e)})]})]}),(0,w.jsxs)("div",{className:"flex w-full items-center justify-between desk:gap-4",children:[(0,w.jsx)("p",{className:" desk:mr-0",children:l("flights.to")}),(0,w.jsxs)("div",{className:"customPickerWrapper w-[255px] desk:w-full flex desk:flex-1 items-center gap-1",children:[(0,w.jsx)(oG,{minDate:d(a.checkInDate?a.checkInDate:new Date,a.checkOutDate?a.checkOutDate:new Date),selected:a.checkOutDate,onChange:e=>f(e)}),(0,w.jsx)(oY,{minTime:d(a.checkInDate?a.checkInDate:new Date,a.checkOutDate?a.checkOutDate:new Date),maxTime:c(),timeIntervals:30,selected:a.checkOutDate,onChange:e=>f(e)})]})]}),(0,w.jsx)("div",{className:"".concat(o?"flex justify-center w-[100%]":""),children:s()})]})})},o2=n(4174),o3=e=>{let{data:t,language:n}=e,{i18n:r}=(0,D.$G)(),a=n||r.language,i=l1().sanitize(null==t?void 0:t.lblTitleBoxLaunch[a]),l=l1().sanitize(null==t?void 0:t.txbSubtitleBoxLaunch[a]),o=(0,l$.Cw)("text",null==t?void 0:t.enuTitleColorLaunchBox),s=null==t?void 0:t.flgPageVip,c=(null==t?void 0:t.flgTargetBoxLaunch)?"_blank":"_self",u=new Date,d=new Date,[p,f]=(0,C.useState)(),[h,m]=(0,C.useState)(),[v,g]=(0,C.useState)((null==u?void 0:u.getDate().toString().padStart(2,"0"))+"%2F"+((null==u?void 0:u.getMonth())+1).toString().padStart(2,"0")+"%2F"+(null==u?void 0:u.getFullYear())),[x,b]=(0,C.useState)((10>d.getHours()?"0"+d.getHours():d.getHours())+"%3A"+(10>d.getMinutes()?"0"+d.getMinutes():d.getMinutes())),y=()=>{let e=new Date;return p&&(0,o2.default)(p,new Date)?(e.setHours(0,0,0,0),e.setMinutes(0,0,0)):(e.setHours(30>e.getMinutes()?e.getHours()+3:e.getHours()+4),e.setMinutes(30===e.getMinutes()?30:0)),e};return(0,C.useEffect)(()=>{p&&g((null==p?void 0:p.getDate().toString().padStart(2,"0"))+"%2F"+((null==p?void 0:p.getMonth())+1).toString().padStart(2,"0")+"%2F"+(null==p?void 0:p.getFullYear()))},[p]),(0,C.useEffect)(()=>{h&&b((10>h.getHours()?"0"+h.getHours():h.getHours())+"%3A"+(10>h.getMinutes()?"0"+h.getMinutes():h.getMinutes()))},[h]),(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)("div",{className:"bg-lightgrey flex w-full rounded-2xl px-3 py-5 desk:p-10 flex-col items-start gap-4 desk:gap-0 desk:flex-row desk:items-center justify-between",children:[(0,w.jsxs)("div",{className:"".concat(o," flex flex-col flex-1 desk:pr-6"),children:[(0,w.jsx)("h2",{className:"font-bold",dangerouslySetInnerHTML:{__html:i}}),(0,w.jsx)("h5",{className:"leading-[22px]",dangerouslySetInnerHTML:{__html:l}})]}),s?(0,w.jsxs)(C.Fragment,{children:[(0,w.jsxs)("div",{className:"customPickerWrapper flex w-full desk:px-6 h-[54px] desk:w-fit desk:flex desk:flex-1 relative items-center gap-1 aspect-[281/54]",children:[(0,w.jsx)(oG,{minDate:new Date(180),selected:p||(new Date().getHours()>=21?(0,l5.default)(new Date,1):new Date),popperPlacement:"bottom",onChange:e=>f(e)}),(0,w.jsx)(oY,{minTime:y(),maxTime:(()=>{let e=new Date;return e.setHours(23),e.setMinutes(59),e})(),timeIntervals:30,selected:h||y(),onChange:e=>m(e)})]}),(0,w.jsx)("a",{href:"https://www.milanairports-shop.com/".concat(a,"/search/vip-lounge?product=VL&airport=").concat("mxp".toLocaleUpperCase(),"&checkInDate=").concat(v,"&checkInTime=").concat(x,"&accountCode="),target:c,children:(0,w.jsx)(lV,{text:"".concat(null==t?void 0:t.lblLabelCtaBoxLaunch[a])})})]}):(0,w.jsx)("a",{href:null==t?void 0:t.lblLinkBoxLaunch[a],target:c,children:(0,w.jsx)(lV,{text:"".concat(null==t?void 0:t.lblLabelCtaBoxLaunch[a])})})]})})};let o6=(e,t)=>{switch(e.xtaxProduct.ti.label.replace(" ","")){case"Volo":case"Voli":case"Flight":case"Flights":return(0,w.jsx)("div",{children:(0,w.jsx)(ok,{language:t,data:e})});case"Parcheggio":case"Parking":case"Parcheggi":case"Parkings":return(0,w.jsx)("div",{children:(0,w.jsx)(oJ,{data:e})});case"Treni":case"Treno":case"Train":case"Trains":return(0,w.jsx)("div",{children:(0,w.jsx)(oU,{data:e})});default:console.log(e.xtaxProduct.ti.label)}},o5=["ricerca_volo_partenze_MXP","ricerca_volo_partenze_LIN","ricerca_volo_arrivi_MXP","ricerca_volo_arrivi_LIN"],o4=["voli_destinazioni_da_MXP","voli_destinazioni_da_LIN"],o8=["ricerca_parcheggio_MXP","ricerca_parcheggio_LIN"];var o7=e=>{var t,n,r,a,i,l,o,s,c,u,d;let{targetUrl:p,data:f,language:h}=e;d=p?(0,T.b7)(p):f;let{i18n:m}=(0,D.$G)(),v=h||m.language;return(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)("div",{className:"searchPanelContainer rounded-3xl bg-lightgray flex flex-column",children:[(null==d?void 0:d.data)&&(null===(t=d.data)||void 0===t?void 0:t.lstTabber)&&(null===(n=d.data.lstTabber)||void 0===n?void 0:n.length)&&"ricerca trasporti"===d.data.enuTypeInfo?(0,w.jsx)(o9,{moduleData:d,lang:v}):null,(null==d?void 0:d.data)&&(null==d?void 0:null===(r=d.data)||void 0===r?void 0:r.enuTypeInfo)&&"box lancio"===d.data.enuTypeInfo?(0,w.jsx)(o3,{language:v,data:null==d?void 0:d.data}):null,(null==d?void 0:d.data)&&(null==d?void 0:null===(a=d.data)||void 0===a?void 0:a.enuTypeInfo)&&o5.includes(null==d?void 0:null===(i=d.data)||void 0===i?void 0:i.enuTypeInfo)?(0,w.jsx)(oD,{language:v,hostPageType:null==d?void 0:null===(l=d.data)||void 0===l?void 0:l.enuTypeInfo}):null,(null==d?void 0:d.data)&&(null==d?void 0:null===(o=d.data)||void 0===o?void 0:o.enuTypeInfo)&&o4.includes(null==d?void 0:null===(s=d.data)||void 0===s?void 0:s.enuTypeInfo)?(0,w.jsx)(oZ,{moduleData:null==d?void 0:d.data}):null,(null==d?void 0:d.data)&&(null==d?void 0:null===(c=d.data)||void 0===c?void 0:c.enuTypeInfo)&&o8.includes(null==d?void 0:null===(u=d.data)||void 0===u?void 0:u.enuTypeInfo)?(0,w.jsx)(o1,{data:null==d?void 0:d.data}):null]})})};let o9=e=>{let{moduleData:t,lang:n}=e,r=(0,C.useMemo)(()=>{var e,r;return(null==t?void 0:t.data)&&(null==t?void 0:null===(r=t.data)||void 0===r?void 0:null===(e=r.lstTabber)||void 0===e?void 0:e.map(e=>({id:e.id,label:e.lblLabel[n],content:(0,w.jsx)("div",{children:o6(e,n)}),bgColor:"lightgrey",margin:"0",height:"max-h-36",border:"border-darkgrey border-b"})))||[]},[t,n]);return(0,w.jsx)(oC,{tabs:r,defaultTabId:null==t?void 0:t.data.lstTabber[0].id})};n(6761),n(853),lX.ZP.use([lX.pt]);let se={clickable:!0,renderBullet:(e,t)=>'<div class="'+t+' customBullet"></div>'},st=isNaN(Number("3000"))?3e3:Number("3000");var sn=e=>{var t,n,r,a;let{data:i,language:l}=e,{i18n:o}=(0,D.$G)(),s=l||o.language,[c]=(0,T.dD)();return(0,P.sJ)(L.v$),(0,w.jsxs)("div",{className:"w-full mb-10 "+lQ().carouselSectionWrapper+" "+((null==i?void 0:i.data)&&i.data.xconM02&&(null==i?void 0:null===(t=i.data)||void 0===t?void 0:t.enuTypeInfo)==="visore con M02-Widget-lancio in overlay"?"higherPagination":"lowerPagination"),children:[(0,w.jsx)(lK.tq,{spaceBetween:0,slidesPerView:1,className:"custom-carousel",loop:!0,pagination:se,autoplay:{delay:st,disableOnInteraction:!1,pauseOnMouseEnter:!0},modules:[lX.tl,lX.pt],children:(null==i?void 0:null===(r=i.data)||void 0===r?void 0:null===(n=r.lstViewer)||void 0===n?void 0:n.map(e=>{var t,n,r,a,i,l,o;let{mediaserverpath:u,resourcename:d}=c?e.upiImageMobile[s]:e.upiImageDesktop[s],p=(null===(n=e.lblTitle)||void 0===n?void 0:null===(t=n[s])||void 0===t?void 0:t.toLowerCase())||"",f=(null===(a=e.lblSubtitle)||void 0===a?void 0:null===(r=a[s])||void 0===r?void 0:r.toLowerCase())||"",h=p.includes("fair")||p.includes("play")||f.includes("gioca")||f.includes("pulito")||f.includes("vola")||f.includes("sereno");return console.log("Is Fair Play banner:",h),(0,w.jsx)(lK.o5,{children:(0,w.jsxs)("div",{className:"".concat(lQ().slideItem," relative w-full ").concat(c?"h-[500px]":"h-[400px]"," overflow-hidden bg-gray-100"),children:[(0,w.jsx)(_(),{alt:"","aria-hidden":"true",src:u+"/"+d,fill:!0,className:"absolute inset-0 z-0 object-cover",unoptimized:!0}),(0,w.jsx)("div",{className:"absolute inset-0 z-1 ".concat(h?"bg-black bg-opacity-0":"bg-black bg-opacity-5")}),(0,w.jsx)("div",{className:"absolute inset-0 flex flex-col z-10 ".concat(c?"justify-start pt-12":"justify-start pt-16"),children:(0,w.jsxs)("div",{className:"max-w-cont-1 mx-auto px-4 sm:px-6 w-full",children:[(0,w.jsxs)("div",{className:"space-y-2 sm:space-y-4",children:[(null===(i=e.lblTitle)||void 0===i?void 0:i[s])?(0,w.jsx)("h1",{className:"".concat(lQ().slideTitle," ").concat((0,l$.Cw)("text",e.enuTitleColor)," font-secondary"),dangerouslySetInnerHTML:{__html:l1().sanitize(e.lblTitle[s])}}):null,(null===(l=e.lblSubtitle)||void 0===l?void 0:l[s])?(0,w.jsx)("h2",{className:"".concat(lQ().slideSubtitle," ").concat((0,l$.Cw)("text",e.enuTitleColor)),dangerouslySetInnerHTML:{__html:l1().sanitize(e.lblSubtitle[s])}}):null]}),(null===(o=e.lblLabelCta)||void 0===o?void 0:o[s])?(0,w.jsx)("div",{className:"mt-4 sm:mt-6 mb-8 sm:mb-12",children:(0,w.jsx)("a",{href:(0,l$.Bi)(e,s),target:e.flgTarget?"_blank":"_self",children:(0,w.jsx)(lV,{className:"active:bg-lightblue",text:e.lblLabelCta[s]})})}):null]})})]})},e.id)}))||[]}),(null==i?void 0:i.data)&&i.data.xconM02&&(null==i?void 0:null===(a=i.data)||void 0===a?void 0:a.enuTypeInfo)==="visore con M02-Widget-lancio in overlay"?(0,w.jsx)("div",{className:"w-full relative max-w-cont-2 mx-auto    -mt-[60px] sm:-mt-[80px] md:-mt-[90px]    px-4 sm:px-6 z-20",children:(0,w.jsx)(o7,{language:s,targetUrl:null==i?void 0:i.data.xconM02.targeturl,data:null})}):null]})},sr=e=>{var t,n,r,a,i,l,o;let{data:s,language:c}=e,{i18n:u}=(0,D.$G)(),d=c||u.language,[p]=(0,T.dD)(),f=null!=s&&!!s.data&&(null==s?void 0:null===(n=s.data)||void 0===n?void 0:null===(t=n.enuTypeTemplate)||void 0===t?void 0:t.toLowerCase())=="minimale",h=(null==s?void 0:null===(a=s.data)||void 0===a?void 0:null===(r=a.lstCta)||void 0===r?void 0:r.length)||0,m=l1().sanitize((null==s?void 0:null===(i=s.data)||void 0===i?void 0:i.lblTitle)&&(null==s?void 0:null===(l=s.data)||void 0===l?void 0:l.lblTitle[d])?null==s?void 0:null===(o=s.data)||void 0===o?void 0:o.lblTitle[d]:s.lblTitle?null==s?void 0:s.lblTitle[d]:""),v=(0,C.useMemo)(()=>{var e,t,n,r;return(null==s?void 0:s.data)&&(null==s?void 0:null===(e=s.data)||void 0===e?void 0:e.lstCta)?null==s?void 0:null===(n=s.data)||void 0===n?void 0:null===(t=n.lstCta)||void 0===t?void 0:t.map(e=>{let t=e.id,n=e.upiLogoCtaDesktop.mediaserverpath+"/"+e.upiLogoCtaDesktop.resourcename,r=l1().sanitize(e.lblLabelCta[d]),a=e.enuBackgroundCta?(0,l$.Cw)("bg",e.enuBackgroundCta):"bg-black",i=e.enuBackgroundLabel?(0,l$.Cw)("text",e.enuBackgroundLabel):"bg-black",l=e.enuBackgroundLabel?(0,l$.Cw)("fill",e.enuBackgroundLabel):"fill-black";return f?""!=(0,l$.Bi)(e,d)?(0,w.jsxs)("div",{className:"flex flex-col items-center",children:[(0,w.jsx)("a",{href:(0,l$.Bi)(e,d),target:e.flgTarget?"_blank":"_self",className:"".concat(a," rounded-3xl p-3 w-fit cursor-pointer flex justify-center items-center"),children:(0,w.jsx)("img",{src:n,alt:r,width:60,height:60})}),(0,w.jsx)("div",{className:"w-[135px]",children:(0,w.jsx)("p",{dangerouslySetInnerHTML:{__html:r},className:"".concat(i," text-center w-fit m-auto")})})]},t):(0,w.jsxs)("div",{className:"flex flex-col items-center",children:[(0,w.jsx)("div",{className:"".concat(a," rounded-3xl p-3 w-fit flex justify-center items-center"),children:(0,w.jsx)("img",{src:n,alt:r,width:60,height:60})}),(0,w.jsx)("div",{className:"w-[135px]",children:(0,w.jsx)("p",{dangerouslySetInnerHTML:{__html:r},className:"".concat(i," text-center w-fit m-auto")})})]},t):""!=(0,l$.Bi)(e,d)?(0,w.jsxs)("a",{href:(0,l$.Bi)(e,d),target:e.flgTarget?"_blank":"_self",className:"".concat(a," rounded-3xl p-3 px-5 min-w-min cursor-pointer w-full h-full flex justify-between font-primary"),children:[(0,w.jsxs)("div",{className:"flex items-center desk:gap-3 -translate-x-4 desk:translate-x-0",children:[(0,w.jsx)("img",{src:n,alt:r,width:80,height:80}),(0,w.jsx)("p",{dangerouslySetInnerHTML:{__html:r},className:"".concat(i," text-start tab:text-sm tab:font-medium desk:text-lg")})]}),(0,w.jsx)("div",{className:"flex px-2",children:(0,w.jsx)(S.Z,{color:"",iconName:"arrow",className:"".concat(l," w-2")})})]},t):(0,w.jsxs)("div",{className:"".concat(a," rounded-3xl p-3 px-5 min-w-min w-full h-full flex justify-between font-primary"),children:[(0,w.jsxs)("div",{className:"flex items-center gap-3",children:[(0,w.jsx)("img",{src:n,alt:r,width:80,height:80}),(0,w.jsx)("p",{dangerouslySetInnerHTML:{__html:r},className:"".concat(i," text-start tab:text-sm tab:font-medium desk:text-lg")})]}),(0,w.jsx)("div",{className:"flex px-2",children:(0,w.jsx)(S.Z,{color:"",iconName:"arrow",className:"".concat(l," w-2")})})]},t)}):null==s?void 0:null===(r=s.lstCta)||void 0===r?void 0:r.map(e=>{let t=e.id,n=e.upiLogoCtaDesktop.mediaserverpath+"/"+e.upiLogoCtaDesktop.resourcename,r=l1().sanitize(e.lblLabelCta[d]),a=e.enuBackgroundCta?(0,l$.Cw)("bg",e.enuBackgroundCta):"bg-black",i=e.enuBackgroundLabel?(0,l$.Cw)("text",e.enuBackgroundLabel):"bg-black",l=e.enuBackgroundLabel?(0,l$.Cw)("fill",e.enuBackgroundLabel):"fill-black";return f?""!=(0,l$.Bi)(e,d)?(0,w.jsxs)("div",{className:"flex flex-col items-center",children:[(0,w.jsx)("a",{href:(0,l$.Bi)(e,d),target:e.flgTarget?"_blank":"_self",className:"".concat(a," rounded-3xl p-3 w-fit cursor-pointer flex justify-center items-center"),children:(0,w.jsx)("img",{src:n,alt:r,width:60,height:60})}),(0,w.jsx)("div",{className:"w-[135px]",children:(0,w.jsx)("p",{dangerouslySetInnerHTML:{__html:r},className:"".concat(i," text-center w-fit m-auto")})})]},t):(0,w.jsxs)("div",{className:"flex flex-col items-center",children:[(0,w.jsx)("div",{className:"".concat(a," rounded-3xl p-3 w-fit flex justify-center items-center"),children:(0,w.jsx)("img",{src:n,alt:r,width:60,height:60})}),(0,w.jsx)("div",{className:"w-[135px]",children:(0,w.jsx)("p",{dangerouslySetInnerHTML:{__html:r},className:"".concat(i," text-center w-fit m-auto")})})]},t):""!=(0,l$.Bi)(e,d)?(0,w.jsxs)("div",{className:"".concat(a," rounded-3xl p-1 min-w-min w-full h-full flex justify-between font-primary"),children:[(0,w.jsxs)("div",{className:"flex items-center gap-3",children:[(0,w.jsx)("img",{src:n,alt:r,width:80,height:80}),(0,w.jsx)("p",{dangerouslySetInnerHTML:{__html:r},className:"".concat(i," text-start tab:text-sm font-bold desk:text-base font-bold -translate-y-4 min-w-[120%]")})]}),(0,w.jsxs)("div",{className:"flex absolute w-fit translate-y-10 translate-x-24 gap-1",children:[(0,w.jsx)(S.Z,{iconName:"location-reward",className:"w-4 -translate-y-1"}),(0,w.jsx)("a",{href:(0,l$.Bi)(e,d),target:e.flgTarget?"_blank":"_self",children:(0,w.jsx)("p",{className:"underline cursor-pointer",children:"Ottieni indicazioni stradali"})})]})]},t):(0,w.jsxs)("div",{className:"".concat(a," rounded-3xl p-3 px-5 min-w-min w-full h-full flex justify-between font-primary"),children:[(0,w.jsxs)("div",{className:"flex items-center gap-3",children:[(0,w.jsx)("img",{src:n,alt:r,width:80,height:80}),(0,w.jsx)("p",{dangerouslySetInnerHTML:{__html:r},className:"".concat(i," text-start tab:text-sm tab:font-medium desk:text-lg")})]}),(0,w.jsx)("div",{className:"flex px-2",children:(0,w.jsx)(S.Z,{color:"",iconName:"arrow",className:"".concat(l," w-2")})})]},t)})},[s,d]);return(0,w.jsxs)("div",{className:"".concat(f?"py-3":"py-4 mx-auto desk:px-6 px-4 ".concat("Parking Map"===s.lblNotes?"":"desk:pb-14"," max-w-cont-2")),children:[(0,w.jsx)("h2",{dangerouslySetInnerHTML:{__html:m},className:"".concat(f?"hidden":"block"," text-[#000000] uppercase text-2xl mb-3 tab:normal-case tab:text-xl desk:w-full ").concat((null==s?void 0:s.data)?"":"font-bold")}),(0,w.jsx)("div",{className:"\n        ".concat("Parking Map"===s.lblNotes?"":"\n        ".concat(f?"":k(h,f?3:1)," \n        ").concat(f?"":k(h,f?6:3,"tab")," \n        ").concat(f?"":k(h,f?9:4,"desk")," \n        ").concat(f?p?"grid grid-cols-3":"flex gap-4 flex-wrap w-fit m-auto py-4 justify-center":p?"gap-4 grid text-center aspect-[1280/326,89]":"grid grid-cols-3 desk:gap-6"," \n        "),"\n      "),children:v})]})};n(6503);var sa=n(5152),si=n.n(sa);let sl=si()(()=>n.e(695).then(n.bind(n,8695)),{ssr:!1});var so=e=>{var t,n,r,a,i,l,o,s;let{data:c,language:u}=e,{i18n:d}=(0,D.$G)(),p=u||d.language,[f,h]=(0,T.dD)(),m=(null==c?void 0:null===(t=c.data)||void 0===t?void 0:t.enuTitleColor)?(0,l$.Cw)("text",null==c?void 0:c.data.enuTitleColor):"text-black",[v,g]=(0,C.useState)(!1);return(0,w.jsxs)("div",{className:"refservice desk:flex px-6 desk:gap-5 items-center desk:py-12 py-8 max-w-cont-2 mx-auto w-full",children:[(0,w.jsx)("div",{className:"mb-5 desk:mb-0 whitespace-nowrap",children:(0,w.jsx)("h3",{className:"font-bold ".concat(m),dangerouslySetInnerHTML:{__html:l1().sanitize((null==c?void 0:null===(n=c.data)||void 0===n?void 0:n.lblTitle)&&(null==c?void 0:null===(r=c.data)||void 0===r?void 0:r.lblTitle[p])?null==c?void 0:null===(a=c.data)||void 0===a?void 0:a.lblTitle[p]:"")}})}),f||h?(0,w.jsx)(lK.tq,{slidesPerView:"auto",spaceBetween:15,slidesOffsetBefore:0,slidesOffsetAfter:0,freeMode:!0,modules:[lX.Rv],children:null==c?void 0:null===(l=c.data)||void 0===l?void 0:null===(i=l.lstCta)||void 0===i?void 0:i.map(e=>(0,w.jsx)(lK.o5,{className:"w-auto flex",children:(0,w.jsx)(sl,{text:e.lblLabelCta[p],bgColor:e.enuBackgroundCta?(0,l$.Cw)("bg",e.enuBackgroundCta):"bg-lightgrey",txtColor:e.enuBackground?(0,l$.Cw)("text",e.enuBackground):"text-black",onClick:()=>{},hrefPath:(0,l$.Bi)(e,p),target:(null==e?void 0:e.flgTarget)?"_blank":"_self"},e.id)},e.id))}):(0,w.jsx)("div",{className:"flex w-auto desk:gap-4 text-center",children:null==c?void 0:null===(s=c.data)||void 0===s?void 0:null===(o=s.lstCta)||void 0===o?void 0:o.map((e,t)=>(0,w.jsx)(sl,{text:e.lblLabelCta[p],bgColor:e.enuBackgroundCta?(0,l$.Cw)("bg",e.enuBackgroundCta):"bg-lightgrey",txtColor:e.enuBackground?(0,l$.Cw)("text",e.enuBackground):"text-black",width:"w-full",onClick:()=>{},hrefPath:(0,l$.Bi)(e,p),target:(null==e?void 0:e.flgTarget)?"_blank":"_self"},t))})]})},ss=e=>{let{lstInfoBox:t,lang:n,bgColor:r,voiceColor:a}=e;return(0,w.jsx)("div",{className:"p-10 rounded-3xl w-auto ".concat(r),children:(0,w.jsx)("ul",{className:"flex flex-col gap-2",children:t.map(e=>(0,w.jsxs)("li",{className:"",children:[(0,w.jsx)("span",{className:"font-bold ".concat(a),children:e.lblVoice[n].toUpperCase()+" "}),(0,w.jsx)("span",{className:"text-black",children:" "+e.lblValue[n]})]},e.id))})})},sc=e=>{var t,n;let{data:r,language:a}=e,{i18n:i}=(0,D.$G)(),l=a||i.language,[o]=(0,T.dD)(),[s,c]=(0,C.useState)({value:!1,map:""});return(0,C.useEffect)(()=>{var e,t;if(null==r?void 0:null===(t=r.data)||void 0===t?void 0:null===(e=t.lslParagraphs)||void 0===e?void 0:e.some(e=>{var t,n;return null==e?void 0:null===(n=e.txbSubtitle)||void 0===n?void 0:null===(t=n[a])||void 0===t?void 0:t.includes("iubenda")})){let e=document.createElement("script");e.src="https://cdn.iubenda.com/iubenda.js",e.async=!0,document.body.appendChild(e)}},[r,a]),(0,C.useEffect)(()=>{var e,t;if((null==r?void 0:null===(t=r.data)||void 0===t?void 0:null===(e=t.lslParagraphs)||void 0===e?void 0:e.some(e=>{var t,n;return null==e?void 0:null===(n=e.txbSubtitle)||void 0===n?void 0:null===(t=n[a])||void 0===t?void 0:t.includes("iubenda")}))&&!document.getElementById("iubenda-basic-script")){let e=document.createElement("script");e.id="iubenda-basic-script",e.src="https://cdn.iubenda.com/iubenda.js",e.async=!0,e.onload=()=>{console.log("✅ iubenda.js (base) loaded")},e.onerror=()=>{console.error("❌ iubenda.js (base) load failed")},document.body.appendChild(e)}},[r,a]),(0,C.useEffect)(()=>{var e,t;if((null==r?void 0:null===(t=r.data)||void 0===t?void 0:null===(e=t.lslParagraphs)||void 0===e?void 0:e.some(e=>{var t,n;return null==e?void 0:null===(n=e.txbSubtitle)||void 0===n?void 0:null===(t=n[a])||void 0===t?void 0:t.includes("iubenda")}))&&!document.getElementById("iubenda-cs-script")){let e=document.createElement("script");e.id="iubenda-cs-script",e.src="https://cdn.iubenda.com/cs/iubenda_cs.js",e.async=!0,e.onload=()=>{console.log("✅ iubenda_cs.js (cookie solution) loaded")},e.onerror=()=>{console.error("❌ iubenda_cs.js (cookie solution) load failed")},document.body.appendChild(e)}},[r,a]),(0,C.useEffect)(()=>{let e=e=>{let t=e.target;if("A"===t.tagName&&t.href.endsWith("#")&&/preferenze|preference/i.test(t.textContent||"")){var n,r,a;e.preventDefault(),(null===(a=window._iub)||void 0===a?void 0:null===(r=a.cs)||void 0===r?void 0:null===(n=r.api)||void 0===n?void 0:n.openPreferences)?window._iub.cs.api.openPreferences():console.warn("\uD83D\uDD01 Iubenda API not yet available.")}};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[]),(0,w.jsx)(w.Fragment,{children:null==r?void 0:null===(n=r.data)||void 0===n?void 0:null===(t=n.lslParagraphs)||void 0===t?void 0:t.map(e=>{var t,n,r,a,i,u;let{mediaserverpath:d,resourcename:p}=o?e.upiImageMobile[l]:e.upiImageDesktop[l],f=d&&p?d+"/"+p:"",h=e.enuSubtitleColor?(0,l$.Cw)("text",e.enuSubtitleColor):"text-black";return(0,w.jsx)("div",{className:"desk:pt-14 pt-8 pb-16 ".concat(e.enuBackground?(0,l$.Cw)("bg",e.enuBackground):"bg-white"),children:(0,w.jsxs)("div",{className:"mx-auto max-w-cont-1 w-full px-6 flex justify-center",children:[(0,w.jsxs)(su,{layoutType:e.enuTemplate,isMobile:o,imagePosition:e.enuImagePosition,children:[e.lblTitle&&e.lblTitle[l]?(0,w.jsx)("h2",{className:"text-2xl desk:text-3xl text-black font-semibold mb-3 font-secondary",dangerouslySetInnerHTML:{__html:l1().sanitize(e.lblTitle[l])}}):null,e.txbSubtitle&&e.txbSubtitle[l]?(0,w.jsx)("h3",{className:"".concat(h," underlineLink bullet-style"),dangerouslySetInnerHTML:{__html:l1().sanitize(e.txbSubtitle[l],{ADD_TAGS:["iframe"]})}}):null,f?(0,w.jsx)("div",{className:"flex max-h-80 desk:w-[70%] mt-6 -mb-8 desk:mb-0",children:(0,w.jsx)(_(),{alt:"Immagine relativa alla sezione: ".concat((null===(t=e.lblTitle)||void 0===t?void 0:t[l])||"contenuto"),className:"rounded-3xl w-full",src:f,width:0,height:0,sizes:"(min-width: 1024px) 70vw, 100vw",style:{width:"100%",height:"auto"},unoptimized:!0})}):null,e.lblLabelFirstCta[l]?(0,w.jsxs)("div",{className:"mt-8 flex flex-col desk:flex-row gap-5",children:[e.txbMapFirst?(0,w.jsx)("div",{onClick:()=>c({value:!0,map:e.txbMapFirst}),children:(0,w.jsx)(lV,{className:"active:bg-lightblue",text:e.lblLabelFirstCta[l],bgColor:(0,l$.Cw)("bg",e.enuBackgroundFirstCta),textColor:"bg-[#000000]"===(0,l$.Cw)("bg",e.enuBackgroundFirstCta)?"text-white":"text-black"})}):(0,w.jsx)("a",{href:""!=e.lblLinkFirst[l]?e.lblLinkFirst[l]:(null===(n=e.xconGenericPageFirst)||void 0===n?void 0:n.lblUrlPath)?null===(r=e.xconGenericPageFirst)||void 0===r?void 0:r.lblUrlPath[l]:"",target:e.flgTargetFirst?"_blank":"_self",children:(0,w.jsx)(lV,{className:"active:bg-lightblue",text:e.lblLabelFirstCta[l],bgColor:(0,l$.Cw)("bg",e.enuBackgroundFirstCta),textColor:"bg-[#000000]"===(0,l$.Cw)("bg",e.enuBackgroundFirstCta)?"text-white":"text-black"})}),e.lblLabelSecondCta[l]?(0,w.jsx)("a",{href:""!=e.lblLinkSecond[l]?e.lblLinkSecond[l]:(null===(a=e.xconGenericPageSecond)||void 0===a?void 0:a.lblUrlPath)?null===(i=e.xconGenericPageSecond)||void 0===i?void 0:i.lblUrlPath[l]:"",target:e.flgTargetSecond?"_blank":"_self",children:(0,w.jsx)(lV,{text:e.lblLabelSecondCta[l],bgColor:(0,l$.Cw)("bg",e.enuBackgroundSecondCta),textColor:"bg-[#000000]"===(0,l$.Cw)("bg",e.enuBackgroundSecondCta)?"text-white":"text-black"})}):null]}):null,e.lstInfoBox&&(null===(u=e.lstInfoBox)||void 0===u?void 0:u.length)?(0,w.jsx)("div",{className:"mt-8 ml-auto desk:my-auto",children:(0,w.jsx)(ss,{lstInfoBox:e.lstInfoBox,lang:l,bgColor:"bg-lightgrey",voiceColor:"text-lightblue"})}):null]}),(0,w.jsx)("div",{className:"",hidden:!s.value,children:(0,w.jsxs)("div",{className:"w-screen h-screen",style:{padding:30,position:"fixed",top:0,left:0,bottom:0,right:0,border:"none",overflow:"hidden",zIndex:999999},children:[(0,w.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",background:"black",opacity:.1}}),(0,w.jsx)("div",{className:"cursor-pointer",onClick:()=>c({value:!1,map:e.txbMapFirst}),children:(0,w.jsx)("button",{className:"bg-black p-0 rounded-3xl cursor-pointer w-5 absolute top-6 right-6",children:(0,w.jsx)(lH,{onClick:()=>c({value:!1,map:e.txbMapFirst})})})}),s.value?(0,w.jsx)("div",{className:"h-[50rem]",dangerouslySetInnerHTML:{__html:s.map}}):(0,w.jsx)(w.Fragment,{})]})})]})},e.id)})})};(i=v||(v={})).singleColumn="Una colonna",i.doubleColumn="Due colonne";let su=e=>{let t,{layoutType:n,children:r,isMobile:a,imagePosition:i}=e,[l,o,s,c,u]=r;return(0,w.jsxs)("div",{className:(t="",n.toLowerCase().includes("una colonna")&&(t="flex-col justify-center"),!a&&n.toLowerCase().includes("due colonne")&&(t="flex max-w-cont-2 items-center gap-2","Sinistra"===i&&(t+=" flex-row-reverse")),t),children:[!s&&l||!s&&o?(0,w.jsxs)(w.Fragment,{children:[l&&!n.toLowerCase().includes("dx box lista info")?(0,w.jsxs)("div",{className:"desk:basis-1/5",children:[l," "]}):null,(0,w.jsxs)("div",{className:"desk:flex desk:flex-col desk:basis-1/2 justify-center",children:[l&&n.toLowerCase().includes("dx box lista info")?l:null,o,c]})]}):null,s&&l?(0,w.jsxs)("div",{className:"desk:flex desk:flex-col desk:justify-end desk:basis-[60%] gap-1.5",children:[l,o,c,"Due colonne"===n&&"Centro"===i||"Una colonna"===n||a&&s?(0,w.jsx)("div",{className:"desk:mt-16 mt-8 ".concat(a?"flex justify-center":""),children:s}):null]}):null,s&&!l?(0,w.jsxs)("div",{className:"desk:flex desk:flex-col desk:basis-[70%] desk:justify-between",children:[o,"Centro"===i&&(0,w.jsx)("div",{className:"mt-8 desk:mt-10",children:s})]}):null,i&&"Centro"!==i&&!a&&s?s:null,u]})};var sd=e=>{let{title:t,description:n,ctaText:r,onClick:a,imageUrl:i}=e;return(0,w.jsxs)("div",{style:{boxShadow:"5px 6px 10px -5px #000000"},className:"flex flex-col rounded-2xl w-[300px]",children:[(0,w.jsx)("div",{className:"relative rounded-t-2xl h-[240px] cursor-pointer overflow-hidden",children:i?(0,w.jsx)(_(),{src:i,alt:t?"Immagine di ".concat(t):"",fill:!0,sizes:"(max-width: 768px) 100vw, 300px",className:"rounded-t-2xl scale-100 hover:scale-125 ease-in duration-500 object-cover",priority:!1,unoptimized:!0}):(0,w.jsx)("div",{"aria-hidden":"true",className:"bg-gray-200 rounded-t-2xl",style:{width:"100%",height:"100%"}})}),(0,w.jsxs)("div",{className:"flex flex-col h-[100px] bg-white justify-center items-center p-6",children:[(0,w.jsx)("h2",{className:"w-fit text-2xl font-bold",children:t}),(0,w.jsx)("h3",{className:"w-fit text-sm whitespace-nowrap",children:n})]}),(0,w.jsx)("div",{className:"w-full h-[48px] text-base cursor-pointer font-bold bg-lightblack rounded-b-2xl py-3 flex items-center justify-center text-white uppercase",onClick:e=>a(e),children:r})]})},sp=e=>{let{title:t,description:n,imageUrl:r,infoItems:a,language:i,bgColor:l}=e,{i18n:o}=(0,D.$G)(),s=i||o.language,c=l1().sanitize(t);return(0,w.jsxs)("div",{className:"flex flex-col gap-4 items-center rounded-2xl ".concat(l," min-w-[17rem] max-w-[18rem] py-7 px-6 h-auto"),children:[(0,w.jsx)("div",{style:{minWidth:"27px",maxWidth:"35px",height:"35px"},children:(0,w.jsx)(_(),{alt:"","aria-hidden":"true",src:r,width:35,height:35,className:"w-full h-full",unoptimized:!0})}),(0,w.jsx)("h2",{className:"font-bold text-center mb-4",role:"heading","aria-level":2,tabIndex:-1,dangerouslySetInnerHTML:{__html:c}}),(0,w.jsx)("div",{className:"flex flex-col gap-2 justify-between items-center h-full",children:null==a?void 0:a.map(e=>{let t=e.id,n=l1().sanitize(e.lblSubtitleInfo[s]),r=e.flgTargetCtaInfo?"_blank":"_self",a=e.blLinkCtaInfo[s];return(0,w.jsx)(C.Fragment,{children:a?(0,w.jsx)("a",{href:a,target:r,className:"cursor-pointer",role:"link",children:(0,w.jsx)("h3",{className:"hover:underline hover:text-[lightblue] text-center text-sm",dangerouslySetInnerHTML:{__html:n}})}):(0,w.jsx)("h3",{className:"text-center text-sm",dangerouslySetInnerHTML:{__html:n}})},t)})})]})},sf=e=>{let{title:t,imageUrl:n,titleColor:r,lang:a,lstDescription:i}=e;return(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)("div",{className:"flex gap-5 w-60 h-full",children:[(0,w.jsx)("img",{src:n,alt:"logo",className:"h-fit w-auto"}),(0,w.jsxs)("div",{className:"flex flex-col gap-2 h-full",children:[(0,w.jsx)("h2",{dangerouslySetInnerHTML:{__html:t},className:"text-lg font-bold ".concat(r)}),i.map(e=>{let t=e.id,n=l1().sanitize(e.lblSubtitleInfo2[a]),r=(0,l$.Cw)("text",e.enuSubtitleColorInfo2);return(0,w.jsx)("h3",{className:"text-sm text-black ".concat(r),dangerouslySetInnerHTML:{__html:n}},t)})]})]})})},sh=e=>{var t,n;let{title:r,subTitle:a,onClick:i,imageUrl:l,textSize:o="lg",isLaunch:s=!0,item:c=[],isSquare:u=!1,txtColor:d,isMenu:p=!1}=e,f=(0,P.sJ)(L.wy),[h]=(0,T.dD)();return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{className:"relative select-none rounded-3xl overflow-hidden flex flex-col justify-end cursor-pointer ".concat(u&&!p?"w-[300px] desk:w-[415px] h-full":"w-full h-full"),onClick:i,children:[(0,w.jsx)("img",{src:l,alt:"immagine",className:"hover:scale-110 transition-all duration-500 h-full w-full object-cover"}),s?(0,w.jsx)("div",{className:"absolute py-5 px-6 desk:w-full",children:(0,w.jsxs)("div",{className:"".concat(r?"desk:flex desk:justify-between desk:w-full":"hidden"," flex gap-5 items-center"),children:[(0,w.jsx)("h2",{className:"font-bold ".concat(d," ").concat("lg"===o?"text-lg":"text-normal"),children:r}),!u||p||h?h?null:(0,w.jsx)(S.Z,{color:"",iconName:"arrow",className:"h-4 ".concat("text-[#FFFFFF]"===d?"fill-[#FFFFFF]":"fill-[#000000]")}):(0,w.jsx)("div",{className:"group",children:(0,w.jsx)("div",{className:"bg-white w-[44px] h-[44px] rounded-3xl flex items-center justify-center group-hover:bg-[#14688E] transition duration-300",children:(0,w.jsx)(S.Z,{color:"",iconName:"arrow",className:'h-4 group-hover:fill-[#FFFFFF] fill-[#FFFFFF]"}'})})})]})}):(0,w.jsxs)("div",{className:"absolute flex flex-col text-white gap-5 pl-12 pb-10",children:[(0,w.jsx)("h1",{className:"font-bold text-5xl",children:r.toUpperCase()}),(0,w.jsx)("h4",{className:"text-2xl",children:a})]})]}),s?null:(0,w.jsx)("div",{className:"".concat(h?" grid grid-cols-1":" grid grid-cols-2"),children:null==c?void 0:null===(n=c.data)||void 0===n?void 0:null===(t=n.lstTexts)||void 0===t?void 0:t.map(e=>{let t=(0,l$.Cw)("text",e.enuTitleColorLaunch),n=e.lblTitleLaunch[f],r=e.txbDescription[f];return(0,w.jsxs)("div",{className:"".concat(h?"p-4":"p-5"," col-span-1 flex ").concat(t," pt-8"),children:[(0,w.jsx)("div",{className:"w-fit flex flex-col justify-start mr-2",children:(0,w.jsx)(S.Z,{iconName:"check",className:"w-5 fill-[#14688E]"})}),(0,w.jsxs)("div",{children:[(0,w.jsx)("h2",{className:"font-bold",children:n}),(0,w.jsx)("h3",{children:r})]})]},e.id)})})]})},sm=e=>{let{imgUrl:t,title:n,titleColor:r,subTitle:a,subTitleColor:i,price:l,oldPrice:o=null,labelCta:s,bgCta:c,onClick:u}=e,d=n?"Immagine di ".concat(n.replace(/<[^>]+>/g,"")):"Immagine prodotto";return(0,w.jsxs)("div",{className:"flex flex-col w-[216px] desk:w-[300px] h-[316px] desk:h-[445px] rounded-2xl bg-lightgrey overflow-hidden shadow-lg",children:[(0,w.jsx)("div",{className:"relative flex-auto desk:w-full max-h-[165px] min-h-[165px] desk:max-h-[257px] desk:min-h-[257px] overflow-hidden shadow-sm bg-white rounded-t-2xl",children:t?(0,w.jsx)(_(),{src:t,alt:d,fill:!0,sizes:"(max-width: 768px) 216px, 300px",className:"hover:scale-110 transition duration-500 object-contain",priority:!1,unoptimized:!0}):(0,w.jsx)("div",{"aria-hidden":"true",className:"w-full h-full bg-gray-200"})}),(0,w.jsxs)("div",{className:"flex-1 items-center mb-4 h-full desk:my-4 mx-4 desk:mx-6 max-h-[75px] ",children:[(0,w.jsx)("h2",{className:"font-bold ".concat(r," max-h-[70px] min-h-[70px] desk:min-h-min overflow-hidden"),dangerouslySetInnerHTML:{__html:n}}),(0,w.jsx)("div",{className:"overflow-hidden desk:mt-1",children:(0,w.jsx)("h3",{className:"text-sm leading-4 ".concat(i," w-max"),dangerouslySetInnerHTML:{__html:a}})})]}),(0,w.jsx)("div",{className:"flex h-full flex-1 items-center",children:(0,w.jsxs)("div",{className:"flex flex-1 ml-4 desk:ml-6 justify-between h-full",children:[(0,w.jsxs)("div",{className:"flex flex-col justify-center",children:[o&&(0,w.jsx)("div",{className:"text-gray-600 line-through",children:o}),(0,w.jsx)("div",{className:"text-black font-bold",dangerouslySetInnerHTML:{__html:l}})]}),(0,w.jsx)("div",{onClick:e=>u(e),className:"desk:h-[80%] desk:flex desk:self-end",children:""!==s?(0,w.jsx)("button",{className:"bg-[#14688E] text-[#FFFFFF] font-bold h-full rounded-tl-3xl py-2 pl-4 pr-2 desk:px-8 desk:py-0 hover:bg-[#459DB4] active:bg-[#459DB4] transition duration-300",children:s.toUpperCase()}):null})]})})]})},sv=e=>{var t,n,r,a,i,l,o,s,c,u,d,p,f,h,m,v,g;let{data:x,language:b}=e,{i18n:y}=(0,D.$G)(),k=b||y.language,[j]=(0,T.dD)(),C=(0,T.b7)(null==x?void 0:null===(r=x.xconServiceRegistry)||void 0===r?void 0:null===(n=r.xtaxServiceCategory)||void 0===n?void 0:null===(t=n.ti[0])||void 0===t?void 0:t.targeturl);(0,O.useRouter)();let N="";return N=j?(null===(h=x.upiImageServiceMobile[k])||void 0===h?void 0:h.mediaserverpath)&&(null===(m=x.upiImageServiceMobile[k])||void 0===m?void 0:m.resourcename)?x.upiImageServiceMobile[k].mediaserverpath+"/"+x.upiImageServiceMobile[k].resourcename:"":(null===(v=x.upiImageServiceDesktop[k])||void 0===v?void 0:v.mediaserverpath)&&(null===(g=x.upiImageServiceDesktop[k])||void 0===g?void 0:g.resourcename)?x.upiImageServiceDesktop[k].mediaserverpath+"/"+x.upiImageServiceDesktop[k].resourcename:"",(0,w.jsxs)("div",{className:"flex flex-col rounded-2xl max-w-xs max-h-full",children:[(0,w.jsx)("div",{className:"rounded-t-2xl cursor-pointer overflow-hidden",children:(0,w.jsx)("img",{alt:(null===(a=x.lblTitleService)||void 0===a?void 0:a[k])||"Immagine servizio",src:N,className:"rounded-t-2xl scale-100 hover:scale-125 ease-in duration-500 w-full min-h-[12rem] max-h-[12rem] desk:translate-y-0"})}),(0,w.jsxs)("div",{className:"flex flex-col bg-lightgrey justify-center desk:p-6 ".concat(j?"max-h-[6rem] pl-2":""),children:[(0,w.jsxs)("div",{className:"flex items-center",children:[(null===(i=x.xconServiceRegistry)||void 0===i?void 0:i.flgTerminalT0)||(null===(l=x.xconServiceRegistry)||void 0===l?void 0:l.flgTerminalT1)||(null===(o=x.xconServiceRegistry)||void 0===o?void 0:o.flgTerminalT2)?(0,w.jsx)("div",{children:(0,w.jsx)(S.Z,{iconName:"marker",className:"fill-[#000000] w-5"})}):(0,w.jsx)("div",{className:"min-h-[0.6rem]"}),(0,w.jsx)("p",{className:"w-fit text-sm",children:((null===(s=x.xconServiceRegistry)||void 0===s?void 0:s.flgTerminalT0)?"T0 ":"")+((null===(c=x.xconServiceRegistry)||void 0===c?void 0:c.flgTerminalT1)?"T1 ":"")+((null===(u=x.xconServiceRegistry)||void 0===u?void 0:u.flgTerminalT2)?"T2":"")})]}),(0,w.jsx)("h2",{className:"desk:flex w-fit text-xl font-bold desk:h-[3.5rem] desk:-mt-2 desk:items-center",children:x.lblTitleService[k]}),(0,w.jsx)("div",{className:"w-fit text-sm pb-3 desk:pb-0",children:(null==C?void 0:null===(d=C.data)||void 0===d?void 0:d.lblCategoryName)&&(null==C?void 0:null===(p=C.data)||void 0===p?void 0:p.lblCategoryName[k])?null==C?void 0:null===(f=C.data)||void 0===f?void 0:f.lblCategoryName[k]:"--------"})]}),(0,w.jsx)("a",{href:(0,l$.Bi)(x,k),target:x.flgTargetCtaService?"_blank":"_self",children:(0,w.jsx)("div",{className:"w-full cursor-pointer font-bold bg-lightblack rounded-b-2xl pt-3 pb-3 text-center text-white uppercase",children:x.lblLabelCtaService[k]?x.lblLabelCtaService[k]:"-----"})})]})},sg=e=>{let{title:t,onClick:n,imageUrl:r,hint:a,onClickHint:i}=e;return(0,w.jsxs)("div",{className:"destinationCard flex flex-col cursor-pointer rounded-2xl w-full m-auto hover:shadow-lg",onClick:e=>n(e),children:[(0,w.jsx)("div",{className:"relative w-full h-[150px] rounded-t-2xl overflow-hidden",children:r?(0,w.jsx)(_(),{src:r,alt:"Immagine di ".concat(t),fill:!0,sizes:"(max-width: 768px) 100vw, 100vw",className:"object-cover",priority:!1,unoptimized:!0}):(0,w.jsx)("div",{"aria-hidden":"true",className:"w-full h-full bg-gray-200"})}),(0,w.jsxs)("div",{className:"infoSection bg-lightgrey rounded-b-2xl p-3",children:[(0,w.jsxs)("div",{className:"flex gap-2 items-center cursor-pointer",onClick:e=>i(e),children:[(0,w.jsx)(S.Z,{iconName:"location-destination"}),(0,w.jsx)("div",{className:"text-sm",children:a||""})]}),(0,w.jsx)("h2",{className:"text-xl font-semibold",children:t})]})]})},sx=e=>{let{title:t,imageUrl:n,infoItems:r,openByDefault:a=!1,language:i,bgColor:l,description:o}=e,{i18n:s}=(0,D.$G)(),c=i||s.language,[u,d]=(0,C.useState)(a);return(0,w.jsx)("div",{className:"accordionWrapper",children:(0,w.jsxs)("div",{className:"flex flex-col mx-auto gap-2 ".concat(l," justify-center p-6 rounded-2xl items-center"),children:[(0,w.jsxs)("div",{onClick:()=>d(!u),className:"flex justify-between items-center mb-2 w-full",children:[(0,w.jsxs)("div",{className:"flex justify-center gap-4 items-center",children:[(0,w.jsx)("div",{style:{width:"27px",height:"35px"},children:n?(0,w.jsx)(_(),{src:n,alt:"","aria-hidden":"true",width:27,height:35,className:"block",unoptimized:!0}):(0,w.jsx)("div",{"aria-hidden":"true",className:"bg-gray-200 rounded-sm w-full h-full"})}),(0,w.jsx)("h2",{className:"text-xl font-bold",children:t})]}),(0,w.jsx)(S.Z,{className:"ml-4 h-5 w-5 cursor-pointer transition duration-300"+(u?" rotate-90":""),iconName:"arrow"})]}),u?(0,w.jsxs)("div",{className:"w-full px-2",children:[null==r?void 0:r.map(e=>{let t=l1().sanitize(e.lblSubtitleInfo[c]);return(0,w.jsx)("a",{target:e.flgTargetCtaInfo?"_blank":"_self",href:e.blLinkCtaInfo[c],children:(0,w.jsx)("div",{className:"cursor-pointer my-3 text-lg",children:(0,w.jsx)("h3",{dangerouslySetInnerHTML:{__html:t}})})},e.id)}),o?(0,w.jsx)("div",{className:"my-3 text-lg",children:(0,w.jsx)("h3",{children:o})}):null]}):null]})})},sb=e=>{var t,n,r,a,i;let{data:l,lang:o,isMobile:s,isRow:c,isFull:u}=e,{t:d}=(0,D.$G)(),p=s?null==l?void 0:null===(t=l.upiImageMobileNews[o])||void 0===t?void 0:t.mediaserverpath:null==l?void 0:null===(n=l.upiImageDesktopNews[o])||void 0===n?void 0:n.mediaserverpath,f=s?null==l?void 0:null===(r=l.upiImageMobileNews[o])||void 0===r?void 0:r.resourcename:null==l?void 0:null===(a=l.upiImageDesktopNews[o])||void 0===a?void 0:a.resourcename,h=p&&f?"".concat(p,"/").concat(f):"",m=new Date(null==l?void 0:l.dteNews),v=(null==l?void 0:l.dteNews)?m.toLocaleDateString("".concat(o,"-").concat(o.toUpperCase()),{day:"2-digit",month:"long",year:"numeric"}):"18 Luglio 1998",[g,x]=(0,C.useState)("");async function b(){var e,t;fetch(null==l?void 0:null===(t=l.xtaxNewsCategory)||void 0===t?void 0:null===(e=t.ti[0])||void 0===e?void 0:e.targeturl).then(e=>null==e?void 0:e.json()).then(e=>{x(e.data.lblNameCategory[o])})}(0,C.useEffect)(()=>{b()},[l]);let y=(null==l?void 0:null===(i=l.lblTitleNews)||void 0===i?void 0:i[o])||"Immagine della notizia";return(0,w.jsxs)("div",{className:" flex ".concat(c&&!s?"flex-row-reverse justify-between items-center":"flex-col gap-4"," desk:w-[85%] desk:max-w-[80rem] h-full"),children:[(0,w.jsx)("div",{className:"relative rounded-2xl overflow-hidden w-full aspect-[414/290] ".concat(c||u?"":"h-[290px]"),children:h?(0,w.jsx)(_(),{src:h,alt:y,fill:!0,sizes:"(max-width: 768px) 100vw, 50vw",className:"object-cover",priority:!1,unoptimized:!0}):(0,w.jsx)("div",{"aria-hidden":"true",className:"w-full h-full bg-gray-200"})}),(0,w.jsxs)("div",{className:"flex flex-col text-sm h-1/2 gap-[8px] ".concat(c&&!s?"w-[40%]":""),children:[u&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"text-lightblue font-bold",children:g.toUpperCase()}),(0,w.jsx)("div",{className:"font-bold",dangerouslySetInnerHTML:{__html:l1().sanitize((null==l?void 0:l.lblTitleNews)&&(null==l?void 0:l.lblTitleNews[o])?null==l?void 0:l.lblTitleNews[o]:"")}})]}),(0,w.jsx)("div",{className:"capitalize",children:v}),u&&(0,w.jsx)("div",{dangerouslySetInnerHTML:{__html:l1().sanitize((null==l?void 0:l.lblSubtitleNews)&&(null==l?void 0:l.lblSubtitleNews[o])?null==l?void 0:l.lblSubtitleNews[o]:"")}}),(0,w.jsx)("a",{className:"!text-black !no-underline",href:(0,l$.Bi)(l,o),children:(0,w.jsxs)("div",{className:"flex gap-2 cursor-pointer",children:[u?(0,w.jsx)("div",{className:"font-bold",children:d("news.readArticle")}):(0,w.jsx)("div",{className:"font-bold",dangerouslySetInnerHTML:{__html:l1().sanitize((null==l?void 0:l.lblTitleNews)&&(null==l?void 0:l.lblTitleNews[o])?null==l?void 0:l.lblTitleNews[o]:"")}}),(0,w.jsx)(S.Z,{iconName:"arrow",className:"fill-[#000000] w-2"})]})})]})]})},sy=function(e){let t;let[n,r]=(0,C.useState)(),a=()=>fetch(e).then(e=>e.json()).then(e=>r(e));return t=Array.isArray(null==n?void 0:n.data)?{data:null==n?void 0:n.data[0],resultInfo:null==n?void 0:n.resultInfo}:n,(0,C.useEffect)(()=>{e&&a()},[e]),t};let sw=e=>{var t,n;return(null==e?void 0:null===(t=e.xconCardLaunch)||void 0===t?void 0:t.targeturl)||(null==e?void 0:null===(n=e.xconCardLaunchWithText)||void 0===n?void 0:n.targeturl)};var sk=e=>{var t,n,r,a,i,l,o,s,c,u,d,p;let{targetUrl:f="",data:h,dividerMode:m=!1,language:v}=e,g=(0,P.sJ)(oP),x="".concat("https://resourcesols3cms.seamilano.eu","/rest/v1/SEA-LinMxp/contents/m05?query=xtaxDestinations.ti.lblAirportDestinationDescription=%27").concat(g,"%27");u=h||sy(f||x);let{i18n:b}=(0,D.$G)(),y=v||b.language,[k,S]=(0,T.dD)(),j=(0,C.useMemo)(()=>{var e,t,n,r,a;return(null==u?void 0:null===(e=u.data)||void 0===e?void 0:e.grpType)==="grpLaunch"?null==u?void 0:null===(n=u.data)||void 0===n?void 0:null===(t=n.lstCardLaunch)||void 0===t?void 0:t.map(sw):null==u?void 0:null===(a=u.data)||void 0===a?void 0:null===(r=a.lstCardLaunchWithText)||void 0===r?void 0:r.map(sw)},[u]),N=(0,T.Yr)({urls:j}),E=l1().sanitize((null==u?void 0:null===(t=u.data)||void 0===t?void 0:t.lblTitle)&&(null==u?void 0:null===(n=u.data)||void 0===n?void 0:n.lblTitle[y])?null==u?void 0:null===(r=u.data)||void 0===r?void 0:r.lblTitle[y]:""),M=(null==u?void 0:null===(a=u.data)||void 0===a?void 0:a.enuTitleColor)?(0,l$.Cw)("text",null==u?void 0:u.data.enuTitleColor):"text-black",_=l1().sanitize((null==u?void 0:null===(i=u.data)||void 0===i?void 0:i.txbDescription)&&(null==u?void 0:null===(l=u.data)||void 0===l?void 0:l.txbDescription[y])?null==u?void 0:null===(o=u.data)||void 0===o?void 0:o.txbDescription[y]:""),A=(0,l$.Cw)("bg",null==u?void 0:null===(s=u.data)||void 0===s?void 0:s.enuBackgroundCta),L=(null==u?void 0:null===(c=u.data)||void 0===c?void 0:c.grpType)==="grpLaunch",[I,O]=(0,C.useState)(!0);return(0,C.useEffect)(()=>{O(window.innerWidth<768);let e=()=>{O(window.innerWidth<768)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,w.jsx)(w.Fragment,{children:(0,w.jsx)("div",{className:"".concat(m?"":(null==u?void 0:null===(p=u.data)||void 0===p?void 0:null===(d=p.enuBackgroundCta)||void 0===d?void 0:d.toLowerCase())==="bianco"?"py-0 p-EdgeMob tab:p-EdgeTab tab:py-0":"p-8 desk:py-12 mt-8"," h-fit px-6 ").concat(m?"bg-[#FFFFFF]":A),children:(0,w.jsxs)("div",{className:"max-w-cont-2 mx-auto w-full -translate-y-6",children:[(0,w.jsxs)("div",{className:"".concat(M," text-center tab:text-left mb-5"),children:[(0,w.jsx)("h1",{dangerouslySetInnerHTML:{__html:E},className:"text-lg font-bold mb-2"}),(0,w.jsx)("h2",{dangerouslySetInnerHTML:{__html:_}})]}),L?(0,w.jsx)("div",{className:"flex flex-col tab:flex-row desk:gap-8 gap-4 py-6",children:null==N?void 0:N.map((e,t)=>{var n,r,a,i,l,o,s,c,u,d,p,f,h,m,v,g,x,b,S;let j;let C=(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.enuTitleColorBox)?(0,l$.Cw)("text",null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.enuTitleColorBox):"text-black";return j=L?k?(null==e?void 0:null===(o=e.data)||void 0===o?void 0:null===(l=o.upiImageBoxHMobile[y])||void 0===l?void 0:l.mediaserverpath)+"/"+(null==e?void 0:null===(c=e.data)||void 0===c?void 0:null===(s=c.upiImageBoxHMobile[y])||void 0===s?void 0:s.resourcename):(null==e?void 0:null===(d=e.data)||void 0===d?void 0:null===(u=d.upiImageBoxHDesktop[y])||void 0===u?void 0:u.mediaserverpath)+"/"+(null==e?void 0:null===(f=e.data)||void 0===f?void 0:null===(p=f.upiImageBoxHDesktop[y])||void 0===p?void 0:p.resourcename):k?(null==e?void 0:null===(h=e.data)||void 0===h?void 0:h.upiImageMobileLaunch.mediaserverpath)+"/"+(null==e?void 0:null===(v=e.data)||void 0===v?void 0:null===(m=v.upiImageMobileLaunch)||void 0===m?void 0:m.resourcename):(null==e?void 0:null===(x=e.data)||void 0===x?void 0:null===(g=x.upiImageDeskLaunch)||void 0===g?void 0:g.mediaserverpath)+"/"+(null==e?void 0:null===(S=e.data)||void 0===S?void 0:null===(b=S.upiImageDeskLaunch)||void 0===b?void 0:b.resourcename),(0,w.jsx)("div",{className:"aspect-[320/120] w-full",children:(0,w.jsx)("a",{href:(0,l$.Bi)(null==e?void 0:e.data,y),target:(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.flgTarget)?"_blank":"_self",children:(0,w.jsx)(sh,{title:null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.lblTitleBox[y],onClick:()=>{},imageUrl:j,isLaunch:L,item:e,txtColor:C})})},t)})}):(0,w.jsx)("div",{className:"h-full",children:(0,w.jsx)(lK.tq,{modules:[lX.Rv],freeMode:!0,spaceBetween:20,slidesPerView:"auto",direction:"horizontal",className:"py-4",children:null==N?void 0:N.map((e,t)=>{var n,r,a,i,l,o,s,c,u,d,p,f,h,m,v,g,x,b,S,j;let C;let N=(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.enuTitleColorBox)?(0,l$.Cw)("text",null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.enuTitleColorBox):"text-black";return C=L?k?(null==e?void 0:null===(s=e.data)||void 0===s?void 0:null===(o=s.upiImageBoxHMobile[y])||void 0===o?void 0:o.mediaserverpath)+"/"+(null==e?void 0:null===(u=e.data)||void 0===u?void 0:null===(c=u.upiImageBoxHMobile[y])||void 0===c?void 0:c.resourcename):(null==e?void 0:null===(p=e.data)||void 0===p?void 0:null===(d=p.upiImageBoxHDesktop[y])||void 0===d?void 0:d.mediaserverpath)+"/"+(null==e?void 0:null===(h=e.data)||void 0===h?void 0:null===(f=h.upiImageBoxHDesktop[y])||void 0===f?void 0:f.resourcename):k?(null==e?void 0:null===(m=e.data)||void 0===m?void 0:m.upiImageMobileLaunch.mediaserverpath)+"/"+(null==e?void 0:null===(g=e.data)||void 0===g?void 0:null===(v=g.upiImageMobileLaunch)||void 0===v?void 0:v.resourcename):(null==e?void 0:null===(b=e.data)||void 0===b?void 0:null===(x=b.upiImageDeskLaunch)||void 0===x?void 0:x.mediaserverpath)+"/"+(null==e?void 0:null===(j=e.data)||void 0===j?void 0:null===(S=j.upiImageDeskLaunch)||void 0===S?void 0:S.resourcename),(0,w.jsx)(lK.o5,{className:"w-[90%]",children:(0,w.jsx)("a",{href:(0,l$.Bi)(null==e?void 0:e.data,y),target:(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.flgTarget)?"_blank":"_self",children:(0,w.jsx)(sh,{title:null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.lblTitleCard[y],subTitle:null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.lblTextCard[y],onClick:()=>{},imageUrl:C,isLaunch:L,item:e,txtColor:N})})},t)})})})]})})})};let sS=si()(()=>n.e(695).then(n.bind(n,8695)),{ssr:!1});var sj=e=>{var t,n,r,a,i,l,o,s,c,u,d,p,f,h,m,v,g,x,b,y,k,S,j,C,N,E,M,A,L,I,P,O;let{data:R,language:F,hidden:B}=e,z=(null==R?void 0:R.data)?R:(0,T.b7)(R),[Z,H]=(0,T.dD)(),{i18n:U}=(0,D.$G)(),V=F||U.language,W=null==z?void 0:null===(n=z.data)||void 0===n?void 0:null===(t=n.upiImageInfo)||void 0===t?void 0:t.mediaserverpath,G=null==z?void 0:null===(a=z.data)||void 0===a?void 0:null===(r=a.upiImageInfo)||void 0===r?void 0:r.resourcename,Y=W&&G?W+"/"+G:"",q=(null==z?void 0:null===(i=z.data)||void 0===i?void 0:i.lblLink)?null==z?void 0:null===(l=z.data)||void 0===l?void 0:l.lblLink[V]:"",K=(null==z?void 0:null===(o=z.data)||void 0===o?void 0:o.enuBackground)?(0,l$.Cw)("bg",null==z?void 0:null===(s=z.data)||void 0===s?void 0:s.enuBackground):"bg-LightGrey",$=(null==z?void 0:null===(c=z.data)||void 0===c?void 0:c.enuBackgroundCta)?(0,l$.Cw)("bg",null==z?void 0:null===(u=z.data)||void 0===u?void 0:u.enuBackgroundCta):"bg-black",X=(null==z?void 0:null===(d=z.data)||void 0===d?void 0:d.enuTitleColor)?(0,l$.Cw)("text",null==z?void 0:null===(p=z.data)||void 0===p?void 0:p.enuTitleColor):"text-black",J=(null==z?void 0:null===(f=z.data)||void 0===f?void 0:f.enuBackgroundLabel)?(0,l$.Cw)("text",null==z?void 0:null===(h=z.data)||void 0===h?void 0:h.enuBackgroundLabel):"text-white";return(0,w.jsx)("div",{className:"max-w-cont-2 w-full px-6 desk:px-0 desk:mx-auto mt-8 desk:mb-12",hidden:B,children:(0,w.jsxs)("div",{className:"rounded-3xl  ".concat((null==z?void 0:null===(m=z.data)||void 0===m?void 0:m.grpTemplateType)==="grpTemplateLogo"?"flex flex-col desk:flex-row desk:justify-start gap-5 items-center p-12 "+K:"py-7"),children:[Y?(0,w.jsx)("div",{className:"".concat(Z||H?"flex w-full justify-start":""),children:(0,w.jsx)(_(),{alt:"Logo di ".concat((null==z?void 0:null===(g=z.data)||void 0===g?void 0:null===(v=g.txbTitle)||void 0===v?void 0:v[V])||"servizio informativo"),src:Y,className:"desk:w-32 desk:mr-10",width:128,height:128,unoptimized:!0})}):null,(0,w.jsxs)("div",{className:(null==z?void 0:null===(x=z.data)||void 0===x?void 0:x.grpTemplateType)==="grpTemplateLogo"?"max-w-full":"px-6 flex flex-col desk:flex-row justify-between items-center gap-5",children:[(null==z?void 0:null===(b=z.data)||void 0===b?void 0:b.txbTitle)&&(null==z?void 0:null===(y=z.data)||void 0===y?void 0:y.txbTitle[V])||(null==z?void 0:null===(k=z.data)||void 0===k?void 0:k.txbSubTitle)&&(null==z?void 0:null===(S=z.data)||void 0===S?void 0:S.txbSubTitle[V])?(0,w.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,w.jsx)("div",{className:"flex items-center",children:(0,w.jsx)("h1",{className:"font-primary font-semibold text-lg desk:text-[32px] desk:text-2xl ".concat(X),dangerouslySetInnerHTML:{__html:l1().sanitize((null==z?void 0:null===(j=z.data)||void 0===j?void 0:j.txbTitle)&&(null==z?void 0:null===(C=z.data)||void 0===C?void 0:C.txbTitle[V])?null==z?void 0:null===(N=z.data)||void 0===N?void 0:N.txbTitle[V]:"")}})}),(0,w.jsx)("div",{className:"flex items-center ".concat(X),children:(0,w.jsx)("h2",{dangerouslySetInnerHTML:{__html:l1().sanitize((null==z?void 0:null===(E=z.data)||void 0===E?void 0:E.txbSubTitle)&&(null==z?void 0:null===(M=z.data)||void 0===M?void 0:M.txbSubTitle[V])?null==z?void 0:null===(A=z.data)||void 0===A?void 0:A.txbSubTitle[V]:"")}})})]}):null,(null==z?void 0:null===(L=z.data)||void 0===L?void 0:L.lblLabelCta)&&(null==z?void 0:null===(I=z.data)||void 0===I?void 0:I.lblLabelCta[V])?(0,w.jsx)("div",{className:"flex items-center mt-2",children:(0,w.jsx)(sS,{text:null==z?void 0:null===(P=z.data)||void 0===P?void 0:P.lblLabelCta[V],bgColor:$,txtColor:J,hrefPath:""!=q?q:(0,l$.Bi)(null==z?void 0:z.data,V),width:"max-w-full !whitespace-normal",onClick:()=>{},target:(null==z?void 0:null===(O=z.data)||void 0===O?void 0:O.flgTarget)?"_blank":"_self"})}):null]})]})})},sC=n(2304),sN=n(5538),sT=n(3108);let sE=isNaN(Number("3000"))?3e3:Number("3000"),sD=()=>{let e=(0,lK.oc)();return e.slides.length>1?(0,w.jsx)(sT.Z,{completed:e.activeIndex+1,maxCompleted:e.slides.length,bgColor:"#000000",baseBgColor:"#D3D3D3",isLabelVisible:!1,height:"5px"}):null};var sM=e=>{let{data:t,language:n}=e,{i18n:r}=(0,D.$G)(),a=n||r.language,i=(null==t?void 0:null===(c=t.data)||void 0===c?void 0:null===(s=c.lstLaunch)||void 0===s?void 0:s.filter(e=>{let t=!1,n=!1;try{let n=e=>{var t;return null!==(t=null==e?void 0:e.replace(/\./g,":"))&&void 0!==t?t:""},r="".concat(e.dteStart," ").concat(n(e.lblStartTime)),a="".concat(e.dteEnd," ").concat(n(e.lblEndTime)),i=new Date(r),l=new Date(a),o=new Date;t=!((0,sC.default)(i)&&(0,sC.default)(l))||!(i<=l)||(0,sN.default)(o,{start:i,end:l})}catch(e){t=!0}try{var r,a,i;let t=(a="Malpensa",void 0===a)?void 0:null===(r=a.toLowerCase())||void 0===r?void 0:r.trim();n=!t||!Array.isArray(null==e?void 0:null===(i=e.xtaxAirports)||void 0===i?void 0:i.ti)||0===e.xtaxAirports.ti.length||e.xtaxAirports.ti.some(e=>{var n,r;let a=null===(r=e.label)||void 0===r?void 0:null===(n=r.toLowerCase())||void 0===n?void 0:n.trim();return!a||""===a||a===t})}catch(e){n=!0}return t&&n}))||[],l=i.length>0?i:(null==t?void 0:null===(d=t.data)||void 0===d?void 0:null===(u=d.lstLaunch)||void 0===u?void 0:u.slice(0,1))||[],o=(0,C.useMemo)(()=>{var e;return(null==t?void 0:null===(e=t.data.lstNews)||void 0===e?void 0:e.map(e=>{var t;return null==e?void 0:null===(t=e.xconNews)||void 0===t?void 0:t.targeturl}))||[]},[t]);var s,c,u,d,p,f,h,m,v,g,x,b,y,k,S,j,N,E=(0,T.b7)("/resourcesols3cms.seamilano.eu/rest/v1/SEA-LinMxp/contents/news?query=enuPageCategory=%27News%27");(null==t?void 0:null===(p=t.data)||void 0===p?void 0:p.enuTypeInfo)!=="automatismo news"||(null==t?void 0:null===(f=t.data)||void 0===f?void 0:f.lstAutomatismNews[0].flgAllNews)||(E=null==E?void 0:null===(N=E.data)||void 0===N?void 0:N.filter(e=>{var n,r,a,i,l,o;return(null==t?void 0:null===(i=t.data)||void 0===i?void 0:null===(a=i.lstAutomatismNews[0])||void 0===a?void 0:null===(r=a.xtaxNewsCategory)||void 0===r?void 0:null===(n=r.ti[0])||void 0===n?void 0:n.label)===(null==e?void 0:null===(o=e.xtaxNewsCategory)||void 0===o?void 0:null===(l=o.ti[0])||void 0===l?void 0:l.label)}));let M=(0,T.Yr)({urls:o}),A=(null==t?void 0:null===(h=t.data)||void 0===h?void 0:h.enuTypeInfo)==="automatismo news"?(null==t?void 0:null===(m=t.data)||void 0===m?void 0:m.lstAutomatismNews[0].flgAllNews)?null==E?void 0:E.data:E:M,L=(null==t?void 0:null===(v=t.data)||void 0===v?void 0:v.enuTitleColor)?(0,l$.Cw)("text",null==t?void 0:null===(g=t.data)||void 0===g?void 0:g.enuTitleColor):"text-black",[I]=(0,T.dD)(),[P,O]=(0,C.useState)(0);return(0,w.jsxs)("div",{className:"px-6 max-w-cont-2 mt-8 mx-auto w-full py-8 desk:py-12 flex flex-col desk:flex-row desk:h-[35rem]",children:[(0,w.jsx)("div",{className:"rounded-2xl desk:cursor-pointer h-full desk:w-3/5 desk:mr-[10px]",children:(null==l?void 0:l.length)>1?(0,w.jsxs)(lK.tq,{onRealIndexChange:e=>O(e.realIndex),slidesPerView:1,spaceBetween:20,className:"w-full h-full",autoplay:{delay:sE},wrapperClass:"h-[90%]",children:[null==l?void 0:l.map((e,t)=>{var n,r,i,l;let o=I?null==e?void 0:null===(n=e.upiImageMobile[a])||void 0===n?void 0:n.resourcename:null==e?void 0:null===(r=e.upiImageDesktop[a])||void 0===r?void 0:r.resourcename,s=I?null==e?void 0:null===(i=e.upiImageMobile[a])||void 0===i?void 0:i.mediaserverpath:null==e?void 0:null===(l=e.upiImageDesktop[a])||void 0===l?void 0:l.mediaserverpath,c=e.lblLabelCta[a],u=e.enuBackgroundCta;return(0,w.jsx)(lK.o5,{className:"!w-full",children:(0,w.jsx)("div",{className:"w-full h-full relative",children:(0,w.jsxs)("a",{href:(0,l$.Bi)(e,a),target:(null==e?void 0:e.flgTarget)?"_blank":"_self",children:[(0,w.jsx)(_(),{alt:c&&!["scopri","scopri di pi\xf9","vai al dettaglio"].includes(c.toLowerCase())?"Evento: ".concat(c):"Immagine relativa a un evento attivo",src:s+"/"+o,fill:!0,className:"rounded-2xl object-cover",unoptimized:!0}),(0,w.jsx)("div",{className:"absolute left-3 bottom-0",children:(0,w.jsx)("h1",{className:"text-xl desk:text-xl font-semibold mb-2.5 font-secondary ".concat("nero"===u?"text-black":"text-white"),children:c})})]})})},t)}),(0,w.jsx)("div",{className:"flex justify-center",children:(0,w.jsx)("div",{className:"w-[35%] mt-6 mb-5",children:(0,w.jsx)(sD,{})})})]}):null==l?void 0:l.map((e,t)=>{var n,r,i,o,s;let c=I?null==e?void 0:null===(n=e.upiImageMobile[a])||void 0===n?void 0:n.resourcename:null==e?void 0:null===(r=e.upiImageDesktop[a])||void 0===r?void 0:r.resourcename,u=I?null==e?void 0:null===(i=e.upiImageMobile[a])||void 0===i?void 0:i.mediaserverpath:null==e?void 0:null===(o=e.upiImageDesktop[a])||void 0===o?void 0:o.mediaserverpath,d=e.lblLabelCta[a],p=e.enuBackgroundCta;return(0,w.jsx)("div",{className:"w-full h-full relative desk:mb-0 mb-4",children:(0,w.jsxs)("a",{href:(0,l$.Bi)(l[0],a),target:(null===(s=l[0])||void 0===s?void 0:s.flgTarget)?"_blank":"_self",children:[(0,w.jsx)(_(),{alt:d&&!["scopri","scopri di pi\xf9","vai al dettaglio"].includes(d.toLowerCase())?"Evento: ".concat(d):"Immagine relativa a un evento attivo",src:u+"/"+c,fill:!0,className:"rounded-2xl object-cover",unoptimized:!0}),(0,w.jsx)("div",{className:"absolute left-3 bottom-0",children:(0,w.jsx)("h1",{className:"text-xl desk:text-xl font-semibold mb-2.5 font-secondary ".concat("nero"===p?"text-black":"text-white"),children:d})})]})},t)})}),(0,w.jsxs)("div",{className:"h-full desk:w-2/5 ml-[10px] ".concat(L),children:[(0,w.jsxs)("div",{className:" mb-4 h-1/6",children:[(0,w.jsx)("h1",{className:"mb-2 font-bold text-3xl font-secondary",dangerouslySetInnerHTML:{__html:l1().sanitize((null==t?void 0:null===(x=t.data)||void 0===x?void 0:x.lblTitle)&&(null==t?void 0:null===(b=t.data)||void 0===b?void 0:b.lblTitle[a])?null==t?void 0:null===(y=t.data)||void 0===y?void 0:y.lblTitle[a]:"")}}),(0,w.jsx)("h2",{dangerouslySetInnerHTML:{__html:l1().sanitize((null==t?void 0:null===(k=t.data)||void 0===k?void 0:k.lblSubtitle)&&(null==t?void 0:null===(S=t.data)||void 0===S?void 0:S.lblSubtitle[a])?null==t?void 0:null===(j=t.data)||void 0===j?void 0:j.lblSubtitle[a]:"")}})]}),(0,w.jsx)("div",{className:"desk:h-[80%] desk:mt-15",children:(0,w.jsxs)(lK.tq,{onRealIndexChange:e=>O(e.realIndex),direction:I?"horizontal":"vertical",modules:[lX.Gk,lX.N1,lX.tl],spaceBetween:20,slidesPerView:1,className:"h-full",mousewheel:!0,keyboard:{enabled:!0},pagination:!I&&{enabled:!0,clickable:!0,horizontalClass:"swiper-pagination-vertical-news",dynamicBullets:!0,el:".vertical-pagination-wrapper-news",renderBullet:(e,t)=>'<div class="'+t+' customBullet">'+e+"</div>"},children:[null==A?void 0:A.map((e,n)=>{var r,i;return(null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.lblTitleNews[a])?(0,w.jsx)(lK.o5,{className:"!h-full",children:(0,w.jsx)(sb,{data:(null==t?void 0:null===(i=t.data)||void 0===i?void 0:i.enuTypeInfo)==="automatismo news"?e:null==e?void 0:e.data,lang:a,isMobile:I})},n):null}),I?(0,w.jsx)("div",{className:"flex justify-center",children:(0,w.jsx)("div",{className:"w-[50%] mt-10",children:(0,w.jsx)(sD,{})})}):null,(0,w.jsx)("div",{className:"vertical-pagination-wrapper-news"})]})})]})]})},s_=e=>{var t,n,r,a,i;let{data:l,language:o}=e,{i18n:s}=(0,D.$G)(),c=o||s.language,[u]=(0,T.dD)(),[d,p]=(0,C.useState)(!1),[f,h]=(0,C.useState)(""),m=e=>{p(!0),h(e)},v=()=>{p(!1),h("")};return(0,w.jsxs)(w.Fragment,{children:[(null==l?void 0:null===(t=l.data)||void 0===t?void 0:t.lslImage.length)>1?(0,w.jsx)("div",{className:"mt-12",children:(0,w.jsx)(lK.tq,{slidesPerView:"auto",spaceBetween:20,freeMode:!0,modules:[lX.Rv,lX.Gk],slidesOffsetBefore:0,slidesOffsetAfter:0,className:"infografic max-w-cont-2 px-6",children:null==l?void 0:null===(r=l.data)||void 0===r?void 0:null===(n=r.lslImage)||void 0===n?void 0:n.map(e=>{let t=e.id,n=e.upiImageDesktop[c].mediaserverpath+"/"+e.upiImageDesktop[c].resourcename,r=e.upiImageMobile[c].mediaserverpath+"/"+e.upiImageMobile[c].resourcename;return(0,w.jsx)(lK.o5,{className:"select-none w-auto cursor-pointer",children:(0,w.jsx)("div",{className:"rounded-lg overflow-hidden",children:(0,w.jsx)("img",{alt:"descrizione immagine",onClick:()=>m(u?r:n),src:"".concat(u?r:n),className:"h-[336px] transition-all duration-1000"})})},t)})})}):(0,w.jsx)("div",{className:"max-w-cont-2 px-6 py-6 mx-auto",children:null==l?void 0:null===(i=l.data)||void 0===i?void 0:null===(a=i.lslImage)||void 0===a?void 0:a.map(e=>{let t=e.upiImageDesktop[c].mediaserverpath+"/"+e.upiImageDesktop[c].resourcename,n=e.upiImageMobile[c].mediaserverpath+"/"+e.upiImageMobile[c].resourcename;return(0,w.jsx)("div",{className:"rounded-lg overflow-hidden flex justify-center shadow-lg",children:(0,w.jsx)("img",{alt:"descrizione immagine",onClick:()=>m(u?n:t),src:"".concat(u?n:t),className:"w-full"})})})}),d&&(0,w.jsx)("div",{className:"select-none",children:(0,w.jsx)("div",{onClick:v,className:"bg-black bg-opacity-50 fixed top-0 left-0 w-full z-20",children:(0,w.jsx)("div",{className:"rounded-lg overflow-hidden flex items-center justify-center h-screen",children:(0,w.jsxs)("button",{className:"bg-black p-0 rounded-3xl float-right relative left-1",onClick:v,children:[(0,w.jsx)("img",{alt:"descrizione immagine",onClick:v,src:"".concat(f),className:"m-auto py-auto"}),(0,w.jsx)(lH,{onClick:v})]})})})})]})};let sA=(e,t,n)=>{let r;let a=e.split("/").map(Number).filter(e=>1!==e),i=t.data?t.data[0].ti:null;return null==a?void 0:a.map((e,t)=>{var a,l,o,s;for(let t=0;t<=(null==i?void 0:i.length)-1;t++)if((null===(o=i[t])||void 0===o?void 0:null===(l=o.metainfo)||void 0===l?void 0:l.id)==e){r=t;let e="Malpensa"===i[t].labelMultilanguage[n]||"Linate"===i[t].labelMultilanguage[n]?"Homepage":i[t].labelMultilanguage[n],a=i[t].grpTypeMenu,l="";return"grpLinkLibero"===i[t].grpLink&&(l=i[t].lblLink[n]),"xconGenericPage"===i[t].grpLink&&(l=i[t].xconGenericPage.lblUrlPath[n]),"xconNews"===i[t].grpLink&&(l=""),i=i?null===(s=i[r])||void 0===s?void 0:s.ti:null,{grpType:a,label:e,targetUrl:""==l&&"Homepage"===e?"/".concat(n):l}}i=i?null===(a=i[r])||void 0===a?void 0:a.ti:null})};var sL=e=>{var t;let{colorCrumbs:n="text-grigiomedio",language:r}=e,[a,i]=(0,C.useState)([]),{i18n:l}=(0,D.$G)(),o=r||l.language,s=(0,P.sJ)(L.QX),c=(0,P.sJ)(L.MM);return(0,C.useEffect)(()=>{var e;i(null===(e=sA(s,c,o))||void 0===e?void 0:e.filter(e=>(null==e?void 0:e.grpType)!=="grpSecondLevelContainer"))},[s,o]),(0,w.jsx)(w.Fragment,{children:(0,w.jsx)("nav",{"aria-label":"Percorso di navigazione: sei in ".concat(null===(t=a.at(-1))||void 0===t?void 0:t.label),children:(0,w.jsx)("div",{className:"flex ".concat((0,l$.Cw)("text",n)," text-xs"),children:a?a.map((e,t)=>{let r=t===a.length-1,i=null==e?void 0:e.label,l=null==e?void 0:e.targetUrl;return(0,w.jsxs)("div",{className:"flex",children:[l&&!r?(0,w.jsx)("a",{href:l,className:"mr-2 hover:underline underline-offset-2  ".concat(r?"font-extrabold":"cursor-pointer"),children:i}):(0,w.jsx)("div",{className:"mr-2  ".concat(r?"font-extrabold":null),children:i}),r?null:(0,w.jsx)(S.Z,{iconName:"arrow",color:"",className:"w-1.5 mr-2 ".concat((0,l$.Cw)("fill",n))})]},t)}):null})})})};let sI=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";if(!e)return console.log("Missing frequency"),"";if(e&&e.length<7)return console.log("No sufficient digit for frequency calc"),"";let n="",r=e.replace(" ","").split(""),a=0;return r.forEach(e=>{0!==Number(e)&&a++}),r.forEach((e,r)=>{0!==Number(e)&&(n+="".concat(n&&a>0?" |":""," ").concat(sP(r,t)))}),n},sP=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";switch(e){case 0:t="en"===n?"MON":"LUN";break;case 1:t="en"===n?"TUE":"MAR";break;case 2:t="en"===n?"WED":"MER";break;case 3:t="en"===n?"THU":"GIO";break;case 4:t="en"===n?"FRI":"VEN";break;case 5:t="en"===n?"SAT":"SAB";break;case 6:t="en"===n?"SUN":"DOM"}return t};var sO=e=>{let{actionLink:t="",actionColumn:n=!1,flightItem:r,actionLabel:a="",targetBlank:i=!1}=e,{i18n:l}=(0,D.$G)(),o=l.language,[s]=(0,T.dD)(),c=(0,C.useMemo)(()=>sI(r.frequency,o),[r,o]);return(0,w.jsxs)("div",{className:"text-sm desk:text-base text-center grid gap-4 border-b-2 py-4 desk:py-7 border-b-lightgrey ".concat(n?"grid-cols-[2fr_3fr_2fr] desk:grid-cols-[1fr_2fr_2fr_2fr_2fr_1fr]":"grid-cols-[2fr_3fr_2fr] desk:grid-cols-[1fr_2fr_2fr_2fr_2fr]"),children:[(0,w.jsxs)("div",{className:"",children:[r.flightNumber," ",(0,w.jsx)("div",{className:"desk:hidden pt-1 font-semibold",children:r.airlineDescription})]}),(0,w.jsx)("div",{className:"hidden desk:block font-semibold",children:r.airlineDescription}),(0,w.jsx)("div",{className:"hidden desk:block font-semibold",children:r.routing[1].airportDescription}),(0,w.jsxs)("div",{className:"",children:[(0,oM.t)("flights.from")," ",new Date(r.dateFrom).toLocaleDateString().replaceAll("/",".")," ",(0,oM.t)("flights.to")," ",new Date(r.dateTo).toLocaleDateString().replaceAll("/",".")," ",(0,w.jsx)("div",{className:"desk:hidden pt-1 font-semibold",children:r.routing[1].airportDescription})]}),(0,w.jsx)("div",{className:"",children:"".concat(r.stx).concat(s?"":" | ").concat(c)}),n?(0,w.jsx)("div",{className:"mx-auto dek:mx-0 text-xs desk:text-base cursor-pointer font-bold uppercase flex col-span-3 desk:col-span-1 al",children:(0,w.jsx)("a",{target:i?"_blank":"_self",className:"w-full flex justify-end",href:t,children:(0,w.jsxs)("div",{className:"flex items-center gap-2",children:[(0,w.jsx)("div",{children:a}),(0,w.jsx)("div",{children:(0,w.jsx)(S.Z,{iconName:"chevron-r"})})]})})}):null]})},sR=e=>{let{destination:t,language:n,partnerShipActive:r}=e,[a,i]=(0,C.useState)([]),[l,o]=(0,C.useState)(!0),[s,c]=(0,C.useState)(null),{t:u,i18n:d}=(0,D.$G)(),p=n||d.language,f=(0,C.useMemo)(()=>null==a?void 0:a.slice(0,6),[a,p]),h={Hanoi:"HAN","Abu Dhabi":"AUH",Roma:"FCO",Milano:"MXP",Londra:"LHR",Parigi:"CDG","New York":"JFK",Tokyo:"NRT",Dubai:"DXB"},m=async()=>{try{o(!0),c(null);let e=h[t]||t,n=[{airportReferenceIata:"mxp",loadingType:"P",destinationIataCode:e},{airportReferenceIata:"mxp",loadingType:"P",airportDestinationDescription:t},{airportReferenceIata:"mxp",loadingType:"D",airportDestinationDescription:t}];e!==t&&n.splice(2,0,{airportReferenceIata:"mxp",loadingType:"P",airportDestinationDescription:e});for(let e=0;e<n.length;e++){let t=new URLSearchParams(n[e]),r="".concat("https://apiextra.seamilano.eu/ols-flights/v1","/").concat(p,"/scheduled/flights/lists?").concat(t.toString());try{let e=await fetch(r,{headers:{keyId:"6bc034ea-ae66-40ce-891e-3dccf63cb2eb"}});if(!e.ok)continue;let t=await e.json();if(t.data&&Array.isArray(t.data)&&t.data.length>0){i(t.data),o(!1);return}}catch(e){continue}}i([]),c("Nessun volo diretto trovato per ".concat(t))}catch(e){c("Errore nel caricamento dei voli"),i([])}finally{o(!1)}};return(0,C.useEffect)(()=>{if(!t){i([]),o(!1);return}m()},[t]),(0,w.jsxs)("div",{className:(null==f?void 0:f.length)?"px-5 tab:px-14 desk:px-32 py-12":"px-5 tab:px-14 desk:px-32",children:[(0,w.jsxs)("h1",{className:"font-semibold font-secondary text-3xl mb-24 uppercase ml-[45px]",children:[u("travel_inspiration.findYourFlightTo")," ",t]}),(0,w.jsx)("div",{className:"flex flex-col gap-8 w-full",children:l?(0,w.jsx)("div",{className:"w-full flex justify-center py-12",children:(0,w.jsxs)("div",{className:"flex flex-col items-center space-y-4",children:[(0,w.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600"}),(0,w.jsxs)("p",{className:"text-gray-600",children:["Ricerca voli per ",t,"..."]})]})}):(null==f?void 0:f.length)>0?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{className:"tableHeader w-full flex justify-center",children:[(0,w.jsx)("div",{className:"w-2/6 desk:w-1/6 desk:pl-12 text-lg font-bold text-lightblue",children:u("destinations.flight")}),(0,w.jsx)("div",{className:"hidden desk:block w-1/6 text-lg font-bold text-lightblue text-center",children:u("destinations.airline")}),(0,w.jsx)("div",{className:"w-2/6 desk:w-2/6 text-lg font-bold text-lightblue text-center",children:u("destinations.activity")}),(0,w.jsx)("div",{className:"w-1/6 text-lg font-bold text-lightblue text-center",children:u("destinations.frequency")}),(0,w.jsx)("div",{className:"hidden desk:block desk:w-1/6 text-lg font-bold text-lightblue text-center"})]}),f.map((e,t)=>(0,w.jsx)(sO,{actionColumn:r,actionLabel:u("flights.buyTickets")||"Acquista biglietti",actionLink:"/".concat(p,"/voli/prenota-il-tuo-volo"),flightItem:e},e.flightId))]}):(0,w.jsx)("div",{className:"w-full flex justify-center py-12",children:(0,w.jsxs)("div",{className:"max-w-md text-center space-y-6",children:[(0,w.jsx)("div",{className:"w-24 h-24 mx-auto bg-gray-100 rounded-full flex items-center justify-center",children:(0,w.jsx)("svg",{className:"w-12 h-12 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,w.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 19l9 2-9-18-9 18 9-2zm0 0v-8"})})}),(0,w.jsxs)("div",{className:"space-y-2",children:[(0,w.jsxs)("h3",{className:"text-xl font-semibold text-gray-900",children:["Nessun volo diretto per ",t]}),(0,w.jsx)("p",{className:"text-gray-600",children:s||"Al momento non sono disponibili voli diretti per questa destinazione."})]}),(0,w.jsxs)("div",{className:"space-y-3",children:[(0,w.jsx)("p",{className:"text-sm text-gray-500",children:"Prova a cercare voli con scalo o contatta il nostro servizio clienti per maggiori informazioni."}),(0,w.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[(0,w.jsx)("button",{className:"px-6 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",onClick:()=>window.open("/".concat(p,"/voli/prenota-il-tuo-volo"),"_blank"),children:"Cerca tutti i voli"}),(0,w.jsx)("button",{className:"px-6 py-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors",onClick:()=>window.open("/contatti","_blank"),children:"Contattaci"})]})]})]})})})]})},sF=e=>{var t,n,r,a,i,l,o,s,c,u;let{item:d,name:p,form:f,isMobile:h}=e,{i18n:m}=(0,D.$G)(),v=m.language,g=(null==d?void 0:null===(t=d.xconListFormBlock)||void 0===t?void 0:t.targeturl)?null==d?void 0:null===(n=d.xconListFormBlock)||void 0===n?void 0:n.targeturl:null==d?void 0:null===(r=d.xconListForm)||void 0===r?void 0:r.targeturl,x=(0,T.b7)(g),[b,y]=(0,C.useState)(!1),{t:k}=(0,D.$G)(),S=(0,C.useRef)(null),j=e=>{e.target.validity.valueMissing?e.target.setCustomValidity("it"===v?"Campo necessario":"Mandatory field"):e.preventDefault()};return(0,w.jsx)(w.Fragment,{children:f?(0,w.jsx)(w.Fragment,{children:(null==f?void 0:null===(a=f.xtaxAirports)||void 0===a?void 0:a.ti.length)>1?(0,w.jsxs)("select",{ref:S,onInvalid:e=>j(e),className:"p-3 rounded-xl w-full ".concat(h?" text-xs":"text-sm"," mt-2 mb-2"),id:p,name:"terminal",required:!0,form:"helpForm",children:[(0,w.jsx)("option",{selected:!0,value:0,children:f.lblTerminal[v]}),null==f?void 0:null===(l=f.xtaxAirports)||void 0===l?void 0:null===(i=l.ti)||void 0===i?void 0:i.map(e=>(0,w.jsx)("option",{id:p,value:"T"+(e.id-2),children:e.label}))]}):(0,w.jsx)(w.Fragment,{})}):(0,w.jsxs)(w.Fragment,{children:[(null==d?void 0:d.enuBlockType)==="aeroporto"||"aeroporto"===p||(null==d?void 0:d.enuTypeBase)==="terminal"?(0,w.jsxs)("select",{ref:S,className:"p-3 rounded-xl w-full ".concat(h?"text-xs":"text-sm"," mt-2 mb-2 "),style:b?{color:"black"}:{color:"#999999"},id:p,name:"terminal",required:!0,form:"helpForm",onChange:()=>y(!0),onInvalid:e=>j(e),children:[(0,w.jsx)("option",{id:"0",value:"",disabled:!0,selected:!0,children:k("form.airport")+"*"}),(0,w.jsx)("option",{id:"T0",value:"T0",placeholder:"Linate",style:{color:"black"},children:"Linate"}),(0,w.jsx)("option",{id:"T1",value:"T1",placeholder:"Malpensa T1",style:{color:"black"},children:"Malpensa T1"}),(0,w.jsx)("option",{id:"T2",value:"T2",placeholder:"Malpensa T2",style:{color:"black"},children:"Malpensa T2"})]}):(0,w.jsx)(w.Fragment,{}),(null==d?void 0:d.enuBlockType)==="terminal"?(0,w.jsx)("select",{className:"p-3 rounded-xl w-full ".concat(h?"text-xs":"text-sm"," mt-2 mb-2"),onInvalid:e=>j(e),id:p,name:"terminal",required:!0,form:"helpForm",children:null==x?void 0:null===(o=x.data)||void 0===o?void 0:o.lstAction.map(e=>(0,w.jsx)("option",{id:p,value:e.lblValue,children:null==e?void 0:e.lblName[v]}))}):(0,w.jsx)(w.Fragment,{}),(null==d?void 0:d.enuTypeBase)==="codOggetto"?(0,w.jsx)("select",{className:"p-3 rounded-xl w-full ".concat(h?"text-xs":"text-sm"," mt-2 mb-2"),onInvalid:e=>j(e),id:p,name:"codOggetto",required:!0,form:"helpForm",children:null==x?void 0:null===(s=x.data)||void 0===s?void 0:s.lstAction.map((e,t)=>(0,w.jsx)("option",{id:p,value:e.lblValue,children:null==e?void 0:e.lblName[v]},t))}):(0,w.jsx)(w.Fragment,{}),(null==d?void 0:d.enuBlockType)==="attivazione"?(0,w.jsx)("select",{className:"p-3 rounded-xl w-full ".concat(h?"text-xs":"text-sm"," mt-2 mb-2"),onInvalid:e=>j(e),id:p,name:null==d?void 0:d.enuBlockType,required:!0,form:"helpForm",children:null==x?void 0:null===(c=x.data)||void 0===c?void 0:c.lstAction.map(e=>(0,w.jsx)("option",{id:p,value:e.lblName[v],children:e.lblName[v]}))}):(0,w.jsx)(w.Fragment,{}),(null==d?void 0:d.enuBlockType)!="attivazione"&&(null==d?void 0:d.enuBlockType)!="aeroporto"&&"aeroporto"!=p&&(null==d?void 0:d.enuTypeBase)!="terminal"&&(null==d?void 0:d.enuTypeBase)!="codOggetto"?(0,w.jsx)("select",{className:"p-3 rounded-xl w-full ".concat(h?"text-xs":"max-w-full text-sm"," mt-2 mb-2"),onInvalid:e=>j(e),id:p,name:null==d?void 0:d.enuBlockType,required:!0,form:"helpForm",children:null==x?void 0:null===(u=x.data)||void 0===u?void 0:u.lstAction.map((e,t)=>(0,w.jsx)("option",{id:p,value:10*t,children:e.lblName[v]}))}):(0,w.jsx)(w.Fragment,{})]})})},sB=e=>{var t,n,r,a;let{item:i,name:l,title:o,isMobile:s}=e,{i18n:c}=(0,D.$G)(),u=c.language,d=null===(t=i.xconListForm)||void 0===t?void 0:t.targeturl,p=(0,T.b7)(d),[f,h]=(0,C.useState)(""),[m,v]=(0,C.useState)(!1),{t:g}=(0,D.$G)(),x=(0,C.useRef)(null),b=e=>{e.target.validity.valueMissing?e.target.setCustomValidity("it"===u?"Campo necessario":"Mandatory field"):e.preventDefault()};switch(l){case"terminal":return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("label",{htmlFor:l,className:"sr-only",children:o}),(0,w.jsxs)("select",{id:l,ref:x,name:"terminal",form:"helpForm",required:!0,onChange:()=>v(!0),onInvalid:e=>b(e),className:"p-3 rounded-xl w-full ".concat(s?"text-xs":"text-sm"," mt-2 mb-2"),style:m?{color:"black"}:{color:"#999999"},children:[(0,w.jsx)("option",{id:"0",value:"",disabled:!0,selected:!0,children:g("form.airport")+"*"}),(0,w.jsx)("option",{id:"T0",value:"T0",placeholder:"Linate",style:{color:"black"},children:"Linate"}),(0,w.jsx)("option",{id:"T1",value:"T1",placeholder:"Malpensa T1",style:{color:"black"},children:"Malpensa T1"}),(0,w.jsx)("option",{id:"T2",value:"T2",placeholder:"Malpensa T2",style:{color:"black"},children:"Malpensa T2"})]})]});case"sesso":return(0,w.jsxs)("fieldset",{className:"mt-4 mb-2",children:[(0,w.jsx)("legend",{className:"sr-only",children:o}),null==p?void 0:null===(n=p.data)||void 0===n?void 0:n.lstAction.map((e,t)=>(0,w.jsxs)("div",{className:"flex items-center",children:[(0,w.jsx)("input",{id:"".concat(l,"-").concat(t),ref:x,type:"radio",name:l,value:e.lblName[u],hidden:(null==e?void 0:e.lblName[u])==="Sesso",checked:e.lblName[u]===f,onClick:()=>h(e.lblName[u]),onInvalid:e=>b(e),className:"align-center ml-4 mt-4 translate-y-0.5"}),(0,w.jsx)("label",{htmlFor:"".concat(l,"-").concat(t),className:"ml-2 ".concat(s?"text-xs":"text-sm"),children:e.lblName[u]})]},t))]});case"localita":return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("label",{htmlFor:l,className:"sr-only",children:o}),(0,w.jsx)("select",{id:l,name:l,onInvalid:e=>b(e),className:"p-3 rounded-xl ".concat(s?"w-full text-xs":"max-w-full text-sm"," mt-2 mb-2"),children:null==p?void 0:null===(r=p.data)||void 0===r?void 0:r.lstAction.map((e,t)=>(0,w.jsx)("option",{value:e.lblValue,children:e.lblName[u]},t))})]});default:return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("label",{htmlFor:l,className:"sr-only",children:o}),(0,w.jsx)("select",{id:l,name:l,onInvalid:e=>b(e),className:"p-3 rounded-xl ".concat(s?"w-full text-xs":"max-w-full text-sm"," mt-2 mb-2"),children:null==p?void 0:null===(a=p.data)||void 0===a?void 0:a.lstAction.map((e,t)=>(0,w.jsx)("option",{value:t,children:e.lblName[u]},t))})]})}},sz=n(5697),sZ=n.n(sz);function sH(){return(sH=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function sU(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var sV=function(e){function t(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(sU(t)),t.handleErrored=t.handleErrored.bind(sU(t)),t.handleChange=t.handleChange.bind(sU(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(sU(t)),t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var n=t.prototype;return n.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},n.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},n.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},n.executeAsync=function(){var e=this;return new Promise(function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()})},n.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},n.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},n.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},n.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},n.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},n.componentDidMount=function(){this.explicitRender()},n.componentDidUpdate=function(){this.explicitRender()},n.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},n.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout(function(){document.body.removeChild(e)},5e3)},n.handleRecaptchaRef=function(e){this.captcha=e},n.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(a[n]=e[n]);return a}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return C.createElement("div",sH({},t,{ref:this.handleRecaptchaRef}))},t}(C.Component);function sW(){return(sW=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}sV.displayName="ReCAPTCHA",sV.propTypes={sitekey:sZ().string.isRequired,onChange:sZ().func,grecaptcha:sZ().object,theme:sZ().oneOf(["dark","light"]),type:sZ().oneOf(["image","audio"]),tabindex:sZ().number,onExpired:sZ().func,onErrored:sZ().func,size:sZ().oneOf(["compact","normal","invisible"]),stoken:sZ().string,hl:sZ().string,badge:sZ().oneOf(["bottomright","bottomleft","inline"])},sV.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var sG={},sY=0,sq="onloadcallback",sK=(l=function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+sq+"&render=explicit"},o=(o={callbackName:sq,globalName:"grecaptcha"})||{},function(e){var t=e.displayName||e.name||"Component",n=function(t){function n(e,n){var r;return(r=t.call(this,e,n)||this).state={},r.__scriptURL="",r}n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t;var r=n.prototype;return r.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+sY++),this.__scriptLoaderID},r.setupScriptURL=function(){return this.__scriptURL=0?l:l(),this.__scriptURL},r.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)})},r.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=sG[this.__scriptURL];if(!e||!e.loaded)throw Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[o.callbackName]},r.componentDidMount=function(){var e=this,t=this.setupScriptURL(),n=this.asyncScriptLoaderGetScriptLoaderID(),r=o,a=r.globalName,i=r.callbackName,l=r.scriptId;if(a&&void 0!==window[a]&&(sG[t]={loaded:!0,observers:{}}),sG[t]){var s=sG[t];if(s&&(s.loaded||s.errored)){this.asyncScriptLoaderHandleLoad(s);return}s.observers[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)};return}var c={};c[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)},sG[t]={loaded:!1,observers:c};var u=document.createElement("script");for(var d in u.src=t,u.async=!0,o.attributes)u.setAttribute(d,o.attributes[d]);l&&(u.id=l);var p=function(e){if(sG[t]){var n=sG[t].observers;for(var r in n)e(n[r])&&delete n[r]}};i&&"undefined"!=typeof window&&(window[i]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),u.onload=function(){var e=sG[t];e&&(e.loaded=!0,p(function(t){return!i&&(t(e),!0)}))},u.onerror=function(){var e=sG[t];e&&(e.errored=!0,p(function(t){return t(e),!0}))},document.body.appendChild(u)},r.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===o.removeOnUnmount)for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n+=1)t[n].src.indexOf(e)>-1&&t[n].parentNode&&t[n].parentNode.removeChild(t[n]);var r=sG[e];r&&(delete r.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===o.removeOnUnmount&&delete sG[e])},r.render=function(){var t=o.globalName,n=this.props,r=(n.asyncScriptOnLoad,n.forwardedRef),a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(a[n]=e[n]);return a}(n,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(a[t]=void 0!==window[t]?window[t]:void 0),a.ref=r,(0,C.createElement)(e,a)},n}(C.Component),r=(0,C.forwardRef)(function(e,t){return(0,C.createElement)(n,sW({},e,{forwardedRef:t}))});return r.displayName="AsyncScriptLoader("+t+")",r.propTypes={asyncScriptOnLoad:sZ().func},rD()(r,e)})(sV),s$=JSON.parse('{"BD":"+880","BE":"+32","BF":"+226","BG":"+359","BA":"+387","BB":"+1-246","WF":"+681","BL":"+590","BM":"+1-441","BN":"+673","BO":"+591","BH":"+973","BI":"+257","BJ":"+229","BT":"+975","JM":"+1-876","BW":"+267","WS":"+685","BQ":"+599","BR":"+55","BS":"+1-242","JE":"+44-1534","BY":"+375","BZ":"+501","RU":"+7","RW":"+250","RS":"+381","TL":"+670","RE":"+262","TM":"+993","TJ":"+992","RO":"+40","TK":"+690","GW":"+245","GU":"+1-671","GT":"+502","GR":"+30","GQ":"+240","GP":"+590","JP":"+81","GY":"+592","GG":"+44-1481","GF":"+594","GE":"+995","GD":"+1-473","GB":"+44","GA":"+241","SV":"+503","GN":"+224","GM":"+220","GL":"+299","GI":"+350","GH":"+233","OM":"+968","TN":"+216","JO":"+962","HR":"+385","HT":"+509","HU":"+36","HK":"+852","HN":"+504","VE":"+58","PR":"+1-787","PS":"+970","PW":"+680","PT":"+351","SJ":"+47","PY":"+595","IQ":"+964","PA":"+507","PF":"+689","PG":"+675","PE":"+51","PK":"+92","PH":"+63","PN":"+870","PL":"+48","PM":"+508","ZM":"+260","EH":"+212","EE":"+372","EG":"+20","ZA":"+27","EC":"+593","IT":"+39","VN":"+84","SB":"+677","ET":"+251","SO":"+252","ZW":"+263","SA":"+966","ES":"+34","ER":"+291","ME":"+382","MD":"+373","MG":"+261","MF":"+590","MA":"+212","MC":"+377","UZ":"+998","MM":"+95","ML":"+223","MO":"+853","MN":"+976","MH":"+692","MK":"+389","MU":"+230","MT":"+356","MW":"+265","MV":"+960","MQ":"+596","MP":"+1-670","MS":"+1-664","MR":"+222","IM":"+44-1624","UG":"+256","TZ":"+255","MY":"+60","MX":"+52","IL":"+972","FR":"+33","IO":"+246","SH":"+290","FI":"+358","FJ":"+679","FK":"+500","FM":"+691","FO":"+298","NI":"+505","NL":"+31","NO":"+47","NA":"+264","VU":"+678","NC":"+687","NE":"+227","NF":"+672","NG":"+234","NZ":"+64","NP":"+977","NR":"+674","NU":"+683","CK":"+682","CI":"+225","CH":"+41","CO":"+57","CN":"+86","CM":"+237","CL":"+56","CC":"+61","CA":"+1","CG":"+242","CF":"+236","CD":"+243","CZ":"+420","CY":"+357","CX":"+61","CR":"+506","CW":"+599","CV":"+238","CU":"+53","SZ":"+268","SY":"+963","SX":"+599","KG":"+996","KE":"+254","SS":"+211","SR":"+597","KI":"+686","KH":"+855","KN":"+1-869","KM":"+269","ST":"+239","SK":"+421","KR":"+82","SI":"+386","KP":"+850","KW":"+965","SN":"+221","SM":"+378","SL":"+232","SC":"+248","KZ":"+7","KY":"+1-345","SG":"+65","SE":"+46","SD":"+249","DO":"+1-809","DM":"+1-767","DJ":"+253","DK":"+45","VG":"+1-284","DE":"+49","YE":"+967","DZ":"+213","US":"+1","UY":"+598","YT":"+262","UM":"+1","LB":"+961","LC":"+1-758","LA":"+856","TV":"+688","TW":"+886","TT":"+1-868","TR":"+90","LK":"+94","LI":"+423","LV":"+371","TO":"+676","LT":"+370","LU":"+352","LR":"+231","LS":"+266","TH":"+66","TG":"+228","TD":"+235","TC":"+1-649","LY":"+218","VA":"+379","VC":"+1-784","AE":"+971","AD":"+376","AG":"+1-268","AF":"+93","AI":"+1-264","VI":"+1-340","IS":"+354","IR":"+98","AM":"+374","AL":"+355","AO":"+244","AS":"+1-684","AR":"+54","AU":"+61","AT":"+43","AW":"+297","IN":"+91","AX":"+358-18","AZ":"+994","IE":"+353","ID":"+62","UA":"+380","QA":"+974","MZ":"+258"}'),sX=JSON.parse('{"userCountryCode":"IT","countries":[{"label":"Italia","prefix":"+39","value":"IT","label_en":"Italy","selected":true},{"label":"Afghanistan","prefix":"+93","value":"AF","label_en":"Afghanistan"},{"label":"Albania","prefix":"+355","value":"AL","label_en":"Albania"},{"label":"Algeria","prefix":"+213","value":"DZ","label_en":"Algeria"},{"label":"Andorra","prefix":"+376","value":"AD","label_en":"Andorra"},{"label":"Angola","prefix":"+244","value":"AO","label_en":"Angola"},{"label":"Anguilla","prefix":"+1264","value":"AI","label_en":"Anguilla"},{"label":"Antigua e Barbuda","prefix":"+1268","value":"AG","label_en":"Antigua and Barbuda"},{"label":"Antille Olandesi","prefix":"+599","value":"ANT","label_en":"Netherlands Antilles"},{"label":"Arabia Saudita","prefix":"+966","value":"SA","label_en":"Saudi Arabia"},{"label":"Argentina","prefix":"+54","value":"AR","label_en":"Argentina"},{"label":"Armenia","prefix":"+374","value":"AM","label_en":"Armenia"},{"label":"Aruba","prefix":"+297","value":"AW","label_en":"Aruba"},{"label":"Australia","prefix":"+61","value":"AU","label_en":"Australia"},{"label":"Austria","prefix":"+43","value":"AT","label_en":"Austria"},{"label":"Azerbaijan","prefix":"+994","value":"AZ","label_en":"Azerbaijan"},{"label":"Bahamas","prefix":"+1242","value":"BS","label_en":"Bahamas"},{"label":"Bahrain","prefix":"+973","value":"BH","label_en":"Bahrain"},{"label":"Bangladesh","prefix":"+880","value":"BD","label_en":"Bangladesh"},{"label":"Barbados","prefix":"+1246","value":"BB","label_en":"Barbados"},{"label":"Belgio","prefix":"+32","value":"BE","label_en":"Belgium"},{"label":"Belize","prefix":"+501","value":"BZ","label_en":"Belize"},{"label":"Benin","prefix":"+229","value":"BJ","label_en":"Benin"},{"label":"Bermuda","prefix":"+1441","value":"BM","label_en":"Bermuda"},{"label":"Bhutan","prefix":"+975","value":"BT","label_en":"Bhutan"},{"label":"Bielorussia","prefix":"+375","value":"BY","label_en":"Belarus"},{"label":"Bolivia","prefix":"+591","value":"BO","label_en":"Bolivia, Plurinational State of"},{"label":"Bosnia Erzegovina","prefix":"+387","value":"BA","label_en":"Bosnia and Herzegovina"},{"label":"Botswana","prefix":"+267","value":"BW","label_en":"Botswana"},{"label":"Brasile","prefix":"+55","value":"BR","label_en":"Brazil"},{"label":"Brunei","prefix":"+673","value":"BN","label_en":"Brunei Darussalam"},{"label":"Bulgaria","prefix":"+359","value":"BG","label_en":"Bulgaria"},{"label":"Burkina Faso","prefix":"+226","value":"BF","label_en":"Burkina Faso"},{"label":"Burundi","prefix":"+257","value":"BI","label_en":"Burundi"},{"label":"Cambogia","prefix":"+855","value":"KH","label_en":"Cambodia"},{"label":"Camerun","prefix":"+237","value":"CM","label_en":"Cameroon"},{"label":"Capo Verde","prefix":"+238","value":"CV","label_en":"Cape Verde"},{"label":"Ciad","prefix":"+235","value":"TD","label_en":"Chad"},{"label":"Cile","prefix":"+56","value":"CL","label_en":"Chile"},{"label":"Cina","prefix":"+86","value":"CN","label_en":"China"},{"label":"Cipro","prefix":"+357","value":"CY","label_en":"Cyprus"},{"label":"Colombia","prefix":"+57","value":"CO","label_en":"Colombia"},{"label":"Comore","prefix":"+269","value":"COM","label_en":"Comoro"},{"label":"Mayotte","prefix":"+269","value":"MYT","label_en":"Mayotte"},{"label":"Congo","prefix":"+242","value":"CG","label_en":"Congo"},{"label":"Corea del Nord","prefix":"+850","value":"KP","label_en":"North Korea"},{"label":"Corea del Sud","prefix":"+82","value":"KR","label_en":"South Korea"},{"label":"Costa d\'Avorio","prefix":"+225","value":"CI","label_en":"Ivory Coast"},{"label":"Costa Rica","prefix":"+506","value":"CR","label_en":"Costa Rica"},{"label":"Croazia","prefix":"+385","value":"HR","label_en":"Croatia"},{"label":"Cuba","prefix":"+53","value":"CU","label_en":"Cuba"},{"label":"Danimarca","prefix":"+45","value":"DK","label_en":"Denmark"},{"label":"Dominica","prefix":"+1767","value":"DM","label_en":"Dominica"},{"label":"Ecuador","prefix":"+593","value":"EC","label_en":"Ecuador"},{"label":"Egitto","prefix":"+20","value":"EG","label_en":"Egypt"},{"label":"El Salvador","prefix":"+503","value":"SV","label_en":"El Salvador"},{"label":"Emirati Arabi Uniti","prefix":"+971","value":"AE","label_en":"United Arab Emirates"},{"label":"Eritrea","prefix":"+291","value":"ER","label_en":"Eritrea"},{"label":"Estonia","prefix":"+372","value":"EE","label_en":"Estonia"},{"label":"Etiopia","prefix":"+251","value":"ET","label_en":"Ethiopia"},{"label":"Figi","prefix":"+679","value":"FJ","label_en":"Fiji"},{"label":"Filippine","prefix":"+63","value":"PH","label_en":"Philippines"},{"label":"Finlandia","prefix":"+358","value":"FI","label_en":"Finland"},{"label":"Francia","prefix":"+33","value":"FR","label_en":"France"},{"label":"Gabon","prefix":"+241","value":"GA","label_en":"Gabon"},{"label":"Gambia","prefix":"+220","value":"GM","label_en":"Gambia"},{"label":"Georgia","prefix":"+995","value":"GE","label_en":"Georgia"},{"label":"Germania","prefix":"+49","value":"DE","label_en":"Germany"},{"label":"Ghana","prefix":"+233","value":"GH","label_en":"Ghana"},{"label":"Giamaica","prefix":"+1876","value":"JM","label_en":"Jamaica"},{"label":"Giappone","prefix":"+81","value":"JP","label_en":"Japan"},{"label":"Gibilterra","prefix":"+350","value":"GI","label_en":"Gibraltar"},{"label":"Gibuti","prefix":"+253","value":"DJ","label_en":"Djibouti"},{"label":"Giordania","prefix":"+962","value":"JO","label_en":"Jordan"},{"label":"Gran Bretagna","prefix":"+44","value":"GB","label_en":"Great Britain"},{"label":"Grecia","prefix":"+30","value":"GR","label_en":"Greece"},{"label":"Grenada","prefix":"+1473","value":"GD","label_en":"Grenada"},{"label":"Groenlandia","prefix":"+299","value":"GL","label_en":"Greenland"},{"label":"Guadalupa","prefix":"+590","value":"GLP","label_en":"Guadeloupe"},{"label":"Guam","prefix":"+1-671","value":"GU","label_en":"Guam"},{"label":"Guatemala","prefix":"+502","value":"GT","label_en":"Guatemala"},{"label":"Guinea","prefix":"+224","value":"GN","label_en":"Guinea"},{"label":"Guinea-Bissau","prefix":"+245","value":"GW","label_en":"Guinea-Bissau"},{"label":"Guinea Equatoriale","prefix":"+240","value":"GQ","label_en":"Equatorial Guinea"},{"label":"Guyana","prefix":"+592","value":"GY","label_en":"Guyana"},{"label":"Guyana francese","prefix":"+594","value":"GUF","label_en":"French Guiana"},{"label":"Haiti","prefix":"+509","value":"HT","label_en":"Haiti"},{"label":"Hawaii","prefix":"+1-8","value":"US","label_en":"Hawaii"},{"label":"Honduras","prefix":"+504","value":"HN","label_en":"Honduras"},{"label":"Hong Kong","prefix":"+852","value":"HK","label_en":"Hong Kong"},{"label":"India","prefix":"+91","value":"IN","label_en":"India"},{"label":"Indonesia","prefix":"+62","value":"id","label_en":"Indonesia"},{"label":"Iran","prefix":"+98","value":"IR","label_en":"Iran, Islamic Republic of"},{"label":"Iraq","prefix":"+964","value":"IQ","label_en":"Iraq"},{"label":"Irlanda (Eire)","prefix":"+353","value":"IE","label_en":"Ireland (Eire)"},{"label":"Islanda","prefix":"+354","value":"IS","label_en":"Iceland"},{"label":"Isole Cayman","prefix":"+1345","value":"KY","label_en":"Cayman Islands"},{"label":"Isole Cook","prefix":"+682","value":"CK","label_en":"Cook Islands"},{"label":"Isola Norfolk","prefix":"+672","value":"NF","label_en":"Norfolk Island"},{"label":"Isole Falkland","prefix":"+500","value":"FK","label_en":"Falkland Islands (Malvinas)"},{"label":"Isole Faroe","prefix":"+298","value":"FRO","label_en":"Faroe Islands"},{"label":"Isole Marianne Settentrionali","prefix":"+1-670","value":"MP","label_en":"Northern Mariana Islands"},{"label":"Isole Marshall","prefix":"+692","value":"MH","label_en":"Marshall Islands"},{"label":"Isole Salomone","prefix":"+677","value":"SB","label_en":"Solomon Islands"},{"label":"Isole Vergini Britanniche","prefix":"+1284","value":"VG","label_en":"British Virgin Islands"},{"label":"Isole Vergini Americane","prefix":"+1340","value":"VI","label_en":"Virgin Islands of the United States"},{"label":"Israele","prefix":"+972","value":"IL","label_en":"Israel"},{"label":"Kenya","prefix":"+254","value":"KE","label_en":"Kenya"},{"label":"Kirghizistan","prefix":"+996","value":"KG","label_en":"Kyrgyzstan"},{"label":"Kiribati","prefix":"+686","value":"KI","label_en":"Kiribati"},{"label":"Kuwait","prefix":"+965","value":"KW","label_en":"Kuwait"},{"label":"Laos","prefix":"+856","value":"LA","label_en":"Lao People\'s Democratic Republic"},{"label":"Lesotho","prefix":"+266","value":"LS","label_en":"Lesotho"},{"label":"Lettonia","prefix":"+371","value":"LV","label_en":"Latvia"},{"label":"Libano","prefix":"+961","value":"LB","label_en":"Lebanon"},{"label":"Liberia","prefix":"+231","value":"LR","label_en":"Liberia"},{"label":"Libia","prefix":"+218","value":"LY","label_en":"Libyan Arab Jamahiriya"},{"label":"Liechtenstein","prefix":"+423","value":"LI","label_en":"Liechtenstein"},{"label":"Lituania","prefix":"+370","value":"LT","label_en":"Lithuania"},{"label":"Lussemburgo","prefix":"+352","value":"LU","label_en":"Luxembourg"},{"label":"Macao","prefix":"+853","value":"MO","label_en":"Macao"},{"label":"Repubblica Macedonia del Nord","prefix":"+389","value":"MK","label_en":"Republic of North Macedonia"},{"label":"Madagascar","prefix":"+261","value":"MG","label_en":"Madagascar"},{"label":"Malawi","prefix":"+265","value":"MW","label_en":"Malawi"},{"label":"Maldive","prefix":"+960","value":"MV","label_en":"Maldives"},{"label":"Malesia","prefix":"+60","value":"MYS","label_en":"Malaysia"},{"label":"Mali","prefix":"+223","value":"ML","label_en":"Mali"},{"label":"Malta","prefix":"+356","value":"MT","label_en":"Malta"},{"label":"Marocco","prefix":"+212","value":"MA","label_en":"Morocco"},{"label":"Martinica","prefix":"+596","value":"MTQ","label_en":"Martinique"},{"label":"Mauritania","prefix":"+222","value":"MR","label_en":"Mauritania"},{"label":"Mauritius","prefix":"+230","value":"MU","label_en":"Mauritius"},{"label":"Messico","prefix":"+52","value":"MX","label_en":"Mexico"},{"label":"Micronesia","prefix":"+691","value":"FM","label_en":"Micronesia, Federated States of"},{"label":"Moldavia","prefix":"+373","value":"MD","label_en":"Moldova, Republic of"},{"label":"Mongolia","prefix":"+976","value":"MN","label_en":"Mongolia"},{"label":"Montenegro","prefix":"+382","value":"ME","label_en":"Montenegro"},{"label":"Montserrat","prefix":"+1664","value":"MS","label_en":"Montserrat"},{"label":"Mozambico","prefix":"+258","value":"MZ","label_en":"Mozambique"},{"label":"Myanmar","prefix":"+95","value":"MM","label_en":"Myanmar"},{"label":"Namibia","prefix":"+264","value":"NA","label_en":"Namibia"},{"label":"Nauru","prefix":"+674","value":"NR","label_en":"Nauru"},{"label":"Nepal","prefix":"+977","value":"NP","label_en":"Nepal"},{"label":"Nicaragua","prefix":"+505","value":"NI","label_en":"Nicaragua"},{"label":"Niger","prefix":"+227","value":"NE","label_en":"Niger"},{"label":"Nigeria","prefix":"+234","value":"NG","label_en":"Nigeria"},{"label":"Niue","prefix":"+683","value":"NU","label_en":"Niue"},{"label":"Norvegia","prefix":"+47","value":"NO","label_en":"Norway"},{"label":"Nuova Caledonia","prefix":"+687","value":"NC","label_en":"New Caledonia"},{"label":"Nuova Zelanda","prefix":"+64","value":"NZ","label_en":"New Zealand"},{"label":"Oman","prefix":"+968","value":"OM","label_en":"Oman"},{"label":"Paesi Bassi","prefix":"+31","value":"NL","label_en":"Netherlands"},{"label":"Pakistan","prefix":"+92","value":"PK","label_en":"Pakistan"},{"label":"Palau","prefix":"+680","value":"PW","label_en":"Palau"},{"label":"Panama","prefix":"+507","value":"PA","label_en":"Panama"},{"label":"Papua Nuova Guinea","prefix":"+675","value":"PG","label_en":"Papua New Guinea"},{"label":"Paraguay","prefix":"+595","value":"PY","label_en":"Paraguay"},{"label":"Per\xf9","prefix":"+51","value":"PE","label_en":"Peru"},{"label":"Polinesia Francese","prefix":"+689","value":"PF","label_en":"French Polynesia"},{"label":"Polonia","prefix":"+48","value":"PL","label_en":"Poland"},{"label":"Portogallo","prefix":"+351","value":"PT","label_en":"Portugal"},{"label":"Porto Rico","prefix":"+1787","value":"PR","label_en":"Puerto Rico"},{"label":"Principato di Monaco","prefix":"+377","value":"MC","label_en":"Monaco"},{"label":"Qatar","prefix":"+974","value":"QA","label_en":"Qatar"},{"label":"Repubblica Ceca","prefix":"+420","value":"CZ","label_en":"Czech Republic"},{"label":"Repubblica Centrafricana","prefix":"+236","value":"CF","label_en":"Central African Republic"},{"label":"Repubblica Democratica del Congo","prefix":"+243","value":"CG","label_en":"Democratic Republic of the Congo"},{"label":"Repubblica Dominicana","prefix":"+1809","value":"DO","label_en":"Dominican Republic"},{"label":"Reunion","prefix":"+262","value":"FR","label_en":"Reunion"},{"label":"Romania","prefix":"+40","value":"RO","label_en":"Romania"},{"label":"Ruanda","prefix":"+250","value":"RW","label_en":"Rwanda"},{"label":"Kazakistan","prefix":"+7","value":"KZ","label_en":"Kazakistan"},{"label":"Russia","prefix":"+7","value":"RU","label_en":"Russia"},{"label":"Sant\'Elena","prefix":"+290","value":"SH","label_en":"Saint Helena"},{"label":"Saint Kitts e Nevis","prefix":"+1869","value":"KN","label_en":"Saint Kitts and Nevis"},{"label":"Saint Vincent e Grenadine","prefix":"+1784","value":"VC","label_en":"Saint Vincent and the Grenadines"},{"label":"Samoa","prefix":"+685","value":"WS","label_en":"Samoa"},{"label":"Samoa Americane","prefix":"+684","value":"AS","label_en":"American Samoa"},{"label":"San Marino","prefix":"+378","value":"SM","label_en":"San Marino"},{"label":"Santa Lucia","prefix":"+1-7","value":"LC","label_en":"Saint Lucia"},{"label":"S\xe3o Tom\xe9 e Pr\xedncipe","prefix":"+239","value":"ST","label_en":"S\xe3o Tom\xe9 e Pr\xedncipe"},{"label":"Senegal","prefix":"+221","value":"SN","label_en":"Senegal"},{"label":"Serbia","prefix":"+381","value":"SRB","label_en":"Serbia"},{"label":"Seychelles","prefix":"+248","value":"SC","label_en":"Seychelles"},{"label":"Sierra Leone","prefix":"+232","value":"SL","label_en":"Sierra Leone"},{"label":"Singapore","prefix":"+65","value":"SG","label_en":"Singapore"},{"label":"Siria","prefix":"+963","value":"SY","label_en":"Syrian Arab Republic"},{"label":"Slovacchia","prefix":"+421","value":"SK","label_en":"Slovakia"},{"label":"Slovenia","prefix":"+386","value":"SI","label_en":"Slovenia"},{"label":"Somalia","prefix":"+252","value":"SO","label_en":"Somalia"},{"label":"Spagna","prefix":"+34","value":"ES","label_en":"Spain"},{"label":"Sri Lanka","prefix":"+94","value":"LK","label_en":"Sri Lanka"},{"label":"Sudafrica","prefix":"+27","value":"ZA","label_en":"South Africa"},{"label":"Sudan","prefix":"+249","value":"SD","label_en":"Sudan"},{"label":"Suriname","prefix":"+597","value":"SR","label_en":"Suriname"},{"label":"Svezia","prefix":"+46","value":"SE","label_en":"Sweden"},{"label":"Svizzera","prefix":"+41","value":"CH","label_en":"Switzerland"},{"label":"Swaziland","prefix":"+268","value":"SZ","label_en":"Swaziland"},{"label":"Tagikistan","prefix":"+992","value":"TJ","label_en":"Tajikistan"},{"label":"Taiwan","prefix":"+886","value":"TW","label_en":"Taiwan, Province of China"},{"label":"Tailandia","prefix":"+66","value":"TH","label_en":"Thailand"},{"label":"Tanzania","prefix":"+255","value":"TZ","label_en":"Tanzania, United Republic of"},{"label":"Timor Est","prefix":"+670","value":"TL","label_en":"East Timor"},{"label":"Togo","prefix":"+228","value":"TG","label_en":"Togo"},{"label":"Tokelau","prefix":"+690","value":"TK","label_en":"Tokelau"},{"label":"Tonga","prefix":"+676","value":"TO","label_en":"Tonga"},{"label":"Trinidad e Tobago","prefix":"+1868","value":"TT","label_en":"Trinidad and Tobago"},{"label":"Tunisia","prefix":"+216","value":"TN","label_en":"Tunisia"},{"label":"Turchia","prefix":"+90","value":"TR","label_en":"Turkey"},{"label":"Turkmenistan","prefix":"+993","value":"TM","label_en":"Turkmenistan"},{"label":"Tuvalu","prefix":"+688","value":"TV","label_en":"Tuvalu"},{"label":"Ucraina","prefix":"+380","value":"UA","label_en":"Ukraine"},{"label":"Uganda","prefix":"+256","value":"UG","label_en":"Uganda"},{"label":"Ungheria","prefix":"+36","value":"HU","label_en":"Hungary"},{"label":"Uruguay","prefix":"+598","value":"UY","label_en":"Uruguay"},{"label":"Canada","prefix":"+1","value":"CA","label_en":"Canada"},{"label":"Stati Uniti d\'America","prefix":"+1","value":"US","label_en":"United States of America"},{"label":"Uzbekistan","prefix":"+998","value":"UZ","label_en":"Uzbekistan"},{"label":"Vanuatu","prefix":"+678","value":"VU","label_en":"Vanuatu"},{"label":"Venezuela","prefix":"+58","value":"VE","label_en":"Venezuela, Bolivarian Republic of"},{"label":"Vietnam","prefix":"+84","value":"VN","label_en":"Viet Nam"},{"label":"Wallis e Futuna","prefix":"+681","value":"WF","label_en":"Wallis and Futuna"},{"label":"Yemen","prefix":"+967","value":"YE","label_en":"Yemen"},{"label":"Zambia","prefix":"+260","value":"ZM","label_en":"Zambia"},{"label":"Zimbabwe","prefix":"+263","value":"ZW","label_en":"Zimbabwe"}]}');let sJ=e=>{let t=document.getElementsByClassName("grecaptcha-badge")[0];t&&t instanceof HTMLElement&&(t.style.visibility=e?"visible":"hidden")};var sQ=e=>{var t,n,r,a,i;let{form:l,bannerHidden:o,hidden:s,isMobile:c,language:u}=e,{i18n:d}=(0,D.$G)(),{t:p}=(0,D.$G)(),f=d.language;"it"===f&&(0,ol.registerLocale)(f,ob);let[h,m]=(0,C.useState)([{id:"",value:""}]),[v,g]=(0,C.useState)(!1),[x,b]=(0,C.useState)(0),y=(0,O.useRouter)(),[k,j]=(0,C.useState)(""),[N,E]=(0,C.useState)({id:"",value:"",date:""}),[M,_]=(0,C.useState)({id:"",value:"",date:""}),[A,L]=(0,C.useState)({id:"",value:"",date:""}),[I,P]=(0,C.useState)({id:"",value:"",date:""}),[R,F]=(0,C.useState)({id:"",value:"",date:""}),z=(0,C.createRef)(),Z=(0,C.createRef)(),H=(0,C.createRef)(),U=(0,C.createRef)(),V=(0,C.useRef)(null),[W,G]=(0,C.useState)(""),[Y,q]=(0,C.useState)(""),[K,$]=(0,C.useState)(!1),[X,J]=(0,C.useState)(""),[Q,ee]=(0,C.useState)(""),[et,en]=(0,C.useState)(!1),er=(0,C.useRef)(null),[ea,ei]=(0,C.useState)(s$),[el,eo]=(0,C.useState)(""),[es,ec]=(0,C.useState)(""),[eu,ed]=(0,C.useState)("+39"),[ep,ef]=(0,C.useState)("+39"),eh=Object.entries(ea),[em,ev]=(0,C.useState)(sX),[eg,ex]=(0,C.useState)("IT"),eb=(0,B.aC)(),[ey,ew]=(0,C.useState)(),[ek,eS]=(0,C.useState)(""),[ej]=(0,T.dD)(),[eC,eN]=(0,C.useState)(0);(0,C.useEffect)(()=>(sJ(!0),()=>sJ(!0)),[]),(0,C.useEffect)(()=>(sJ(!0),()=>sJ(!0)),[l]);let eT=(null==l?void 0:null===(n=l.xtaxAirports)||void 0===n?void 0:null===(t=n.ti[0])||void 0===t?void 0:t.label.toLowerCase())==="malpensa"?"mxp":"lin";function eE(e){let t=h.find(t=>t.value===e);return null==t?void 0:t.value}function eD(e){/\S+@\S+\.\S+/.test(e)?(J(""),en(!0)):(J("".concat(p("form.validEmail"))),en(!1)),ee(e)}function eM(e,t){let n=h.findIndex(t=>t.id===e);if(n>-1){let r=[...h];r[n]={id:e,value:t},m(r)}else h.push({id:e,value:t})}let e_=e=>{e.target.files&&(ew(e.target.files[0]),eS(e.target.files[0].name))},eA=(e,t,n)=>{var r,a,i,l;if(e.preventDefault(),et)switch(G(n),q(t),n){case"OGGETTI_SMARRITI":return null==Z?void 0:null===(r=Z.current)||void 0===r?void 0:r.execute();case"INFORMAZIONI":return null==U?void 0:null===(a=U.current)||void 0===a?void 0:a.execute();case"PRM_SURVEY":return null==z?void 0:null===(i=z.current)||void 0===i?void 0:i.execute();case"PRM_AUTISMO":case"PRM_ACCESS":case"PRM_ACCESS_01":return null==H?void 0:null===(l=H.current)||void 0===l?void 0:l.execute();default:return}},eL=async e=>{var t,n,r,a,i,l,o,s;if(!e){console.error("[FormWrapper] captcha error");return}if("INFORMAZIONI"===W)try{let t=document.getElementById("helpForm"),n=new FormData(t),r=new FormData,a={};n.forEach((e,t)=>a[t]=e),Object.assign(a,{"g-recaptcha-response":e}),Object.assign(a,{localita:eg}),r.append("json",JSON.stringify({obj:a}.obj)),r.append("attachment",ey);let i=await fetch(Y,{method:"POST",body:r,headers:{accept:"*/*",keyId:"82e9553c-d512-4a24-95b3-efc8ce102843"}});if(i.ok)b(200);else throw b(404),Error(i.statusText)}catch(e){b(404),console.error("[FormWrapper] submit error -> ",e)}finally{null==Z||null===(t=Z.current)||void 0===t||t.reset(),null==H||null===(n=H.current)||void 0===n||n.reset(),null==z||null===(r=z.current)||void 0===r||r.reset(),null==U||null===(a=U.current)||void 0===a||a.reset()}else try{let t=document.getElementById("helpForm"),n=new FormData(t),r=new FormData,a={};for(let t in n.forEach((e,t)=>a[t]=e),Object.assign(a,{"g-recaptcha-response":e}),"OGGETTI_SMARRITI"===W&&Object.assign(a,{dataSmarrimento:I.value}),"PRM_SURVEY"===W&&Object.assign(a,{dataViaggio:I.value}),"PRM_ACCESS"===W&&Object.assign(a,{dataPassaggio:I.value}),Object.assign(a,{dataNascita:N.value}),Object.assign(a,{dataNascitaEscort1:M.value}),Object.assign(a,{dataNascitaEscort2:A.value}),"PRM_AUTISMO"===W&&(Object.assign(a,{dataVolo:R.value}),Object.assign(a,{dataVisita:I.value}),Object.assign(a,{telefonoEscort1:eu+el}),Object.assign(a,{telefonoEscort2:ep+es})),Object.fromEntries(n))r.append(t,n.get(t));r.append("json",JSON.stringify({obj:a}.obj));let i=await fetch(Y,{method:"POST",body:JSON.stringify({obj:a}.obj),headers:{accept:"*/*","Content-Type":"application/json",keyId:"82e9553c-d512-4a24-95b3-efc8ce102843"}});if(i.ok)b(200);else throw b(404),Error(i.statusText)}catch(e){b(404),console.error("[FormWrapper] submit error -> ",e)}finally{null==Z||null===(i=Z.current)||void 0===i||i.reset(),null==H||null===(l=H.current)||void 0===l||l.reset(),null==z||null===(o=z.current)||void 0===o||o.reset(),null==U||null===(s=U.current)||void 0===s||s.reset()}};function eI(e,t){let n="0";switch(t.getMonth()){case 0:n="01";break;case 1:n="02";break;case 2:n="03";break;case 3:n="04";break;case 4:n="05";break;case 5:n="06";break;case 6:n="07";break;case 7:n="08";break;case 8:n="09";break;case 9:n="10";break;case 10:n="11";break;case 11:n="12"}if("dataNascita"===e){E({id:e,value:t.getFullYear()+"-"+n+"-"+(t.getDate()>=10?t.getDate():"0"+t.getDate()),date:t});return}if("dataNascitaEscort1"===e){_({id:e,value:t.getFullYear()+"-"+n+"-"+(t.getDate()>=10?t.getDate():"0"+t.getDate()),date:t});return}if("dataNascitaEscort2"===e){L({id:e,value:t.getFullYear()+"-"+n+"-"+(t.getDate()>=10?t.getDate():"0"+t.getDate()),date:t});return}if("dataVolo"===e){F({id:e,value:t.getFullYear()+"-"+n+"-"+(t.getDate()>=10?t.getDate():"0"+t.getDate()),date:t});return}P({id:e,value:t.getFullYear()+"-"+n+"-"+(t.getDate()>=10?t.getDate():"0"+t.getDate()),date:t})}let eP=(e,t)=>{er.current&&(er.current.style.height="auto",er.current.style.height="".concat(e.target.scrollHeight-16,"px"),eM(t,e.target.value))};(0,C.useEffect)(()=>{200===x?y.push("it"===f?"/it/assistenza/scrivici/grazie":"/en/assistance/write-us/thanks"):0!=x&&y.push("it"===f?"/it/assistenza/scrivici/errore":"/en/assistance/write-us/error")},[x]),(0,C.useEffect)(()=>{window.addEventListener("popstate",()=>{window.location.reload()})},[]);let eO=e=>{e.target.validity.valueMissing?e.target.setCustomValidity("it"===f?"Campo necessario":"Mandatory field"):e.preventDefault()};return(0,w.jsxs)("div",{className:"desk:px-16 desk:pb-20 mx-auto",children:[(0,w.jsx)(sj,{data:"".concat("https://resourcesols3cms.seamilano.eu","/rest/v1/SEA-LinMxp/contents/m17/77"),hidden:o||s,language:f}),(0,w.jsxs)("div",{className:"".concat(K?"h-[160px]":""," bg-lightgrey rounded-xl desk:p-14 p-8 shadow-lg mt-8"),hidden:s,children:[(0,w.jsx)("div",{className:"desk:absolute desk:ml-44 ".concat(c?"w-14 -translate-y-2":""),children:(0,w.jsx)("h1",{className:"desk:mb-6 mt-3 text-2xl desk:font-bold ".concat(c?"-translate-y-1 font-semibold":""),children:null==l?void 0:l.lblTitle[f]})}),(0,w.jsxs)("div",{className:"flex justify-between",children:[(0,w.jsx)(S.Z,{iconName:"Mail",className:"".concat(c?"w-14 h-10":"")}),(0,w.jsx)("div",{className:"flex items-center translate-x-4 cursor-pointer ".concat(c?"-translate-y-2":""),onClick:()=>$(!K),children:(0,w.jsxs)("div",{className:"flex items-center",children:[(0,w.jsx)(S.Z,{iconName:"black-square"}),(0,w.jsx)(S.Z,{iconName:"arrow",className:"h-4 -rotate-90 -translate-x-10 -translate-y-1",color:"white"})]})})]}),(0,w.jsxs)("div",{className:"mt-4",hidden:K,children:[(null==l?void 0:l.enuTypeForm)==="PRM_AUTISMO"||(null==l?void 0:l.enuTypeForm)==="PRM_ACCESS"||(null==l?void 0:l.enuTypeForm)==="PRM_ACCESS_01"?(0,w.jsx)(w.Fragment,{children:null==l?void 0:null===(r=l.lstAccess)||void 0===r?void 0:r.map(e=>{var t,n,r,a,i;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("span",{className:"font-bold mt-2",children:e.lblTitleAccess[f]}),(0,w.jsxs)("form",{className:"desk:grid tab:grid grid-cols-2 mt- desk:mb-14 mb-4 gap-3 align-start mt-2",id:"helpForm",method:"POST",onSubmit:e=>{w.Fragment,(null==l?void 0:l.enuTypeForm)==="PRM_AUTISMO"?eA(e,"".concat("https://apiextra.seamilano.eu/ols-forms/v2","/").concat(f,"/").concat(eT,"/insert-autism"),"PRM_AUTISMO"):eA(e,"".concat("https://apiextra.seamilano.eu/ols-forms/v2","/").concat(f,"/").concat(eT,"/insert-prm"),"PRM_ACCESS")},children:[(null==l?void 0:l.enuTypeForm)==="PRM_AUTISMO"?(0,w.jsx)("input",{type:"hidden",name:"type",value:"PRM_AUTISMO"}):(0,w.jsx)(w.Fragment,{}),(null==l?void 0:l.enuTypeForm)==="PRM_ACCESS"?(0,w.jsx)("input",{type:"hidden",name:"type",value:"PRM_ACCESS"}):(0,w.jsx)(w.Fragment,{}),(null==l?void 0:l.enuTypeForm)==="PRM_ACCESS_01"?(0,w.jsx)("input",{type:"hidden",name:"type",value:"PRM_ACCESS_01"}):(0,w.jsx)(w.Fragment,{}),(0,w.jsx)("input",{type:"hidden",name:"airport",value:l.xtaxAirports.ti[0].label}),(0,w.jsx)("input",{type:"hidden",name:"logged",value:"true"}),(0,w.jsx)("input",{type:"hidden",name:"code",value:""}),(0,w.jsx)("input",{type:"hidden",name:"success",value:"".concat(eT,"/").concat(f,"/assistenza-clienti/scrivici/grazie")}),(0,w.jsx)("input",{type:"hidden",name:"error",value:"".concat(eT,"/").concat(f,"/assistenza-clienti/scrivici/errore")}),(0,w.jsx)("input",{type:"hidden",name:"informativa",value:"1"}),(0,w.jsx)("input",{type:"hidden",name:"userId",value:(null==eb?void 0:null===(t=eb.user)||void 0===t?void 0:t.userId)?null==eb?void 0:null===(n=eb.user)||void 0===n?void 0:n.userId:""}),null===(r=e.lstPRMPassenger)||void 0===r?void 0:r.map(e=>(0,w.jsxs)(w.Fragment,{children:["dataVisita"!=e.enuTypePassenger&&"email"!=e.enuTypePassenger&&"telCasa"!=e.enuTypePassenger&&"dataNascita"!=e.enuTypePassenger&&"dataVolo"!=e.enuTypePassenger&&"terminal"!=e.enuTypePassenger&&"dataPassaggio"!=e.enuTypePassenger?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("label",{htmlFor:e.enuTypePassenger,className:"sr-only",children:e.lblTitlePRMPassenger[f]}),(0,w.jsx)("input",{id:e.enuTypePassenger,ref:V,className:"p-3 rounded-xl my-4 ".concat(c?"w-full text-xs":"max-w-full text-sm"),name:e.enuTypePassenger,placeholder:e.lblTitlePRMPassenger[f],required:e.flgRequiredPRMPassenger,value:eE(e.enuType),onChange:t=>eM(e.enuType,t.target.value),onInvalid:e=>eO(e),form:"helpForm"})]}):(0,w.jsx)(w.Fragment,{}),"telCasa"===e.enuTypePassenger?(0,w.jsxs)("div",{className:"relative",children:[(0,w.jsx)("label",{htmlFor:"prefix",className:"sr-only",children:p("form.prefix")}),(0,w.jsx)("select",{ref:V,id:"prefix",name:"prefix",form:"helpForm",onInvalid:e=>eO(e),className:"absolute border-2 border-lightgrey max-w-fit text-center left-1 p-1 rounded-xl w-full ".concat(c?"text-xs top-0":"text-sm top-3.5"," ").concat(ej?"text-sm top-3.5":""," mt-2 mb-2"),children:eh.map(e=>(0,w.jsxs)("option",{value:e[1],selected:"+39"===e[1],placeholder:e[1],children:[e[0]," : ",e[1]]}))}),(0,w.jsx)("label",{htmlFor:e.enuTypePassenger,className:"sr-only",children:e.lblTitlePRMPassenger[f]}),(0,w.jsx)("input",{id:e.enuTypePassenger,ref:V,className:"p-3 pl-[138px] rounded-xl my-4 w-full ".concat(c?"text-xs":"text-sm"),name:e.enuTypePassenger,placeholder:e.lblTitlePRMPassenger[f],required:e.flgRequiredPRMPassenger,value:eE(e.enuType),onChange:t=>eM(e.enuType,t.target.value),onInvalid:e=>eO(e),form:"helpForm"})]}):(0,w.jsx)(w.Fragment,{}),"terminal"===e.enuTypePassenger?(0,w.jsx)(sF,{isMobile:c,item:e,title:"",name:"aeroporto"}):(0,w.jsx)(w.Fragment,{}),"email"===e.enuTypePassenger?(0,w.jsx)("input",{ref:V,className:"p-3 rounded-xl my-4 ".concat(c?"w-full text-xs":"max-w-full text-sm"," ").concat(et||""==Q?"":"border-2 border-red"),name:e.enuTypePassenger,placeholder:e.lblTitlePRMPassenger[f],required:e.flgRequiredPRMPassenger,value:Q,onChange:e=>eD(e.target.value),onInvalid:e=>console.log(e),form:"helpForm"}):(0,w.jsx)(w.Fragment,{}),"email"===e.enuBlockType?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("label",{htmlFor:e.enuTypePassenger,className:"sr-only",children:e.lblTitlePRMPassenger[f]}),(0,w.jsx)("input",{id:e.enuTypePassenger,ref:V,className:"p-3 rounded-xl my-4 ".concat(c?"w-full text-xs":"max-w-full text-sm"),name:e.enuTypePassenger,placeholder:e.lblTitlePRMPassenger[f],required:e.flgRequiredPRMPassenger,value:Q,onChange:e=>eD(e.target.value),onInvalid:e=>eO(e),form:"helpForm"})]}):(0,w.jsx)(w.Fragment,{}),"dataVisita"===e.enuTypePassenger||"dataPassaggio"===e.enuTypePassenger?(0,w.jsxs)("div",{className:"customPickerWrapper w-full desk:flex desk:flex-1 relative items-center",children:[(0,w.jsx)(oo(),{className:"h-[40px] text-sm my-4",dateFormat:"dd/MM/yyyy",locale:"it"===f?"it":"",placeholderText:""!=I.value?I.value:e.lblTitlePRMPassenger[f],minDate:oe(new Date,{years:-10}),maxDate:oe(new Date,{years:1}),wrapperClassName:"customPicker",selected:I.date,onChange:t=>eI(e.enuBlockType,t)}),(0,w.jsx)(S.Z,{iconName:"chevron-r",className:" ".concat(c?"-translate-y-10":""," w-2 absolute right-1 transition-transform origin-center duration-300 scale-75")})]}):(0,w.jsx)(w.Fragment,{}),"dataVolo"===e.enuTypePassenger?(0,w.jsxs)("div",{className:"customPickerWrapper w-full desk:flex desk:flex-1 relative items-center",children:[(0,w.jsx)(oo(),{className:"h-[40px] text-sm my-4",showYearPicker:!1,dateFormat:"dd/MM/yyyy",locale:"it"===f?"it":"",placeholderText:""!=R.value?R.value:e.lblTitlePRMPassenger[f],minDate:oe(new Date,{years:-10}),maxDate:oe(new Date,{years:1}),wrapperClassName:"customPicker",selected:R.date,onChange:e=>eI("dataVolo",e)}),(0,w.jsx)(S.Z,{iconName:"chevron-r",className:" ".concat(c?"-translate-y-10":""," w-2 absolute right-1 transition-transform origin-center duration-300 scale-75")})]}):(0,w.jsx)(w.Fragment,{}),"dataNascita"===e.enuTypePassenger?(0,w.jsxs)("div",{className:"customPickerWrapper w-full desk:flex desk:flex-1 relative items-center",children:[(0,w.jsx)(oo(),{className:"h-[40px] text-sm my-4",showYearDropdown:!0,dateFormat:"dd/MM/yyyy",locale:"it"===f?"it":"en",placeholderText:""!=N.value?N.value:e.lblTitlePRMPassenger[f],minDate:oe(new Date,{years:-100}),maxDate:new Date,wrapperClassName:"customPicker",selected:N.date,onChange:e=>eI("dataNascita",e)}),(0,w.jsx)(S.Z,{iconName:"chevron-r",className:" ".concat(c?"-translate-y-10":""," w-2 absolute right-1 transition-transform origin-center duration-300 scale-75")})]}):(0,w.jsx)(w.Fragment,{})]})),null===(a=e.lstPRMEscort1)||void 0===a?void 0:a.map(e=>(0,w.jsxs)(w.Fragment,{children:["dataNascitaEscort1"!=e.enuTypeEscort1&&"telefonoEscort1"!=e.enuTypeEscort1&&"emailEscort1"!=e.enuTypeEscort1?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("label",{htmlFor:e.enuTypeEscort1,className:"sr-only",children:e.lblTitlePRMEscort1[f]}),(0,w.jsx)("input",{id:e.enuTypeEscort1,ref:V,className:"p-3 rounded-xl my-4 ".concat(c?"w-full text-xs":"max-w-full text-sm"),name:e.enuTypeEscort1,placeholder:e.lblTitlePRMEscort1[f],required:e.flgRequiredPRMEscort1,value:eE(e.enuTypeEscort1),onChange:t=>eM(e.enuTypeEscort1,t.target.value),onInvalid:e=>eO(e),form:"helpForm"})]}):(0,w.jsx)(w.Fragment,{}),"emailEscort1"===e.enuTypeEscort1?(0,w.jsx)("input",{ref:V,className:"p-3 rounded-xl my-4 ".concat(c?"w-full text-xs":"max-w-full text-sm"),name:e.enuTypeEscort1,placeholder:e.lblTitlePRMEscort1[f],required:e.flgRequiredPRMEscort1,value:eE(e.enuTypeEscort1),onChange:e=>eD(e.target.value),onInvalid:e=>eO(e),form:"helpForm"}):(0,w.jsx)(w.Fragment,{}),"dataNascitaEscort1"===e.enuTypeEscort1?(0,w.jsxs)("div",{className:"customPickerWrapper w-full desk:flex desk:flex-1 relative items-center",children:[(0,w.jsx)(oo(),{className:"h-[40px] text-sm my-4",showYearDropdown:!0,dateFormat:"dd/MM/yyyy",locale:"it"===f?"it":"en",placeholderText:""!=M.value?M.value:e.lblTitlePRMEscort1[f],minDate:oe(new Date,{years:-100}),maxDate:new Date,wrapperClassName:"customPicker",selected:M.date,onChange:e=>eI("dataNascitaEscort1",e)}),(0,w.jsx)(S.Z,{iconName:"chevron-r",className:" ".concat(c?"-translate-y-10":""," w-2 absolute right-1 transition-transform origin-center duration-300 scale-75")})]}):(0,w.jsx)(w.Fragment,{}),"telefonoEscort1"===e.enuTypeEscort1?(0,w.jsxs)("div",{className:"relative",children:[(0,w.jsx)("label",{htmlFor:"escort1-prefix",className:"sr-only",children:p("form.prefix")}),(0,w.jsx)("select",{ref:V,id:"escort1-prefix",name:"escort1-prefix",className:"absolute border-2 border-lightgrey max-w-fit text-center left-1 p-1 rounded-xl w-full ".concat(c?"text-xs h-[40px] top-0":"text-sm h-[38px] top-3.5"," my-4 mb-2"),onChange:e=>ed(e.target.value),onInvalid:e=>eO(e),children:eh.map(e=>(0,w.jsxs)("option",{value:e[1],selected:"+39"===e[1],placeholder:e[1],children:[e[0]," : ",e[1]]}))}),(0,w.jsx)("label",{htmlFor:e.enuTypeEscort1,className:"sr-only",children:e.lblTitlePRMEscort1[f]}),(0,w.jsx)("input",{id:e.enuTypeEscort1,ref:V,className:"p-3 text-center rounded-xl my-4 w-full ".concat(c?"text-xs":"text-sm"),name:e.enuTypeEscort1,placeholder:e.lblTitlePRMEscort1[f],required:e.flgRequiredPRMEscort1,value:eE(e.enuTypeEscort1),onChange:e=>eo(e.target.value),onInvalid:e=>eO(e)})]}):(0,w.jsx)(w.Fragment,{})]})),null===(i=e.lstPRMEscort2)||void 0===i?void 0:i.map(e=>(0,w.jsxs)(w.Fragment,{children:["dataNascitaEscort2"!=e.enuTypeEscort2&&"telefonoEscort2"!=e.enuTypeEscort2&&"emailEscort2"!=e.enuTypeEscort2?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("label",{htmlFor:e.enuTypeEscort2,className:"sr-only",children:e.lblTitlePRMEscort2[f]}),(0,w.jsx)("input",{id:e.enuTypeEscort2,ref:V,className:"p-3 rounded-xl my-4 ".concat(c?"w-full text-xs":"max-w-full text-sm"),name:e.enuTypeEscort2,placeholder:e.lblTitlePRMEscort2[f],required:e.flgRequiredPRMEscort2,value:eE(e.enuTypeEscort2),onChange:t=>eM(e.enuTypeEscort2,t.target.value),onInvalid:e=>eO(e),form:"helpForm"})]}):(0,w.jsx)(w.Fragment,{}),"emailEscort2"===e.enuTypeEscort2?(0,w.jsx)("input",{ref:V,className:"p-3 rounded-xl my-4 ".concat(c?"w-full text-xs":"max-w-full text-sm"),name:e.enuTypeEscort2,placeholder:e.lblTitlePRMEscort2[f],required:e.flgRequiredPRMEscort2,value:eE(e.enuTypeEscort2),onChange:e=>eD(e.target.value),onInvalid:e=>eO(e),form:"helpForm"}):(0,w.jsx)(w.Fragment,{}),"dataNascitaEscort2"===e.enuTypeEscort2?(0,w.jsxs)("div",{className:"customPickerWrapper w-full desk:flex desk:flex-1 relative items-center",children:[(0,w.jsx)(oo(),{className:"".concat(c?"h-[40px]":"h-[38px]"," text-sm my-4"),showYearDropdown:!0,dateFormat:"dd/MM/yyyy",locale:"it"===f?"it":"en",placeholderText:""!=A.value?A.value:e.lblTitlePRMEscort2[f],minDate:oe(new Date,{years:-100}),maxDate:new Date,wrapperClassName:"customPicker",selected:A.date,onChange:e=>eI("dataNascitaEscort2",e)}),(0,w.jsx)(S.Z,{iconName:"chevron-r",className:" ".concat(c?"-translate-y-10":""," w-2 absolute right-1 transition-transform origin-center duration-300 scale-75")})]}):(0,w.jsx)(w.Fragment,{}),"telefonoEscort2"===e.enuTypeEscort2?(0,w.jsxs)("div",{className:"relative",children:[(0,w.jsx)("label",{htmlFor:"escort2-prefix",className:"sr-only",children:p("form.prefix")}),(0,w.jsx)("select",{ref:V,id:"escort2-prefix",name:"escort2-prefix",className:"absolute border-2 border-lightgrey max-w-fit text-center left-1 p-1 rounded-xl w-full ".concat(c?"text-xs top-0":"text-sm top-3.5"," ").concat(ej?"text-sm top-3.5":""," mt-2 mb-2"),onChange:e=>ef(e.target.value),onInvalid:e=>eO(e),children:eh.map(e=>(0,w.jsxs)("option",{value:e[1],selected:"+39"===e[1],placeholder:e[1],children:[e[0]," : ",e[1]]}))}),(0,w.jsx)("label",{htmlFor:e.enuTypeEscort2,className:"sr-only",children:e.lblTitlePRMEscort2[f]}),(0,w.jsx)("input",{id:e.enuTypeEscort2,ref:V,className:"p-2 text-center rounded-xl my-4 w-full h-[40px] ".concat(c?"text-xs":"text-sm"),name:e.enuTypeEscort2,placeholder:e.lblTitlePRMEscort2[f],required:e.flgRequiredPRMEscort2,value:eE(e.enuTypeEscort2),onChange:e=>ec(e.target.value),onInvalid:e=>eO(e),form:"helpForm"})]}):(0,w.jsx)(w.Fragment,{})]}))]})]})})}):(0,w.jsx)(w.Fragment,{}),(null==l?void 0:l.enuTypeForm)==="PRM_SURVEY"?null==l?void 0:null===(a=l.lstSurvey)||void 0===a?void 0:a.map(e=>{var t,n,r;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("span",{className:"flex font-bold mt-6",children:e.lblBlock[f]}),(0,w.jsxs)("form",{className:"desk:grid tab:grid grid-cols-2 mt-2 desk:mb-14 gap-3 align-start",id:"helpForm",method:"POST",onSubmit:e=>eA(e,"".concat("https://apiextra.seamilano.eu/ols-forms/v2","/").concat(f,"/").concat(eT,"/insert-prm-survey"),"PRM_SURVEY"),children:[(0,w.jsx)("input",{type:"hidden",name:"aeroporto",value:l.xtaxAirports.ti[0].label}),(0,w.jsx)("input",{type:"hidden",name:"type",value:"PRM_SURVEY"}),(0,w.jsx)("input",{type:"hidden",name:"userId",value:(null==eb?void 0:null===(t=eb.user)||void 0===t?void 0:t.userId)?null==eb?void 0:null===(n=eb.user)||void 0===n?void 0:n.userId:""}),(0,w.jsx)("input",{type:"hidden",name:"logged",value:"true"}),(0,w.jsx)("input",{type:"hidden",name:"code",value:""}),(0,w.jsx)("input",{type:"hidden",name:"success",value:"malpensa/it/assistenza-clienti/scrivici/grazie"}),(0,w.jsx)("input",{type:"hidden",name:"error",value:"malpensa/it/assistenza-clienti/scrivici/errore"}),(0,w.jsx)("input",{type:"hidden",name:"cortesiaLabel",value:""}),(0,w.jsx)("input",{type:"hidden",name:"competenzaLabel",value:""}),(0,w.jsx)("input",{type:"hidden",name:"adeguatezzaLabel",value:""}),(0,w.jsx)("input",{type:"hidden",name:"accessibilitaLabel",value:""}),(0,w.jsx)("input",{type:"hidden",name:"disponibilitaLabel",value:""}),(0,w.jsx)("input",{type:"hidden",name:"bagniLabel",value:""}),(0,w.jsx)("input",{type:"hidden",name:"mezziLabel",value:""}),(0,w.jsx)("input",{type:"hidden",name:"salaLabel",value:""}),(0,w.jsx)("input",{type:"hidden",name:"servizioLabel",value:""}),null===(r=e.lstBlock)||void 0===r?void 0:r.map(e=>(0,w.jsxs)(w.Fragment,{children:[""!=e.xconListFormBlock.label&&"terminal"!=e.enuBlockType?(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)("div",{className:"flex flex-col",children:[(0,w.jsx)("label",{className:"text-sm",children:e.lblBlockList[f]}),(0,w.jsx)(sF,{isMobile:c,item:e,title:"",name:e.lblBlockList[f]})]})}):(0,w.jsx)(w.Fragment,{}),"obbligatorieta"!=e.enuBlockType&&"email"!=e.enuBlockType&&"dataViaggio"!=e.enuBlockType&&"suggerimenti"!=e.enuBlockType&&"servizio"!=e.enuBlockType&&""===e.xconListFormBlock.label?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("label",{htmlFor:e.enuBlockType,className:"sr-only",children:e.lblBlockList[f]}),(0,w.jsx)("input",{id:e.enuBlockType,ref:V,className:"p-3 rounded-xl my-4 ".concat(c?"w-full text-xs":"max-w-full text-sm"),form:"helpForm",name:e.enuBlockType,placeholder:e.lblBlockList[f],required:e.flgRequiredPRMPassenger||e.flgRequiredBlock,value:eE(e.enuTypePassenger),onChange:t=>eM(e.enuBlockType,t.target.value),onInvalid:e=>eO(e)})]}):(0,w.jsx)(w.Fragment,{}),"email"===e.enuBlockType?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("label",{htmlFor:e.enuType,className:"sr-only",children:e.lblBlockList[f]}),(0,w.jsx)("input",{id:e.enuType,ref:V,className:"p-3 rounded-xl ".concat(c?"w-full text-xs":"max-w-full text-sm"," ").concat(et||""==Q?"":"border-2 border-red"," mt-2 mb-2"),form:"helpForm",name:e.enuType,placeholder:e.lblBlockList[f],required:e.flgRequiredPRMPassenger||e.flgRequiredBlock,value:Q,onChange:e=>eD(e.target.value),onInvalid:e=>eO(e)})]}):(0,w.jsx)(w.Fragment,{}),"terminal"===e.enuBlockType?(0,w.jsx)(sF,{isMobile:c,item:e,title:"",name:e.lblBlockList[f]}):(0,w.jsx)(w.Fragment,{}),"obbligatorieta"===e.enuBlockType||"servizio"===e.enuBlockType?(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)("fieldset",{className:"mt-5 mb-2",children:[(0,w.jsx)("legend",{className:"sr-only",children:e.lblBlockList[f]}),(0,w.jsx)("div",{className:"flex ".concat(c?"flex-col":""," items-center"),children:(0,w.jsxs)("div",{className:"".concat(c?"flex flex-row mb-2":""),children:[(0,w.jsx)("input",{id:"".concat(e.enuBlockType,"-yes"),className:"ml-4 w-4 h-4 ".concat(c?"translate-y-1":""),type:"radio",value:"SI",name:e.enuBlockType,form:"helpForm"}),(0,w.jsx)("label",{htmlFor:"".concat(e.enuBlockType,"-yes"),className:"ml-2 text-sm",children:p("account.yes")}),(0,w.jsx)("input",{id:"".concat(e.enuBlockType,"-no"),className:"ml-4 w-4 h-4 ".concat(c?"translate-y-1":""),type:"radio",value:"NO",name:e.enuBlockType,form:"helpForm"}),(0,w.jsx)("label",{htmlFor:"".concat(e.enuBlockType,"-no"),className:"ml-2 text-sm",children:"NO"})]})})]})}):(0,w.jsx)(w.Fragment,{}),"suggerimenti"===e.enuBlockType?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("textarea",{ref:er,maxLength:1e3,className:"p-2 rounded-xl min-h-full w-full my-4 ".concat(c?"text-xs":"text-sm"),onInvalid:e=>eO(e),form:"helpForm",placeholder:e.lblBlockList[f],required:e.flgRequiredPRMPassenger||e.flgRequiredBlock,name:e.enuBlockType,value:eE(e.enuType),onChange:t=>{eM(e.enuBlockType,t.target.value),eN(t.target.value.length)},onInput:t=>eP(t,e.enuBlockType),style:{resize:"none",scrollMargin:0}}),(0,w.jsxs)("div",{className:"text-right text-xs text-gray-500",children:[eC," / 1000 caratteri"]}),eC>=1e3&&(0,w.jsx)("p",{className:"text-red-600 text-sm mt-1",children:"Hai raggiunto il numero massimo di caratteri consentiti."})]}):(0,w.jsx)(w.Fragment,{}),"dataViaggio"===e.enuBlockType?(0,w.jsxs)("div",{className:"customPickerWrapper w-full desk:flex desk:flex-1 relative items-center",children:[(0,w.jsx)(oo(),{className:"".concat(c?"h-[30px]":"h-[38px]"," text-sm my-4"),dateFormat:"dd/MM/yyyy",locale:"it"===f?"it":"en",placeholderText:""!=I.value?I.value:e.lblBlockList[f],minDate:oe(new Date,{years:-10}),maxDate:new Date,wrapperClassName:"customPicker",selected:I.date,onChange:t=>eI(e.enuBlockType,t)}),(0,w.jsx)(S.Z,{iconName:"chevron-r",className:" ".concat(c?"-translate-y-10":""," w-2 absolute right-1 transition-transform origin-center duration-300 scale-75")})]}):(0,w.jsx)(w.Fragment,{})]}))]})]})}):(0,w.jsx)(w.Fragment,{}),(null==l?void 0:l.enuTypeForm)==="RECLAMI"||(null==l?void 0:l.enuTypeForm)==="INFORMAZIONI"||(null==l?void 0:l.enuTypeForm)==="SUGGERIMENTI"?(0,w.jsx)("div",{className:"desk:grid tab:grid grid-cols-2 mt-2 mb-14 gap-3 align-start",hidden:K,children:null==l?void 0:null===(i=l.lstBase)||void 0===i?void 0:i.map((e,t)=>{var n,r,a,i;return(0,w.jsx)(C.Fragment,{children:(0,w.jsxs)("form",{className:"",id:"helpForm",method:"POST",onSubmit:e=>eA(e,"".concat("https://apiextra.seamilano.eu/ols-forms/v2","/").concat(f,"/").concat(eT,"/insert"),"INFORMAZIONI"),children:[(0,w.jsx)("input",{type:"hidden",name:"aeroporto",value:null==l?void 0:null===(r=l.xtaxAirports)||void 0===r?void 0:null===(n=r.ti[0])||void 0===n?void 0:n.label}),(0,w.jsx)("input",{type:"hidden",name:"terminal",value:null==l?void 0:null===(i=l.xtaxAirports)||void 0===i?void 0:null===(a=i.ti[0])||void 0===a?void 0:a.label}),(0,w.jsx)("input",{type:"hidden",name:"type",value:null==l?void 0:l.enuTypeForm}),(0,w.jsx)("input",{type:"hidden",name:"logged",value:"true"}),(0,w.jsx)("input",{type:"hidden",name:"titoloStudio",value:"xxx"}),(0,w.jsx)("input",{type:"hidden",name:"professione",value:"xxx"}),(0,w.jsx)("input",{type:"hidden",name:"oggetto",value:"xxx"}),(0,w.jsx)("input",{type:"hidden",name:"area",value:0}),(0,w.jsx)("input",{type:"hidden",name:"code",value:""}),(0,w.jsx)("input",{type:"hidden",name:"testo",value:"xxx"}),(0,w.jsx)("input",{type:"hidden",name:"success",value:"malpensa/it/assistenza-clienti/scrivici/grazie"}),(0,w.jsx)("input",{type:"hidden",name:"error",value:"malpensa/it/assistenza-clienti/scrivici/errore"}),(0,w.jsx)("input",{type:"hidden",name:"informativa",value:"1"}),"testo"!=e.enuTypeBase&&"telCell"!=e.enuTypeBase&&"email"!=e.enuTypeBase&&void 0===e.xconListForm.targeturl&&"sesso"!=e.enuTypeBase&&"attachment"!=e.enuTypeBase&&"localita"!=e.enuTypeBase&&"terminal"!=e.enuTypeBase?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("input",{id:e.enuTypeBase,ref:V,className:"p-3 rounded-xl w-full text-sm mt-2 mb-2",name:e.enuTypeBase,form:"helpForm",placeholder:e.lblTitleBase[f],required:e.flgRequired,value:eE(e.enuTypeBase),onChange:t=>eM(e.enuTypeBase,t.target.value),onInvalid:e=>eO(e)}),(0,w.jsx)("label",{className:"sr-only",htmlFor:e.enuTypeBase,children:e.lblTitleBase[f]})]}):(0,w.jsx)(w.Fragment,{}),"email"===e.enuTypeBase&&void 0===e.xconListForm.targeturl?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("label",{htmlFor:e.enuTypeBase,className:"sr-only",children:e.lblTitleBase[f]}),(0,w.jsx)("input",{ref:V,id:e.enuTypeBase,className:"p-3 rounded-xl w-full text-sm ".concat(et||""==Q?"":"border-2 border-red"," mt-2 mb-2"),form:"helpForm",name:e.enuTypeBase,placeholder:e.lblTitleBase[f],required:e.flgRequired||e.flgRequiredBlock,value:Q,onChange:e=>eD(e.target.value),onInvalid:e=>eO(e)})]}):(0,w.jsx)(w.Fragment,{}),"telCell"===e.enuTypeBase?(0,w.jsxs)("div",{className:"relative",children:[(0,w.jsx)("label",{htmlFor:"prefix",className:"sr-only",children:p("form.prefix")}),(0,w.jsx)("select",{ref:V,id:"prefix",name:"prefix",form:"helpForm",onInvalid:e=>eO(e),className:"absolute max-w-fit left-0 p-1 rounded-xl w-full ".concat(c?"text-xs top-0":"text-sm top-3.5"," ").concat(ej?"text-sm top-3.5":""," mt-2 mb-2"),children:eh.sort((e,t)=>e[0].localeCompare(t[0])).map((e,t)=>(0,w.jsxs)("option",{value:e[1],selected:"+39"===e[1],children:[e[0]," : ",e[1]]},t))}),(0,w.jsx)("label",{htmlFor:e.enuTypeBase,className:"sr-only",children:e.lblTitleBase[f]}),(0,w.jsx)("input",{ref:V,id:e.enuTypeBase,className:"p-3 text-center rounded-xl my-4 w-full ".concat(c?"text-xs":"text-sm"),name:e.enuTypeBase,placeholder:e.lblTitleBase[f],required:e.flgRequired,value:eE(e.enuTypeBase),onChange:t=>eM(e.enuTypeBase,t.target.value),onInvalid:e=>eO(e),form:"helpForm"})]}):(0,w.jsx)(w.Fragment,{}),"sesso"!=e.enuTypeBase&&void 0!=e.xconListForm.targeturl&&"testo"!=e.enuTypeBase&&"attachment"!=e.enuTypeBase&&"terminal"!=e.enuTypeBase&&"localita"!=e.enuTypeBase?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("span",{className:"mr-4 ml-1",children:e.lblTitleBase[f]}),(0,w.jsx)(sF,{isMobile:c,item:e,title:"",name:e.enuTypeBase})]}):(0,w.jsx)(w.Fragment,{}),"testo"===e.enuTypeBase&&void 0===e.xconListForm.targeturl?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("textarea",{ref:er,maxLength:1e3,className:"p-3 rounded-xl min-h-full w-full mt-2 mb-2 ".concat(c?"text-xs":"text-sm"),onInvalid:e=>eO(e),form:"helpForm",placeholder:e.lblTitleBase[f],required:e.flgRequired,name:e.enuTypeBase,value:eE(e.enuTypeBase),onChange:t=>{eM(e.enuTypeBase,t.target.value),eN(t.target.value.length)},onInput:t=>eP(t,e.enuTypeBase),style:{resize:"none",scrollMargin:0}}),(0,w.jsxs)("div",{className:"text-right text-xs text-gray-500 -mt-2",children:[eC," / 1000 caratteri"]}),eC>=1e3&&(0,w.jsx)("p",{className:"text-red-600 text-sm mt-1",children:"Hai raggiunto il numero massimo di caratteri consentiti."})]}):(0,w.jsx)(w.Fragment,{}),"localita"===e.enuTypeBase?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("span",{className:"mr-4 ml-1",children:e.lblTitleBase[f]}),(0,w.jsxs)("select",{ref:V,className:"p-3 rounded-xl w-full ".concat(c?"text-xs":"text-sm"," mt-2 mb-2"),name:"localita",onChange:e=>{ex(e.target.value)},onInvalid:e=>eO(e),children:[(0,w.jsx)("option",{value:"NULL",selected:!0,children:p("form.none")}),em.countries.map((e,t)=>(0,w.jsx)("option",{value:e.value,children:"it"===f?e.label:e.label_en},t))]})]}):(0,w.jsx)(w.Fragment,{}),"terminal"===e.enuTypeBase?(0,w.jsx)(sF,{isMobile:c,item:e,title:"",name:e.enuTypeBase}):(0,w.jsx)(w.Fragment,{}),"attachment"===e.enuTypeBase&&void 0===e.xconListForm.targeturl?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("span",{className:"mr-4 ml-1",children:e.lblTitleBase[f]}),(0,w.jsx)("label",{htmlFor:"file",className:"sr-only",children:e.lblTitleBase[f]}),(0,w.jsx)("input",{type:"hidden",name:"file",value:ek,form:"helpForm"}),(0,w.jsx)("input",{type:"button",ref:V,onInvalid:e=>eO(e),required:e.flgRequired,className:"bg-black py-3 px-4 flex text-white hover:bg-lightblue transition duration-300 uppercase text-xs rounded-2xl cursor-pointer font-bold",value:p("form.selectFile"),onClick:()=>document.getElementById("file").click()}),ek?(0,w.jsx)("h1",{children:ek}):(0,w.jsx)("h1",{children:"No File"}),(0,w.jsx)("input",{type:"file",id:"file",hidden:!0,className:"p-1 w-full text-sm mt-2 mb-2",form:"helpForm",required:e.flgRequired,onChange:e=>e_(e),placeholder:"No file"})]}):(0,w.jsx)(w.Fragment,{}),"sesso"===e.enuTypeBase?(0,w.jsxs)("fieldset",{className:"flex ".concat(c?"flex-col":""," items-center mt-5 mb-2"),children:[(0,w.jsx)("legend",{className:"sr-only",children:e.lblTitleBase[f]}),(0,w.jsxs)("div",{className:"".concat(c?"flex flex-row mb-2":""),children:[(0,w.jsx)("input",{id:"sesso-m",className:"w-4 h-4 translate-y-1",type:"radio",value:"M",name:"sesso",form:"helpForm",onChange:()=>j("M"),defaultChecked:"M"===k}),(0,w.jsx)("label",{htmlFor:"sesso-m",className:"ml-2 text-sm",children:"M"}),(0,w.jsx)("input",{id:"sesso-f",className:"ml-4 w-4 h-4 translate-y-1",type:"radio",value:"F",name:"sesso",form:"helpForm",onChange:()=>j("F"),defaultChecked:"F"===k}),(0,w.jsx)("label",{htmlFor:"sesso-f",className:"ml-2 text-sm",children:"F"})]})]}):(0,w.jsx)(w.Fragment,{})]})},t)})}):(0,w.jsx)(w.Fragment,{}),(0,w.jsx)(sK,{id:"recaptchaRefLAF",ref:Z,size:"invisible",sitekey:"6Le9WYQaAAAAAMJjAfi75PBzo1nlhftlwr9ZpJpz",onChange:eL}),(0,w.jsx)(sK,{id:"recaptchaRefPRM",ref:H,size:"invisible",sitekey:"6Le9WYQaAAAAAMJjAfi75PBzo1nlhftlwr9ZpJpz",onChange:eL}),(0,w.jsx)(sK,{id:"recaptchaRefINFO",ref:U,size:"invisible",sitekey:"6Le9WYQaAAAAAMJjAfi75PBzo1nlhftlwr9ZpJpz",onChange:eL}),(0,w.jsx)(sK,{id:"recaptchaRefSV",ref:z,size:"invisible",sitekey:"6Le9WYQaAAAAAMJjAfi75PBzo1nlhftlwr9ZpJpz",onChange:eL}),(null==l?void 0:l.enuTypeForm)==="OGGETTI_SMARRITI"?(0,w.jsx)("div",{children:(0,w.jsx)("form",{id:"helpForm",className:"desk:grid tab:grid grid-cols-2 desk:mt-4 ".concat(c?"":"mb-14"," gap-3 align-start"),onSubmit:e=>eA(e,"".concat("https://apiextra.seamilano.eu/ols-forms/v2","/").concat(f,"/").concat(eT,"/insert-lost-and-found"),"OGGETTI_SMARRITI"),children:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("input",{type:"hidden",name:"type",value:null==l?void 0:l.enuTypeForm}),(0,w.jsx)("input",{type:"hidden",name:"aeroporto",value:"mxp"}),(0,w.jsx)("input",{type:"hidden",name:"logged",value:"true"}),(0,w.jsx)("input",{type:"hidden",name:"code",value:""}),(0,w.jsx)("input",{type:"hidden",name:"success",value:"".concat(eT,"/").concat(f,"/assistenza-clienti/scrivici/grazie")}),(0,w.jsx)("input",{type:"hidden",name:"error",value:"".concat(eT,"/").concat(f,"/assistenza-clienti/scrivici/errore")}),(0,w.jsx)("input",{type:"hidden",name:"informativa",value:"1"}),null==l?void 0:l.lstBase.map((e,t)=>(0,w.jsxs)(C.Fragment,{children:["testo"!==e.enuTypeBase&&"telCell"!==e.enuTypeBase&&"email"!==e.enuTypeBase&&"localita"!==e.enuTypeBase&&"sesso"!==e.enuTypeBase&&"DataSmarrimento"!==e.enuTypeBase&&void 0===e.xconListForm.targeturl?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("label",{htmlFor:e.enuTypeBase,className:"sr-only",children:e.lblTitleBase[f]}),(0,w.jsx)("input",{id:e.enuTypeBase,ref:V,className:"p-3 rounded-xl ".concat(c?"w-full text-xs":"max-w-full text-sm"," mt-2 mb-2"),name:e.enuTypeBase,placeholder:e.lblTitleBase[f],required:e.flgRequired,value:eE(e.enuTypeBase),onChange:t=>eM(e.enuTypeBase,t.target.value),onInvalid:e=>eO(e)})]}):(0,w.jsx)(w.Fragment,{}),"telCell"===e.enuTypeBase?(0,w.jsxs)("div",{className:"relative",children:[(0,w.jsx)("label",{htmlFor:"prefix",className:"sr-only",children:p("form.prefix")}),(0,w.jsx)("select",{id:"prefix",ref:V,name:"prefix",form:"helpForm",onInvalid:e=>eO(e),className:"absolute border-2 border-lightgrey max-w-fit text-center left-1 p-1 rounded-xl w-full ".concat(c?"text-xs top-0":"text-sm top-3.5"," ").concat(ej?"text-sm top-3.5":""," mt-2 mb-2"),children:eh.map(e=>(0,w.jsxs)("option",{value:e[1],selected:"+39"===e[1],placeholder:e[1],children:[e[0]," : ",e[1]]},e[0]))}),(0,w.jsx)("label",{htmlFor:"telCell",className:"sr-only",children:e.lblTitleBase[f]}),(0,w.jsx)("input",{id:"telCell",ref:V,className:"p-3 text-center rounded-xl my-4 w-full ".concat(c?"text-xs":"text-sm"),name:e.enuTypeBase,placeholder:e.lblTitleBase[f],required:e.flgRequired,value:eE(e.enuTypeBase),onChange:t=>eM(e.enuTypeBase,t.target.value),onInvalid:e=>eO(e),form:"helpForm"})]}):(0,w.jsx)(w.Fragment,{}),"testo"!=e.enuTypeBase&&"sesso"!=e.enuTypeBase&&"DataSmarrimento"!=e.enuTypeBase&&void 0!=e.xconListForm.targeturl?(0,w.jsx)(sB,{isMobile:c,item:e,title:"",name:e.enuTypeBase}):(0,w.jsx)(w.Fragment,{}),"email"===e.enuTypeBase&&void 0===e.xconListForm.targeturl?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("label",{htmlFor:e.enuTypeBase,className:"sr-only",children:e.lblTitleBase[f]}),(0,w.jsx)("input",{id:e.enuTypeBase,ref:V,className:"p-3 rounded-xl ".concat(c?"w-full text-xs":"max-w-full text-sm"," ").concat(et||""===Q?"":"border-2 border-red"," mt-2 mb-2"),name:e.enuTypeBase,placeholder:e.lblTitleBase[f],required:e.flgRequired,value:Q,onChange:e=>eD(e.target.value),onInvalid:e=>eO(e),form:"helpForm"})]}):(0,w.jsx)(w.Fragment,{}),"testo"===e.enuTypeBase&&void 0===e.xconListForm.targeturl?(0,w.jsx)("textarea",{ref:er,maxLength:1e3,className:"p-3 rounded-xl min-h-full  w-full mt-2 mb-2 ".concat(c?"text-xs":"text-sm"),placeholder:e.lblTitleBase[f],required:e.flgRequired,name:e.enuTypeBase,value:eE(e.enuTypeBase),onChange:t=>eM(e.enuTypeBase,t.target.value),onInput:t=>eP(t,e.enuTypeBase),style:{resize:"none",scrollMargin:0},onInvalid:e=>eO(e)}):(0,w.jsx)(w.Fragment,{}),"sesso"===e.enuTypeBase?(0,w.jsxs)("fieldset",{className:"flex ".concat(c?"-translate-y-1":""," items-center mt-2 mb-2"),children:[(0,w.jsx)("legend",{className:"sr-only",children:e.lblTitleBase[f]}),(0,w.jsxs)("div",{className:"".concat(c?"flex flex-row mb-2":""),children:[(0,w.jsx)("input",{id:"sessoM",className:"w-4 h-4 translate-y-1",type:"radio",value:"M",name:"sesso",form:"helpForm",onChange:()=>j("M"),defaultChecked:"M"===k}),(0,w.jsx)("label",{htmlFor:"sessoM",className:"ml-2 text-sm",children:"M"}),(0,w.jsx)("input",{id:"sessoF",className:"ml-4 w-4 h-4 translate-y-1",type:"radio",value:"F",name:"sesso",form:"helpForm",onChange:()=>j("F"),defaultChecked:"F"===k}),(0,w.jsx)("label",{htmlFor:"sessoF",className:"ml-2 text-sm",children:"F"})]})]}):(0,w.jsx)(w.Fragment,{}),"localita"===e.enuTypeBase?(0,w.jsxs)("div",{children:[(0,w.jsx)("span",{className:"mr-4 ml-1",children:e.lblTitleBase[f]}),(0,w.jsxs)("select",{ref:V,className:"p-3 rounded-xl w-full ".concat(c?"text-xs":"text-sm"," mt-2 mb-2"),name:"localita",onChange:e=>{ex(e.target.value)},onInvalid:e=>eO(e),children:[(0,w.jsx)("option",{value:"NULL",selected:!0,children:p("form.none")}),em.countries.map(e=>(0,w.jsx)("option",{value:e.value,children:"it"===f?e.label:e.label_en}))]})]}):(0,w.jsx)(w.Fragment,{}),"DataSmarrimento"===e.enuTypeBase&&void 0===e.xconListForm.targeturl?(0,w.jsxs)("div",{className:"customPickerWrapper w-full desk:flex desk:flex-1 relative items-center my-2",children:[(0,w.jsx)(oo(),{className:"text-sm",dateFormat:"dd/MM/yyyy",locale:"it"===f?"it":"en",placeholderText:""!=I.value?I.value:e.lblTitleBase[f],minDate:oe(new Date,{years:-10}),maxDate:new Date,wrapperClassName:"customPicker",selected:I.date,onChange:t=>eI(e.enuTypeBase,t)}),(0,w.jsx)(S.Z,{iconName:"chevron-r",className:" ".concat(c?"-translate-y-8":""," ").concat(ej?"-translate-y-10":""," w-2 absolute right-1 transition-transform origin-center duration-300 scale-75")})]}):(0,w.jsx)(w.Fragment,{})]},t))]})})}):(0,w.jsx)(w.Fragment,{}),(0,w.jsx)("div",{className:"flex flex-row-reverse mb-4",children:(null==l?void 0:l.txbInformationDescription)?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{id:"infoDescription",dangerouslySetInnerHTML:{__html:l.txbInformationDescription[f]},className:"ml-2 leading-6"}),(0,w.jsx)("input",{id:"confirmCheckbox",type:"checkbox",form:"helpForm",required:!0,defaultChecked:v,onClick:()=>g(!v),onInvalid:e=>eO(e),className:"w-8","aria-describedby":"infoDescription"}),(0,w.jsx)("label",{htmlFor:"confirmCheckbox",className:"sr-only",children:"Conferma di aver letto l’informativa"})]}):null}),(0,w.jsx)("div",{className:"".concat(c?"pt-2":"pt-4"," flex flex-row-reverse justify-between"),children:(0,w.jsx)("button",{className:"active:bg-lightblue font-bold whitespace-nowrap rounded-3xl px-4 py-3 hover:bg-lightblue hover:text-white transition duration-300 max-w-min bg-black text-white",type:"submit",form:"helpForm",children:null==l?void 0:l.lblSend[f]})})]}),X&&(0,w.jsx)("div",{className:"text-center mt-2",children:(0,w.jsx)("h1",{className:"text-red",children:X})})]})]})},s0=e=>{var t;let{type:n,formId:r,language:a}=e,i=(0,T.b7)(n.xconWidgetForm.targeturl),[l]=(0,T.dD)(),o=null==i?void 0:null===(t=i.data)||void 0===t?void 0:t.enuTypeForm,[s,c]=(0,C.useState)(),{t:u}=(0,D.$G)();async function d(){return await fetch("".concat("https://resourcesols3cms.seamilano.eu","/rest/v1/SEA-LinMxp/contents/widgetForm/").concat(r))}switch((0,C.useEffect)(()=>{d().then(e=>null==e?void 0:e.json()).then(e=>{c(null==e?void 0:e.data)}).catch(e=>{console.error("[FormSelector] form error -> ",e)})},[]),o){case"CONTATTACI":return null;case"RECLAMI":case"OGGETTI_SMARRITI":case"SUGGERIMENTI":case"INFORMAZIONI":case"PRM_AUTISMO":case"PRM_ACCESS":case"PRM_ACCESS_01":case"PRM_SURVEY":return(0,w.jsx)(sQ,{language:a,form:s,bannerHidden:!0,hidden:!1,isMobile:l,sendText:u("form.sendEmailNow")});default:return(0,w.jsx)(w.Fragment,{})}},s1=e=>{var t,n;let{data:r,language:a}=e,{i18n:i}=(0,D.$G)(),l=a||i.language,[o]=(0,T.dD)(),s="/resourcesols3cms.seamilano.eu/rest/v1/SEA-LinMxp/contents/news?query="+((null==r?void 0:r.grpTypology)==="grpNewsManualSelection"?"metainfo.id=%27".concat(null==r?void 0:r.newsId,"%27"):(null==r?void 0:r.flgAllNews)?"":"xtaxNewsCategory.ti.label=%27".concat(null==r?void 0:null===(n=r.xtaxNewsCategory)||void 0===n?void 0:null===(t=n.ti[0])||void 0===t?void 0:t.label,"%27"))+"&sort=dteNews:DESC&sort=metainfo.publicationdate:DESC&from=0&size=1",c=(0,T.b7)(s);return(0,w.jsx)("div",{className:"flex justify-center bg-lightgrey p-EdgeMob tab:p-EdgeTab desk:px-32 desk:py-24",children:(0,w.jsx)(sb,{data:null==c?void 0:c.data[0],lang:l,isMobile:o,isRow:!0,isFull:!0})})};let s2=e=>{let{flightItem:t,movement:n}=e,r=n===l2.UW.D,a=r?null==t?void 0:t.scheduledTime:null==t?void 0:t.scheduledArrivalTime,i=r?null==t?void 0:t.estimatedTime:null==t?void 0:t.estimatedArrivalTime,l=(0,l$.mr)(new Date(a)),o=i?(0,l$.mr)(new Date(i)):null;return(0,w.jsxs)("div",{className:"flex desk:flex-col desk:mt-0 desk:mb-0 mb-2 mt-3",children:[(0,w.jsx)("div",{className:"time scheduledTime "+(o&&o!==l?"font-normal line-through text-lg -mb-[10px] mr-2 desk:mr-0":"desk:font-bold font-normal text-lg"),children:l||"-"}),o&&o!==l&&(0,w.jsx)("div",{className:"text-lg desk:font-bold",children:o})]})},s3=e=>{let{flightItem:t,bgChip:n="bg-lightblue",crysisLbl:r}=e,{statusPubblicDescription:a}=t;return(0,w.jsx)("div",{className:"".concat(n," px-2 py-1 rounded-lg w-fit"),children:(0,w.jsx)("div",{className:"font-semibold capitalize text-sm text-white",children:r||a||null})})},s6=()=>(0,w.jsxs)("div",{className:"flex items-center gap-4 my-4 desk:my-10 m-auto",children:[(0,w.jsx)("div",{className:"bg-lightgrey h-[60px] w-[60px] flex items-center justify-center rounded-3xl",children:(0,w.jsx)(S.Z,{iconName:"noflights"})}),(0,w.jsx)("span",{className:"font-semibold text-lg",children:(0,oM.t)("flights.flightDetailEmpty")})]});var s5=e=>{var t,n,r,a,i,l,o,s,c,u,d,p,f,h,m,v,g;let{hostPageType:x,language:b}=e,y=(0,O.useRouter)(),{i18n:k}=(0,D.$G)(),j=b||k.language,[N,E]=(0,C.useState)({...l2.Q2,movementType:x.includes("volo_dettaglio_partenze")?"D":x.includes("volo_dettaglio_arrivi")?"A":"notDefined"}),M=(0,P.Zl)(L.qm),_=(0,P.Zl)(L.OJ),A=(0,P.sJ)(L.qm),I=(0,P.Zl)(L.A_),R=(0,P.sJ)(L.A_),[F]=(0,T.dD)(),B=(0,T.b7)("/resourcesols3cms.seamilano.eu/rest/v1/SEA-LinMxp/pages/web/statoDiCrisi"),z=null==A?void 0:null===(t=A.routing)||void 0===t?void 0:t.find(e=>"origin"===e.airportRoutingType),Z=null==A?void 0:null===(n=A.routing)||void 0===n?void 0:n.find(e=>"via"===e.airportRoutingType),H=null==A?void 0:null===(r=A.routing)||void 0===r?void 0:r.find(e=>"destination"===e.airportRoutingType),U=e=>{if(!e)return"";let t=e.airportIata,n=("MXP"===t||"LIN"===t)&&e.terminal?"".concat(e.terminal," "):"";return"".concat(n).concat(t)},V="STOP_OVER"===y.query.searchAirportRole,W=(()=>{if(A)return V&&"A"===A.movementType&&null!=Z?Z:z})(),G=(()=>{if(A)return V&&"D"===A.movementType&&null!=Z?Z:H})(),Y="T2"===(()=>{if(null==A?void 0:A.routing){if("D"===N.movementType){var e;return null===(e=A.routing[0])||void 0===e?void 0:e.terminal}{let e=A.routing.find(e=>(null==e?void 0:e.airportIata)==="MXP");return null==e?void 0:e.terminal}}})();async function q(){return await fetch("".concat("https://apiextra.seamilano.eu/ols-flights/v1","/").concat(j,"/operative/flights/lists?flightId=").concat(y.query.flightId,"&airportDestinationIata=").concat(y.query.airportDestinationIata),{headers:{"Content-Type":"application/json",keyId:"6bc034ea-ae66-40ce-891e-3dccf63cb2eb"}})}return(0,C.useEffect)(()=>{q().then(e=>e.json()).then(e=>{var t;I(new Date),M(null==e?void 0:e.data[0]),_(null==e?void 0:null===(t=e.data[0])||void 0===t?void 0:t.airlineIata)})},[y.query]),(0,w.jsx)("div",{className:"text-black",children:A?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{className:"rounded-3xl desk:px-10 desk:py-6 p-5 flex flex-col desk:flex-row desk:items-center bg-lightgrey text-2xl shadow-xl",children:[(0,w.jsxs)("div",{className:"flex justify-between items-center desk:flex-[1]",children:[(0,w.jsx)("div",{className:"font-semibold desk:mr-16 whitespace-nowrap",children:(()=>{let e=null==A?void 0:A.scheduledTime;if(!e)return"-";let t=new Date(e);return isNaN(t.getTime())?"-":t.toLocaleDateString("".concat(j,"-").concat(j.toUpperCase()),{day:"2-digit",month:"short"}).toUpperCase()})()}),F&&(0,w.jsx)(w.Fragment,{children:(null==B?void 0:null===(a=B.data)||void 0===a?void 0:a.flgHideStatus)?null:(null==B?void 0:null===(i=B.data)||void 0===i?void 0:i.lblLabelStatus[j])||(null==A?void 0:A.statusPubblicDescription)?(0,w.jsx)(s3,{flightItem:A,bgChip:(null==B?void 0:null===(l=B.data)||void 0===l?void 0:l.flgColorStatus)?(0,l$.Cw)("bg",null==B?void 0:null===(o=B.data)||void 0===o?void 0:o.enuColorStatus):void 0,crysisLbl:(null==B?void 0:null===(s=B.data)||void 0===s?void 0:s.lblLabelStatus)&&(null==B?void 0:null===(c=B.data)||void 0===c?void 0:c.lblLabelStatus[j])?null==B?void 0:null===(u=B.data)||void 0===u?void 0:u.lblLabelStatus[j].toLocaleUpperCase():void 0}):null})]}),(0,w.jsxs)("div",{className:"flex desk:flex-[3] desk:px-16 justify-between desk:border-x-2 desk:border-x-darkgrey",children:[(0,w.jsxs)("div",{className:"font-semibold desk:gap-4 flex desk:flex-row flex-col desk:items-center items-start",children:[(0,w.jsx)(s2,{flightItem:A,movement:"D"}),(0,w.jsx)("div",{className:"whitespace-nowrap font-bold desk:font-semibold desk:text-2xl text-xl",children:U(W)})]}),(0,w.jsxs)("div",{className:"flex flex-col desk:mx-12 items-center mt-[7px] mr-[10px] desk:mt-0 desk:mr-0",children:[(0,w.jsx)("div",{children:(0,w.jsx)(S.Z,{iconName:"departureplane",className:"".concat(F&&"w-10")})}),(0,w.jsx)("div",{children:F?(0,w.jsx)(S.Z,{iconName:"longarrow-mobile"}):(0,w.jsx)(S.Z,{iconName:"longarrow"})}),(0,w.jsx)("div",{className:"text-[10px] whitespace-nowrap",children:A.aircraftType})]}),(0,w.jsxs)("div",{className:"font-semibold desk:gap-4 flex desk:flex-row flex-col desk:items-center items-start",children:[(0,w.jsx)(s2,{flightItem:A,movement:"A"}),(0,w.jsx)("div",{className:"whitespace-nowrap font-bold desk:font-semibold desk:text-2xl text-xl",children:U(G)})]})]}),(0,w.jsxs)("div",{className:"flex desk:flex-[1] flex-col items-end desk:mt-0 mt-8",children:[!F&&(0,w.jsx)(w.Fragment,{children:(null==B?void 0:null===(d=B.data)||void 0===d?void 0:d.flgHideStatus)?null:(null==B?void 0:null===(p=B.data)||void 0===p?void 0:p.lblLabelStatus[j])||(null==A?void 0:A.statusPubblicDescription)?(0,w.jsx)(s3,{flightItem:A,bgChip:(null==B?void 0:null===(f=B.data)||void 0===f?void 0:f.flgColorStatus)?(0,l$.Cw)("bg",null==B?void 0:null===(h=B.data)||void 0===h?void 0:h.enuColorStatus):void 0,crysisLbl:(null==B?void 0:null===(m=B.data)||void 0===m?void 0:m.lblLabelStatus)&&(null==B?void 0:null===(v=B.data)||void 0===v?void 0:v.lblLabelStatus[j])?null==B?void 0:null===(g=B.data)||void 0===g?void 0:g.lblLabelStatus[j].toLocaleUpperCase():void 0}):null}),(0,w.jsx)("div",{className:"flex items-center desk:gap-2 gap-1 desk:text-base text-[13px] desk:mt-3 whitespace-nowrap ml-10 ",children:R?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{children:[(0,oM.t)("flights.lastUpdateDetail"),":"]}),(0,w.jsx)("div",{className:"w-10",children:(null==R?void 0:R.getHours())+":"+((null==R?void 0:R.getMinutes())<10?"0":"")+(null==R?void 0:R.getMinutes())}),(0,w.jsx)("div",{className:"cursor-pointer",onClick:()=>window.location.reload(),children:(0,w.jsx)(S.Z,{iconName:"refresh"})})]}):(0,w.jsx)(w.Fragment,{})})]})]}),(0,w.jsxs)("div",{className:"flex flex-col desk:items-center mt-12",children:[(0,w.jsxs)("div",{className:"flex flex-col desk:flex-row text-center desk:h-28",children:[(0,w.jsxs)("div",{className:"flex desk:flex-col desk:px-9 ".concat(F&&"justify-between"," items-center"),children:[(0,w.jsx)("div",{className:"desk:mb-5 text-sm",children:(0,oM.t)("flights.flightNumber")}),(0,w.jsx)("div",{className:"font-semibold text-2xl whitespace-nowrap",children:null==A?void 0:A.flightNumber})]}),(0,w.jsxs)(w.Fragment,{children:[F&&(0,w.jsx)("hr",{className:"my-5"}),(0,w.jsxs)("div",{className:"flex desk:flex-col desk:border-l-2 ".concat("D"!==N.movementType?"":" desk:border-r-2 "," desk:border-x-lightgrey desk:px-9 ").concat(F&&"justify-between"," items-center"),children:[(0,w.jsx)("div",{className:"desk:mb-5 text-sm",children:"Terminal"}),(0,w.jsx)("div",{className:"font-semibold text-2xl whitespace-nowrap",children:"D"===N.movementType?(null==A?void 0:A.routing)?A.routing[0].terminal:null:null==A?void 0:A.routing.map(e=>{if((null==e?void 0:e.airportIata)==="MXP")return null==e?void 0:e.terminal})})]})]}),F&&(0,w.jsx)("hr",{className:"my-5"}),"D"!==N.movementType?(0,w.jsxs)(w.Fragment,{children:[!Y&&(0,w.jsxs)("div",{className:"flex desk:flex-col desk:border-l-2 desk:border-x-lightgrey desk:px-9 ".concat(F&&"justify-between"," items-center"),children:[(0,w.jsx)("div",{className:"desk:mb-5 text-sm",children:"Area"}),(0,w.jsx)("div",{className:"font-semibold text-2xl whitespace-nowrap",children:null==A?void 0:A.areaType})]}),(0,w.jsxs)("div",{className:"flex desk:flex-col desk:border-x-2 desk:border-x-lightgrey desk:px-9 ".concat(F&&"justify-between"," items-center"),children:[(0,w.jsx)("div",{className:"desk:mb-5 text-sm",children:(0,oM.t)("flights.baggageCarousel")}),(0,w.jsx)("div",{className:"font-semibold text-2xl whitespace-nowrap",children:null==A?void 0:A.baggageClaim})]})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{className:"flex desk:flex-col desk:border-r-2 desk:border-x-lightgrey desk:px-9 ".concat(F&&"justify-between"," items-center"),children:[(0,w.jsx)("div",{className:"desk:mb-5 text-sm",children:"Check-In"}),(0,w.jsx)("div",{className:"font-semibold text-2xl whitespace-nowrap",children:(null==A?void 0:A.checkIn)?null==A?void 0:A.checkIn:"-"})]}),F&&(0,w.jsx)("hr",{className:"my-5"}),(0,w.jsxs)("div",{className:"flex desk:flex-col desk:border-r-2 desk:border-x-lightgrey desk:px-9 ".concat(F&&"justify-between"," items-center"),children:[(0,w.jsx)("div",{className:"desk:mb-5 text-sm",children:"Area"}),(0,w.jsx)("div",{className:"font-semibold text-2xl whitespace-nowrap",children:null==A?void 0:A.areaType})]}),F&&(0,w.jsx)("hr",{className:"my-5"}),(0,w.jsxs)("div",{className:"flex desk:flex-col desk:border-r-2 desk:border-x-lightgrey desk:px-9 ".concat(F&&"justify-between"," items-center"),children:[(0,w.jsx)("div",{className:"desk:mb-5 text-sm",children:"Gate"}),(0,w.jsx)("div",{className:"font-semibold text-2xl whitespace-nowrap",children:(null==A?void 0:A.gate)?null==A?void 0:A.gate:"-"})]})]}),F&&(0,w.jsx)("hr",{className:"my-5"}),(0,w.jsxs)("div",{className:"flex desk:flex-col desk:px-9 ".concat(F&&"justify-between"," items-center"),children:[(0,w.jsx)("div",{className:"desk:mb-5 text-sm whitespace-nowrap",children:(0,oM.t)("destinations.airline")}),(0,w.jsx)("div",{className:"text-end",children:null==A?void 0:A.airlineDescription})]})]}),(null==A?void 0:A.codeShare)&&(0,w.jsxs)("div",{className:"flex desk:flex-row flex-col desk:mt-5 mt-10 desk:gap-2",children:[(0,w.jsx)("div",{className:"mb-2 desk:mb-0 text-sm",children:"Codesharing"}),(0,w.jsx)("div",{className:"desk:flex grid grid-cols-4 font-semibold gap-4 whitespace-nowrap desk:text-base text-sm",children:null==A?void 0:A.codeShare.map(e=>(0,w.jsx)("div",{children:null==e?void 0:e.codeShareFlightNumber},e.codeShareFlightNumber))})]})]})]}):R?(0,w.jsx)("div",{className:"flex justify-center mt-12",children:(0,w.jsx)(s6,{})}):(0,w.jsx)(lW.Z,{className:"m-auto",color:"#14688E"})})},s4=e=>{let{title:t,description:n,imageUrl:r,bgColor:a}=e;(0,P.sJ)(L.wy);let i=l1().sanitize(t);return(0,w.jsxs)("div",{className:"flex flex-col gap-4 items-center ".concat(a," rounded-2xl w-[17rem] py-7 px-6 h-[17rem]"),children:[(0,w.jsx)("div",{className:"relative",style:{width:27,height:35},children:r?(0,w.jsx)(_(),{src:r,alt:"","aria-hidden":"true",fill:!0,sizes:"27px",className:"object-contain",unoptimized:!0}):(0,w.jsx)("div",{"aria-hidden":"true",className:"w-full h-full bg-gray-200 rounded-sm"})}),(0,w.jsx)("h2",{className:"font-bold text-center mb-4",dangerouslySetInnerHTML:{__html:i}}),(0,w.jsx)("div",{className:"flex flex-col gap-2 justify-between items-center h-full",children:(0,w.jsx)("div",{children:(0,w.jsx)("h3",{className:"text-center text-sm",children:n})})})]})},s8={src:"/_next/static/media/map2.90fd3988.png"},s7={src:"/_next/static/media/clock.6c484709.png"},s9={src:"/_next/static/media/phone.6ef9647f.png"},ce=e=>{var t,n,r,a,i,l,o,s,c,u;let{language:d}=e,{i18n:p}=(0,D.$G)(),f=d||p.language,h=(0,O.useRouter)(),m=h.asPath.substring(h.asPath.indexOf("=")+1,h.asPath.length),[v,g]=(0,C.useState)(),[x,b]=(0,C.useState)(),[y,k]=(0,C.useState)([]),[j,N]=(0,C.useState)(!0),[E,M]=(0,C.useState)(!0),[A,L]=(0,C.useState)(""),[I,P]=(0,C.useState)(""),[R,F]=(0,C.useState)(""),[B,z]=(0,T.dD)(),[Z,H]=(0,C.useState)(!1),[U,V]=(0,C.useState)(),W=["ETRO","GIORGIO ARMANI","MONTBLANC"];async function G(){return await fetch("".concat("https://apiextra.seamilano.eu/ols-shop/afm-publicapi/v2","/afm/").concat(f.toLocaleUpperCase(),"/").concat(m),{method:"GET",headers:new Headers({"Content-Type":"application/json",keyId:"8d2e96de-e071-4aad-a633-36f878a87d2c"})})}let Y=async()=>{var e;let t=await fetch("".concat("https://apiextra.seamilano.eu/ols-immagini-negozi/imageservice/v1","/afm/s/200/127").concat(null==v?void 0:null===(e=v.shopDetails)||void 0===e?void 0:e.logo.replace("/Assets/afm","")),{headers:{keyId:"64b7fd33-ab7b-4ee5-b42e-1b5a8e50710a"}}),n=await t.blob();P(URL.createObjectURL(n))},q=async()=>{var e,t,n,r;let a=B?null==v?void 0:null===(t=v.shopDetails)||void 0===t?void 0:null===(e=t.images.find(e=>"Mobile"==e.media))||void 0===e?void 0:e.image:null==v?void 0:null===(r=v.shopDetails)||void 0===r?void 0:null===(n=r.images.find(e=>"Desktop"==e.media))||void 0===n?void 0:n.image,i=null==a?void 0:a.replace("/Assets/afm",""),l=await fetch("".concat("https://apiextra.seamilano.eu/ols-immagini-negozi/imageservice/v1","/afm/s/800/450").concat(i),{headers:{keyId:"64b7fd33-ab7b-4ee5-b42e-1b5a8e50710a"}}),o=await l.blob();F(URL.createObjectURL(o))},K=(null==v?void 0:null===(t=v.shopDetails)||void 0===t?void 0:t.floordescr)||"",$=(null==v?void 0:null===(r=v.shopDetails)||void 0===r?void 0:null===(n=r.access)||void 0===n?void 0:n.descr)||"",X=(null==v?void 0:null===(a=v.shopDetails)||void 0===a?void 0:a.airport)||"",J=(null==v?void 0:null===(i=v.shopDetails)||void 0===i?void 0:i.terminal)||"",Q="Malpensa"==X?"Terminal "+"".concat(J,"\n").concat(K,"\n").concat($):"".concat(K,"\n").concat($),ee=null==v?void 0:null===(l=v.shopDetails)||void 0===l?void 0:l.contact,et=(0,oM.t)("shop.map"),[en,er]=(0,C.useState)({value:!1,shopId:0}),ea=null==v?void 0:null===(o=v.shopDetails)||void 0===o?void 0:o.id;async function ei(){return await fetch("".concat("https://integration.emmasuite.com/api/bigcommerce/hasher/").concat("420e2720-4a03-43aa-9bf7-15ae7a5a0203"))}async function el(e,t){return await fetch("".concat("https://integration.emmasuite.com/api/bcappsea/passthrough","/widget/").concat(t),{method:"GET",headers:{"x-auth-hash":e,"x-auth-instance-id":"420e2720-4a03-43aa-9bf7-15ae7a5a0203"}})}async function eo(e,t){return await fetch("".concat("https://integration.emmasuite.com/api/bcappsea/passthrough","/product/").concat(t),{method:"GET",headers:{"x-auth-hash":e,"x-auth-instance-id":"420e2720-4a03-43aa-9bf7-15ae7a5a0203"}})}return(0,C.useEffect)(()=>{G().then(e=>null==e?void 0:e.json()).then(e=>{W.includes(e.shopDetails.shortdescr)&&"en"==f?H(!1):H(!0),g(e)}).catch(e=>{console.error("[ShopLayoutPage] shopData error -> ",e),N(!1)}).finally(()=>{N(!1)})},[]),(0,C.useEffect)(()=>{v&&ei().then(e=>null==e?void 0:e.json()).then(e=>{V(e.hash),el(e.hash,v.shopDetails.widgetId).then(e=>e.json()).then(e=>{var t,n;b(null===(n=e.widget_configuration)||void 0===n?void 0:null===(t=n.product)||void 0===t?void 0:t.value)}).catch(e=>{console.error("[ShopLayoutPage] getWidgetList -> ",e)})}).catch(e=>{console.error("[ShopLayoutPage] getHasher error -> ",e)})},[v]),(0,C.useEffect)(()=>{if(Y().catch(e=>{console.error("[ShopLayoutPage] logo error -> ",e)}),q().catch(e=>{console.error("[ShopLayoutPage] banner error -> ",e)}),void 0!=v){var e;L(null==v?void 0:null===(e=v.shopDetails)||void 0===e?void 0:e.openingDays.map(e=>(e.days+" "+e.open+" - "+e.close+"\r\n").replaceAll(",",", ")))}},[v]),(0,C.useEffect)(()=>{if((null==x?void 0:x.length)>0){let e=[];null==x||x.map(t=>{let n=eo(U,t.productId);e=[...e,n]}),Promise.all(e).then(e=>Promise.all(e.map(e=>e.json()))).then(e=>{k(e)}).finally(()=>{M(!1)}).catch(e=>{M(!1),console.error("[ShopLayoutPage] getWidgetDetail error -> ",e)})}},[x]),(0,w.jsx)(w.Fragment,{children:j?(0,w.jsx)(lW.Z,{className:"m-auto mt-16",color:"#14688E"}):(0,w.jsxs)(w.Fragment,{children:[R&&(0,w.jsx)("div",{className:"relative w-full aspect-[1920/430] sm:aspect-[640/710] max-h-[430px]",children:(0,w.jsx)(_(),{src:R,alt:"",fill:!0,className:"absolute inset-0 w-full h-full object-cover",priority:!0,unoptimized:!0})}),(0,w.jsx)("div",{className:"flex my-12 gap-8 items-center justify-center",children:(0,w.jsxs)("div",{className:"flex flex-col desk:flex-row desk:max-w-cont-2 gap-6",children:[(0,w.jsx)(_(),{src:I,alt:"",width:200,height:127,sizes:"200px",unoptimized:!0}),(0,w.jsx)("h1",{className:"px-6 desk:px-0",children:null==v?void 0:null===(s=v.shopDetails)||void 0===s?void 0:s.longdescr})]})}),(0,w.jsx)("div",{className:"py-8 px-6 desk:py-12 bg-lightgrey",children:(0,w.jsx)("div",{className:"max-w-cont-2 mx-auto w-full",children:(0,w.jsxs)("div",{className:"mb-11",children:[(0,w.jsx)("h1",{className:"font-bold text-3xl mt-8 mb-8",children:(0,oM.t)("shop.infoShop")}),B?(0,w.jsxs)("div",{children:[(0,w.jsx)(sx,{language:f,bgColor:"bg-white",imageUrl:s7.src,title:(0,oM.t)("shop.openingShop"),description:A},0),(0,w.jsx)("div",{className:"flex items-center ".concat(B?"justify-center rotate-90 my-8":""),children:(0,w.jsx)(S.Z,{iconName:"dots",className:"w-4"})}),(0,w.jsx)(sx,{language:f,bgColor:"bg-white",imageUrl:s8.src,title:(0,oM.t)("shop.whereShop"),description:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("span",{style:{whiteSpace:"pre-wrap"},children:Q}),(0,w.jsxs)("div",{onClick:()=>er({value:!0,shopId:ea}),children:[" ",(0,w.jsx)("a",{className:"underline underline-offset-2 text-sm cursor-pointer",children:et})]})]})},1),(0,w.jsx)("div",{className:"absolute",hidden:!en.value,children:(0,w.jsxs)("div",{className:"w-screen h-screen",style:{padding:30,position:"fixed",top:0,left:0,bottom:0,right:0,border:"none",overflow:"hidden",zIndex:999999},children:[(0,w.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",background:"black",opacity:.1}}),(0,w.jsx)("div",{className:"cursor-pointer relative z-[52]",onClick:()=>er({value:!1,shopId:0}),children:(0,w.jsx)("button",{className:"bg-black p-0 rounded-3xl cursor-pointer w-5 absolute top-0 right-0",children:(0,w.jsx)(lH,{onClick:()=>er({value:!1,shopId:0})})})}),en.value&&en.shopId===ea&&(0,w.jsxs)("div",{className:"bg-[#eee] h-full relative",children:[(0,w.jsx)("div",{className:"absolute top-1/2 left-1/2 m-auto transform -translate-x-1/2 -translate-y-1/2",children:(0,w.jsx)(lW.Z,{className:"m-auto",color:"#14688E"})}),(0,w.jsx)("iframe",{className:"absolute top-0 left-0",sandbox:"allow-scripts",width:"100%",height:"100%",src:"/webmaps/neoMap.jsp?lang=".concat(f,"&target=").concat(ea)})]})]})}),ee&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"flex items-center ".concat(B?"justify-center rotate-90 my-8":""),children:(0,w.jsx)(S.Z,{iconName:"dots",className:"w-4"})}),(0,w.jsx)(sx,{language:f,bgColor:"bg-white",imageUrl:s9.src,title:(0,oM.t)("shop.helpShop"),description:(0,oM.t)("shop.contacts")+((null==v?void 0:null===(c=v.shopDetails)||void 0===c?void 0:c.contact)?null==v?void 0:null===(u=v.shopDetails)||void 0===u?void 0:u.contact:"")},2)]})]}):(0,w.jsxs)("div",{className:"grid ".concat(ee?"desk:grid-cols-5":"desk:grid-cols-[5fr_1fr_5fr]"," mob:grid-cols-2 tab:grid-cols-3 desk:gap-6 gap-4 justify-items-center items-center"),children:[(0,w.jsx)(s4,{language:f,bgColor:"bg-[white]",imageUrl:s7.src,title:(0,oM.t)("shop.openingShop"),description:A},0),(0,w.jsx)("div",{className:"flex items-center ".concat(B?"justify-center rotate-90 my-4":""),children:(0,w.jsx)(S.Z,{iconName:"dots",className:"w-4"})}),(0,w.jsx)(s4,{language:f,bgColor:"bg-white",imageUrl:s8.src,title:(0,oM.t)("shop.whereShop"),description:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("span",{style:{whiteSpace:"pre-wrap"},children:Q}),(0,w.jsxs)("div",{onClick:()=>er({value:!0,shopId:ea}),children:[" ",(0,w.jsx)("a",{className:"underline underline-offset-2 text-sm cursor-pointer",children:et})]})]})},1),(0,w.jsx)("div",{className:"absolute",hidden:!en.value,children:(0,w.jsxs)("div",{className:"w-screen h-screen",style:{padding:30,position:"fixed",top:0,left:0,bottom:0,right:0,border:"none",overflow:"hidden",zIndex:999999},children:[(0,w.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",background:"black",opacity:.1}}),(0,w.jsx)("div",{className:"cursor-pointer relative z-[52]",onClick:()=>er({value:!1,shopId:0}),children:(0,w.jsx)("button",{className:"bg-black p-0 rounded-3xl cursor-pointer w-5 absolute top-0 right-0",children:(0,w.jsx)(lH,{onClick:()=>er({value:!1,shopId:0})})})}),en.value&&en.shopId===ea&&(0,w.jsxs)("div",{className:"bg-[#eee] h-full relative",children:[(0,w.jsx)("div",{className:"absolute top-1/2 left-1/2 m-auto transform -translate-x-1/2 -translate-y-1/2",children:(0,w.jsx)(lW.Z,{className:"m-auto",color:"#14688E"})}),(0,w.jsx)("iframe",{className:"absolute top-0 left-0",sandbox:"allow-scripts",width:"100%",height:"100%",src:"/webmaps/neoMap.jsp?lang=".concat(f,"&target=").concat(ea)})]})]})}),ee&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"flex items-center ".concat(B?"justify-center rotate-90 my-4":""),children:(0,w.jsx)(S.Z,{iconName:"dots",className:"w-4"})}),(0,w.jsx)(s4,{language:f,bgColor:"bg-white",imageUrl:s9.src,title:(0,oM.t)("shop.helpShop"),description:(0,oM.t)("shop.contacts")+ee},2)]})]})]})})})]})})},ct=e=>{var t;let{targetUrl:n,data:r,language:a}=e;return t=n?(0,T.b7)(n):r,(0,w.jsx)(w.Fragment,{children:(e=>{var n,r,i,l,o;switch(null==e?void 0:e.enuTypeInfo){case"news_in_evidenza":return(0,w.jsx)(s1,{language:a,data:{grpTypology:null==e?void 0:e.grpTypology,flgAllNews:null==e?void 0:e.flgAllNews,xtaxNewsCategory:null==e?void 0:e.xtaxNewsCategory,newsId:null==e?void 0:null===(n=e.xconNews)||void 0===n?void 0:n.id}});case"contattaci":default:return null;case"volo_dettaglio_arrivi_MXP":case"volo_dettaglio_arrivi_LIN":case"volo_dettaglio_partenze_MXP":case"volo_dettaglio_partenze_lin":return(0,w.jsx)(s5,{language:a,hostPageType:null==t?void 0:null===(r=t.data)||void 0===r?void 0:r.enuTypeInfo});case"servizi-MXP":case"servizi-LIN":return(0,w.jsx)(uL,{});case"voli_destinazioni_da_MXP":case"voli_destinazioni_da_LIN":return"grpTravelInspirationFlights"===e.grpTypology?(0,w.jsx)(sR,{partnerShipActive:null==t?void 0:null===(i=t.data)||void 0===i?void 0:i.flgActivePartnership,language:a,destination:null===(o=e.xtaxDestinations)||void 0===o?void 0:null===(l=o.ti)||void 0===l?void 0:l.label}):(0,w.jsx)(oZ,{moduleData:null==t?void 0:t.data});case"voli_compagnie-aeree_MXP":case"voli_compagnie-aeree_LIN":return(0,w.jsx)(uU,{});case"widget_form":return(0,w.jsx)(s0,{language:a,type:e,formId:e.xconWidgetForm.id});case"negozio-MXP-AFM":case"ristorantebar-MXP-AFM":return(0,w.jsx)(ce,{language:a})}})(null==t?void 0:t.data)})},cn={src:"/_next/static/media/iMessage.cefc168d.png",height:25,width:25,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA/0lEQVR42mOI/lYaE/et/Knb1/R3Rl9j3xoCsdfXrPfx3yoeRH0rcWcI/1T4zPlj6v+J3+b/P/Tr5P8DP4//b/s67b/zx5T/kZ+KjjLIPvd9v+rTpv9A8A8J/536fuF/mee+pxkU7/u8ffbzBVjB739//v/+9/s/SMHtb3f/M9zVO8XAcEX97ZXP18EK/v77C9IPVnDo3bH/DJcYgApO634Iu5z2/9XPN39BEkAT/l7+eO23/YXg/yynTc4yyB+xuM1wSPZ/3Lms/ylncv+HnEr4z3CIAYjV/ssdsdjNwLBX2Vlur9FRhl0MZxh2MpwC0qeU95qeldirv5dhj7I+ADlosNMd31uvAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},cr={src:"/_next/static/media/whatsapp.56aba0c0.png",height:32,width:32,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAA00lEQVR42gHIADf/ANr23of4mXb3ion4mYr4mnX3iYf4l9v23gCK8pcZ8EuQ9Jyi9a2l9rCe9qgp8VCK8ZcAcul+hOuOtvG8cup+OOZQoe2nme2gc+h/AHnhgJfonJnpn7vwvgDZET3dTKHrpoHjiQBx2XWU45ha1mGM4JC87b+D3oeZ5Zx6238AXM5emuCcrOauX9JhidqLseixdtV3ZdBoAHvPe2bKZYnTiYbThonViV/IXwC3AITRhADi7uOOz418yXqEy4OFy4SByoCV0pTh7eG84XxSvWcFgAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8},ca={src:"/_next/static/media/mail.fd09b284.png",height:25,width:25,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAyElEQVR42g3DPS4EUQAA4O/NvMxif2Jjs7aQkNCIRFxBqdIqxQ1UrkAjbuAc4gIS0aioN5oNUbCWsfMeX/KFo7N0WHAVWAhBksnEzGTOSSx7Lme/Nr4b6gxUgcVo+P88TtvaB9vs70hVKUDdSLePyptny/Gtq9nbYm1VKIIATRZ2N7l+0RTtAXVJDMxqpj9UBXWkM5DjaCjef1K+SoEAPqSHL8X6SBU7KyZPDO/elQkBsqLfotcyjqHreKlw0Qv6aABxnozn2ekf+t8+CkzpHaAAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},ci={CODE_200:"200",CODE_500:"500",MESSAGE_CODE_500_FLIGHT_NOT_TRACEABLE:"Flight Not Traceable",MESSAGE_CODE_500_FLIGHT_ALREADY_SUBSCRIBED:"Flight already subscribed",MESSAGE_CODE_500_MAX_FLIGHTS_SUBSCRIBED:"Max flights subscribed"},cl=e=>{let{flightDetails:t}=e,[n,r]=(0,P.FV)(L.hD),[a,i]=(0,C.useState)(!1),[l,o]=(0,C.useState)(!1),[s,c]=(0,C.useState)(!1),[u,d]=(0,C.useState)(!1),[p,f]=(0,C.useState)(!1),[h,m]=(0,C.useState)(!1),[v,g]=(0,C.useState)(!1),[x,b]=(0,C.useState)(!0),[y,k]=(0,C.useState)(!1),j=(0,C.useRef)(null),{t:N,i18n:E}=(0,D.$G)(),M=E.language,A=(0,B.aC)(),[I]=(0,T.dD)(),O=(0,T.xW)(),R=()=>{m(!1),c(!1),f(!1),d(!1),o(!1),g(!1),k(!1),i(!0)},F=()=>{i(!1),c(!1),f(!1),d(!1),g(!1),k(!1),o(!0)},z=()=>{i(!1),o(!1),f(!1),d(!1),g(!1),k(!1),c(!0)},Z=()=>{i(!1),o(!1),c(!1),f(!1),g(!1),k(!1),d(!0)},H=()=>{i(!1),o(!1),c(!1),d(!1),g(!1),k(!1),f(!0)},U=()=>{i(!1),o(!1),c(!1),m(!0),d(!1),f(!1),g(!1),m(!1),g(!0)},V=()=>{i(!1),o(!1),c(!1),m(!0),d(!1),f(!1),g(!1),k(!1),m(!0)},W=()=>{i(!1),o(!1),c(!1),m(!0),d(!1),f(!1),g(!1),m(!1),k(!0)};async function G(e){var n,r;if(null==A?void 0:null===(n=A.user)||void 0===n?void 0:n.token)return await fetch("".concat("https://apiextra.seamilano.eu/ols-trackings-voli/v2","/").concat(M,"/trackings/subscribe"),{method:"POST",body:JSON.stringify({flightId:null==t?void 0:t.flightId,origin:"siteA",recipients:[{receiver:A.user.username,type:e}]}),headers:new Headers({Authorization:null==A?void 0:null===(r=A.user)||void 0===r?void 0:r.token,"Content-Type":"application/json",keyId:"a4aac567-3826-4045-833b-c3ea5a5bff9c"})}).then(e=>e.json()).then(e=>{b(!1),e.status==ci.CODE_500&&e.message==ci.MESSAGE_CODE_500_FLIGHT_NOT_TRACEABLE||(null==t?void 0:t.statusPublic)=="APP"||(null==t?void 0:t.statusPublic)=="LAN"?F():e.status==ci.CODE_500&&e.message==ci.MESSAGE_CODE_500_FLIGHT_ALREADY_SUBSCRIBED?Z():e.status==ci.CODE_500&&e.message==ci.MESSAGE_CODE_500_MAX_FLIGHTS_SUBSCRIBED?H():e.status==ci.CODE_200?z():U()}).catch(e=>{console.error("[TrackingButton] enableTracking -> ",e)});b(!1),V()}async function Y(e,t){var n,r,a;if(null==A?void 0:null===(n=A.user)||void 0===n?void 0:n.token)return await fetch("".concat("https://apiextra.seamilano.eu/ols-trackings-voli/v2","/").concat(M,"/trackings/suspend"),{method:"POST",headers:new Headers({Authorization:null==A?void 0:null===(r=A.user)||void 0===r?void 0:r.token,"Content-Type":"application/json",keyId:"a4aac567-3826-4045-833b-c3ea5a5bff9c"}),body:JSON.stringify({flightId:e,origin:"sitoA",recipients:[{receiver:null==A?void 0:null===(a=A.user)||void 0===a?void 0:a.username,type:"MAIL"}]})}).then(e=>e.json()).then(e=>{e.status==ci.CODE_200?W():U()}).catch(e=>{console.error("[TrackingButton] disableTracking -> ",e)})}return(0,T.O3)(j,()=>{i(!1)}),(0,w.jsx)(w.Fragment,{children:t?(0,w.jsxs)("div",{className:"relative",children:[(0,w.jsxs)("div",{onClick:()=>R(),className:"".concat(a||l||s||u||p||h||v||y?"invert":"border border-black cursor-pointer"," flightTrackingBtn w-fit flex flex-col items-center justify-center px-3 py-2 gap-1 rounded-2xl bg-[white] ").concat(I&&"w-[50px] h-[50px]"),children:[(0,w.jsx)(S.Z,{iconName:"airplane",className:"min-h-[20px]"}),(0,w.jsx)("div",{className:"font-semibold text-xs text-black",children:N("flights.follow")})]}),a&&(0,w.jsxs)("div",{ref:j,className:"rounded-3xl absolute p-4 top-[-10px] right-[74px] w-[240px] desk:w-[282px] bg-[#E6E6E6] shadow-[0px_5px_10px_rgba(0,0,0,0.15)] z-[21]",children:[(0,w.jsx)("div",{className:"absolute w-0 h-0 top-[24px] right-[-11px] c-[#E6E6E6]   border-t-[8px] border-t-transparent   border-l-[12px] border-[#E6E6E6]   border-b-[8px] border-b-transparent   "}),(0,w.jsx)("div",{onClick:()=>{i(!1)},className:"absolute top-4 right-4 cursor-pointer",children:(0,w.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"black",className:"w-6 h-6",children:(0,w.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),(0,w.jsx)("h4",{className:"text-center text-base font-bold text-black mb-4 uppercase",children:N("flights.trackingMode")}),(0,w.jsxs)("div",{className:"flex gap-2",children:[(0,w.jsx)("div",{className:"flex flex-1",children:(0,w.jsxs)("a",{className:"flex flex-col flex-1 items-center cursor-pointer",href:"https://api.whatsapp.com/send/?phone=3902232323&text="+N("flights.whatsappText")+t.flightNumber+"&type=phone_number&app_absent=0'",target:"_blank",children:[(0,w.jsx)(_(),{alt:"WhatsApp",src:cr,width:32,height:32,className:"w-8 h-8",unoptimized:!0}),(0,w.jsx)("div",{className:"text-black text-sm mt-2 font-normal",children:"WhatsApp"})]})}),O&&(0,w.jsx)("div",{className:"flex flex-col flex-1 items-center cursor-pointer apple-business-chat-message-container","data-apple-business-id":"e039ec15-5521-4777-b51a-baa5b19f2851","data-apple-business-body":N("flights.imessageText")+t.flightNumber,"data-apple-business-intent-id":"QUERY_FLIGHTS. ".concat(t.movementType," ").concat(t.flightNumber," ").concat(t.originFlightDate),"data-apple-icon-background-color":"#ffffff",children:(0,w.jsxs)("a",{className:"flex flex-col flex-1 items-center cursor-pointer apple-business-chat-message-container",href:"https://bcrw.apple.com/urn:biz:e039ec15-5521-4777-b51a-baa5b19f2851?biz-intent-id=QUERY_FLIGHTS&amp;body="+N("flights.imessageText")+t.flightNumber,title:" ",target:"_blank",children:[(0,w.jsx)(_(),{alt:"iMessage",src:cn,width:32,height:32,className:"w-8 h-8",unoptimized:!0}),(0,w.jsx)("div",{className:"text-black text-sm mt-2 font-normal",children:"iMessage"})]})}),(0,w.jsxs)("div",{className:"flex flex-col flex-1 items-center cursor-pointer",onClick:()=>G("MAIL"),children:[(0,w.jsx)(_(),{alt:"Email",src:ca,width:32,height:32,className:"w-8 h-8",unoptimized:!0}),(0,w.jsx)("p",{className:"text-black text-sm mt-2 font-normal",children:"Email"})]})]})]}),l&&(x?(0,w.jsx)(lW.Z,{className:"m-auto",color:"#14688E"}):(0,w.jsxs)("div",{ref:j,className:"rounded-3xl absolute pt-3 pb-6 pl-2 pr-2 top-[-10px] right-[74px] w-[240px] desk:w-[282px] bg-[#E6E6E6] shadow-[0px_5px_10px_rgba(0,0,0,0.15)] text-black text-center z-[21]",children:[(0,w.jsx)("div",{className:"absolute w-0 h-0 top-[24px] right-[-11px] c-[#E6E6E6]   border-t-[8px] border-t-transparent   border-l-[12px] border-[#E6E6E6]   border-b-[8px] border-b-transparent   "}),(0,w.jsx)("div",{onClick:()=>{o(!1)},className:"absolute top-3 right-3 cursor-pointer",children:(0,w.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"black",className:"w-6 h-6",children:(0,w.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),(0,w.jsx)("h1",{className:"font-bold font-primary font-normal text-base mb-2",children:N("flights.flightTracking")}),(0,w.jsx)("span",{className:"text-sm font-primary font-normal",children:N("flights.flightNotTrackable")})]})),s&&(x?(0,w.jsx)(lW.Z,{className:"m-auto",color:"#14688E"}):(0,w.jsxs)("div",{ref:j,className:"rounded-3xl absolute pt-3 pb-6 pl-2 pr-2 top-[-10px] right-[74px] w-[240px] desk:w-[282px] bg-[#E6E6E6] shadow-[0px_5px_10px_rgba(0,0,0,0.15)] text-black text-center z-[21]",children:[(0,w.jsx)("div",{className:"absolute w-0 h-0 top-[24px] right-[-11px] c-[#E6E6E6]   border-t-[8px] border-t-transparent   border-l-[12px] border-[#E6E6E6]   border-b-[8px] border-b-transparent   "}),(0,w.jsx)("div",{onClick:()=>{c(!1)},className:"absolute  top-3 right-3 cursor-pointer",children:(0,w.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"black",className:"w-6 h-6",children:(0,w.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),(0,w.jsx)("h1",{className:"font-bold mb-2 font-primary font-normal text-base",children:N("flights.flightTracking")}),(0,w.jsx)("span",{className:"text-sm font-primary font-normal",children:N("flights.flightTrackingSuccess")})]})),u&&(0,w.jsxs)("div",{ref:j,className:"rounded-3xl absolute pt-3 pb-6 pl-2 pr-2 top-[-10px] right-[74px] w-[240px] desk:w-[282px] bg-[#E6E6E6] shadow-[0px_5px_10px_rgba(0,0,0,0.15)] text-black text-center justify-center z-[21]",children:[(0,w.jsx)("div",{className:"absolute w-0 h-0 top-[24px] right-[-11px] c-[#E6E6E6]   border-t-[8px] border-t-transparent   border-l-[12px] border-[#E6E6E6]   border-b-[8px] border-b-transparent   "}),(0,w.jsx)("div",{onClick:()=>{d(!1)},className:"absolute top-3 right-3 cursor-pointer",children:(0,w.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"black",className:"w-6 h-6",children:(0,w.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),(0,w.jsx)("h1",{className:"font-bold text-base font-primary mb-4",children:N("flights.flightTracking")}),(0,w.jsx)("h1",{className:"text-sm font-primary font-normal mb-4",children:N("flights.flightTrackingAlreadySubscribed")}),(0,w.jsx)("div",{className:"flex justify-center bg-black rounded-2xl cursor-pointer p-2 m-2 hover:bg-[#14688E] transition duration-300",onClick:()=>Y(t.flightId,"M"),children:(0,w.jsx)("span",{className:"text-sm font-primary font-normal text-lightgrey",children:N("flights.flightTrackingDisable")})})]}),p&&(x?(0,w.jsx)(lW.Z,{className:"m-auto",color:"#14688E"}):(0,w.jsxs)("div",{ref:j,className:"rounded-3xl absolute pt-3 pb-6 pl-2 pr-2 top-[-10px] right-[74px] w-[240px] desk:w-[282px] bg-[#E6E6E6] shadow-[0px_5px_10px_rgba(0,0,0,0.15)] text-black text-center z-[21]",children:[(0,w.jsx)("div",{className:"absolute w-0 h-0 top-[24px] right-[-11px] c-[#E6E6E6]   border-t-[8px] border-t-transparent   border-l-[12px] border-[#E6E6E6]   border-b-[8px] border-b-transparent   "}),(0,w.jsx)("div",{onClick:()=>{f(!1)},className:"absolute top-3 right-3 cursor-pointer",children:(0,w.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"black",className:"w-6 h-6",children:(0,w.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),(0,w.jsx)("h1",{className:"font-bold mb-2 font-primary font-normal text-base",children:N("flights.flightTracking")}),(0,w.jsx)("span",{className:"text-sm font-primary font-normal",children:N("flights.flightTrackingMaxSubscription")})]})),v&&(x?(0,w.jsx)(lW.Z,{className:"m-auto",color:"#14688E"}):(0,w.jsxs)("div",{ref:j,className:"rounded-3xl absolute pt-3 pb-6 pl-2 pr-2 top-[-10px] right-[74px] w-[240px] desk:w-[282px] bg-[#E6E6E6] shadow-[0px_5px_10px_rgba(0,0,0,0.15)] text-black text-center z-[21]",children:[(0,w.jsx)("div",{className:"absolute w-0 h-0 top-[24px] right-[-11px] c-[#E6E6E6]   border-t-[8px] border-t-transparent   border-l-[12px] border-[#E6E6E6]   border-b-[8px] border-b-transparent   "}),(0,w.jsx)("div",{onClick:()=>{g(!1)},className:"absolute top-3 right-3 cursor-pointer",children:(0,w.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"black",className:"w-6 h-6",children:(0,w.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),(0,w.jsx)("h1",{className:"font-bold mb-2 font-primary font-normal text-base",children:N("flights.flightTracking")}),(0,w.jsx)("span",{className:"text-sm font-primary font-normal",children:N("flights.flightGenericError")})]})),h&&(x?(0,w.jsx)(lW.Z,{className:"m-auto",color:"#14688E"}):(0,w.jsxs)("div",{ref:j,className:"rounded-3xl absolute pt-3 pb-6 pl-2 pr-2 top-[-10px] right-[74px] w-[240px] desk:w-[282px] bg-[#E6E6E6] shadow-[0px_5px_10px_rgba(0,0,0,0.15)] text-black text-center z-[21]",children:[(0,w.jsx)("div",{className:"absolute w-0 h-0 top-[24px] right-[-11px] c-[#E6E6E6]   border-t-[8px] border-t-transparent   border-l-[12px] border-[#E6E6E6]   border-b-[8px] border-b-transparent   "}),(0,w.jsx)("div",{onClick:()=>{m(!1)},className:"absolute top-3 right-3 cursor-pointer",children:(0,w.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"black",className:"w-6 h-6",children:(0,w.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),(0,w.jsx)("h1",{className:"font-bold mb-2 font-primary font-normal text-base",children:N("flights.flightTracking")}),(0,w.jsx)("span",{className:"text-sm font-primary font-normal",children:N("flights.flightTrackingNotLogged")}),(0,w.jsx)("div",{className:"flex justify-center mt-2 font-primary font-normal text-base",children:(0,w.jsx)(lV,{text:N("login.loginButton"),className:"py-2 mt-2",onClick:()=>r(!0)})})]})),y&&(x?(0,w.jsx)(lW.Z,{className:"m-auto",color:"#14688E"}):(0,w.jsxs)("div",{ref:j,className:"rounded-3xl absolute pt-3 pb-6 pl-2 pr-2 top-[-10px] right-[74px] w-[240px] desk:w-[282px] bg-[#E6E6E6] shadow-[0px_5px_10px_rgba(0,0,0,0.15)] text-black text-center z-[21]",children:[(0,w.jsx)("div",{className:"absolute w-0 h-0 top-[24px] right-[-11px] c-[#E6E6E6]   border-t-[8px] border-t-transparent   border-l-[12px] border-[#E6E6E6]   border-b-[8px] border-b-transparent   "}),(0,w.jsx)("div",{onClick:()=>{k(!1)},className:"absolute top-3 right-3 cursor-pointer",children:(0,w.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"black",className:"w-6 h-6",children:(0,w.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),(0,w.jsx)("h1",{className:"font-bold text-base font-primary font-normal mb-2",children:N("flights.flightTracking")}),(0,w.jsx)("span",{className:"text-sm font-primary font-normal",children:N("flights.flightTrackingSuspend")})]}))]}):(0,w.jsx)(lW.Z,{className:"m-auto",color:"#14688E"})})};let co=si()(()=>n.e(695).then(n.bind(n,8695)),{loadableGenerated:{webpack:()=>[8695]},ssr:!1});var cs=e=>{var t,n,r,a,i,l,o,s,c,u,d,p,f;let{data:h,language:m}=e,v=(0,P.sJ)(L.v$),{i18n:g,t:x}=(0,D.$G)(),b=m||g.language,[y]=(0,T.dD)(),k=(0,P.sJ)(L.qm),[S,j]=(0,C.useState)(),[N,E]=(0,C.useState)(""),M=(null==h?void 0:null===(t=h.data)||void 0===t?void 0:t.enuBackgroundCta)?(0,l$.Cw)("bg",null==h?void 0:null===(n=h.data)||void 0===n?void 0:n.enuBackgroundCta):"bg-black",_=(null==h?void 0:null===(r=h.data)||void 0===r?void 0:r.lblLink)?null==h?void 0:null===(a=h.data)||void 0===a?void 0:a.lblLink[b]:"",A=(null==h?void 0:null===(i=h.data)||void 0===i?void 0:i.enuBackgroundLabel)?(0,l$.Cw)("text",null==h?void 0:null===(l=h.data)||void 0===l?void 0:l.enuBackgroundLabel):"text-white",I=(null==h?void 0:null===(o=h.data)||void 0===o?void 0:o.enuTitleColor)?(0,l$.Cw)("text",null==h?void 0:null===(s=h.data)||void 0===s?void 0:s.enuTitleColor):"text-white";async function O(){if(k&&k.flightId){var e,t,n;let r=(null==k?void 0:null===(e=k.routing[0])||void 0===e?void 0:e.airportIata)==="MXP"||(null==k?void 0:null===(t=k.routing[0])||void 0===t?void 0:t.airportIata)==="LIN"?1:0,a=null===(n=h.data.xtaxDestinations.ti)||void 0===n?void 0:n.find(e=>k.routing[r].airportDescription===e.lblAirportDestinationDescription);if(null==a?void 0:a.targeturl)try{let e=await fetch(a.targeturl),t=await e.json();j(t)}catch(e){j(void 0)}}return null}return(0,C.useEffect)(()=>{var e,t,n,r,a,i,l,o,s,c,u,d,p,f,m,v,g,x,b,w,k,j,C,N,T,D,M,_;let A,L;O(),A="",L="",y?(null==S?void 0:null===(v=S.data)||void 0===v?void 0:null===(m=v.upiImageMobile)||void 0===m?void 0:m.mediaserverpath)?(A=null!==(M=null==S?void 0:null===(N=S.data)||void 0===N?void 0:null===(C=N.upiImageMobile)||void 0===C?void 0:C.mediaserverpath)&&void 0!==M?M:"",L=null!==(_=null==S?void 0:null===(D=S.data)||void 0===D?void 0:null===(T=D.upiImageMobile)||void 0===T?void 0:T.resourcename)&&void 0!==_?_:""):(A=null!==(k=null==h?void 0:null===(x=h.data)||void 0===x?void 0:null===(g=x.upiImageMobile)||void 0===g?void 0:g.mediaserverpath)&&void 0!==k?k:"",L=null!==(j=null==h?void 0:null===(w=h.data)||void 0===w?void 0:null===(b=w.upiImageMobile)||void 0===b?void 0:b.resourcename)&&void 0!==j?j:""):(null==S?void 0:null===(t=S.data)||void 0===t?void 0:null===(e=t.upiImageDesktop)||void 0===e?void 0:e.mediaserverpath)?(A=null!==(p=null==S?void 0:null===(c=S.data)||void 0===c?void 0:null===(s=c.upiImageDesktop)||void 0===s?void 0:s.mediaserverpath)&&void 0!==p?p:"",L=null!==(f=null==S?void 0:null===(d=S.data)||void 0===d?void 0:null===(u=d.upiImageDesktop)||void 0===u?void 0:u.resourcename)&&void 0!==f?f:""):(A=null!==(l=null==h?void 0:null===(r=h.data)||void 0===r?void 0:null===(n=r.upiImageDesk)||void 0===n?void 0:n.mediaserverpath)&&void 0!==l?l:"",L=null!==(o=null==h?void 0:null===(i=h.data)||void 0===i?void 0:null===(a=i.upiImageDesk)||void 0===a?void 0:a.resourcename)&&void 0!==o?o:""),E(A&&L?"".concat(A,"/").concat(L):"")},[k,y,S]),(0,w.jsxs)("div",{className:"desk:pb-14",children:[(0,w.jsx)("div",{className:"bg-cover relative bg-no-repeat bg-center ".concat((()=>{var e;switch(null==h?void 0:null===(e=h.data)||void 0===e?void 0:e.enuImageHeight){case"bassa":return"h-72 desk:h-80";case"media":default:return"h-[22rem] desk:h-[24rem]";case"alta":return"h-[28rem] desk:h-[32rem]"}})()),style:{backgroundImage:N?"url(".concat(N,")"):void 0},children:(0,w.jsxs)("div",{className:"max-w-cont-1 mx-auto w-full px-6 h-full flex flex-col",children:[v?null:(0,w.jsx)("div",{className:"pt-4",children:(0,w.jsx)(sL,{language:b,colorCrumbs:null==h?void 0:null===(c=h.data)||void 0===c?void 0:c.enuTitleColor})}),(0,w.jsx)("div",{className:"flex-1",children:(0,w.jsx)("div",{className:"".concat(I," mt-[6vh] desk:mt-[8vh]"),children:(0,w.jsxs)("div",{className:"font-bold text-4xl desk:text-5xl font-secondary",children:[(()=>{var e,t,n,r,a,i,l,o,s,c,u,d,p;if((null==h?void 0:null===(e=h.data)||void 0===e?void 0:e.lblTitle)&&(null==h?void 0:null===(t=h.data)||void 0===t?void 0:t.lblTitle[b]))return(0,w.jsxs)("div",{className:"flex flex-col w-full",children:[(0,w.jsx)("h1",{className:"font-semibold text-[33px] desk:text-5xl leading-[34px] font-secondary",dangerouslySetInnerHTML:{__html:l1().sanitize(null==h?void 0:null===(r=h.data)||void 0===r?void 0:r.lblTitle[b])}}),(0,w.jsx)("h2",{className:"text-xl font-primary font-normal desk:text-2xl mt-4",dangerouslySetInnerHTML:{__html:l1().sanitize((null==h?void 0:null===(a=h.data)||void 0===a?void 0:a.lblSubtitle)&&(null==h?void 0:null===(i=h.data)||void 0===i?void 0:i.lblSubtitle[b])?null==h?void 0:null===(l=h.data)||void 0===l?void 0:l.lblSubtitle[b]:"")}})]});if(k&&k.flightId&&(null===(n=k.routing)||void 0===n?void 0:n.length)){let e=(null==k?void 0:null===(o=k.routing[0])||void 0===o?void 0:o.airportIata)==="MXP"||(null==k?void 0:null===(s=k.routing[0])||void 0===s?void 0:s.airportIata)==="LIN",t=k.routing.length<=2?e?"".concat(null==k?void 0:k.airlineDescription," ").concat(null==k?void 0:k.flightNumber).concat(x("flights.flightTo")).concat(null==k?void 0:null===(c=k.routing[1])||void 0===c?void 0:c.airportLabel):"".concat(null==k?void 0:k.airlineDescription," ").concat(null==k?void 0:k.flightNumber).concat(x("flights.flightFrom")).concat(null==k?void 0:null===(u=k.routing[0])||void 0===u?void 0:u.airportLabel):"D"===k.movementType?"".concat(null==k?void 0:k.airlineDescription," ").concat(null==k?void 0:k.flightNumber).concat(x("flights.flightTo")).concat(null==k?void 0:null===(d=k.routing[2])||void 0===d?void 0:d.airportLabel):"".concat(null==k?void 0:k.airlineDescription," ").concat(null==k?void 0:k.flightNumber).concat(x("flights.flightFrom")).concat(null==k?void 0:null===(p=k.routing[0])||void 0===p?void 0:p.airportLabel);return(0,w.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,w.jsx)("h3",{className:"font-semibold text-2xl desk:text-3xl desk:leading-[34px] leading-7 font-secondary",children:t}),(0,w.jsx)(cl,{flightDetails:k})]})}return null})(),(null==h?void 0:null===(u=h.data)||void 0===u?void 0:u.lblLabelCta)&&(null==h?void 0:null===(d=h.data)||void 0===d?void 0:d.lblLabelCta[b])?(0,w.jsx)("div",{className:"flex items-center text-xl mt-6",children:(0,w.jsx)(co,{text:null==h?void 0:null===(p=h.data)||void 0===p?void 0:p.lblLabelCta[b],bgColor:M,txtColor:A,hrefPath:""!==_?_:(0,l$.Bi)(null==h?void 0:h.data,b),width:"max-w-full !whitespace-normal",onClick:()=>{},target:(null==h?void 0:null===(f=h.data)||void 0===f?void 0:f.flgTarget)?"_blank":"_self"})}):null]})})})]})}),(0,w.jsx)("div",{className:"w-full relative max-w-cont-2 mx-auto desk:-mt-[60px] -mt-[20px] px-6 z-20",children:(()=>{var e;switch(null==h?void 0:null===(e=h.data)||void 0===e?void 0:e.enuTypeInfo){case"visore con M02-Widget-lancio in overlay":return(0,w.jsx)(o7,{language:b,targetUrl:null==h?void 0:h.data.xconM02.targeturl,data:null});case"visore con M03-Widget custom":return(0,w.jsx)(ct,{language:b,targetUrl:null==h?void 0:h.data.xconM03.targeturl,data:null});default:return null}})()})]})};let cc=(e,t,n)=>{var r,a,i,l;switch(t){case"grpLink":return null==e?void 0:e.lblLink[n];case"grpLinkSecondCta":return null==e?void 0:e.lblLinkSecondCta[n];case"grpGenericPage":return null==e?void 0:null===(r=e.xconGenericPage)||void 0===r?void 0:r.lblUrlPath[n];case"grpGenericPageSecondCta":return null==e?void 0:null===(a=e.xconGenericPageSecondCta)||void 0===a?void 0:a.lblUrlPath[n];case"grpNews":return null==e?void 0:null===(i=e.xconNews)||void 0===i?void 0:i.lblUrlPath[n];case"grpNewsSecondCta":return null==e?void 0:null===(l=e.xconNewsSecondCta)||void 0===l?void 0:l.lblUrlPath[n];case"grpPopup":case"grpPopupSecondCta":return""}};var cu=e=>{var t,n,r,a,i,l,o,s,c,u,d,p,f,h,m,v,g,x,b,y,k,S,j,N,E,M,_;let{data:A,language:L}=e,{t:I,i18n:P}=(0,D.$G)(),O=L||P.language,[R,F]=(0,C.useState)(""),[B]=(0,T.dD)(),z=l1().sanitize((null==A?void 0:null===(t=A.data)||void 0===t?void 0:t.lblTitle)&&(null==A?void 0:null===(n=A.data)||void 0===n?void 0:n.lblTitle[O])?null==A?void 0:null===(r=A.data)||void 0===r?void 0:r.lblTitle[O]:""),Z=(null==A?void 0:null===(a=A.data)||void 0===a?void 0:a.lblLabelCta)&&(null==A?void 0:null===(i=A.data)||void 0===i?void 0:i.lblLabelCta[O])?null==A?void 0:null===(l=A.data)||void 0===l?void 0:l.lblLabelCta[O]:"",H=(null==A?void 0:null===(o=A.data)||void 0===o?void 0:o.lblLabelSecondCta)&&(null==A?void 0:null===(s=A.data)||void 0===s?void 0:s.lblLabelSecondCta[O])?null==A?void 0:null===(c=A.data)||void 0===c?void 0:c.lblLabelSecondCta[O]:"",U=l1().sanitize((null==A?void 0:null===(u=A.data)||void 0===u?void 0:u.lblSubtitle)&&(null==A?void 0:null===(d=A.data)||void 0===d?void 0:d.lblSubtitle[O])?null==A?void 0:null===(p=A.data)||void 0===p?void 0:p.lblSubtitle[O]:"");(null==A?void 0:null===(f=A.data)||void 0===f?void 0:f.lblLink)&&(null==A?void 0:null===(h=A.data)||void 0===h?void 0:h.lblLink[O])&&(null==A||null===(m=A.data)||void 0===m||m.lblLink[O]),(null==A?void 0:null===(v=A.data)||void 0===v?void 0:v.lblLinkSecondCta)&&(null==A?void 0:null===(g=A.data)||void 0===g?void 0:g.lblLinkSecondCta[O])&&(null==A||null===(x=A.data)||void 0===x||x.lblLinkSecondCta[O]);let V=null==A?void 0:null===(b=A.data)||void 0===b?void 0:b.flgTarget,W=null==A?void 0:null===(y=A.data)||void 0===y?void 0:y.flgTargetSecondCta,G=(null==A?void 0:null===(k=A.data)||void 0===k?void 0:k.enuTitleColor)?(0,l$.Cw)("text",null==A?void 0:A.data.enuTitleColor):"text-black",Y=(null==A?void 0:null===(S=A.data)||void 0===S?void 0:S.enuBackgroundCta)?(0,l$.Cw)("bg",null==A?void 0:A.data.enuBackgroundCta):"bg-black",q=(null==A?void 0:null===(j=A.data)||void 0===j?void 0:j.enuBackgroundFirst)?(0,l$.Cw)("text",null==A?void 0:A.data.enuBackgroundFirst):"text-white",K=(null==A?void 0:null===(N=A.data)||void 0===N?void 0:N.enuBackgroundSecondCta)?(0,l$.Cw)("bg",null==A?void 0:A.data.enuBackgroundSecondCta):"bg-white",$=(null==A?void 0:null===(E=A.data)||void 0===E?void 0:E.enuBackgroundSecond)?(0,l$.Cw)("text",null==A?void 0:A.data.enuBackgroundSecond):"text-black";return(0,C.useEffect)(()=>{var e,t,n,r,a,i,l,o,s,c;let u=(null==A?void 0:null===(e=A.data)||void 0===e?void 0:e.upiImageDesktop.hasOwnProperty(O))?(null==A?void 0:null===(n=A.data)||void 0===n?void 0:null===(t=n.upiImageDesktop[O])||void 0===t?void 0:t.mediaserverpath)+"/"+(null==A?void 0:null===(a=A.data)||void 0===a?void 0:null===(r=a.upiImageDesktop[O])||void 0===r?void 0:r.resourcename):"",d=(null==A?void 0:null===(i=A.data)||void 0===i?void 0:i.upiImageMobile.hasOwnProperty(O))?(null==A?void 0:null===(o=A.data)||void 0===o?void 0:null===(l=o.upiImageMobile[O])||void 0===l?void 0:l.mediaserverpath)+"/"+(null==A?void 0:null===(c=A.data)||void 0===c?void 0:null===(s=c.upiImageMobile[O])||void 0===s?void 0:s.resourcename):"";F(B?d:u)},[B,A,O]),(0,w.jsx)(w.Fragment,{children:(0,w.jsx)("div",{className:"max-w-cont-2 w-full px-6 desk:px-0 desk:mx-auto mt-8 desk:mb-12 mb-8",children:(0,w.jsxs)("div",{style:{backgroundImage:"url(".concat(R,")")},className:"desk:justify-center desk:min-h-[300px] bg-no-repeat bg-center bg-cover rounded-3xl px-5 py-10 desk:px-28 desk:py-12 ".concat(G," flex flex-col ").concat(U?"gap-14":"gap-3"," min-w-min max-w-full"),children:[(0,w.jsxs)("div",{className:"flex flex-col gap-2",children:[z?(0,w.jsx)("h2",{dangerouslySetInnerHTML:{__html:z},className:"font-semibold text-3xl font-secondary ".concat("SCRIVICI"===A.data.lblLabelCta[O]?"desk:translate-y-10":"")}):null,U?(0,w.jsx)("h3",{dangerouslySetInnerHTML:{__html:U},className:"font-normal text-lg"}):null]}),Z||H?(0,w.jsxs)("div",{className:"flex flex-col tab:flex-row gap-3 items-end ".concat(B?"items-baseline":""),children:[(0,w.jsx)("div",{children:Z?(0,w.jsx)("a",{href:cc(null==A?void 0:A.data,null==A?void 0:null===(M=A.data)||void 0===M?void 0:M.grpLinkType,O),target:V?"_blank":"_self",className:"w-full",children:(0,w.jsx)(lV,{className:"active:bg-lightblue active:text-white ".concat("SCRIVICI"===A.data.lblLabelCta[O]?"desk:translate-y-10":""),text:Z,bgColor:Y+(B?" text-sm px-4":""),textColor:q,onClick:()=>{}})}):null}),(0,w.jsx)("div",{children:H?(0,w.jsx)("a",{href:cc(null==A?void 0:A.data,null==A?void 0:null===(_=A.data)||void 0===_?void 0:_.grpLinkTypeSecondCta,O),target:W?"_blank":"_self",children:(0,w.jsx)(lV,{className:"active:bg-lightblue active:text-white",text:H,bgColor:K,textColor:$,onClick:()=>{}})}):null})]}):(0,w.jsx)(w.Fragment,{})]})})})},cd=n(3743);let cp=e=>{let{lenghtlist:t=0,lenghtBar:n=1}=e,r=(0,lK.oc)();return(0,w.jsx)(sT.Z,{completed:r.activeIndex+1,maxCompleted:t-n+1,bgColor:"#000000",baseBgColor:"#FFFFFF",isLabelVisible:!1,height:"5px"})};var cf=e=>{var t;let{data:n,language:r}=e,[a,i]=(0,H.Z)(),{i18n:l}=(0,D.$G)(),o=r||l.language,s=(0,C.useMemo)(()=>{var e,t;return(null==n?void 0:null===(t=n.data)||void 0===t?void 0:null===(e=t.lstLaunch)||void 0===e?void 0:e.map(e=>e.xconCard.targeturl))||[]},[n]),c=(0,T.Yr)({urls:s}),[u,d]=(0,C.useState)(0),p=null==c?void 0:c.length,f=(0,cd.Z)("bg",null==n?void 0:null===(t=n.data)||void 0===t?void 0:t.enuBackgroundModule);return(0,w.jsx)(w.Fragment,{children:(0,w.jsx)("div",{className:" ".concat(f," ").concat(a?" mt-8 mb-8":""," "),children:(0,w.jsx)("div",{className:"flex justify-center",children:(0,w.jsxs)(lK.tq,{slidesPerView:"auto",direction:"horizontal",spaceBetween:20,slidesOffsetBefore:a?25:130,slidesOffsetAfter:a?25:130,onRealIndexChange:e=>d(e.realIndex),modules:[lX.Rv],freeMode:!0,children:[null==c?void 0:c.map((e,t)=>{let n=l1().sanitize(e.data.lblTitleInfo2[o]),r=(0,cd.Z)("text",e.data.enuTitleColorInfo2),a=e.data.upiImageInfo2.mediaserverpath+"/"+e.data.upiImageInfo2.resourcename;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(lK.o5,{className:"desk:py-7 pt-10 pr-10 flex w-auto resize-none",children:(0,w.jsx)(sf,{title:n,titleColor:r,imageUrl:a,lang:o,lstDescription:e.data.lstDescription})},t),p>t+1&&(0,w.jsx)(lK.o5,{className:"w-auto",children:(0,w.jsx)("div",{className:"w-[10px] pt-[5.2rem] mt-[27px] border-l-[#666666] border-l-[1px]"})})]})}),a||i?(0,w.jsx)("div",{className:"flex justify-center py-5",children:(0,w.jsx)("div",{className:"w-[70%]",children:(0,w.jsx)(cp,{lenghtlist:p,lenghtBar:a?1:2})})}):null]})})})})},ch=n(3659);let cm=si()(()=>n.e(695).then(n.bind(n,8695)),{ssr:!1});var cv=e=>{let{data:t,language:n}=e,{i18n:r,t:a}=(0,D.$G)(),i=n||r.language,[l]=(0,T.dD)(),[o,s]=(0,C.useState)(),[c,u]=(0,C.useState)([]),[d,p]=(0,C.useState)(),f=(0,C.useMemo)(()=>{var e,n;return(null==t?void 0:null===(n=t.data)||void 0===n?void 0:null===(e=n.lstCard)||void 0===e?void 0:e.map(e=>e.xconCard.targeturl))||[]},[t]),h=(0,ch.Z)({urls:f});async function m(){return await fetch("".concat("https://integration.emmasuite.com/api/bigcommerce/hasher/").concat("420e2720-4a03-43aa-9bf7-15ae7a5a0203"))}async function v(e,t){return await fetch("".concat("https://integration.emmasuite.com/api/bcappsea/passthrough","/widget/").concat(t),{method:"GET",headers:{"x-auth-hash":e,"x-auth-instance-id":"420e2720-4a03-43aa-9bf7-15ae7a5a0203"}})}async function g(e,t){return await fetch("".concat("https://integration.emmasuite.com/api/bcappsea/passthrough","/product/").concat(t),{method:"GET",headers:{"x-auth-hash":e,"x-auth-instance-id":"420e2720-4a03-43aa-9bf7-15ae7a5a0203"}})}function x(e,t,n,r){let a=!1;if(r.forEach(e=>{a=e.sale_price===n}),"price"===e){let e;return 0===t&&a?"€"+(n/1.22).toFixed(2):a?"€"+n:(e=r[0].sale_price,r.forEach(t=>{t.sale_price<e&&(e=t.sale_price)}),"€"+(e/1.22).toFixed(2))}return 0===t?"€"+n.toString():a?"":"€"+(n/1.22).toFixed(2)}"grpAutomatismMarketplace"==t.data.grpCardType&&((0,C.useEffect)(()=>{m().then(e=>null==e?void 0:e.json()).then(e=>{p(e.hash),v(e.hash,t.data.lblCarouselCode).then(e=>e.json()).then(e=>{var t,n;s(null===(n=e.widget_configuration)||void 0===n?void 0:null===(t=n.product)||void 0===t?void 0:t.value)}).catch(e=>{console.error("[VisoreCarousel] getWidgetList -> ",e)})}).catch(e=>{console.error("[VisoreCarousel] getHasher error -> ",e)})},[]),(0,C.useEffect)(()=>{let e=[];null==o||o.map(t=>{let n=g(d,t.productId);e=[...e,n]}),Promise.all(e).then(e=>Promise.all(e.map(e=>e.json()))).then(e=>{u(e)}).catch(e=>{console.error("[VisoreCarousel] getWidgetDetail error -> ",e)})},[o]));var b,y,k,S,j,N,E,M,_,A,L,I,P,O,R,F,B,z,Z,H,U,V,W,G,Y,q,K,$,X,J,Q="",ee="";l?(Q=(null==t?void 0:null===(Z=t.data)||void 0===Z?void 0:Z.upiImageMobile)&&(null==t?void 0:null===(H=t.data)||void 0===H?void 0:H.upiImageMobile.resourcename)?null==t?void 0:null===(U=t.data)||void 0===U?void 0:U.upiImageMobile.resourcename:"",ee=(null==t?void 0:null===(V=t.data)||void 0===V?void 0:V.upiImageMobile)&&(null==t?void 0:null===(W=t.data)||void 0===W?void 0:W.upiImageMobile.mediaserverpath)?null==t?void 0:null===(G=t.data)||void 0===G?void 0:G.upiImageMobile.mediaserverpath:""):(Q=(null==t?void 0:null===(Y=t.data)||void 0===Y?void 0:Y.upiImageDesk)&&(null==t?void 0:null===(q=t.data)||void 0===q?void 0:q.upiImageDesk.resourcename)?null==t?void 0:null===(K=t.data)||void 0===K?void 0:K.upiImageDesk.resourcename:"",ee=(null==t?void 0:null===($=t.data)||void 0===$?void 0:$.upiImageDesk)&&(null==t?void 0:null===(X=t.data)||void 0===X?void 0:X.upiImageDesk.mediaserverpath)?null==t?void 0:null===(J=t.data)||void 0===J?void 0:J.upiImageDesk.mediaserverpath:"");let et=ee+"/"+Q,en=(null==t?void 0:null===(b=t.data)||void 0===b?void 0:b.enuBackgroundCta)?(0,l$.Cw)("bg",null==t?void 0:null===(y=t.data)||void 0===y?void 0:y.enuBackgroundCta):"bg-white",er=(null==t?void 0:null===(k=t.data)||void 0===k?void 0:k.enuTitleColor)?(0,l$.Cw)("text",null==t?void 0:null===(S=t.data)||void 0===S?void 0:S.enuTitleColor):"text-black";return(0,w.jsx)("div",{style:{backgroundImage:"url(".concat(et,")")},className:"bg-cover bg-no-repeat bg-center desk:h-[550px] h-auto",children:(0,w.jsxs)("div",{className:"max-w-cont-2 mx-auto h-full w-full flex flex-col desk:flex-row",children:[(0,w.jsxs)("div",{className:"mt-9 desk:mt-36 mb-14 desk:mb-56 desk:flex-col flex-[1.25] ".concat(er," px-6"),children:[(null==t?void 0:null===(j=t.data)||void 0===j?void 0:j.lblTitle)&&(null==t?void 0:null===(N=t.data)||void 0===N?void 0:N.lblTitle[i])?(0,w.jsx)("h1",{className:"text-2xl desk:text-3xl font-semibold mb-2.5 font-secondary uppercase",dangerouslySetInnerHTML:{__html:l1().sanitize((null==t?void 0:null===(E=t.data)||void 0===E?void 0:E.lblTitle)&&(null==t?void 0:null===(M=t.data)||void 0===M?void 0:M.lblTitle[i])?null==t?void 0:null===(_=t.data)||void 0===_?void 0:_.lblTitle[i]:"")}}):null,(null==t?void 0:null===(A=t.data)||void 0===A?void 0:A.lblSubtitle)&&(null==t?void 0:null===(L=t.data)||void 0===L?void 0:L.lblSubtitle[i])?(0,w.jsx)("h2",{className:"mb-7 desk:mb-10",dangerouslySetInnerHTML:{__html:l1().sanitize((null==t?void 0:null===(I=t.data)||void 0===I?void 0:I.lblSubtitle)&&(null==t?void 0:null===(P=t.data)||void 0===P?void 0:P.lblSubtitle[i])?null==t?void 0:null===(O=t.data)||void 0===O?void 0:O.lblSubtitle[i]:"")}}):null,(null==t?void 0:null===(R=t.data)||void 0===R?void 0:R.lblLabelCta)&&(null==t?void 0:null===(F=t.data)||void 0===F?void 0:F.lblLabelCta[i])?(0,w.jsx)("div",{children:(0,w.jsx)(cm,{text:null==t?void 0:null===(B=t.data)||void 0===B?void 0:B.lblLabelCta[i],bgColor:en,txtColor:"bg-[#FFFFFF]"===en?"text-black":"text-white",width:"w-full",onClick:()=>{},hrefPath:(0,l$.Bi)(null==t?void 0:t.data,i),target:(null==t?void 0:null===(z=t.data)||void 0===z?void 0:z.flgTarget)?"_blank":"_self"})}):null]}),(0,w.jsx)("div",{className:"flex flex-[3] mb-12 desk:mb-0 text-black h-full desh:h-[550px]",children:(0,w.jsx)(lK.tq,{direction:l?"horizontal":"vertical",freeMode:!0,modules:[lX.Rv,lX.Gk],slidesPerView:"auto",spaceBetween:20,mousewheel:!l,slidesOffsetBefore:l?26:29,slidesOffsetAfter:l?26:49,children:"grpAutomatismMarketplace"==t.data.grpCardType?(0,w.jsxs)(C.Fragment,{children:[(0,w.jsx)(lK.o5,{className:"h-3 w-3"}),(null==o?void 0:o.length)>0&&(null==c?void 0:c.length)>0?null==o?void 0:o.map((e,t)=>{var n,r;return(c[t].is_visible||0!=c[t].inventory_level)&&(0,w.jsx)(lK.o5,{className:"!h-auto ".concat(l?"!w-auto":""," overflow-hidden"),children:(0,w.jsx)(sm,{title:e.productName,titleColor:"black",onClick:()=>window.open("it"==i?"https://milanomalpensaboutique.com"+c[t].custom_url.url:"https://milanomalpensaboutique.com/en"+c[t].custom_url.url),imgUrl:e.thumbnailUrl,subTitle:c[t].brand_name,subTitleColor:"black",price:c[t].tax_class_id?"€"+(null===(n=c[t].price)||void 0===n?void 0:n.toFixed(2)):"€"+(c[t].price/1.22).toFixed(2),oldPrice:c[t].tax_class_id?"":"€"+(null===(r=c[t].price)||void 0===r?void 0:r.toString()),labelCta:a("shop.book"),bgCta:"FFFFFF"},t)},t)}):(0,w.jsx)(C.Fragment,{})]}):(0,w.jsxs)(C.Fragment,{children:[(0,w.jsx)(lK.o5,{className:"h-3 w-3"}),null==h?void 0:h.map((e,t)=>{var n,r,a,o,s,u,d,p,f,h,m,v,g,b,y,k,S;let{mediaserverpath:j,resourcename:C}=l?null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.upiImageShoppingMobile[i]:null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.upiImageShoppingDesktop[i];return(0,w.jsx)(lK.o5,{className:"!h-auto ".concat(l?"!w-auto":""," overflow-hidden"),children:(0,w.jsx)(sm,{imgUrl:j+"/"+C,title:l1().sanitize((null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.lblTitleShopping)&&(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.lblTitleShopping[i])?null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.lblTitleShopping[i]:""),titleColor:(null==e?void 0:null===(u=e.data)||void 0===u?void 0:u.enuTitleColorShopping)?(0,l$.Cw)("text",null==e?void 0:null===(d=e.data)||void 0===d?void 0:d.enuTitleColorShopping):"text-white",subTitle:l1().sanitize((null==e?void 0:null===(p=e.data)||void 0===p?void 0:p.lblSubtitleShopping)&&(null==e?void 0:null===(f=e.data)||void 0===f?void 0:f.lblSubtitleShopping[i])?null==e?void 0:null===(h=e.data)||void 0===h?void 0:h.lblSubtitleShopping[i]:""),subTitleColor:(null==e?void 0:null===(m=e.data)||void 0===m?void 0:m.enuSubtitleColorShopping)?(0,l$.Cw)("text",null==e?void 0:null===(v=e.data)||void 0===v?void 0:v.enuSubtitleColorShopping):"text-white",price:x("price",c[t].tax_class_id,c[t].price,c[t].variants),oldPrice:x("oldPrice",c[t].tax_class_id,c[t].price,c[t].variants),labelCta:(null==e?void 0:null===(g=e.data)||void 0===g?void 0:g.lblLabelCtaShopping)&&(null==e?void 0:null===(b=e.data)||void 0===b?void 0:b.lblLabelCtaShopping[i])?null==e?void 0:null===(y=e.data)||void 0===y?void 0:y.lblLabelCtaShopping[i]:"",bgCta:(null==e?void 0:null===(k=e.data)||void 0===k?void 0:k.enuBackgroundCtaShopping)?(0,l$.Cw)("bg",null==e?void 0:null===(S=e.data)||void 0===S?void 0:S.enuBackgroundCtaShopping):"bg-lightblue",onClick:()=>{var t,n;return(0,l$.T8)(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.lblLinkCtaShopping[i],null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.flgTargetCtaShopping)}})},e.data.metainfo.id)})]})})})]})})};let cg=(0,P.cn)({default:"all",key:"terminalFilterAtom"});var cx=n(8297),cb=n.n(cx),cy=e=>{let{language:t,id:n,title:r,titleColor:a="text-black",subtitleColor:i="text-black",imageUrl:l,subtitle:o,ctaText:s,onClickPath:c,hint:u,onClick:d}=e,{i18n:p}=(0,D.$G)(),f=t||p.language,[h,m]=(0,C.useState)({value:!1,shopId:0}),[v,g]=(0,C.useState)();async function x(){await fetch("".concat("https://apiextra.seamilano.eu/ols-immagini-negozi/imageservice/v1","/afm/s/252/155").concat(l.replace("/Assets/afm","")),{headers:{keyId:"64b7fd33-ab7b-4ee5-b42e-1b5a8e50710a"}}).then(e=>e.blob()).then(e=>{g(URL.createObjectURL(e))}).catch(e=>console.error("[ShoppingListCard] image error -> ",e))}return(0,C.useEffect)(()=>{x()},[]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"absolute",hidden:!h.value,children:(0,w.jsxs)("div",{className:"w-screen h-screen",style:{padding:30,position:"fixed",top:0,left:0,bottom:0,right:0,border:"none",overflow:"hidden",zIndex:999999},children:[(0,w.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",background:"black",opacity:.1}}),(0,w.jsx)("div",{className:"cursor-pointer relative z-[52]",onClick:()=>m({value:!1,shopId:0}),children:(0,w.jsx)("button",{className:"bg-black p-0 rounded-3xl cursor-pointer w-5 absolute top-0 right-0",children:(0,w.jsx)(lH,{onClick:()=>m({value:!1,shopId:0})})})}),h.value&&h.shopId===n&&(0,w.jsxs)("div",{className:"bg-[#eee] h-full relative",children:[(0,w.jsx)("div",{className:"absolute top-1/2 left-1/2 m-auto transform -translate-x-1/2 -translate-y-1/2",children:(0,w.jsx)(cb(),{className:"m-auto",color:"#14688E"})}),(0,w.jsx)("iframe",{className:"absolute top-0 left-0",sandbox:"allow-scripts",width:"100%",height:"100%",src:"/webmaps/neoMap.jsp?lang=".concat(f,"&target=").concat(n)})]})]})}),(0,w.jsxs)("div",{className:"rounded-3xl bg-[#E6E6E6] relative h-fit desk:w-[16rem]  mob:w-60 mb-4",children:[(0,w.jsx)("div",{style:{backgroundImage:"url(".concat(v,")"),backgroundSize:260},className:"bg-no-repeat bg-center bg-cover h-40 bg-white rounded-t-3xl shadow-lg"}),(0,w.jsxs)("div",{className:"h-36 p-3 pb-7 desk:pb-12 bg-lightgrey shadow-lg rounded-b-2xl",children:[(0,w.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,w.jsxs)("div",{children:[(0,w.jsxs)("div",{className:"flex items-center -mt-2 cursor-pointer",onClick:()=>m({value:!0,shopId:n}),children:[(0,w.jsx)(S.Z,{iconName:"marker",className:"w-5"}),(0,w.jsx)("a",{className:"underline underline-offset-2 text-sm",children:u})]}),(0,w.jsx)("h2",{className:"font-bold text-lg desk:text-xl ".concat(a," -mt-2"),children:r})]}),(0,w.jsxs)("div",{className:"flex gap-2 -mt-2",children:[(0,w.jsx)("a",{className:"font-bold text-sm ".concat(i),href:c,children:o}),(0,w.jsx)(S.Z,{iconName:"arrow",className:"w-2"})]})]}),(0,w.jsx)("div",{className:"cursor-pointer",onClick:e=>d(e),children:s?(0,w.jsx)("a",{className:"absolute bottom-0 right-0 bg-[#14688E] text-[#FFFFFF] py-3 px-6 desk:px-2 rounded-tl-3xl rounded-br-3xl text-sm font-bold",children:s}):null})]})]})]})},cw=e=>{let{category:t,area:n,terminalNum:r}=e,{i18n:a,t:i}=(0,D.$G)(),l=a.language,[o,s]=(0,C.useState)(),c=(0,P.FV)(oz),u=(0,P.FV)(oB),d=(0,P.FV)(cg),[p,f]=(0,C.useState)(""),[h,m]=(0,C.useState)(""),[v,g]=(0,C.useState)(!0),x=!1;async function b(){return await fetch("".concat("https://apiextra.seamilano.eu/ols-shop/afm-publicapi/v2","/afm/").concat(l.toLocaleUpperCase(),"/").concat("mxp","/shop/list"),{method:"GET",headers:new Headers({"Content-Type":"application/json",keyId:"8d2e96de-e071-4aad-a633-36f878a87d2c"})})}return(0,C.useEffect)(()=>{b().then(e=>e.json()).then(e=>{s(e)}).catch(e=>{g(!1),console.error("[ShopList] shop error -> ",e)}).finally(()=>{g(!1)})},[]),(0,C.useEffect)(()=>{switch(x=!1,c[0]){case"all":return f("");case i("shop.beforeFilter"):return f("01");case i("shop.afterFilter"):return f("02");default:return f("")}},[c[0]]),(0,C.useEffect)(()=>{switch(x=!1,d[0]){case"all":default:return m("");case"t1":return m("T1");case"t2":return m("T2")}},[d[0]]),(0,w.jsxs)("div",{className:"grid desk:grid-cols-4 mob:grid-cols-2 tab:grid-cols-3 desk:gap-6 mob:gap-2",children:[!v&&(null==o?void 0:o.terminals.map(e=>{if(e.terminal===h||""===h)return e.items.map(e=>{if((e.accessType===p||""===p)&&(e.subcategoryDescr===u[0]||"all"===u[0]||""===u[0]))return x=!0,(0,w.jsx)(cy,{id:e.id,title:e.name,titleColor:"black",onClick:()=>R().push(e.boutiqueUrl),onClickPath:"/".concat(l,"/").concat(i("shop.inAirport"),"/").concat(i("shop.shops"),"/").concat(i("shop.detail").toLocaleLowerCase(),"?id=")+e.id,subtitle:i("shop.detail"),subtitleColor:"black",imageUrl:e.logo.replace("/Assets/afm",""),detailCtaText:"detailCtaText",ctaText:e.boutiqueUrl?i("shop.book"):"",backgroundCta:"black",onClickDetailCta:()=>{},icon:"icon",hint:i("shop.map"),hintIcon:"hintIcon",language:l,onClickHint:()=>{}},e.id)})})),v&&(0,w.jsx)("div",{className:"relative desk:left-[155%] tab:left-[100%]",children:(0,w.jsx)(lW.Z,{className:"m-auto",color:"#14688E"})}),!v&&!x&&(0,w.jsx)("div",{className:"relative text-center desk:left-[155%] tab:left-[100%]",children:(0,w.jsx)("h1",{className:"font-bold text-2xl",children:i("shop.noShopsFound")})})]})};let ck=["all","t1","t2"],cS=e=>{let{itemId:t,isSelected:n,onClick:r}=e;return(0,w.jsx)("div",{onClick:()=>r(t),className:"flex justify-center w-[54px] h-[54px] text-sm items-center rounded-2xl font-bold transition duration-500 terminalItem cursor-pointer ".concat(n?"bg-lightblue text-white":"bg-white text-lightblue"),children:(null==t?void 0:t.toUpperCase())||""})};var cj=e=>{let{selectedId:t,setId:n}=e;return(0,w.jsx)("div",{className:"terminal-container flex items-center gap-2",children:ck.map(e=>(0,w.jsx)(cS,{onClick:e=>n(e),itemId:e,isSelected:e===t},e))})},cC=e=>{let{area:t,setArea:n,setCategory:r}=e;(0,P.sJ)(L.wy);let{t:a}=(0,D.$G)(),i=[{id:1,label:a("shop.books")},{id:2,label:a("shop.fashion")},{id:3,label:a("shop.food")},{id:4,label:a("shop.dutyFree")},{id:5,label:a("shop.beauty")}],l=[{id:1,label:a("shop.beforeFilter")},{id:2,label:a("shop.afterFilter")}],[o,s]=(0,P.FV)(cg),[c,u]=(0,C.useState)(o);return(0,C.useEffect)(()=>{s(c)},[c]),(0,w.jsx)("div",{className:"flex bg-lightgrey rounded-2xl w-full mx-auto px-6 py-8 flex-col items-start desk:gap-0 desk:flex-row desk:items-center desk:p-10 mb-12 shadow-xl",children:(0,w.jsxs)("div",{className:"flex desk:justify-center w-full desk:items-center gap-6 desk:flex-row flex-col items-start justify-center",children:[(0,w.jsx)(oH,{onChange:e=>r(e.target.value),placeholder:a("shop.category"),valueList:i}),(0,w.jsx)(oH,{onChange:e=>n(e.target.value),placeholder:"Area",valueList:l}),(0,w.jsx)(cj,{selectedId:o,setId:u})]})})},cN=e=>{let{lblSubtitleShopping:t,lblCrossedOutPrice:n,lblLabelCtaShopping:r,lblPriceShopping:a,lblTitleShopping:i,upiImageShoppingDesktop:l}=e;return(0,P.sJ)(L.wy),(0,w.jsxs)("div",{className:"rounded-3xl bg-[#E6E6E6] relative h-fit desk:w-72 mob:w-60 mb-4",children:[(0,w.jsx)("div",{style:{backgroundImage:"url(".concat(l,")")},className:"bg-no-repeat bg-center bg-cover h-60 bg-cyan-500 rounded-t-3xl"}),(0,w.jsxs)("div",{className:"h-40 p-3 pb-7 desk:pb-12 mb-2",children:[(0,w.jsx)("div",{children:(0,w.jsx)("h2",{className:"font-bold text-lg desk:text-xl",children:i})}),(0,w.jsx)("div",{className:"flex gap-2",children:(0,w.jsx)("a",{className:"text-sm",children:t})}),(0,w.jsxs)("div",{className:"flex flex-col gap-2 mt-2",children:[n?(0,w.jsxs)("h1",{className:"line-through",children:["€",n]}):(0,w.jsx)(w.Fragment,{}),(0,w.jsxs)("h1",{className:"font-bold",children:["€",a]})]}),r?(0,w.jsx)("a",{href:"#",className:"absolute bottom-0 right-0 bg-[#14688E] text-[#FFFFFF] py-3 px-6 rounded-tl-3xl rounded-br-3xl text-sm font-bold",children:r}):null]})]})},cT=e=>{let{category:t,area:n,terminalNum:r}=e,{i18n:a}=(0,D.$G)(),i=a.language,[l,o]=(0,C.useState)(),s=(0,P.FV)(oz),c=(0,P.FV)(oB),u=(0,P.FV)(cg),[d,p]=(0,C.useState)(""),[f,h]=(0,C.useState)(""),[m,v]=(0,C.useState)(!0),g=!1;async function x(){return await fetch("".concat("https://apiextra.seamilano.eu/ols-shop/afm-publicapi/v2","/afm/").concat(i.toLocaleUpperCase(),"/").concat("mxp","/food/list"),{method:"GET",headers:new Headers({"Content-Type":"application/json",keyId:"8d2e96de-e071-4aad-a633-36f878a87d2c"})})}return(0,C.useEffect)(()=>{x().then(e=>e.json()).then(e=>{o(e)}).catch(e=>{v(!1),console.error("[RestourantList] shop error -> ",e)}).finally(()=>{v(!1)})},[]),(0,C.useEffect)(()=>{switch(g=!1,s[0]){case"all":return p("");case(0,oM.t)("shop.beforeFilter"):return p("01");case(0,oM.t)("shop.afterFilter"):return p("02");default:return p("")}},[s[0]]),(0,C.useEffect)(()=>{switch(g=!1,u[0]){case"all":default:return h("");case"t1":return h("T1");case"t2":return h("T2")}},[u[0]]),(0,w.jsxs)("div",{className:"grid desk:grid-cols-4 mob:grid-cols-2 tab:grid-cols-3 desk:gap-6 mob:gap-2",children:[!m&&(null==l?void 0:l.terminals.map(e=>{if(e.terminal===f||""===f)return e.items.map(e=>{if((e.accessType===d||""===d)&&(e.subcategoryDescr===c[0]||"all"===c[0]||""===c[0]))return g=!0,(0,w.jsx)(cy,{id:e.id,title:e.name,titleColor:"black",onClick:()=>R().push(e.boutiqueUrl),onClickPath:"/".concat(i,"/").concat((0,oM.t)("shop.inAirport"),"/").concat((0,oM.t)("shop.br"),"/").concat((0,oM.t)("shop.detail").toLocaleLowerCase(),"?id=")+e.id,subtitle:(0,oM.t)("shop.detail"),subtitleColor:"black",imageUrl:e.logo,detailCtaText:"detailCtaText",ctaText:e.boutiqueUrl?(0,oM.t)("shop.book"):"",backgroundCta:"black",onClickDetailCta:()=>{},icon:"icon",hint:(0,oM.t)("shop.map"),hintIcon:"hintIcon",language:i,onClickHint:()=>{}},e.id)})})),m&&(0,w.jsx)("div",{className:"relative desk:left-[155%] tab:left-[100%]",children:(0,w.jsx)(cb(),{className:"m-auto",color:"#14688E"})}),!m&&!g&&(0,w.jsx)("div",{className:"relative text-center desk:left-[155%] tab:left-[100%]",children:(0,w.jsx)("h1",{className:"font-bold text-2xl",children:(0,oM.t)("shop.noShopsFound")})})]})},cE=e=>{let{area:t,setArea:n,setCategory:r,setTerminal:a}=e;(0,P.sJ)(L.wy);let{t:i}=(0,D.$G)(),l=[{id:1,label:"SNACK BAR"},{id:2,label:i("shop.restaurants")}],o=[{id:1,label:i("shop.beforeFilter")},{id:2,label:i("shop.afterFilter")}],[s,c]=(0,P.FV)(cg),[u,d]=(0,C.useState)(s);return(0,C.useEffect)(()=>{c(u)},[u]),(0,w.jsx)("div",{className:"flex bg-lightgrey rounded-2xl w-full mx-auto px-6 py-8 flex-col items-start desk:gap-0 desk:flex-row desk:items-center desk:p-10 mb-12 shadow-xl",children:(0,w.jsxs)("div",{className:"flex desk:justify-center w-full desk:items-center gap-12 desk:flex-row flex-col items-start justify-center",children:[(0,w.jsx)(oH,{onChange:e=>r(e.target.value),placeholder:i("shop.category"),valueList:l}),(0,w.jsx)(oH,{onChange:e=>n(e.target.value),placeholder:"Area",valueList:o}),(0,w.jsx)(cj,{selectedId:u,setId:d})]})})},cD=n(8379),cM=n.n(cD);let c_={info:{maxSlideDesktop:3,mobileSlideNumber:3,desktopCentered:!1,mobileCentered:!1,desktopDirection:"horizontal",mobileDirection:"vertical",desktopSliderEnabled:!1,mobileSliderEnabled:!1,freeMode:!1,slidesOffsetBefore:0},ecommerce:{maxSlideDesktop:"auto",mobileSlideNumber:"auto",desktopCentered:!1,mobileCentered:!1,desktopDirection:"horizontal",mobileDirection:"horizontal",desktopSliderEnabled:!0,mobileSliderEnabled:!0,freeMode:!0,slidesOffsetBefore:0},viaggio:{maxSlideDesktop:4,mobileSlideNumber:1,desktopCentered:!1,mobileCentered:!1,desktopDirection:"horizontal",mobileDirection:"vertical",desktopSliderEnabled:!1,mobileSliderEnabled:!1,freeMode:!1,slidesOffsetBefore:0},lancio:{maxSlideDesktop:"auto",mobileSlideNumber:"auto",desktopCentered:!1,mobileCentered:!1,desktopDirection:"horizontal",mobileDirection:"horizontal",desktopSliderEnabled:!0,mobileSliderEnabled:!0,freeMode:!0,slidesOffsetBefore:0},negozio:{maxSlideDesktop:4,mobileSlideNumber:1,desktopCentered:!1,mobileCentered:!1,desktopDirection:"horizontal",mobileDirection:"vertical",desktopSliderEnabled:!1,mobileSliderEnabled:!1,freeMode:!1,slidesOffsetBefore:0},servizi:{maxSlideDesktop:"auto",mobileSlideNumber:"auto",desktopCentered:!1,mobileCentered:!1,desktopDirection:"horizontal",mobileDirection:"horizontal",desktopSliderEnabled:!0,mobileSliderEnabled:!0,freeMode:!0,slidesOffsetBefore:0}};var cA=e=>{var t,n,r,a,i,l,o,s,c,u,d,p,f,h,m,v,g,x,b;let{data:y,language:k}=e,{i18n:j}=(0,D.$G)(),N=k||j.language,[E,M]=(0,T.dD)(),[_,A]=(0,C.useState)(null),L=(0,C.useMemo)(()=>{var e,t;return(null==y?void 0:null===(t=y.data)||void 0===t?void 0:null===(e=t.lstCard)||void 0===e?void 0:e.map(e=>e.xconCard.targeturl))||[]},[y,N]),I=(0,T.Yr)({urls:L}),P=cL({language:N,cardList:I,isMobile:E,isTablet:M,currentlySettedFilter:_,backgroundColor:y.data.enuBackgroundCta}),O=(null==y?void 0:null===(t=y.data)||void 0===t?void 0:t.enuBackgroundCta)==="grigio"?"bg-lightgrey":"bg-white",R=(null==y?void 0:null===(n=y.data)||void 0===n?void 0:n.enuTypeInfo)==="lancio"&&" desk:flex desk:gap-7",F=(null==y?void 0:y.data)?l1().sanitize(null!==(g=null===(a=y.data)||void 0===a?void 0:null===(r=a.lblTitle)||void 0===r?void 0:r[N])&&void 0!==g?g:""):"",B=(null==y?void 0:y.data)?l1().sanitize(null!==(x=null===(l=y.data)||void 0===l?void 0:null===(i=l.txbSubtitle)||void 0===i?void 0:i[N])&&void 0!==x?x:""):"",z=(null==y?void 0:y.data)?(0,l$.Cw)("text",y.data.enuTitleColor):"text-black",Z=(null==y?void 0:null===(o=y.data)||void 0===o?void 0:o.flgHatch)||!1,H=(null==y?void 0:null===(s=y.data)||void 0===s?void 0:s.enuTypeInfo)||"unknown",U=c_[H]||{},V=((null===(c=y.data)||void 0===c?void 0:c.lblNotes)||"").toString(),W="M04 - Lista Card (Pag. Homepage Parcheggi)"===V||"Lista card promo - subhome shopping"===V,G=null==I?void 0:null===(d=I[0])||void 0===d?void 0:null===(u=d.data)||void 0===u?void 0:u.grpType,Y=!("grpShopping"===G||"grpProduct"===G)&&((E||M)&&(null==U?void 0:U.mobileSliderEnabled)||!E&&!M&&(null==U?void 0:U.desktopSliderEnabled)||W)&&!!(null==P?void 0:P.length);return console.log("[M04] decision",{typeKey:H,grpType:G||null,isMobile:E,isTablet:M,notes:V,forceSliderByNotes:W,cfg:{mobileSliderEnabled:null==U?void 0:U.mobileSliderEnabled,desktopSliderEnabled:null==U?void 0:U.desktopSliderEnabled,mobileDirection:null==U?void 0:U.mobileDirection,desktopDirection:null==U?void 0:U.desktopDirection,mobileSlideNumber:null==U?void 0:U.mobileSlideNumber,maxSlideDesktop:null==U?void 0:U.maxSlideDesktop,freeMode:null==U?void 0:U.freeMode},willUseSwiper:Y,cards:(null==P?void 0:P.length)||0}),(0,w.jsx)(w.Fragment,{children:(null==y?void 0:null===(p=y.data)||void 0===p?void 0:p.enuTypeInfo)!=="viaggio"?(0,w.jsx)("div",{className:((null===(f=y.data)||void 0===f?void 0:f.lblNotes)==="Wifi - Card"?"pt-8 pb-6 mt-10":"py-8 desk:pb-6")+" "+O+" "+z,children:(0,w.jsxs)("div",{className:"max-w-cont-2 mx-auto px-6 w-full mb-4 ".concat(R),children:[(0,w.jsxs)("div",{className:"".concat(R?"desk:w-1/3 ":" "," mb-11 underlineLink"),children:[(0,w.jsx)("h2",{className:"text-3xl font-semibold mb-2.5 font-secondary",dangerouslySetInnerHTML:{__html:F}}),(0,w.jsx)("h3",{className:"text-lg",dangerouslySetInnerHTML:{__html:B}})]}),(null==P?void 0:P.length)?Y?(0,w.jsx)(lK.tq,{modules:[lX.Rv,lX.N1],keyboard:{enabled:!0},freeMode:U.freeMode,slidesOffsetBefore:U.slidesOffsetBefore,spaceBetween:E||M?15:30,slidesPerView:E?U.mobileSlideNumber:U.maxSlideDesktop,centeredSlides:E?U.mobileCentered:U.desktopCentered,direction:E||M?U.mobileDirection:U.desktopDirection,className:"custom-carousel ".concat(R?"desk:w-10/12":""),onSwiper:()=>console.log("[M04] Swiper mounted",{typeKey:H,direction:E||M?U.mobileDirection:U.desktopDirection}),children:P.map((e,t)=>(0,w.jsx)(lK.o5,{className:"w-auto ".concat(E||M?"flex justify-center":""),children:(0,w.jsxs)("div",{className:"flex",children:[e,P.length!==t+1&&Z?(0,w.jsx)("div",{className:"flex items-center ".concat(E?"justify-center rotate-90 my-4":""," translate-x-4"),children:(0,w.jsx)(S.Z,{iconName:"dots",className:"w-4"})}):null]})},t))}):(0,w.jsx)(w.Fragment,{children:"grpProduct"===G?(0,w.jsx)("div",{className:"grid desk:grid-cols-4 mob:grid-cols-2 tab:grid-cols-3 desk:gap-6 mob:gap-2",children:P.map((e,t)=>(0,w.jsx)("div",{children:e},t))}):"grpShopping"===G?(0,w.jsx)("div",{className:"justify-between",children:P.map((e,t)=>(0,w.jsxs)(C.Fragment,{children:[(0,w.jsx)("div",{children:e},cM()()),P.length!==t+1&&Z?(0,w.jsx)("div",{className:"flex items-center ".concat(E?"justify-center rotate-90 my-4":""," translate-x-4"),children:(0,w.jsx)(S.Z,{iconName:"dots",className:"w-4"})}):null]},t))}):(0,w.jsx)("div",{className:"flex ".concat(E?"flex-col ":""," gap-4 justify-between"),children:P.map((e,t)=>(0,w.jsxs)(C.Fragment,{children:[(0,w.jsx)("div",{children:e}),P.length!==t+1&&Z?(0,w.jsx)("div",{className:"flex items-center ".concat(E?"justify-center rotate-90 my-4":""),children:(0,w.jsx)(S.Z,{iconName:"dots",className:"w-4"})}):null]},t))})}):null]})}):(0,w.jsx)("div",{className:"max-w-cont-1 px-6 mx-auto w-full",children:(0,w.jsx)(uv,{currentySettedFilter:_,onClickFilter:A,cards:P,title:(null==y?void 0:null===(h=y.data)||void 0===h?void 0:h.lblTitle)||{it:"",en:""},filters:null!==(b=null==y?void 0:null===(m=y.data)||void 0===m?void 0:m.lstFilters)&&void 0!==b?b:[],filterTitle:(null==y?void 0:null===(v=y.data)||void 0===v?void 0:v.lblTitleFilter)?y.data.lblTitleFilter[N]:""})})})};let cL=e=>{let{language:t,cardList:n,isMobile:r=!1,isTablet:a=!1,currentlySettedFilter:i,backgroundColor:l}=e,{i18n:o}=(0,D.$G)(),s=t||o.language,c=(0,O.useRouter)(),[u,d]=(0,C.useState)("all"),[p,f]=(0,C.useState)("all"),[h,m]=(0,C.useState)("all"),v=(0,P.Zl)(oz),g=(0,P.Zl)(oB),x=(0,P.Zl)(cg);(0,C.useEffect)(()=>{v(u),x(h),g(p)});let b=e=>{var t,n,i,o,v,g,x,b,y,k,S,j,C,N,T,E,D,M,_,A,L,I,P,O,R;switch(e.enuTypeInfo){case"info":{let i=(null===(t=e.upiImageInfo)||void 0===t?void 0:t.mediaserverpath)&&(null===(n=e.upiImageInfo)||void 0===n?void 0:n.resourcename)?"".concat(e.upiImageInfo.mediaserverpath,"/").concat(e.upiImageInfo.resourcename):"";return r||a?(0,w.jsx)(sx,{language:s,bgColor:"grigio"===l?"bg-white":"bg-lightgrey",imageUrl:i,infoItems:e.lstInfo,title:e.lblTitleInfo[s],description:e.lblSubtitle[s]},e.metainfo.id):(0,w.jsx)(sp,{language:s,bgColor:"grigio"===l?"bg-white":"bg-lightgrey",imageUrl:i,infoItems:e.lstInfo,title:e.lblTitleInfo[s],description:e.lblSubtitle[s]},e.metainfo.id)}case"ecommerce":{let t=(null===(i=e.upiImageEcommerceDesktop[s])||void 0===i?void 0:i.mediaserverpath)&&(null===(o=e.upiImageEcommerceDesktop[s])||void 0===o?void 0:o.resourcename)?"".concat(e.upiImageEcommerceDesktop[s].mediaserverpath,"/").concat(e.upiImageEcommerceDesktop[s].resourcename):"";return(0,w.jsx)("a",{href:(0,l$.Bi)(e,s),target:e.flgTargetCtaEcommerce?"_blank":"_self",children:(0,w.jsx)(sd,{title:e.lblTitleEcommerce[s],imageUrl:t,description:e.lblSubtitle[s],ctaText:e.lblLabelCtaEcommerce[s],onClick:()=>{}},e.metainfo.id)})}case"negozio":if("grpShopping"===e.grpType&&"shop"===e.lblTitleShopping[s])return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(cC,{setCategory:f,setArea:d,setTerminal:m,area:u}),(0,w.jsx)(cw,{category:p,area:u,terminalNum:h})]});if("grpShopping"===e.grpType&&"food"===e.lblTitleShopping[s])return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(cE,{setCategory:f,setArea:d,setTerminal:m,area:u}),(0,w.jsx)(cT,{category:p,area:u,terminalNum:h})]});if("grpProduct"===e.grpType)return(0,w.jsx)(cN,{lblSubtitleShopping:e.lblSubtitleProduct[s],lblCrossedOutPrice:e.lblCrossedOutPriceProduct[s],lblLabelCtaShopping:e.lblLabelCtaProduct[s],lblPriceShopping:e.lblPriceProduct[s],lblTitleShopping:e.lblTitleProduct[s],upiImageShoppingDesktop:"".concat(e.upiImageProductDesktop[s].mediaserverpath,"/").concat(e.upiImageProductDesktop[s].resourcename)});case"luogo":return(0,w.jsx)("div",{children:"Card tipo luogo"},e.metainfo.id);case"promozione":return(0,w.jsx)("div",{children:"Card tipo promozione"},e.metainfo.id);case"informativa":return(0,w.jsx)("div",{children:"Card tipo informativa"},e.metainfo.id);case"lancio":{let t="";switch(null==e?void 0:e.grpImageBox){case"grpImageBoxQ":t=(null===(g=r?e.upiImageBoxQMobile[s]:e.upiImageBoxQDesktop[s])||void 0===g?void 0:g.mediaserverpath)?"".concat((r?e.upiImageBoxQMobile[s]:e.upiImageBoxQDesktop[s]).mediaserverpath,"/").concat((r?e.upiImageBoxQMobile[s]:e.upiImageBoxQDesktop[s]).resourcename):"";break;case"grpImageBoxH":t=(null===(x=r?e.upiImageBoxHMobile[s]:e.upiImageBoxHDesktop[s])||void 0===x?void 0:x.mediaserverpath)?"".concat((r?e.upiImageBoxHMobile[s]:e.upiImageBoxHDesktop[s]).mediaserverpath,"/").concat((r?e.upiImageBoxHMobile[s]:e.upiImageBoxHDesktop[s]).resourcename):""}if(null===(v=e.upiImageBoxQMobile[s])||void 0===v?void 0:v.mediaserverpath)return(0,w.jsx)("a",{href:(0,l$.Bi)(e,s),target:(null==e?void 0:e.flgTarget)?"_blank":"_self",children:(0,w.jsx)(sh,{isLaunch:!0,isSquare:!0,onClick:()=>{},imageUrl:t,title:e.lblTitleBox[s],txtColor:(0,l$.Cw)("text",null==e?void 0:e.enuTitleColorBox)})});return(0,w.jsx)(w.Fragment,{})}case"lancio con testi":return(0,w.jsx)("div",{children:"Card tipo lancio con testi"},e.metainfo.id);case"servizio":return r?(null===(k=e.upiImageServiceMobile[s])||void 0===k?void 0:k.mediaserverpath)&&(null===(S=e.upiImageServiceMobile[s])||void 0===S?void 0:S.resourcename)&&"".concat(e.upiImageServiceMobile[s].mediaserverpath,"/").concat(e.upiImageServiceMobile[s].resourcename):(null===(b=e.upiImageServiceDesktop[s])||void 0===b?void 0:b.mediaserverpath)&&(null===(y=e.upiImageServiceDesktop[s])||void 0===y?void 0:y.resourcename)&&"".concat(e.upiImageServiceDesktop[s].mediaserverpath,"/").concat(e.upiImageServiceDesktop[s].resourcename),(0,w.jsx)(sv,{language:s,data:e},e.metainfo.id);case"viaggio_natura":case"viaggio_cultura":case"viaggio_citta":case"viaggio_mare":{let t="";return t=r?(null===(A=e.upiImageMobile)||void 0===A?void 0:A.mediaserverpath)&&(null===(L=e.upiImageMobile)||void 0===L?void 0:L.resourcename)?"".concat(e.upiImageMobile.mediaserverpath,"/").concat(e.upiImageMobile.resourcename):"":(null===(I=e.upiImageDesk)||void 0===I?void 0:I.mediaserverpath)&&(null===(P=e.upiImageDesk)||void 0===P?void 0:P.resourcename)?"".concat(e.upiImageDesk.mediaserverpath,"/").concat(e.upiImageDesk.resourcename):"",(0,w.jsx)(sg,{onClickHint:()=>null,hint:null!==(O=null==e?void 0:null===(T=e.xtaxDestinations)||void 0===T?void 0:null===(N=T.ti)||void 0===N?void 0:null===(C=N[0])||void 0===C?void 0:null===(j=C.lblNation)||void 0===j?void 0:j[s])&&void 0!==O?O:"",onClick:()=>c.push((0,l$.Bi)(e,s)),title:null!==(R=null==e?void 0:null===(_=e.xtaxDestinations)||void 0===_?void 0:null===(M=_.ti)||void 0===M?void 0:null===(D=M[0])||void 0===D?void 0:null===(E=D.lblCityName)||void 0===E?void 0:E[s])&&void 0!==R?R:"",imageUrl:t},e.metainfo.id)}default:return(0,w.jsx)("div",{children:"Card type not recognized"},e.metainfo.id)}};return(0,C.useMemo)(()=>null==n?void 0:n.filter(e=>i?e.data.enuTypeInfo===i:!i).map(e=>b(e.data)),[n,s,r,i])};var cI=e=>{let{data:t,lang:n}=e,[r,a]=(0,C.useState)(null),i=(0,C.useRef)([]);i.current=Array(null==t?void 0:t.length).fill(null).map((e,t)=>i.current[t]||null);let l=e=>{a(r===e?null:e)};return(0,w.jsx)("div",{className:"rounded-2xl shadow-2xl",children:t&&(null==t?void 0:t.map((e,a)=>{if(null==e?void 0:e.title[n]){var o;return(0,w.jsxs)("div",{className:"flex flex-col desk:p-7 p-4 ".concat(a!==t.length-1&&"border-b-2 border-b-gray-300 border-l"," ").concat(a===r&&"border-l-[6.3px] border-l-black rounded-bl-[10px] transition-colors delay-75"),children:[(0,w.jsxs)("div",{className:"flex justify-between items-center gap-4",children:[(0,w.jsx)("h2",{className:"font-bold desk:text-lg text-sm",dangerouslySetInnerHTML:{__html:l1().sanitize((null==e?void 0:e.title)&&(null==e?void 0:e.title[n])?null==e?void 0:e.title[n]:"")}}),(0,w.jsx)("div",{children:(0,w.jsx)("div",{className:"bg-black w-10 h-10 rounded-2xl flex justify-center cursor-pointer ",onClick:()=>l(a),children:(0,w.jsx)(S.Z,{iconName:"arrow",color:"#FFFFFF",className:"fill-[#FFFFFF] w-2 cursor-pointer transition-transform origin-center duration-300 ".concat(r===a?"rotate-90":"rotate-0")})})})]}),(0,w.jsx)("div",{style:{height:r===a?"".concat((null==i?void 0:null===(o=i.current[a])||void 0===o?void 0:o.offsetHeight)+25,"px"):"0"},className:"transition-all duration-300 overflow-hidden",children:(0,w.jsx)("h3",{ref:e=>i.current[a]=e,className:"py-2 mt-3 custom-subtitle h-auto",dangerouslySetInnerHTML:{__html:l1().sanitize((null==e?void 0:e.subTitle)&&(null==e?void 0:e.subTitle[n])?null==e?void 0:e.subTitle[n]:"",{ADD_ATTR:["target"]})}})})]},a)}}))})},cP=e=>{let{title:t,subTitle:n}=e;return(0,w.jsxs)("div",{className:"desk:mb-8 mt-4 desk:mt-0 mb-5",children:[(0,w.jsx)("h1",{className:"font-bold desk:text-3xl text-xl mb-3 font-secondary",dangerouslySetInnerHTML:{__html:l1().sanitize(t)}}),n?(0,w.jsx)("h2",{className:"text-lg",dangerouslySetInnerHTML:{__html:l1().sanitize(n)}}):null]})};let cO=si()(()=>n.e(695).then(n.bind(n,8695)),{ssr:!1}),cR=e=>{var t,n,r;let{faqData:a,lang:i}=e,l=(0,T.b5)("faqs",null==a?void 0:null===(n=a.xtaxFaqCategories)||void 0===n?void 0:null===(t=n.ti[0])||void 0===t?void 0:t.label),o=(0,C.useMemo)(()=>{var e,t;return null===(t=l[0])||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.map(e=>({...e,id:e.metainfo.id,title:null==e?void 0:e.lblTitle,subTitle:null==e?void 0:e.txbSubtitle}))},[l]);return(0,w.jsxs)(w.Fragment,{children:[a.lstFaqsThemes?(0,w.jsx)("div",{children:null==a?void 0:null===(r=a.lstFaqsThemes)||void 0===r?void 0:r.map(e=>(0,w.jsx)(cO,{text:null==e?void 0:e.lblFaqThemeTag[i],bgColor:"lightblue",txtColor:"white",hrefPath:"",onClick:()=>{}},null==e?void 0:e.id))}):null,(0,w.jsx)(cI,{data:o||[],lang:i})]})},cF=e=>{let{faqData:t,lang:n}=e,r=(0,C.useMemo)(()=>{var e;return null==t?void 0:null===(e=t.lstFaqs)||void 0===e?void 0:e.map(e=>{var t;return null==e?void 0:null===(t=e.xconFaq)||void 0===t?void 0:t.targeturl})},[t]),a=(0,T.Yr)({urls:r}),i=(0,C.useMemo)(()=>null==a?void 0:a.map(e=>{var t,n,r;return{...null==e?void 0:e.data,id:null==e?void 0:null===(t=e.metainfo)||void 0===t?void 0:t.id,title:null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.lblTitle,subTitle:null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.txbSubtitle}}),[a]);return(0,w.jsx)("div",{className:"desk:flex-[3] flex-none",children:(0,w.jsx)(cI,{data:i||[],lang:n})})},cB=e=>{var t,n,r,a;let{faqData:i,lang:l}=e,[o,s]=(0,C.useState)(0),c=(0,T.b5)("faqs",null==i?void 0:null===(r=i.lstFaqsThemes[o])||void 0===r?void 0:null===(n=r.xtaxFaqCategoriesTheme)||void 0===n?void 0:null===(t=n.ti[0])||void 0===t?void 0:t.label),u=(0,C.useMemo)(()=>{var e,t;return null===(t=c[0])||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.map(e=>({...e,id:e.metainfo.id,title:null==e?void 0:e.lblTitle,subTitle:null==e?void 0:e.txbSubtitle}))},[c[0],o]),d=(e,t)=>{s(e),c[1](t)};return(0,w.jsxs)(w.Fragment,{children:[(null==i?void 0:i.lstFaqsThemes)?(0,w.jsx)("div",{className:"flex gap-2 desk:mt-5 mt-2 mb-8 flex-wrap",children:null==i?void 0:null===(a=i.lstFaqsThemes)||void 0===a?void 0:a.map(e=>(0,w.jsx)("div",{className:"",children:(0,w.jsx)(cO,{text:null==e?void 0:e.lblFaqThemeTag[l].toUpperCase(),bgColor:o===(null==e?void 0:e.id)?"bg-lightblue":"bg-lightgrey",txtColor:o===(null==e?void 0:e.id)?"text-white":"text-lightblue",hrefPath:"",onClick:()=>{var t,n;d(null==e?void 0:e.id,null==e?void 0:null===(n=e.xtaxFaqCategoriesTheme)||void 0===n?void 0:null===(t=n.ti[0])||void 0===t?void 0:t.label)}},null==e?void 0:e.id)}))}):null,(0,w.jsx)(cI,{data:u||[],lang:l})]})};var cz=e=>{let{lang:t,faqData:n}=e;(0,O.useRouter)();let{t:r}=(0,D.$G)();return(0,w.jsxs)("div",{className:"".concat((null==n?void 0:n.grpFaqType)==="grpManual"?"flex flex-col":""),children:[(0,w.jsxs)("div",{children:[" ",(0,w.jsx)(cP,{title:(null==n?void 0:n.lblTitle)&&(null==n?void 0:n.lblTitle[t])?null==n?void 0:n.lblTitle[t]:"",subTitle:(null==n?void 0:n.lblSubtitle)&&(null==n?void 0:n.lblSubtitle[t])?null==n?void 0:n.lblSubtitle[t]:""})," "]}),(()=>{switch(null==n?void 0:n.grpFaqType){case"grpAutomatic":return(0,w.jsx)("div",{children:(0,w.jsx)(cR,{lang:t,faqData:n})});case"grpManual":case"":if(null==n?void 0:n.lstFaqsThemes.length)return(0,w.jsx)(cB,{lang:t,faqData:n});return(0,w.jsx)("div",{children:(0,w.jsx)(cF,{lang:t,faqData:n})})}})()]})};let cZ={it:"/it/assistenza/news",en:"/en/assistance/news"};var cH=e=>{let{data:t,lang:n}=e,[r,a]=(0,C.useState)(!1);return(0,C.useEffect)(()=>{window.innerWidth<768&&a(!0)},[r]),(0,w.jsx)("div",{className:"flex flex-col gap-16 desk:grid desk:grid-cols-3 desk:gap-y-[4.5rem] desk:gap-x-5",children:null==t?void 0:t.map(e=>e.lblTitleNews[n]&&(0,w.jsx)("div",{className:"",children:(0,w.jsx)(sb,{data:e,lang:n,isMobile:r,isFull:!0})},e.id))})};let cU=si()(()=>n.e(695).then(n.bind(n,8695)),{ssr:!1}),cV=e=>{var t;let{newsData:n}=e,r=(0,T.b5)("news","Informazione"),a=(0,P.sJ)(L.wy),i=(0,C.useMemo)(()=>{var e;return null==r?void 0:null===(e=r.data)||void 0===e?void 0:e.map(e=>({...e,id:e.metainfo.id,title:null==e?void 0:e.lblTitleNews,subTitle:null==e?void 0:e.lblSubtitleNews}))},[r]);return(0,w.jsxs)(w.Fragment,{children:[(null==n?void 0:n.lstNewsThemesList)?(0,w.jsx)("div",{children:null==n?void 0:null===(t=n.lstNewsThemesList)||void 0===t?void 0:t.map(e=>(0,w.jsx)(cU,{text:null==e?void 0:e.lblNewsThemeTag[a],bgColor:"lightblue",txtColor:"white",hrefPath:"",onClick:()=>{}},null==e?void 0:e.id))}):null,(0,w.jsx)(cH,{data:i||[],lang:a})]})},cW=e=>{let{newsData:t}=e,n=(0,C.useMemo)(()=>{var e;return null==t?void 0:null===(e=t.lstNews)||void 0===e?void 0:e.map(e=>e.xconNews.targeturl)},[t]),r=(0,T.Yr)({urls:n}),a=(0,P.sJ)(L.wy),i=(0,C.useMemo)(()=>null==r?void 0:r.map(e=>{var t,n,r;return{...null==e?void 0:e.data,id:null==e?void 0:null===(t=e.metainfo)||void 0===t?void 0:t.id,title:null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.lblTitleNews,subTitle:null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.lblSubtitleNews}}),[r]);return(0,w.jsx)(cH,{data:i||[],lang:a})},cG=e=>{var t,n,r,a,i,l;let{newsData:o}=e,{i18n:s}=(0,D.$G)(),c=s.language,[u,d]=(0,C.useState)(0),p=(0,T.b5)("news",(null==o?void 0:null===(n=o.lstNewsThemesList[u])||void 0===n?void 0:null===(t=n.xtaxNewsCategoryThemes)||void 0===t?void 0:t.ti)?null==o?void 0:null===(i=o.lstNewsThemesList[u])||void 0===i?void 0:null===(a=i.xtaxNewsCategoryThemes)||void 0===a?void 0:null===(r=a.ti[0])||void 0===r?void 0:r.label:"TUTTE"),f=(0,C.useMemo)(()=>{var e,t;return null===(t=p[0])||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.map(e=>({...e,id:e.metainfo.id,title:null==e?void 0:e.lblTitleNews,subTitle:null==e?void 0:e.lblSubtitleNews}))},[p[0],u]),h=(e,t)=>{d(e),p[1](t)};return(0,C.useEffect)(()=>{var e;o.lstNewsThemesList&&o.lstNewsThemesList[0]&&h(null==o?void 0:null===(e=o.lstNewsThemesList[0])||void 0===e?void 0:e.id,"TUTTE")},[]),(0,w.jsxs)(w.Fragment,{children:[(null==o?void 0:o.lstNewsThemesList)?(0,w.jsx)("div",{className:"flex desk:gap-2 gap-y-6 gap-x-1 desk:mt-5 mt-2 mb-8 flex-wrap",children:null==o?void 0:null===(l=o.lstNewsThemesList)||void 0===l?void 0:l.map(e=>(0,w.jsx)("div",{className:"",children:(0,w.jsx)(cU,{className:"!no-underline cursor-pointer",text:null==e?void 0:e.lblNewsThemeTag[c].toUpperCase(),bgColor:u===(null==e?void 0:e.id)?"bg-lightblue":"bg-lightgrey",txtColor:u===(null==e?void 0:e.id)?"!text-white":"text-lightblue",hrefPath:"",onClick:()=>{var t,n,r;return h(null==e?void 0:e.id,(null==e?void 0:null===(t=e.xtaxNewsCategoryThemes)||void 0===t?void 0:t.ti)?null==e?void 0:null===(r=e.xtaxNewsCategoryThemes)||void 0===r?void 0:null===(n=r.ti[0])||void 0===n?void 0:n.label:"TUTTE")}},null==e?void 0:e.id)}))}):null,(0,w.jsx)(cH,{data:f||[],lang:c})]})};var cY=e=>{let{lang:t,newsData:n}=e,r=(0,O.useRouter)(),{t:a}=(0,D.$G)();return(0,w.jsxs)("div",{children:[(0,w.jsxs)("div",{children:[" ",(0,w.jsx)(cP,{title:(null==n?void 0:n.lblTitle)&&(null==n?void 0:n.lblTitle[t])?null==n?void 0:n.lblTitle[t]:"",subTitle:(null==n?void 0:n.lblSubtitle)&&(null==n?void 0:n.lblSubtitle[t])?null==n?void 0:n.lblSubtitle[t]:""})," "]}),(()=>{switch(null==n?void 0:n.grpListType){case"grpNewsThemesList":return(0,w.jsx)(cG,{newsData:n});case"grpNews":if((null==n?void 0:n.grpNewsType)==="grpNewsAutomatic")return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(cV,{newsData:n}),(0,w.jsx)("div",{className:"flex justify-center desk:mt-16 mt-10",children:(0,w.jsx)(lV,{text:a("news.seeAllTheNews"),onClick:()=>r.push(cZ[t])})})]});return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(cW,{newsData:n}),(0,w.jsx)("div",{className:"flex justify-center desk:mt-16 mt-10",children:(0,w.jsx)(lV,{text:a("news.seeAllTheNews"),onClick:()=>r.push(cZ[t])})})]})}})()]})},cq=e=>{let{lang:t,accordionData:n}=e,r=null==n?void 0:n.lslAccordion.map(e=>({...e,title:null==e?void 0:e.lblTitleAccordion,subTitle:e.txbSubtitle}));return(0,w.jsxs)("div",{className:"flex flex-col desk:flex-row desk:gap-20",children:[(0,w.jsx)("div",{className:"tab:w-1/3",children:(0,w.jsx)(cP,{title:(null==n?void 0:n.lblTitle)&&(null==n?void 0:n.lblTitle[t])?null==n?void 0:n.lblTitle[t]:"",subTitle:(null==n?void 0:n.lblSubtitle)&&(null==n?void 0:n.lblSubtitle[t])?null==n?void 0:n.lblSubtitle[t]:""})}),(0,w.jsx)("div",{className:"desk:flex-[3] flex-none",children:(0,w.jsx)(cI,{data:r,lang:t})})]})},cK=e=>{let{data:t,language:n}=e,{i18n:r}=(0,D.$G)(),a=n||r.language,[i]=(0,T.dD)(),l=(0,C.useCallback)(()=>{var e;switch(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.grpListType){case"grpFaqs":case"grpFaqsThemesList":return(0,w.jsx)(cz,{lang:a,faqData:{grpFaqType:t.data.grpFaqType,lstFaqs:t.data.lstFaqs,xtaxFaqCategories:t.data.xtaxFaqCategories,lstFaqsThemes:t.data.lstFaqsThemes,lblTitle:t.data.lblTitle,lblSubtitle:t.data.lblSubtitle}});case"grpNews":case"grpNewsThemesList":return(0,w.jsx)(cY,{lang:a,newsData:{grpNewsType:t.data.grpNewsType,grpListType:t.data.grpListType,xtaxNewsCategory:t.data.xtaxNewsCategory,lstNews:t.data.lstNews,lstNewsThemesList:t.data.lstNewsThemesList,lblTitle:t.data.lblTitle,lblSubtitle:t.data.lblSubtitle}});case"grpListAccordion":return(0,w.jsx)(cq,{lang:a,accordionData:{lslAccordion:t.data.lslAccordion,lblTitle:t.data.lblTitle,lblSubtitle:t.data.lblSubtitle}})}},[t,a]);return(0,w.jsx)(w.Fragment,{children:t.data.lblTitle[a]?(0,w.jsx)("div",{className:"px-6 mt-[4%] mb-[6%] max-w-cont-2 mx-auto w-full underlineLink bullet-style",children:(0,w.jsx)("div",{className:"text-black",children:l()})}):(0,w.jsx)(w.Fragment,{})})},c$=e=>{let{isMobile:t,paragraph:n,language:r}=e;return(0,w.jsx)(w.Fragment,{children:null==n?void 0:n.lstItem.map(e=>{let{mediaserverpath:n,resourcename:a}=t?e.upiImageMobileIcon[r]:e.upiImageDesktopIcon[r],i=n&&a?"".concat(n,"/").concat(a):"",l=(null==e?void 0:e.enuTextColor)?(0,l$.Cw)("text",null==e?void 0:e.enuTextColor):"text-black";return(0,w.jsxs)("div",{className:"flex flex-row gap-5 mt-5 ".concat(e.lblTag[r]?"items-center":""),children:[i?(0,w.jsx)("div",{className:"relative block w-5 h-5 mt-1","aria-hidden":"true",children:(0,w.jsx)(_(),{src:i,alt:"",fill:!0,sizes:"20px",className:"object-contain",unoptimized:!0})}):null,(0,w.jsxs)("div",{children:[(0,w.jsx)("div",{className:"desk:max-w-[33.4rem] max-w-[20rem] text-base font-normal truncate whitespace-normal ".concat(l),dangerouslySetInnerHTML:{__html:l1().sanitize(e.txbDescription[r])}}),e.lblPhoneNumber?(0,w.jsxs)("a",{className:"text-[#14688E] font-semibold",href:"tel:".concat(e.lblPhoneNumber),children:[" ",e.lblPhoneNumber]}):""]}),e.lblTag[r]?(0,w.jsx)("div",{className:"bg-lightblue w-fit p-2 rounded-lg text-[#FFFFFF] text-sm font-bold",children:e.lblTag[r]}):""]},e.id)})})},cX=e=>{var t,n;let{data:r,language:a}=e,{i18n:i}=(0,D.$G)(),l=a||i.language,[o]=(0,T.dD)(),s="",c=null==r?void 0:r.data.enuTemplate;return(o||(null==c?void 0:c.toLowerCase().includes("una colonna")))&&(s="flex-col justify-center"),!o&&(null==c?void 0:c.toLowerCase().includes("due colonne"))&&(s="flex justify-between grid grid-cols-2"),(0,w.jsx)("div",{className:"".concat(s," flex py-8 px-6 desk:py-12 max-w-cont-2 mx-auto w-full gap-8 gap-y-[70px]"),children:null==r?void 0:null===(n=r.data)||void 0===n?void 0:null===(t=n.lstParagraphs)||void 0===t?void 0:t.map((e,t)=>(0,w.jsxs)("div",{className:"flex-1",children:[(0,w.jsx)("div",{className:"text-2xl desk:text-2xl text-black font-bold mb-3 font-secondary",children:e.lblTitle[l]}),(0,w.jsx)(c$,{isMobile:o,paragraph:e,language:l})]},t))})},cJ=e=>{let{isActive:t,content:n,step:r,bgColor:a,isMobile:i,isTracking:l}=e;return(0,w.jsxs)("div",{className:"flex gap-5 mb-2.5 desk:ml-14 ".concat(r>=3?"":i?"max-h-18":""),children:[r>=3&&!l?(0,w.jsx)("div",{className:"relative flex after:content-[''] after:h-[calc(100%_-_90px)] after:w-0 after:absolute after:left-2/4 after:top-[90px]",children:t?(0,w.jsxs)("div",{className:"flex items-center justify-center text-2xl font-semibold ".concat(i?"h-14 w-14 mt-2":"w-20 h-20"," rounded-3xl bg-").concat(a," text-white font-secondary"),children:[r<10?0:"",r]}):(0,w.jsxs)("div",{className:"flex items-center justify-center text-2xl font-bold ".concat(i?"h-14 w-14 mt-2":"w-20 h-20"," rounded-3xl bg-[#666666] text-white font-secondary"),children:[r<10?0:"",r]})}):(0,w.jsx)("div",{className:"relative flex after:content-[''] after:h-[calc(100%_-_90px)] after:w-0 after:absolute after:border-l-4 after:border-l-[#666666] after:border-dotted after:left-2/4 after:top-[90px]",children:t?(0,w.jsxs)("div",{className:"flex items-center justify-center text-2xl font-semibold ".concat(i?"h-14 w-14 mt-2":"w-20 h-20"," rounded-3xl bg-").concat(a," text-white font-secondary"),children:[r<10?0:"",r]}):(0,w.jsxs)("div",{className:"flex items-center justify-center text-2xl font-bold ".concat(i?"h-14 w-14 mt-2":"w-20 h-20"," rounded-3xl bg-[#666666] text-white font-secondary"),children:[r<10?0:"",r]})}),(0,w.jsx)("div",{className:"px-0 py-6",children:n})]})},cQ=e=>{let{isMobile:t,content:n,language:r}=e;return n.lstCTA.length>0?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("h1",{className:"min-h-[66px] text-lg desk:text-2xl text-base/1 text-[#333333] font-bold",children:n.lblTitle[r]}),(0,w.jsx)("h1",{className:"mb-2",children:n.txbSubtitle[r]}),n.lstCTA.map((e,t)=>{let n=(0,l$.Bi)(e,r);return(0,w.jsxs)("a",{href:n,target:(null==e?void 0:e.flgTarget)?"_blank":"_self",className:"flex justify-center w-fit h-37 cursor-pointer font-bold bg-[#E6E6E6] rounded-2xl p-4 text-[#14688E] uppercase mb-3 ".concat(n?"":"pointer-events-none cursor-default"),children:[e.lblCta[r],(0,w.jsx)(S.Z,{color:"",iconName:"arrow",className:"fill-[#14688E] w-2 ml-2"})]},t)})]}):n.lstIcons.length>0?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("h1",{className:"min-h-[66px] text-lg desk:text-2xl text-base/1 text-[#333333] font-bold",children:n.lblTitle[r]}),(0,w.jsx)("h1",{className:"mb-2",children:n.txbSubtitle[r]}),(0,w.jsx)("div",{className:"flex items-center gap-3",children:n.lstIcons.map((e,t)=>{var n,a;let i=(0,l$.Bi)(e,r);return(0,w.jsx)("div",{className:"flex justify-center",children:(0,w.jsxs)("a",{href:i,target:(null==e?void 0:e.flgTargetIcons)?"_blank":"_self",className:i?"":"pointer-events-none cursor-default",children:[(0,w.jsx)("img",{src:(null==e?void 0:null===(n=e.upiLogoCtaDesktop)||void 0===n?void 0:n.mediaserverpath)+"/"+(null==e?void 0:null===(a=e.upiLogoCtaDesktop)||void 0===a?void 0:a.resourcename),className:"h-[55px] w-[55px] desk:h-[70px] desk:w-[70px] rounded-3xl mx-auto"}),(0,w.jsx)("h1",{className:"flex justify-center desk:mt-3 mt-2 ".concat(i?"cursor-pointer":""," "),children:e.lblLabelCta[r]})]},t)},t)})})]}):n.lstLaunch.length>0?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("h1",{className:"min-h-[66px] text-lg desk:text-2xl text-base/1 text-[#333333] font-bold",children:n.lblTitle[r]}),(0,w.jsx)("h1",{className:"mb-2",children:n.txbSubtitle[r]}),n.lstLaunch.map((e,t)=>(0,w.jsx)("div",{children:(0,w.jsxs)("div",{className:"flex mb-2 desk:gap-3 gap-5",children:[(0,w.jsx)("div",{className:"flex justify-center desk:items-center items-start",children:(0,w.jsx)("img",{src:(null==e?void 0:e.upiImageLaunchDesktop[r].mediaserverpath)+"/"+(null==e?void 0:e.upiImageLaunchDesktop[r].resourcename),className:"min-w-[50px]"})}),(0,w.jsxs)("div",{className:"flex flex-col desk:ml-4 desk:mt-1",children:[(0,w.jsx)("h1",{className:"font-bold text-[#333333]",children:e.lblTitleLaunch[r]}),(0,w.jsx)("span",{className:"text-[#333333]",children:e.txbSubtitleLaunch[r]})]})]})},t))]}):(0,w.jsx)(w.Fragment,{children:(0,w.jsx)("h1",{className:"min-h-[66px] text-lg desk:text-2xl text-base/1 text-[#333333] font-bold",children:n.lblTitle[r]})})},c0=e=>{let{isMobile:t,content:n,language:r}=e,a=(0,P.sJ)(L.qm);return(0,w.jsxs)("div",{children:[(null==a?void 0:a.scheduledArrivalTime)!=null?(0,w.jsx)(w.Fragment,{children:(0,w.jsx)("h1",{className:"min-h-[66px] text-lg desk:text-2xl text-base/1 text-[#333333] font-bold",children:(0,l$.mr)(new Date((null==a?void 0:a.scheduledArrivalTime)!==(null==a?void 0:a.estimatedArrivalTime)?null==a?void 0:a.estimatedArrivalTime:null==a?void 0:a.scheduledArrivalTime))+" "+n.lblTitle[r]})}):(0,w.jsx)("h1",{className:"min-h-[66px] text-lg desk:text-2xl text-base/1 text-[#333333] font-bold",children:n.lblTitle[r]}),(0,w.jsx)("h1",{className:"mb-2",children:n.txbSubtitle[r]})]})},c1=e=>{let{isMobile:t,content:n,language:r}=e;return(0,w.jsxs)("div",{children:[(0,w.jsx)("h1",{className:"min-h-[66px] text-lg desk:text-2xl text-base/1 text-[#333333] font-bold",children:n.lblTitle[r]}),(0,w.jsx)("h1",{className:"mb-2",children:n.txbSubtitle[r]})]})},c2=e=>{let{isMobile:t,content:n,language:r}=e,{t:a}=(0,D.$G)();return(0,P.sJ)(L.qm),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("h1",{className:"min-h-[66px] text-lg desk:text-2xl text-base/1 text-[#333333] font-bold",children:n.lblTitle[r]}),(0,w.jsx)("h2",{children:null==n?void 0:n.txbSubtitle[r]})]})},c3=n(376),c6=e=>{let{isMobile:t,content:n,language:r}=e,a=(0,P.sJ)(L.qm);return(0,w.jsxs)("div",{children:[(null==a?void 0:a.boardingDate)!=null?(0,w.jsx)("h1",{className:"min-h-[66px] text-lg desk:text-2xl text-base/1 text-[#333333] font-bold",children:(0,c3.Z)(new Date(null==a?void 0:a.boardingDate))+" "+n.lblTitle[r]}):(0,w.jsx)("h1",{className:"min-h-[66px] text-lg desk:text-2xl text-base/1 text-[#333333] font-bold",children:n.lblTitle[r]}),(0,w.jsx)("h1",{className:"mb-2",children:n.txbSubtitle[r]})]})},c5=e=>{let{isMobile:t,content:n,language:r}=e,a=(0,P.sJ)(L.qm);return(0,w.jsxs)("div",{children:[(null==a?void 0:a.scheduledTime)!=null?(0,w.jsx)("h1",{className:"min-h-[66px] text-lg desk:text-2xl text-base/1 text-[#333333] font-bold",children:(0,c3.Z)(new Date(null==a?void 0:a.estimatedTime))+" "+n.lblTitle[r]}):(0,w.jsx)("h1",{className:"min-h-[66px] text-lg desk:text-2xl text-base/1 text-[#333333] font-bold",children:n.lblTitle[r]}),(0,w.jsx)("h1",{className:"mb-2",children:n.txbSubtitle[r]})]})},c4=e=>{let{isMobile:t,content:n,language:r}=e,a=(0,P.sJ)(L.qm);return(0,w.jsxs)("div",{children:[(null==a?void 0:a.scheduledArrivalTime)!=null?(0,w.jsx)("h1",{className:"min-h-[66px] text-lg desk:text-2xl text-base/1 text-[#333333] font-bold",children:(0,c3.Z)(new Date(null==a?void 0:a.estimatedArrivalTime))+" "+n.lblTitle[r]}):(0,w.jsx)("h1",{className:"min-h-[66px] text-lg desk:text-2xl text-base/1 text-[#333333] font-bold",children:n.lblTitle[r]}),(0,w.jsx)("h1",{className:"mb-2",children:n.txbSubtitle[r]})]})},c8=e=>{let{isMobile:t,content:n,language:r}=e,{t:a}=(0,D.$G)(),i=(0,P.sJ)(L.qm),l=(null==i?void 0:i.baggageClaim)?null==i?void 0:i.baggageClaim:"-";return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("h1",{className:"min-h-[66px] text-lg desk:text-2xl text-base/1 text-[#333333] font-bold",children:n.lblTitle[r]}),(0,w.jsx)("h2",{className:"",children:a("flights.baggageCarousel")+" "+l})]})},c7=e=>{let{content:t,language:n}=e;return(0,w.jsx)(w.Fragment,{children:t.txbSubtitle?(0,w.jsx)("div",{dangerouslySetInnerHTML:{__html:l1().sanitize(null==t?void 0:t.txbSubtitle[n],{ADD_TAGS:["iframe"]})}}):(0,w.jsx)(w.Fragment,{})})},c9=e=>{var t,n,r,a,i,l,o;let{data:s,language:c}=e,{i18n:u,t:d}=(0,D.$G)(),p=c||u.language,[f]=(0,T.dD)(),h=(0,P.sJ)(L.OJ),[m,v]=(0,C.useState)(),[g,x]=(0,C.useState)(!1),b=()=>{let e=new URLSearchParams({airlineIata:h||"",airportReferenceIata:"mxp"});fetch("https://apiextra.seamilano.eu/ols-flights/v1"+"/".concat(p,"/anagraphic/airlines/lists").concat("?"+e.toString()),{headers:{keyId:"6bc034ea-ae66-40ce-891e-3dccf63cb2eb"}}).then(e=>e.json()).then(e=>v(e.data))},y=e=>(0,w.jsx)(w.Fragment,{children:null==e?void 0:e.map((e,t)=>{if("mappe"==e.enuTypeStep)return x(!0),(0,w.jsx)(c7,{content:e,language:p},e.id);let n=(0,w.jsx)(w.Fragment,{children:k(e)});return(0,w.jsx)("div",{className:"desk:ml-8 desk:p-2 ".concat(0===t?"mt-10":""),children:(0,w.jsx)(cJ,{isMobile:f,content:n,isActive:!0,step:t+1,bgColor:"black",isTracking:!0},e.id)},t)})}),k=e=>{switch(e.enuTypeStep){case"solo-editoriale":return(0,w.jsx)(cQ,{language:p,isMobile:f,content:e});case"arrivi_orario-schedulato-effettivo":return(0,w.jsx)(c0,{language:p,isMobile:f,content:e});case"arrivi_controllo_passaporti":return(0,w.jsx)(c1,{language:p,isMobile:f,content:e});case"arrivi_Nastro bagagli":return(0,w.jsx)(c8,{language:p,isMobile:f,content:e});case"partenze_check-in":return(0,w.jsx)(c2,{language:p,isMobile:f,content:e});case"partenze_imbarco-orario":return(0,w.jsx)(c6,{language:p,isMobile:f,content:e});case"partenze_orario-schedulato-effettivo":return(0,w.jsx)(c5,{language:p,isMobile:f,content:e});case"partenze_orario-di-arrivo":return(0,w.jsx)(c4,{language:p,isMobile:f,content:e})}},j=(0,C.useMemo)(()=>{var e,t;return(null==s?void 0:s.data)&&(null==s?void 0:null===(t=s.data)||void 0===t?void 0:null===(e=t.lstTab)||void 0===e?void 0:e.map((e,t)=>({id:e.id,label:e.lblTab[p],content:(0,w.jsx)("div",{children:y(e.lslStep)}),bgColor:"white",margin:"32",height:"0",border:""})))||[]},[s]);return(0,C.useEffect)(()=>{h&&b()},[h]),(0,w.jsxs)("div",{className:"".concat(m&&(null===(t=m[0])||void 0===t?void 0:t.websiteUrl)&&!f?"flex max-w-cont-2 mx-auto px-6":"max-w-cont-2 mx-auto my-5 px-6 py-0"),children:[(0,w.jsxs)("div",{className:"".concat(!m||(null===(n=m[0])||void 0===n?void 0:n.websiteUrl)?"desk:max-w-[100%]":"max-w-cont-2 mx-auto my-5 px-6 py-0"),children:[(0,w.jsx)("h1",{className:"".concat(!m||(null===(r=m[0])||void 0===r?void 0:r.websiteUrl)?"":"desk:ml-32"," mb-3 text-2xl desk:text-3xl text-black font-bold"),children:null==s?void 0:null===(a=s.data)||void 0===a?void 0:a.lblTitleModule[p]}),(0,w.jsx)(oC,{tabs:j,defaultTabId:null==s?void 0:null===(i=s.data)||void 0===i?void 0:i.lstTab[0].id})]}),m&&(null===(l=m[0])||void 0===l?void 0:l.websiteUrl)?(0,w.jsx)("div",{className:"flex justify-end w-full mt-[70px] desk:mt-0",children:(0,w.jsxs)("div",{className:"desk:w-[365px] w-full h-[62px] flex rounded-3xl",children:[(0,w.jsxs)("div",{className:"flex flex-col w-[303px] bg-lightgrey rounded-tl-3xl rounded-bl-3xl py-3 pl-5 font-primary",children:[(0,w.jsx)("h2",{className:"font-bold",children:d("airlines.contactAirline")}),(0,w.jsxs)("h3",{className:"text-xs",children:[d("airlines.contact")+" "+(null===(o=m[0])||void 0===o?void 0:o.airlineLabel)," "]})]}),(0,w.jsx)("a",{className:"w-[62px] bg-black rounded-tr-3xl rounded-br-3xl flex justify-center items-center",href:m[0].websiteUrl,target:"_blank",children:(0,w.jsx)(S.Z,{iconName:"arrow",color:"white",className:"h-[30px]"})})]})}):null]})};class ue extends C.Component{static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.log("ERROR BOUNDARY LOG: ",{error:e,errorInfo:t})}render(){return this.state.hasError?(0,w.jsxs)("div",{children:[(0,w.jsx)("h2",{children:"Oops, there is an error!"}),this.props.customMessage?(0,w.jsx)("div",{children:this.props.customMessage}):null,this.props.targetUrl?(0,w.jsxs)("div",{children:["Module target url: ",this.props.targetUrl]}):null,(0,w.jsx)("button",{type:"button",onClick:()=>this.setState({hasError:!1}),children:"Try again?"})]}):this.props.children}constructor(e){super(e),this.state={hasError:!1}}}var ut=ue,un=e=>{let{moduleData:t,excludes:n,lang:r}=e,a=(e,t,n)=>{switch(e){case"m01":return(0,w.jsx)(sn,{language:r,data:n},t);case"m02":return(0,w.jsx)(o7,{language:r,targetUrl:"",data:n},t);case"m03":return(0,w.jsx)(ct,{language:r,targetUrl:"",data:n},t);case"m04":return(0,w.jsx)(cA,{language:r,data:n},t);case"m05":return(0,w.jsx)(sk,{language:r,data:n,targetUrl:""},t);case"m06":return(0,w.jsx)(cv,{language:r,data:n,hidden:!1},t);case"m07":return(0,w.jsx)(cu,{language:r,data:n},t);case"m08":return(0,w.jsx)(sM,{language:r,data:n,hidden:!1},t);case"m09":return(0,w.jsx)(sr,{language:r,data:n},t);case"m10":return(0,w.jsx)(so,{language:r,data:n,hidden:!1},t);case"m11":return(0,w.jsx)(sc,{language:r,data:n},t);case"m12":return(0,w.jsx)(cK,{language:r,data:n,hidden:!1},t);case"m13":return(0,w.jsx)(s_,{language:r,data:n},t);case"m14":return(0,w.jsx)(c9,{language:r,data:n},t);case"m15":return(0,w.jsx)(uQ,{language:r,data:n},t);case"m16":return(0,w.jsx)(cf,{language:r,data:n},t);case"m17":return(0,w.jsx)(sj,{language:r,data:n,hidden:!1},t);case"m18":return(0,w.jsx)(cs,{language:r,data:n,hidden:!1},t);case"m19":return(0,w.jsx)(u9,{language:r,data:n},t);case"m20":return(0,w.jsx)(cX,{language:r,data:n},t);default:return null}};return(0,w.jsx)(w.Fragment,{children:null==t?void 0:t.filter(e=>!(null==n?void 0:n.includes(e.linkedcontenttype))).map(e=>(0,w.jsx)(ut,{customMessage:"Module of content type: "+e.linkedcontenttype+" is broken",children:a(e.linkedcontenttype,e.id,e.moduleData)},e.id))})},ur=e=>{var t,n;let{navItems:r,language:a,categoryData:i}=e,{t:l,i18n:o}=(0,D.$G)(),s=a||o.language,c=(0,P.Zl)(I.k),u=(0,P.sJ)(I.k),[d,p]=(0,C.useState)(388),f=(0,O.useRouter)(),h=r.find(e=>e.metainfo.id===u),m=(0,C.useMemo)(()=>(null==h?void 0:h.ti)?h.ti.filter(e=>"grpSecondLevelDirect"===e.grpTypeMenu&&!e.flgHideFromMenu).map(e=>(0,w.jsx)("a",{onClick:()=>c(null),"aria-current":f.pathname===(0,E.Z)(e,s)?"page":void 0,href:(0,E.Z)(e,s),children:(0,w.jsx)("div",{className:"cursor-pointer font-bold",children:e.labelMultilanguage[s]})},e.metainfo.id)):null,[r,u,s]),v=(0,C.useMemo)(()=>(null==h?void 0:h.ti)?h.ti.filter(e=>"grpSecondLevelContainer"===e.grpTypeMenu).map(e=>{var t;return(0,w.jsxs)("nav",{"aria-label":e.labelMultilanguage[s],className:"flex flex-col gap-4",children:[(0,w.jsx)("h2",{className:"sr-only",children:e.labelMultilanguage[s]}),(0,w.jsx)("div",{className:"colTitle text-mediumgrey",children:e.labelMultilanguage[s]}),null===(t=e.ti)||void 0===t?void 0:t.map(e=>!e.flgHideFromMenu&&(0,w.jsx)("a",{href:(0,E.Z)(e,s),onClick:()=>c(null),children:(0,w.jsx)("div",{children:e.labelMultilanguage[s]})},e.metainfo.id))]},e.metainfo.id)}):null,[r,u,s]),g=(0,C.useMemo)(()=>{var e,t;if(!(null==h?void 0:h.ti))return null;let n=h.ti.find(e=>"grpSecondLevelBanner"===e.grpTypeMenu);if(!n)return null;let r=(null===(e=n.upiImageDesktop)||void 0===e?void 0:e.mediaserverpath)&&(null===(t=n.upiImageDesktop)||void 0===t?void 0:t.resourcename)?"".concat(n.upiImageDesktop.mediaserverpath,"/").concat(n.upiImageDesktop.resourcename):"";return(0,E.Z)(n,s)?(0,w.jsx)("a",{href:(0,E.Z)(n,s),target:(null==n?void 0:n.flgTarget)?"_blank":"_self",children:(0,w.jsx)(sh,{isMenu:!0,txtColor:(0,l$.Cw)("text",n.enuBackgroundLabel),isLaunch:!0,textSize:"sm",imageUrl:r,title:(null==n?void 0:n.labelMultilanguage[s])||"",onClick:()=>{},isSquare:!0})}):null},[r,u,s]);return(0,w.jsxs)("div",{style:{transition:"height .6s",height:u&&d&&999!==u?d+32:0},className:"text-black flex ".concat(u&&d&&999!==u?"py-4 px-10":""," justify-between overflow-hidden absolute w-full bg-white z-50 pcpopmenu"),children:[(null==m?void 0:m.length)?(0,w.jsxs)("nav",{id:"sideNav",className:"flex flex-col gap-5 w-auto min-w-[285px] max-h-full h-fit border-r-2 border-r-lightgrey","aria-label":"Percorso di navigazione: sezione ".concat(null==h?void 0:null===(t=h.labelMultilanguage)||void 0===t?void 0:t[s]),children:[(0,w.jsx)("h2",{className:"sr-only",children:"Sei nella sezione: ".concat(null==h?void 0:null===(n=h.labelMultilanguage)||void 0===n?void 0:n[s])}),m]}):null,(0,w.jsx)("div",{className:"flex justify-start flex-auto px-8 gap-14",children:v}),g&&(0,w.jsx)("div",{className:"aspect-square h-60 overflow-hidden",children:g})]})},ua=n(3454);let ui=e=>{let{sliderLength:t=0,lang:n="it"}=e,r=(0,lK.oc)();return(0,w.jsxs)("div",{className:"hidden desk:flex absolute text-[#FFFFFF] right-0 pr-9 pl-9 py-3 z-10 w-fit h-fit gap-3 items-center select-none bg-black",children:[(0,w.jsx)("div",{onClick:()=>r.slidePrev(),children:(0,w.jsx)(S.Z,{iconName:"arrow_alert",color:"white",className:"fill-white h-4 rotate-180 cursor-pointer"})}),(0,w.jsxs)("p",{className:"font-bold",children:[r.realIndex+1," ","it"===n?"di":"of"," ",t]}),(0,w.jsx)("div",{onClick:()=>r.slideNext(),children:(0,w.jsx)(S.Z,{iconName:"arrow_alert",color:"white",className:"fill-white h-4 cursor-pointer"})})]})};var ul=e=>{let{targetUrl:t,language:n}=e,r=(0,T.b7)(t),{i18n:a}=(0,D.$G)(),i=n||a.language,l=(0,C.useRef)(null),[o]=(0,T.dD)(),s=ua.env.NEXT_PUBLIC_CAROUSEL_ALERT_MILLISECONDS&&!isNaN(Number(ua.env.NEXT_PUBLIC_CAROUSEL_ALERT_MILLISECONDS))?Number(ua.env.NEXT_PUBLIC_CAROUSEL_ALERT_MILLISECONDS):3e3,[c,u]=(0,C.useState)(0),[d,p]=(0,C.useState)(!1),f=()=>{var e;p(!d),null==l||null===(e=l.current)||void 0===e||e.swiper.autoplay.stop()},h=e=>new Date(e.dteStart+" "+e.lblStartTime).getTime()<=new Date().getTime()&&new Date(e.dteEnd+" "+e.lblEndTime).getTime()>=new Date().getTime(),m=(0,C.useMemo)(()=>{var e;return null==r?void 0:null===(e=r.data)||void 0===e?void 0:e.filter(e=>h(e)).map((e,t)=>{var n;let r=e.metainfo.id,a=e.flgSkillIcon?"block":"hidden",l=e.flgTarget?"_blanck":"_self",s=e.lblTitle[i];e.lblLink[i];let c=(0,l$.Cw)("border",e.enuRowColor),u=e.txbSubtitle[i],p=e.lblLabelCta[i],h=(null===(n=e.xtaxAirports)||void 0===n?void 0:n.ti.filter(e=>"Malpensa"===e.label).length)>0;if(" "!=s&&""!=s&&h)return(0,w.jsxs)(lK.o5,{className:"bg-[#000000] text-[#FFFFFF] select-none pb-2",children:[(0,w.jsxs)("div",{className:"flex gap-3 w-full px-6 my-3 max-w-cont-1 mx-auto",children:[(0,w.jsx)("div",{children:(0,w.jsx)(S.Z,{iconName:"info",className:"fill-[#FFFFFF] w-5 ".concat(a)})}),(0,w.jsxs)("div",{className:"flex flex-col w-full",children:[(0,w.jsxs)("div",{className:"flex gap-3 items-center justify-start w-[90%] desk:w-[60%]",children:[(0,w.jsx)("p",{className:"text-[#FFFFFF] font-bold text-base overflow-hidden desk:truncate ",children:s}),(0,w.jsx)("div",{className:"".concat(u?"block":"hidden"," ").concat(o&&"absolute top-1 right-2 p-4"),onClick:f,children:(0,w.jsx)(S.Z,{iconName:"arrow_alert",color:"white",className:"fill-[#FFFFFF] cursor-pointer transition-transform origin-center duration-300 ".concat(d?"rotate-90":"rotate-0"," w-2")})})]}),(0,w.jsxs)("div",{className:"text-[#FFFFFF] font-normal text-base transition-all duration-300 ".concat(d?"mt-5 my-7 h-auto":"h-0"," w-[90%]"),children:[(0,w.jsxs)("p",{className:"".concat(d?"block":"hidden"," whitespace-normal"),children:[u,(null==u?void 0:u.length)>1580?"...":""]}),p&&""!==p.trim()&&(0,w.jsx)("a",{className:"".concat(d?"block":"hidden"," pt-4 w-fit underline underline-offset-2 hover:no-underline"),href:(0,l$.Bi)(e,i),target:l,children:p})]})]})]}),(0,w.jsx)("div",{className:"border-4 ".concat(c," absolute bottom-0 w-full")})]},r)})},[r,i,d]);if(!r)return(0,w.jsx)("div",{className:"box-alert sticky top-0 z-50",children:(0,w.jsxs)("div",{className:"bg-[#000000] select-none pb-2 relative",children:[(0,w.jsx)("div",{className:"flex gap-3 w-full px-6 my-3 max-w-cont-1 mx-auto items-center",style:{minHeight:"24px"}}),(0,w.jsx)("div",{className:"border-4 border-[#E20129] absolute bottom-0 w-full"})]})});let v=(null==m?void 0:m.filter(e=>void 0!==e))||[];return 0===v.length?null:(0,w.jsx)("div",{className:"box-alert",children:(0,w.jsxs)(lK.tq,{ref:l,spaceBetween:0,slidesPerView:1,onRealIndexChange:e=>u(e.realIndex),loop:!0,autoplay:{delay:s,disableOnInteraction:!0},onSlideChange:()=>p(!1),modules:[lX.W_,lX.pt],className:"flex sticky top-0 z-50",children:[m,v.length>1?(0,w.jsx)(ui,{sliderLength:v.length,lang:i}):null]})})};let uo=e=>{let{text:t,iconName:n="close",onClick:r=()=>{}}=e;return(0,w.jsxs)("div",{onClick:r,className:"flex text-gray-800 items-center cursor-pointer",children:[(0,w.jsx)("div",{className:"text-sm",children:t}),(0,w.jsx)("div",{className:"h-[24px] w-[24px] mt-[2px]",children:(0,w.jsx)(S.Z,{className:"m-auto w-[24px] h-[24px] text-gray-700",iconName:n})})]})};var us=()=>{let{i18n:e,t}=(0,D.$G)(),n=e.language,[r]=(0,T.dD)(),[a,i]=(0,P.FV)(L.cX),l=(0,P.Zl)(L.bM),o=(0,P.Zl)(L.OV),s="it"===n?"%27%20AND%20_fulltext+like+%27":"%27%20AND%20_fulltext.en+like+%27",c=()=>{o(e=>({...e,callInProgress:!0,searchStarted:!0})),fetch("".concat("https://resourcesols3cms.seamilano.eu","/rest/v1/SEA-LinMxp/contents/abstractPage?query=xtaxAirports.ti.label=%27").concat("Malpensa").concat(s).concat(a,"%27")).then(e=>e.json()).then(e=>{o(t=>({...t,resultListInfo:e.resultInfo})),l(e.data.filter(e=>e.lblSeoTitle[n]))}).finally(()=>{o(e=>({...e,callInProgress:!1}))}).catch(e=>{o(e=>({...e,resultListInfo:null,callInProgress:!1})),console.error("[GlobalSearchBar] Error ->",e)})},u=()=>{i(""),o(e=>({...e,resultListInfo:null,searchStarted:!1})),l([])};return(0,w.jsxs)("div",{className:"".concat(r?"":"gap-2"," flex"),children:[(0,w.jsx)("div",{className:"searchBar desk:h-fit bg-gray-200 rounded-xl rounded-r-none desk:rounded-r-xl w-[85%] desk:w-[80%] hidden",children:(0,w.jsx)(lU,{className:"leading-7 text-gray-900",placeholder:t("globalSearch.search").toString(),onKeyDown:e=>"enter"===e.key.toLowerCase()?c():null,onChange:e=>{var t,n;i(null===(t=e.target)||void 0===t?void 0:t.value),(null===(n=e.target)||void 0===n?void 0:n.value)===""&&u()},generalBgColor:"#E6E6E6",inputBgColor:"#E6E6E6",postfix:a&&a.length?(0,w.jsx)(uo,{text:t("globalSearch.delete"),onClick:u}):null,value:a,prefix:r?null:(0,w.jsx)(S.Z,{iconName:"search"})})}),(0,w.jsx)("div",{className:"desk:w-[20%] w-[15%]",children:r?(0,w.jsx)("div",{className:"flex rounded-xl rounded-l-none h-full justify-center items-center ".concat(a?"bg-gray-900 text-white cursor-pointer":"bg-gray-400 text-white cursor-default pointer-events-none"),onClick:a?c:()=>{},children:(0,w.jsx)(S.Z,{className:"w-[20px]",iconName:"search",color:"white"})}):(0,w.jsx)(lV,{rounded:"rounded-r-full desk:rounded-full desk:h-[3rem] items-center",className:"m-auto desk:px-8 ".concat(a?"bg-black text-white hover:bg-lightblue":"bg-gray-300 text-gray-800 cursor-default pointer-events-none"),onClick:a?c:()=>{},text:t("globalSearch.searchBtn")})})]})};let uc=e=>{let{searchResultList:t}=e;return(0,w.jsx)("div",{className:"flex flex-col gap-[40px] py-6",children:t.map(e=>(0,w.jsx)(uu,{resultItem:e},e.metainfo.id))})},uu=e=>{let{resultItem:t,...n}=e,{i18n:r,t:a}=(0,D.$G)(),i=r.language,l=(0,P.sJ)(L.cX);return(0,w.jsxs)("div",{...n,className:"w-full flex flex-col gap-4 border-b pb-10 border-b-darkgrey",children:[(0,w.jsx)("div",{className:"text-[24px]",children:t.lblSeoTitle[i]}),(0,w.jsx)("div",{dangerouslySetInnerHTML:{__html:function(){let e=RegExp(l,"gi");return null==t?void 0:t.lblSeoDescription[i].replace(e,"<strong>$&</strong>")}()}}),(0,w.jsx)("a",{target:"_blank",href:t.lblUrlPath[i],children:(0,w.jsx)("div",{className:"group",children:(0,w.jsxs)("div",{className:"flex text-normal font-bold items-center gap-2 group-hover:text-lightblue ",children:[a("globalSearch.visitPage"),(0,w.jsx)(S.Z,{iconName:"chevron-r-search",className:"stroke-black group-hover:stroke-[lightblue]"})]})})})]})};var ud=()=>{let e=(0,P.sJ)(L.bM),t=(0,P.sJ)(L.cX),n=(0,P.sJ)(L.OV),{i18n:r,t:a}=(0,D.$G)(),i=(0,C.useMemo)(()=>t&&n.searchStarted?n.callInProgress?(0,w.jsx)(lW.Z,{className:"m-auto my-4"}):e.length?(0,w.jsxs)("div",{className:"flex flex-col",children:[(0,w.jsxs)("div",{className:"my-[2.8rem] text-[24px]",children:[a("globalSearch.all")," ",e.length," ",a("globalSearch.resultsFor")," '",(0,w.jsx)("b",{children:t}),"'"]}),(0,w.jsx)(uc,{searchResultList:e})]}):(0,w.jsxs)("div",{className:"text-lg font-bold text-mediumgrey mt-6",children:[a("globalSearch.noResults")," '",(0,w.jsx)("b",{children:t}),"'"]}):null,[t,e,n,r.language]);return(0,w.jsx)("div",{className:"relative desk:px-0 px-4",children:i})},up=()=>{let[e]=(0,T.dD)();return(0,w.jsx)("div",{className:"".concat(e?"":"z-40 absolute top-[4rem] max-h-[550px] bg-white shadow-2xl overflow-y-auto w-full"),children:(0,w.jsxs)("div",{className:"".concat(e?"":"mx-auto w-[1067px] py-[86px]"," main-content flex flex-col"),children:[(0,w.jsx)("div",{className:"search-bar ",children:(0,w.jsx)(us,{})}),(0,w.jsx)(ud,{}),(0,w.jsx)("div",{className:"popular-search-list"})]})})};let uf=e=>!(null==e?void 0:e.flgHideFromMenu);var uh=e=>{let{hostPageData:t=null,categoryData:n,menuItems:r,imageUrl:a,language:i}=e,[l,o]=(0,P.FV)(L.OO),[s]=(0,T.dD)(),[c,u]=(0,C.useState)(null),{t:d,i18n:p}=(0,D.$G)(),f=i||p.language,h=(0,O.useRouter)(),m=(0,P.Zl)(I.k),v=e=>{u(e===c?null:e)},g=(0,C.useMemo)(()=>{var e,t,n,a,i,l;let o=r.find(e=>e.metainfo.id===c);if(!(null==o?void 0:o.ti))return null;let u=o.ti.find(e=>"grpSecondLevelBanner"===e.grpTypeMenu),d=s?(null==u?void 0:null===(e=u.upiImageMobile)||void 0===e?void 0:e.mediaserverpath)&&(null==u?void 0:null===(t=u.upiImageMobile)||void 0===t?void 0:t.resourcename)?"".concat(u.upiImageMobile.mediaserverpath,"/").concat(u.upiImageMobile.resourcename):"":(null==u?void 0:null===(n=u.upiImageDesktop)||void 0===n?void 0:n.mediaserverpath)&&(null==u?void 0:null===(a=u.upiImageDesktop)||void 0===a?void 0:a.resourcename)?"".concat(u.upiImageDesktop.mediaserverpath,"/").concat(u.upiImageDesktop.resourcename):"";return d&&(null==u?void 0:null===(l=u.labelMultilanguage)||void 0===l?void 0:null===(i=l[f])||void 0===i?void 0:i.trim())?(0,w.jsx)(sh,{txtColor:(null==u?void 0:u.enuBackgroundLabel)==="bianco"?"text-white":"",isLaunch:!0,textSize:"sm",imageUrl:d,title:(null==u?void 0:u.labelMultilanguage[f])||"",onClick:()=>{var e;return h.push((null==u?void 0:null===(e=u.lblLink)||void 0===e?void 0:e[f])||"/")}}):null},[r,c,f,s,h]),x=(0,C.useMemo)(()=>(r||[]).map(e=>(0,w.jsxs)(C.Fragment,{children:[(0,w.jsxs)("div",{className:"px-8",children:[(0,w.jsx)("li",{className:"".concat(null!==c&&c!==e.metainfo.id?"hidden":""),children:(0,w.jsxs)("button",{className:"flex ".concat(null!==c?"flex-row-reverse justify-end":""," items-center gap-4 w-full py-2 focus:outline-none"),onClick:()=>v(e.metainfo.id),children:[(0,w.jsx)("span",{className:"font-semibold text-3xl",children:e.labelMultilanguage[f]}),(0,w.jsx)(S.Z,{color:"",iconName:"arrow",className:"".concat(null!==c?"rotate-180 m-0":""," ml-2 h-3 w-3")})]})}),c===e.metainfo.id&&e.ti&&(0,w.jsx)("ul",{className:"mt-2",children:e.ti.filter(e=>"grpSecondLevelDirect"===e.grpTypeMenu).filter(uf).map((e,t,n)=>(0,w.jsx)("li",{className:"".concat(t!==n.length-1?"border-b-2 border-lightgrey":""," pb-2"),children:(0,w.jsx)("a",{className:"flex items-center w-full py-2 focus:outline-none",onClick:()=>{o(!1),u(null)},href:(0,E.Z)(e,f),children:(0,w.jsx)("span",{className:"font-bold",children:e.labelMultilanguage[f]})})},e.metainfo.id))})]}),c===e.metainfo.id&&e.ti?(0,w.jsxs)("div",{className:"mt-6",children:["Categorie"===e.label?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"border-b-2 border-lightgrey py-4 px-8 bg-lightgrey",children:(0,w.jsx)("span",{className:"text-mediumgrey",children:d("menulabels.labelBoutique")})}),(0,w.jsx)("div",{className:"px-8",children:(0,w.jsx)("div",{className:"mb-8",children:null==n?void 0:n.map((e,t)=>(0,w.jsx)("a",{onClick:()=>m(null),target:"_blank",href:"https://milanomalpensaboutique.com"+e.custom_url.url,children:(0,w.jsx)("div",{className:"cursor-pointer pb-3 mb-3 mt-3 border-b-2 border-lightgrey",children:e.name})},t))})})]}):null,e.ti.filter(e=>"grpSecondLevelContainer"===e.grpTypeMenu).map((e,t,n)=>{let r=(e.ti||[]).filter(uf);return(0,w.jsxs)("div",{className:"thirdLevelWrapper",children:[(0,w.jsx)("div",{className:"".concat(t!==n.length-1?"border-b-2 border-lightgrey":""," py-4 px-8 bg-lightgrey"),children:(0,w.jsx)("span",{className:"text-mediumgrey",children:e.labelMultilanguage[f]})}),r.map((e,t)=>(0,w.jsx)("a",{onClick:()=>m(null),href:(0,E.Z)(e,f),children:(0,w.jsxs)("div",{className:"py-4 px-8",children:[(0,w.jsx)("div",{className:"mb-4",children:e.labelMultilanguage[f]}),t!==r.length-1?(0,w.jsx)("hr",{}):null]})},e.metainfo.id))]},e.metainfo.id)})]}):null]},e.metainfo.id)),[r,c,f,m,o,d]);return(0,w.jsx)("div",{className:"text-black fixed top-0 left-0 w-full h-full bg-gray-800 bg-opacity-50 z-50 transform duration-500 ease-in-out ".concat(l?"translate-x-0":"-translate-x-full"),children:(0,w.jsxs)("div",{className:"relative overflow-y-auto h-full max-w-full w-full bg-white shadow-lg",children:[(0,w.jsxs)("div",{className:"flex border-lightgrey border-b-2 py-4 px-3",children:[(0,w.jsx)("div",{className:"logoContainer ml-auto w-6/12 relative",style:{height:40},children:(null==a?void 0:a.path)?(0,w.jsx)(_(),{src:a.path,alt:a.alt||"Logo",fill:!0,sizes:"(max-width: 768px) 60vw, 20vw",className:"object-contain",unoptimized:!0}):(0,w.jsx)("div",{className:"w-full h-full bg-gray-300 rounded","aria-hidden":"true"})}),(0,w.jsx)("div",{className:"w-3/12 flex justify-end",children:(0,w.jsx)("button",{className:"text-gray-600 focus:outline-none",onClick:()=>{o(!l),u(null)},"aria-label":"Chiudi la barra di ricerca",children:(0,w.jsx)(S.Z,{iconName:"close"})})})]}),(0,w.jsx)("div",{className:"p-6 hidden",children:(0,w.jsx)(up,{})}),(0,w.jsxs)("ul",{className:"py-6 border-lightgrey border-y-2",children:[x,null!==c?(0,w.jsx)("div",{className:"aspect-[320/120] flex-1 mx-8 my-4",children:g}):null]}),c||0===c?null:(0,w.jsx)("div",{className:"px-6 py-4",children:(0,w.jsx)(lz,{hostPageData:t})})]})})},um=e=>{let{language:t,isMobile:n,imageUrl:r}=e,[a,i]=(0,P.FV)(L.Qw);return(0,w.jsx)("div",{className:"fixed top-0 left-0 w-full h-full bg-gray-800 bg-opacity-50 z-50 transform duration-500 ease-in-out ".concat(a&&n?"translate-y-0":"-translate-y-full"),children:(0,w.jsx)("div",{className:"relative overflow-y-auto h-full max-w-full w-full bg-white ".concat(a&&n?"shadow-lg":""),children:(0,w.jsxs)("div",{className:"flex flex-col py-4 px-3",children:[(0,w.jsxs)("div",{className:"flex border-lightgrey border-b-2",children:[(0,w.jsx)("div",{className:"logoContainer ml-auto w-6/12 relative",style:{height:40},children:(null==r?void 0:r.path)?(0,w.jsx)(_(),{src:r.path,alt:r.alt||"Logo",fill:!0,sizes:"(max-width: 768px) 60vw, 20vw",className:"object-contain",unoptimized:!0}):(0,w.jsx)("div",{className:"w-full h-full bg-gray-300 rounded","aria-hidden":"true"})}),(0,w.jsx)("div",{className:"w-3/12 flex justify-end",children:(0,w.jsx)("button",{className:"text-gray-600 focus:outline-none","aria-label":"Chiudi la barra di ricerca",onClick:()=>{i(!a)},children:(0,w.jsx)(S.Z,{iconName:"close"})})})]}),(0,w.jsx)("div",{children:(0,w.jsx)(up,{})})]})})})};(s=g||(g={})).viaggio_natura="nature",s.viaggio_cultura="culture",s.viaggio_mare="sea",s.viaggio_citta="city";var uv=e=>{let{cards:t,filterTitle:n,filters:r,title:a,onClickFilter:i,currentySettedFilter:l}=e,[o]=(0,T.dD)(),s=(0,P.sJ)(L.wy),{t:c}=(0,D.$G)();return(0,w.jsxs)("div",{className:"py-16",children:[(0,w.jsxs)("div",{className:"filterWrapper gap-10 flex items-center mb-4 ".concat(o&&"justify-center"),children:[!o&&(0,w.jsx)("div",{className:"filterTitle text-xl font-bold",children:n}),(0,w.jsx)("div",{className:"filterContainer flex desk:gap-4 gap-8",children:r.map((e,t)=>{var n,r;let a=(null===(n=e.upiLogoDesktop)||void 0===n?void 0:n.mediaserverpath)&&(null===(r=e.upiLogoDesktop)||void 0===r?void 0:r.resourcename)?"".concat(e.upiLogoDesktop.mediaserverpath,"/").concat(e.upiLogoDesktop.resourcename):"",o=l&&l===e.lblCardCategory;return(0,w.jsxs)("div",{className:"filterItem flex flex-col justify-center items-center cursor-pointer relative",children:[o?(0,w.jsx)("div",{onClick:()=>{i(null)},className:"absolute cursor-pointer h-6 w-6 bg-black -top-2 -right-2 flex justify-center items-center rounded-full text-white z-10",children:(0,w.jsx)(S.Z,{iconName:"close",color:"white"})}):null,(0,w.jsxs)("div",{onClick:()=>i(e.lblCardCategory),className:"gap-0.5 flex flex-col justify-center items-center",children:[(0,w.jsx)("div",{className:"rounded-2xl p-2 ".concat(o?"bg-lightblue":"bg-lightgrey"," h-[50px] w-[50px] flex items-center justify-center"),children:(0,w.jsx)("div",{className:"relative",style:{width:34,height:34},children:a?(0,w.jsx)(_(),{src:a,alt:"","aria-hidden":"true",fill:!0,sizes:"34px",className:"object-contain ".concat(o?"brightness-[3]":""),unoptimized:!0}):(0,w.jsx)("div",{"aria-hidden":"true",className:"w-full h-full bg-gray-200 rounded"})})}),(0,w.jsx)("div",{children:c("travel_inspiration.".concat(g[e.lblCardCategory]))})]})]},t)})})]}),(0,w.jsxs)("div",{className:"cardListWrapper flex flex-col gap-4",children:[(0,w.jsx)("div",{className:"font-bold text-xl",children:a&&a[s]?a[s]:""}),(0,w.jsx)("div",{className:"cardList grid desk:grid-cols-4 desk:gap-x-4 gap-5",children:t})]})]})};let ug={it:"RITARDO",en:"DELAY"};var ux=function(e,t){if(null==e.statusPubblicDescription){let n=new Date(e.estimatedTime),r=new Date(e.scheduledTime);return n.getTime()-r.getTime()>9e5?ug[t]:""}return e.statusPubblicDescription},ub=n(2459);let uy=e=>{let{flightItem:t}=e,n=t.movementType===l2.UW.D,r=n?t.scheduledTime:t.scheduledArrivalTime,a=n?t.estimatedTime:t.estimatedArrivalTime,i=(0,l$.mr)(new Date(r)),l=a?(0,l$.mr)(new Date(a)):null;return(0,w.jsxs)("div",{className:"timeContainer flex gap-2 items-center",children:[(0,w.jsx)("div",{className:"time scheduledTime "+(l&&i!==l?"line-through text-lg":"font-bold desk:text-base text-sm"),children:i||"-"}),l&&l!==i?(0,w.jsx)("div",{className:"time estimatedTime desk:text-lg text-base font-bold",children:l}):null]})},uw=e=>{let{lang:t,flightItem:n,bgChip:r="bg-lightblue",crysisLbl:a}=e;return ux(n,t)?(0,w.jsx)("div",{className:"".concat(r," px-2 py-1 rounded-lg w-fit mr-auto whitespace-nowrap"),children:(0,w.jsx)("div",{className:"font-bold text-sm text-white",children:a||ux(n,t)||null})}):null};var uk=e=>{var t,n,r,a;let i;let{flightItem:l,crysisInfo:o}=e,{i18n:s}=(0,D.$G)(),c=s.language,{t:u}=(0,D.$G)(),[d]=(0,T.dD)();"A"==l.movementType?l.routing[0]:l.routing[l.routing.length-1];let p="A"==l.movementType?l.routing[1]:l.routing.length>2?l.routing[1]:l.routing[0],f=null===(t=l.routing)||void 0===t?void 0:t.find(e=>"origin"===e.airportRoutingType),h=null===(n=l.routing)||void 0===n?void 0:n.find(e=>"via"===e.airportRoutingType),m=null===(r=l.routing)||void 0===r?void 0:r.find(e=>"destination"===e.airportRoutingType),v="STOP_OVER"===l.searchAirportRole;null===(a=l.routing)||void 0===a||a.find(e=>"MXP"===e.airportIata);let g=(()=>{var e,t;if(l)return v&&l.movementType===l2.UW.A?null!==(e=null!=h?h:f)&&void 0!==e?e:m:null!==(t=null!=f?f:h)&&void 0!==t?t:m})(),x=(()=>{var e,t;if(l)return v&&l.movementType===l2.UW.D?null!==(e=null!=h?h:m)&&void 0!==e?e:f:null!==(t=null!=m?m:h)&&void 0!==t?t:f})(),b=()=>window.location.href=l2.Uv[l.movementType][c]+"?flightId="+l.flightId+"&flightNumber="+l.flightNumber.replace(" ","")+"&searchAirportRole="+l.searchAirportRole+"&airportDestinationDescription="+(l.movementType===l2.UW.D?l.routing[l.routing.length-1]:"Malpensa");return(0,w.jsxs)("div",{className:"text-black group desk:p-8 p-4 mx-6 rounded-2xl flex flex-col desk:flex-row desk:items-center shadow-xl desk:hover:shadow-2xl desk:hover:scale-[1.01] duration-[600ms]",children:[d&&(0,w.jsxs)("div",{className:"flex justify-between items-center mb-4",children:[(0,w.jsx)("div",{className:"desk:w-[20%]",children:(null==o?void 0:o.flgHideStatus)?null:(null==o?void 0:o.lblLabelStatus[c])||(null==l?void 0:l.statusPubblicDescription)?(0,w.jsx)(uw,{lang:c,flightItem:l,bgChip:(null==o?void 0:o.flgColorStatus)?(0,l$.Cw)("bg",null==o?void 0:o.enuColorStatus):void 0,crysisLbl:(null==o?void 0:o.lblLabelStatus)&&(null==o?void 0:o.lblLabelStatus[c])?null==o?void 0:o.lblLabelStatus[c].toLocaleUpperCase():void 0}):null}),(0,w.jsx)("div",{className:"desk:w-[13.3%] flex justify-end",children:(0,w.jsx)("div",{onClick:()=>b(),className:"flex gap-1 items-center cursor-pointer",children:(0,w.jsx)("div",{className:"w-2",children:(0,w.jsx)(S.Z,{color:"",iconName:"arrow",className:"h-4"})})})})]}),(0,w.jsxs)("div",{className:"desk:w-[25%] flex flex-col mb-4 desk:mb-0",children:[(0,w.jsx)(uy,{flightItem:l}),(0,w.jsx)("div",{className:"desk:text-base text-sm font-bold w-[max-content] desk:w-[65%]",children:(i=l.movementType===l2.UW.A?g:x)?"".concat(i.airportLabel," (").concat(i.airportIata,")"):""})]}),(0,w.jsxs)("div",{className:"desk:w-[50%] flex flex-col justify-start",children:[(0,w.jsxs)("div",{className:"row flex gap-[2rem] desk:gap-3 items-center text-[13px] desk:text-base desk:whitespace-nowrap text-center justify-between",children:[(0,w.jsxs)("div",{className:"flex flex-row gap-[0.5rem]",children:[(0,w.jsx)("div",{children:l.flightNumber})," |",(0,w.jsx)("div",{children:l.airlineDescription})," |",(0,w.jsxs)("div",{children:[(0,w.jsxs)("span",{children:[p.terminal," "]}),(0,w.jsx)("span",{children:p.airportIata})]})]}),d&&(0,w.jsx)("div",{className:"desk:w-[13.3%] flex justify-center desk:ml-9",children:(0,w.jsx)(cl,{flightDetails:l})})]}),l.codeShare&&l.codeShare.length?(0,w.jsxs)("div",{className:"grid grid-cols-3 gap-x-2 desk:gap-3 mt-5 desk:text-base text-sm",children:[(0,w.jsx)("div",{className:"font-bold",children:"Codesharing"}),l.codeShare.map(e=>(0,w.jsx)("div",{className:"whitespace-nowrap",children:e.codeShareFlightNumber},e.codeShareFlightNumber))]}):null]}),!d&&(0,w.jsx)("div",{className:"desk:w-[13.3%] flex justify-center",children:(0,w.jsx)(cl,{flightDetails:l})}),!d&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"desk:w-[20%]",children:(null==o?void 0:o.flgHideStatus)?null:(0,w.jsx)(uw,{lang:c,flightItem:l,bgChip:(null==o?void 0:o.flgColorStatus)?(0,l$.Cw)("bg",null==o?void 0:o.enuColorStatus):(0,ub.Z)(ux(l,c)),crysisLbl:(null==o?void 0:o.lblLabelStatus)&&(null==o?void 0:o.lblLabelStatus[c])?null==o?void 0:o.lblLabelStatus[c].toLocaleUpperCase():void 0})}),(0,w.jsx)("div",{className:"desk:w-[13.3%] flex justify-end",children:(0,w.jsxs)("div",{onClick:()=>b(),className:"flex gap-1 items-center cursor-pointer",children:[(0,w.jsx)("div",{className:"font-bold text-base uppercase",children:u("flights.details")}),(0,w.jsx)("div",{className:"w-2 desk:group-hover:translate-x-2 duration-[600ms]",children:(0,w.jsx)(S.Z,{color:"",iconName:"arrow"})})]})})]})]})};let uS=()=>(0,w.jsxs)("div",{className:"flex items-center gap-4 my-4 desk:my-10 m-auto",children:[(0,w.jsx)("div",{className:"bg-lightgrey h-[60px] w-[60px] flex items-center justify-center rounded-3xl",children:(0,w.jsx)(S.Z,{iconName:"noflights"})}),(0,w.jsx)("span",{className:"font-bold text-lg",children:(0,oM.t)("flights.flightEmpty")})]}),uj=e=>{let{dividerTargetUrl:t,language:n}=e,r=(0,P.sJ)(L.tE),a=(0,P.sJ)(L.c),i=(0,P.sJ)(L.iV),l=(0,P.sJ)(L.Rz),[o,s]=(0,C.useState)(""),[c,u]=(0,C.useState)(""),d=(0,T.b7)("/resourcesols3cms.seamilano.eu/rest/v1/SEA-LinMxp/pages/web/statoDiCrisi"),[p,f]=(0,C.useState)(!1);(0,O.useRouter)();let{t:h}=(0,D.$G)(),[m,v]=(0,C.useState)(0),g=(0,C.useMemo)(()=>r.slice(0,m+8),[m,r]);return(0,C.useEffect)(()=>{(window.location.href.includes("arrivi")||window.location.href.includes("arrivals"))&&s(h("flights.comingFrom")),(window.location.href.includes("partenze")||window.location.href.includes("departures"))&&u(h("flights.departingFrom"))}),(0,w.jsxs)("div",{className:"text-black max-w-cont-2 mx-auto w-full pb-12 desk:pt-8",children:[l?(0,w.jsxs)("div",{className:"flex items-center gap-2 ml-auto w-fit pb-2 px-8 desk:mr-4 desk:mt-0 mt-6",children:[(0,w.jsxs)("div",{children:[h("flights.lastUpdate"),": "]}),(0,w.jsx)("div",{className:"w-10",children:(null==l?void 0:l.getHours())+":"+((null==l?void 0:l.getMinutes())<10?"0":"")+(null==l?void 0:l.getMinutes())}),(0,w.jsx)("div",{className:"cursor-pointer",onClick:()=>window.location.reload(),children:(0,w.jsx)(S.Z,{iconName:"refresh"})})]}):(0,w.jsx)(w.Fragment,{}),i||m+8>=r.length?null:(0,w.jsx)("div",{className:"w-full px-6",children:(0,w.jsx)(uI,{onClick:()=>f(!p),className:"desk:mx-auto my-7 desk:mt-[9px] p-4 w-full",text:h("flights.previousFlights"),iconType:p?"next":"previous"})}),(0,w.jsx)("div",{className:"desk:px-10 px-6 text-lightblue font-bold text-lg mb-5",children:""!==o?o:c}),(0,w.jsxs)("div",{className:"flex flex-col gap-8 w-full",children:[p&&a.length?a.map((e,r)=>(0,w.jsxs)(C.Fragment,{children:[(0,w.jsx)(uk,{flightItem:e,crysisInfo:null==d?void 0:d.data},e.flightId),(r+1)%4==0?(0,w.jsx)(sk,{language:n,data:null,targetUrl:t,dividerMode:!0}):null]},r)):null,i?(0,w.jsx)(lW.Z,{className:"m-auto",color:"#14688E"}):g.length?g.map((e,r)=>(0,w.jsxs)(C.Fragment,{children:[(0,w.jsx)(uk,{flightItem:e,crysisInfo:null==d?void 0:d.data},e.flightId),(r+1)%4==0?(0,w.jsx)(sk,{language:n,data:null,targetUrl:t,dividerMode:!0}):null]},r)):l?(0,w.jsx)(uS,{}):(0,w.jsx)(lW.Z,{className:"m-auto",color:"#14688E"})]}),m+8>=r.length||i?null:(0,w.jsx)("div",{className:"w-full px-6",children:(0,w.jsx)(uI,{onClick:()=>v(m+8),className:"m-auto mt-8",text:h("flights.nextFlights"),iconType:"next"})})]})};var uC=e=>{let{dividerTargetUrl:t,language:n}=e;return(0,w.jsx)("div",{children:(0,w.jsx)(uj,{language:n,dividerTargetUrl:t})})};let uN=e=>{let{language:t}=e,n=(0,P.sJ)(L.EC);return(0,w.jsx)("div",{className:"desk:grid flex flex-col gap-7 desk:grid-cols-4 desk:gap-x-5 desk:gap-y-11 py-8 desk:py-12 max-w-cont-2 mx-auto w-full items-center",children:n.map((e,n)=>(0,w.jsx)(C.Fragment,{children:(0,w.jsx)(sv,{language:t,data:e})},n))})};var uT=e=>{let{children:t,language:n}=e;return(0,w.jsxs)("div",{children:[(0,w.jsx)(uN,{language:n}),t]})};(c=x||(x={})).ALL="",c.beforeSecurityChecks="%20AND%20xconServiceRegistry.flgFirstCheckSecurity=%27true%27",c.afterSecurityChecks="%20AND%20xconServiceRegistry.flgAfterSecurityChecks=%27true%27",(u=b||(b={})).ALL="",u.T0="%20AND%20xconServiceRegistry.flgTerminalT0=%27true%27",u.T1="%20AND%20xconServiceRegistry.flgTerminalT1=%27true%27",u.T2="%20AND%20xconServiceRegistry.flgTerminalT2=%27true%27",(d=y||(y={}))[""]="all",d["%20AND%20xconServiceRegistry.flgTerminalT1=%27true%27"]="t1",d["%20AND%20xconServiceRegistry.flgTerminalT2=%27true%27"]="t2";let uE={category:"",area:"",terminal:""},uD="https://resourcesols3cms.seamilano.eu"+"/rest/v1/SEA-LinMxp/contents/serviceCategory?query=xtaxAirport.ti.label=%27".concat("Malpensa","%27");var uM=e=>{var t;let{setValue:n,setCategory:r}=e,{t:a,i18n:i}=(0,D.$G)(),l=i.language,o=(0,T.b7)(uD);return(0,w.jsxs)("div",{className:"cursor-pointer",children:[(0,w.jsx)("div",{onClick:()=>{n(a("service.serviceCategory")),r("")},className:"py-3 px-6 border-b-2 border-b-gray-150 text-gray-500",children:a("service.serviceCategory")}),null==o?void 0:null===(t=o.data)||void 0===t?void 0:t.map((e,t)=>{var a;return(0,w.jsx)("div",{className:"py-3 px-6 ".concat(t!=(null==o?void 0:null===(a=o.data)||void 0===a?void 0:a.length)-1&&"border-b-2 border-b-gray-150"),onClick:()=>{n(e.lblCategoryName[l]),r(e.lblCategoryName[l])},children:e.lblCategoryName[l]},e.metainfo.id)})]})};let u_=e=>{let{className:t,setCategory:n,...r}=e,[a,i]=(0,C.useState)(!1),{t:l}=(0,D.$G)(),[o,s]=(0,C.useState)();return(0,w.jsx)("div",{className:"w-full",children:(0,w.jsxs)("div",{onClick:()=>{a?i(!1):i(!0)},className:"",children:[(0,w.jsxs)("div",{className:"flex justify-between bg-white py-3 px-6 h-full cursor-pointer rounded-2xl",children:[(0,w.jsx)("div",{className:"",children:o||l("service.serviceCategory")}),(0,w.jsx)(S.Z,{className:"w-2 transition-transform origin-center duration-300 "+(a?"rotate-90":"rotate-0"),iconName:"arrow"})]}),(0,w.jsx)("div",{style:{boxShadow:"5px 6px 10px -5px #000000"},className:"bg-white rounded-2xl mt-2 absolute z-[1] w-[inherit] ".concat(a?"":"hidden"),children:(0,w.jsx)(uM,{setValue:e=>s(e),setCategory:e=>n(e)})})]})})},uA=e=>{let{className:t,selected:n,setArea:r,...a}=e,[i,l]=(0,C.useState)(!1),[o,s]=(0,C.useState)("Area"),{t:c}=(0,D.$G)();return(0,w.jsx)("div",{className:"w-full",children:(0,w.jsxs)("div",{onClick:()=>{i?l(!1):l(!0)},className:"",children:[(0,w.jsxs)("div",{className:"flex justify-between bg-white py-3 px-6 h-full cursor-pointer rounded-2xl",children:[(0,w.jsx)("div",{className:"",children:o}),(0,w.jsx)(S.Z,{className:"w-2 transition-transform origin-center duration-300 "+(i?"rotate-90":"rotate-0"),iconName:"arrow"})]}),(0,w.jsxs)("div",{style:{boxShadow:"5px 6px 10px -5px #000000"},className:"bg-white rounded-2xl mt-2 absolute w-[inherit] cursor-pointer ".concat(i?"":"hidden"),children:[(0,w.jsx)("div",{className:"py-3 px-6 border-b-2 border-b-gray-150 text-gray-500",onClick:()=>{s("Area"),r(x.ALL)},children:"Area"}),(0,w.jsx)("div",{className:"py-3 px-6 border-b-2 border-b-gray-150",onClick:()=>{s(c("service.beforeSecurityChecks")),r(x.beforeSecurityChecks)},children:c("service.beforeSecurityChecks")}),(0,w.jsx)("div",{className:"py-3 px-6",onClick:()=>{s(c("service.afterSecurityChecks")),r(x.afterSecurityChecks)},children:c("service.afterSecurityChecks")})]})]})})};var uL=()=>{let[e,t]=(0,C.useState)(uE),[n,r]=(0,P.FV)(L.EC);async function a(){return await fetch("".concat("https://resourcesols3cms.seamilano.eu","/rest/v1/SEA-LinMxp/contents/card?query=enuTypeInfo='servizio'")+"".concat(e.category?"%20AND%20xconServiceRegistry.xtaxServiceCategory.ti.label=%27".concat(e.category,"%27"):"")+"".concat(e.area?e.area:"")+"".concat(e.terminal?e.terminal:""))}return(0,C.useEffect)(()=>{a().then(e=>e.json()).then(e=>null==e?void 0:e.data.filter(e=>{var t,n;return null==e?void 0:null===(n=e.xconServiceRegistry)||void 0===n?void 0:null===(t=n.xtaxAirports)||void 0===t?void 0:t.ti.some(e=>(null==e?void 0:e.label)==="Malpensa")})).then(e=>r(e.filter(e=>null!=e)))},[e]),(0,w.jsxs)("div",{className:"bg-lightgrey flex rounded-2xl px-3 py-5 desk:p-10 flex-col items-start gap-4 desk:flex-row desk:items-center",children:[(0,w.jsx)(u_,{setCategory:n=>t({...e,category:n})}),(0,w.jsx)(uA,{setArea:n=>t({...e,area:n})}),(0,w.jsx)(cj,{selectedId:y[e.terminal],setId:n=>{t({...e,terminal:b[n.toUpperCase()]}),console.log(y[e.terminal])}})]})},uI=e=>{let{text:t,iconType:n=null,className:r="",onClick:a}=e;return(0,w.jsxs)("div",{onClick:()=>a?a():null,className:"bg-lightgrey text-sm font-bold px-4 py-[10px] rounded-2xl desk:w-fit justify-center flex items-center gap-3 cursor-pointer "+r,children:[t," ",n?(0,w.jsx)(S.Z,{iconName:"arrow",color:"",className:("next"===n?"rotate-90":"-rotate-90")+" w-2 "}):null]})},uP=e=>{var t,n,r,a,i,l,o,s,c,u;let d;let{data:p,language:f}=e,{i18n:h}=(0,D.$G)(),m=f||h.language,[v]=(0,T.dD)(),g=l1().sanitize(null==p?void 0:p.lblTitleNews[m]),x=l1().sanitize(null==p?void 0:p.lblSubtitleNews[m]),b=null==p?void 0:p.dteNews,y=(null==p?void 0:null===(t=p.lslParagraphs[0])||void 0===t?void 0:t.upiImageDesktop[m].mediaserverpath)!=void 0?(null==p?void 0:null===(n=p.lslParagraphs[0])||void 0===n?void 0:n.upiImageDesktop[m].mediaserverpath)+"/"+(null==p?void 0:null===(r=p.lslParagraphs[0])||void 0===r?void 0:r.upiImageDesktop[m].resourcename):"",k=(null==p?void 0:null===(a=p.lslParagraphs[0])||void 0===a?void 0:a.upiImageMobile[m].mediaserverpath)!=void 0?(null==p?void 0:null===(i=p.lslParagraphs[0])||void 0===i?void 0:i.upiImageMobile[m].mediaserverpath)+"/"+(null==p?void 0:null===(l=p.lslParagraphs[0])||void 0===l?void 0:l.upiImageMobile[m].resourcename):"";return(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)("div",{className:"max-w-cont-1 mx-auto w-full cont-news",children:[(0,w.jsx)("div",{className:"pt-4",children:(null==p?void 0:p.flgHideNavigationéath)?null:(0,w.jsx)(sL,{language:m})}),(0,w.jsxs)("div",{className:"p-EdgeMob tab:p-EdgeTab desk:p-EdgeDesk",children:[(0,w.jsx)("p",{className:"".concat((0,l$.Cw)("text","azzurro")," font-bold"),children:null==(d=(0,T.b7)(null==p?void 0:null===(c=p.xtaxNewsCategory)||void 0===c?void 0:c.ti[0].targeturl))?void 0:null===(u=d.data)||void 0===u?void 0:u.lblNameCategory[m]}),(0,w.jsx)("h1",{className:"text-4xl py-3 font-semibold font-secondary",dangerouslySetInnerHTML:{__html:g}}),(0,w.jsx)("h2",{className:"py-2 font-semibold",dangerouslySetInnerHTML:{__html:x}}),(0,w.jsx)("p",{className:"py-5",children:b}),!v&&y&&(0,w.jsx)(_(),{src:y,alt:"Immagine relativa alla notizia: ".concat((null==p?void 0:null===(o=p.lblTitleNews)||void 0===o?void 0:o[m])||"notizia"),width:0,height:0,sizes:"100vw",style:{width:"100%",height:"auto"},className:"w-screen",unoptimized:!0,priority:!0}),v&&k&&(0,w.jsx)(_(),{src:k,alt:"Immagine relativa alla notizia: ".concat((null==p?void 0:null===(s=p.lblTitleNews)||void 0===s?void 0:s[m])||"notizia"),width:0,height:0,sizes:"100vw",style:{width:"100%",height:"auto"},className:"w-screen",unoptimized:!0,priority:!0}),null==p?void 0:p.lslParagraphs.map(e=>{let t=(0,l$.Cw)("text",e.enuSubtitleColor),n=l1().sanitize(e.lblTitle[m]),r=l1().sanitize(e.txbDescription[m]);return(0,w.jsx)("div",{className:"".concat(t),children:(0,w.jsxs)("div",{className:"pb-12 pt-8 underlineLink",children:[(0,w.jsx)("h2",{className:"text-xl font-bold text-red",dangerouslySetInnerHTML:{__html:n}}),(0,w.jsx)("h3",{className:"py-5",dangerouslySetInnerHTML:{__html:r}})]})},e.id)})]})]})})},uO=()=>(0,w.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,w.jsx)("div",{className:"w-fit",children:(0,w.jsx)(S.Z,{iconName:"no-result"})}),(0,w.jsx)("div",{className:"text-2xl font-semibold text-center",children:(0,oM.t)("destinations.noResult")})]});let uR=(0,P.cn)({default:null,key:"selectedAirlineIdAtomKey"});var uF=n(4180),uB=n.n(uF),uz=e=>{var t;let{disabled:n=!1}=e,[r,a,i]=(0,T.dD)(),[l]=(0,T.$N)(),[o,s]=(0,C.useState)(""),[c,u]=(0,C.useState)(!1),[d,p]=(0,P.FV)(uR),f=(0,C.useRef)(null),{t:h}=(0,D.$G)();(0,T.O3)(f,()=>{u(!1)});let m=e=>{p(e),u(!1)},v=(0,C.useMemo)(()=>l.filter((e,t)=>t===l.findIndex(t=>t.airlineId===e.airlineId)).filter(e=>{var t;return null==e?void 0:null===(t=e.airlineDescription)||void 0===t?void 0:t.toLowerCase().includes(null==o?void 0:o.toLowerCase())}).map(e=>(0,w.jsxs)("div",{onClick:()=>m(e.airlineId),className:"flex justify-between cursor-pointer bg-white px-6 text-lightblack",children:[(0,w.jsxs)("div",{children:[e.airlineLabel," "]}),d===e.airlineId?(0,w.jsx)("div",{className:"w-8",children:(0,w.jsx)(S.Z,{iconName:"check"})}):null]},e.airlineId)),[l,o,d]),g=()=>{n||u(!c)};return(0,w.jsx)("div",{className:"wrapper w-full",children:(0,w.jsxs)("div",{ref:f,className:"autocomplete relative ".concat("w-full"),children:[(0,w.jsxs)("div",{onClick:()=>g(),className:"placeholder bg-white rounded-xl pl-4 pr-1.5 py-4 flex justify-between items-center "+(n?" bg-[#f8f8f8]":"cursor-pointer"),children:[(0,w.jsx)("div",{className:"text-black",children:d?null==l?void 0:null===(t=l.find(e=>e.airlineId===d))||void 0===t?void 0:t.airlineLabel:h("airlines.airlines")}),o||d?(0,w.jsx)("div",{className:"font-semibold z-[5]",onClick:()=>{s(""),p(null)},children:"x"}):(0,w.jsx)("div",{children:(0,w.jsx)(S.Z,{iconName:"chevron-r-airlines",className:"w-2 transition-transform origin-center duration-300 ".concat(c?"rotate-0":"rotate-90")})})]}),c?(0,w.jsxs)("div",{className:"dropdown absolute ".concat("w-full"," rounded-b-xl border z-[1]"),children:[(0,w.jsx)("div",{className:"inputWrapper",children:(0,w.jsx)(lU,{label:h("airlines.searchLabel"),className:"rounded-t-xl rounded-b-none border-b border-mediumgrey",placeholder:"Cerca",prefix:(0,w.jsx)(S.Z,{className:"w-5",iconName:"search"}),onChange:e=>s(e.target.value),value:o})}),(0,w.jsx)("div",{className:uB().searchResult+"border-b rounded-b-xl max-h-[300px] overflow-y-auto gap-5 flex flex-col py-4 bg-white",children:v})]}):null]})})};let uZ=(0,P.cn)({key:"airlineSelectedCountryCodeAtomKey",default:""}),uH=(0,P.cn)({default:"",key:"airlineSelectedIataAtomKey"});var uU=()=>{let[e]=(0,T.$N)(),t=(0,P.sJ)(uR),[n,r]=(0,P.FV)(uZ),[a,i]=(0,P.FV)(uH);(0,C.useMemo)(()=>{let t=[];return e.map(e=>{t.some(t=>t.id===e.countryCode)||(t.push({id:e.countryCode,label:e.countryDescription}),t.sort((e,t)=>e.label>t.label?1:e.label<t.label?-1:0))}),t},[e]);let l=(0,C.useMemo)(()=>{let t=[];return e.map(e=>{t.some(t=>t.id===e.airlineIata)||(t.push({id:e.airlineIata,label:e.airlineIata}),t.sort((e,t)=>e.label>t.label?1:e.label<t.label?-1:0))}),t.sort((e,t)=>{var n=e.label.toUpperCase(),r=t.label.toUpperCase();return n<r?-1:n>r?1:0}),t},[e]);(0,C.useMemo)(()=>[a,n,t].some(e=>e)&&!n,[a,n,t]);let o=(0,C.useMemo)(()=>[a,n,t].some(e=>e)&&!a,[a,n,t]);return(0,w.jsx)("div",{className:"bg-lightgrey flex rounded-2xl px-3 py-5 desk:p-10 flex-col items-start gap-4 desk:flex-row desk:items-center justify-between",children:(0,w.jsxs)("div",{className:"flex desk:items-center w-full gap-4 desk:flex-row flex-col items-start justify-center",children:[(0,w.jsx)(uz,{disabled:!!(n||a)}),(0,w.jsx)(oH,{disabled:o,onChange:e=>{var t;i((null===(t=l.find(t=>t.label===e.target.value))||void 0===t?void 0:t.id)||"")},placeholder:(0,oM.t)("airlines.selectCode"),valueList:l})]})})},uV=e=>{var t,n;let{airlineItem:r}=e,[a,i,l]=(0,T.dD)(),{t:o}=(0,D.$G)(),s=a?null==r?void 0:null===(t=r.logo)||void 0===t?void 0:t.mobile:null==r?void 0:null===(n=r.logo)||void 0===n?void 0:n.web;return(0,w.jsxs)("div",{className:"flex gap-2 desk:items-center border-b border-b-darkgrey relative pb-14 desk:p-0 text-center ".concat(a||i?"items-center":""),children:[(0,w.jsxs)("div",{className:"w-1/3 desk:w-1/5 flex flex-col items-center",children:[(0,w.jsx)(_(),{src:s||"https://upload.wikimedia.org/wikipedia/commons/0/0b/Air_Company_logo.png",alt:r.airlineDescription?"Logo ".concat(r.airlineDescription):"Logo compagnia aerea",width:175,height:45,sizes:"(max-width: 1024px) 33vw, 20vw",unoptimized:!0}),(0,w.jsx)("div",{className:"desk:hidden",children:r.airlineDescription})]}),(0,w.jsx)("div",{className:"hidden desk:text-lg text-base desk:w-1/5 desk:block",children:r.airlineDescription}),(0,w.jsx)("div",{className:"w-1/3 desk:text-lg text-base desk:w-1/5",children:r.airlineIata}),(0,w.jsx)("div",{className:"w-1/3 desk:text-lg text-base desk:w-1/5",children:r.terminal&&r.terminal.length?function(e){let t=e.filter(e=>0===e.indexOf("MXP")).map(e=>e.replace("MXP.",""));return t.length>1?"".concat(t[0],"-").concat(t[1]):t[0]}(r.terminal):""}),(0,w.jsx)("div",{className:"desk:flex right-0 ".concat(a||i?"bottom-3 absolute":""," desk:justify-end desk:w-1/5 font-bold"),children:r.websiteUrl?(0,w.jsxs)("a",{className:"desk:text-lg text-base flex items-center gap-2",href:r.websiteUrl,target:"_blank",rel:"noopener noreferrer",children:[o("airlines.goToWebSite")," ",(0,w.jsx)(S.Z,{iconName:"chevron-r"})]}):null})]})},uW=n(1643);let uG=(0,P.nZ)({key:"filteredListSelector",get:e=>{let{get:t}=e,n=t(uZ),r=t(uH),a=t(uR),i=t(uW.Z);return i.filter(e=>n?e.countryCode===n:r?e.airlineIata===r:a?e.airlineId===a:i)}});var uY=e=>{let{children:t,dividerTargetUrl:n="",language:r}=e,{i18n:a}=(0,D.$G)(),i=r||a.language,l=(0,P.sJ)(uG),[o,s]=(0,P.FV)(L.iV),[c,u]=(0,C.useState)(0),d=(0,C.useMemo)(()=>l.map((e,t)=>6===t&&0===c?(0,w.jsxs)(C.Fragment,{children:[(0,w.jsx)(sk,{data:null,language:i,dividerMode:!0,targetUrl:n},t),(0,w.jsx)(uV,{airlineItem:e},e.airlineId)]}):(0,w.jsx)(uV,{airlineItem:e},e.airlineId)),[l]),p=(0,C.useMemo)(()=>null==d?void 0:d.slice(0,c+12),[c,d,i]);return(0,C.useEffect)(()=>{l.length>0?s(!1):s(!0)},[l]),(0,w.jsxs)("div",{className:"w-full max-w-cont-2 mx-auto py-12 px-6",children:[o?(0,w.jsx)(lW.Z,{className:"m-auto",color:"#14688E"}):(0,w.jsxs)("div",{children:[(0,w.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,w.jsxs)("div",{className:"flex gap-2 text-center",children:[(0,w.jsx)("div",{className:"w-1/3 desk:w-1/5 text-lg font-bold text-lightblue",children:(0,oM.t)("airlines.airlines")}),(0,w.jsx)("div",{className:"hidden desk:block desk:w-1/5 text-lg font-bold text-lightblue"}),(0,w.jsx)("div",{className:"w-1/3 desk:w-1/5 text-lg font-bold text-lightblue",children:(0,oM.t)("airlines.code")}),(0,w.jsx)("div",{className:"w-1/3 desk:w-1/5 text-lg font-bold text-lightblue",children:"Terminal"}),(0,w.jsx)("div",{className:"hidden  desk:w-1/5 text-lg font-bold text-lightblue desk:flex items-center gap-2"})]}),p]}),c+12>=l.length?null:(0,w.jsx)(uI,{onClick:()=>u(c+12),className:"m-auto mt-8",text:(0,oM.t)("flights.showMore"),iconType:"next"})]}),t]})};let uq=e=>{let{numberOfPoints:t}=e;return(0,w.jsxs)("div",{className:"flex flex-col",children:[(0,w.jsx)("div",{className:"text-sm font-bold mb-4 desk:mb-2",children:(0,oM.t)("loyalty.pointsLabel")}),(0,w.jsxs)("div",{className:"flex text-5xl gap-1 items-end leading-9",children:[(0,w.jsx)("div",{className:" text-lightblue leading-9 font-semibold",children:t}),(0,w.jsx)("div",{className:"text-2xl leading-9",children:(0,oM.t)("loyalty.points")})]})]})};var uK=e=>{let{lang:t}=e,n=(0,B.aC)(),[r,a]=(0,C.useState)(""),[i,l]=(0,P.FV)(L.M),[o,s]=(0,C.useState)(),[c,u]=(0,C.useState)();async function d(){return await fetch("".concat("https://resourcesols3cms.seamilano.eu","/rest/v1/SEA-LinMxp/contents/m11/").concat("848"),{}).then(e=>null==e?void 0:e.json()).then(e=>{s(e.data.lslParagraphs[0].txbSubtitle[t])}).catch(e=>{console.error("[FidelityCardSection] getDataFromM11 -> ",e)})}let p=()=>{var e;let t=new URLSearchParams({accountNumber:(null==n?void 0:null===(e=n.user)||void 0===e?void 0:e.codTessera)||"",kOperator:"0"});fetch("".concat("https://apiextra.seamilano.eu","/ols-loyalty-services/v1/SealCreditAdapter/getBalance?").concat(t.toString()),{headers:{keyId:"1152261b-5b11-4317-92e9-4125aecc766a"}}).then(e=>e.json()).then(e=>{l(e.getBalanceResponse.result)},e=>console.error("[FidelityCardSection] getBalance -> ",e))};(0,C.useEffect)(()=>{if(d(),n&&!i&&p(),null==n?void 0:n.user){var e,t;a(null==n?void 0:null===(e=n.user)||void 0===e?void 0:e.loyalityNumber),u("".concat("https://servicesols2.seamilano.eu/sea-ols-middleware/barcode/EAN13/"+(null==n?void 0:null===(t=n.user)||void 0===t?void 0:t.loyalityNumber)))}},[n]);let f=()=>{var e;fetch("".concat("https://apiextra.seamilano.eu/ols-flyer-vmp/v1","/").concat(t,"/pdf-card?userId=").concat(null==n?void 0:null===(e=n.user)||void 0===e?void 0:e.userId,"&dl=1"),{method:"GET",headers:new Headers({"Content-Type":"application/json",keyId:"5b8dc8b4-606c-4c0f-8118-303709508f0d"})}).then(e=>e.blob()).then(e=>{let t=new Blob([e],{type:"application/pdf"});window.open(URL.createObjectURL(t))}).catch(e=>console.error(e))};return(0,w.jsxs)("div",{children:[(0,w.jsx)("div",{className:"font-semibold text-lg",children:(0,oM.t)("loyalty.myFidelityProgram")}),(0,w.jsxs)("div",{className:"flex flex-col desk:flex-row gap-8 desk:max-w-[815px]",children:[(0,w.jsxs)("div",{className:"desk:w-[350px] desk:h-[225px]  p-8 flex flex-col gap-6 items-center shadow-xl rounded-3xl",children:[(0,w.jsx)(_(),{src:"/_next/static/media/viamilanoProgram.e40f0682.png",alt:"Fidelity program logo",width:130,height:70}),(0,w.jsx)(_(),{alt:"","aria-hidden":"true",src:c||"",width:200,height:80})]}),(0,w.jsx)("div",{className:"desk:hidden mt-2 desk:mt-7",children:(0,w.jsx)("a",{onClick:()=>f(),target:"_blank",children:(0,w.jsxs)("div",{className:"bg-white w-full justify-center rounded-3xl cursor-pointer text-black py-3 px-4 font-bold text-sm uppercase flex gap-2 items-center",children:[(0,w.jsx)(S.Z,{iconName:"download",className:"fill-black"}),(0,oM.t)("loyalty.downloadCard")]})})}),(0,w.jsxs)("div",{className:"w-full desk:w-1/2 max-h-full flex flex-col gap-8",children:[(0,w.jsx)(uq,{numberOfPoints:i?i.balance.toLocaleString(t):0}),o?(0,w.jsx)("span",{className:"text-base",dangerouslySetInnerHTML:{__html:l1().sanitize(o)}}):""]})]}),(0,w.jsx)("div",{className:"hidden desk:block mt-12 desk:mt-7",children:(0,w.jsx)("a",{onClick:()=>f(),target:"_blank",children:(0,w.jsxs)("div",{className:"bg-black w-fit rounded-3xl cursor-pointer text-white py-3 px-4 font-bold text-sm uppercase flex gap-2 items-center",children:[(0,w.jsx)(S.Z,{iconName:"download",color:"white"}),(0,oM.t)("loyalty.downloadCard")]})})})]})};let u$=e=>{let{title:t,counter:n}=e;return(0,w.jsxs)("div",{className:"flex w-full desk:w-[250px] desk:h-[84px] p-4 bg-lightgrey rounded-3xl justify-between",children:[(0,w.jsxs)("div",{className:"flex items-center gap-2",children:[(0,w.jsx)(S.Z,{className:"min-w-[27px] w-[2.5rem]",color:"white",iconName:"cup-blue",stroke:"lightblue"}),(0,w.jsx)("div",{className:"text-black font-bold text-base desk:text-[15px] leading-4",children:t})]}),(0,w.jsxs)("div",{className:"flex flex-col items-center border-l pl-4 border-darkgrey",children:[(0,w.jsx)("div",{className:"font-semibold text-3xl",children:n}),(0,w.jsx)("div",{className:"text-sm",children:(0,oM.t)("loyalty.residue")})]})]})};var uX=e=>{let{fetchRewards:t,residual:n}=e,[r,a]=(0,C.useState)(0),[i,l]=(0,C.useState)(0),[o,s]=(0,C.useState)(0),c=(0,P.sJ)(L.M);return(0,C.useEffect)(()=>{var e,t,r,i,o,c,u,d,p;if((null==n?void 0:null===(e=n.accessListFT)||void 0===e?void 0:e.length)>0){let e=0;n.accessListFT.map(t=>{e+=t.residual}),a(e)}else(null==n?void 0:null===(t=n.accessListFT)||void 0===t?void 0:t.length)==void 0&&(null==n?void 0:null===(r=n.accessListFT)||void 0===r?void 0:r.residual)&&a(n.accessListFT.residual);if((null==n?void 0:null===(i=n.accessListSV)||void 0===i?void 0:i.length)>0){let e=0;n.accessListSV.map(t=>{e+=t.residual}),s(e)}else(null==n?void 0:null===(o=n.accessListSV)||void 0===o?void 0:o.length)==void 0&&(null==n?void 0:null===(c=n.accessListSV)||void 0===c?void 0:c.residual)&&s(n.accessListSV.residual);if((null==n?void 0:null===(u=n.voucherList)||void 0===u?void 0:u.length)>0){let e=0;n.voucherList.map(t=>{e+=t.residual}),l(e)}else(null==n?void 0:null===(d=n.voucherList)||void 0===d?void 0:d.length)==void 0&&(null==n?void 0:null===(p=n.voucherList)||void 0===p?void 0:p.residual)&&l(n.voucherList.residual)},[n]),(0,C.useEffect)(()=>{c&&t()},[c]),(0,w.jsxs)("div",{children:[(0,w.jsxs)("div",{className:"flex justify-between mb-4",children:[(0,w.jsx)("div",{className:"text-lg font-bold text-black",children:(0,oM.t)("loyalty.myRewards")}),(0,w.jsx)("a",{href:"#prize-history",className:"underline text-sm text-black cursor-pointer hover:text-[lightblue]",children:(0,oM.t)("loyalty.rewardHistoryCta")})]}),(0,w.jsx)("div",{className:"flex flex-col desk:flex-row gap-4",children:(0,w.jsxs)(C.Fragment,{children:[(0,w.jsx)(u$,{title:"Fast Track",counter:r},cM()()),(0,w.jsx)(u$,{title:"Voucher",counter:i},cM()()),(0,w.jsx)(u$,{title:"Vip Lounge",counter:o},cM()())]})})]})};let uJ=e=>{let{lenghtlist:t=0,lenghtBar:n=1}=e,r=(0,lK.oc)();return(0,w.jsx)(sT.Z,{completed:r.activeIndex+2,maxCompleted:t-n,bgColor:"#000000",baseBgColor:"#E6E6E6",isLabelVisible:!1,height:"5px"})};var uQ=e=>{var t,n,r,a,i,l;let{data:o,language:s}=e,[c,u,d]=(0,T.dD)(),{t:p,i18n:f}=(0,D.$G)(),h=s||f.language,[m,v]=(0,C.useState)(0),[g,x]=(0,C.useState)(!1),[b,y]=(0,C.useState)(!1),[k,j]=(0,C.useState)(),[N,E]=(0,C.useState)(),[M,A]=(0,C.useState)(),[L,I]=(0,C.useState)(),[P,O]=(0,C.useState)("T1"),[R,F]=(0,C.useState)("P"),B=(null==o?void 0:o.data.upiImageDesktopMap[h].mediaserverpath)+"/"+(null==o?void 0:o.data.upiImageDesktopMap[h].resourcename),z=(null==o?void 0:o.data.upiImageMobileMap[h].mediaserverpath)+"/"+(null==o?void 0:o.data.upiImageMobileMap[h].resourcename),Z=l1().sanitize(o.data.txbSubtitleMap[h]),H=null==o?void 0:o.data.lblTitle[h],U=null==o?void 0:o.data.txbSubtitle[h],V=null==o?void 0:null===(t=o.data)||void 0===t?void 0:t.lstParking.length,W=(0,l$.Cw)("border","azzurro"),G=(null==k?void 0:k.upiImageDesk.mediaserverpath)+"/"+(null==k?void 0:k.upiImageDesk.resourcename),Y=(null==k?void 0:k.upiImageMobile.mediaserverpath)+"/"+(null==k?void 0:k.upiImageMobile.resourcename),q=null==k?void 0:k.lblLink[h],K=null==k?void 0:k.lblTitle[h],$=(null==k?void 0:k.flgTarget)?"_blank":"_self",X=null==k?void 0:k.lblLabelCta[h],J=e=>{fetch(e).then(e=>e.json()).then(e=>{j(e.data)})},Q=()=>{fetch("".concat("https://resourcesols3cms.seamilano.eu","/rest/v1/SEA-LinMxp/contents/m09/855")).then(e=>e.json()).then(e=>{E(e.data)}),fetch("".concat("https://resourcesols3cms.seamilano.eu","/rest/v1/SEA-LinMxp/contents/m09/857")).then(e=>e.json()).then(e=>{A(e.data)}),fetch("".concat("https://resourcesols3cms.seamilano.eu","/rest/v1/SEA-LinMxp/contents/m11/859")).then(e=>e.json()).then(e=>{I(e.data)})},ee=e=>{y(!0),J(e)},et=()=>{y(!1),j(null)};return(0,C.useEffect)(()=>{Q()},[]),(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)("div",{className:"relative pt-8 desk:py-12 max-w-cont-2 mx-auto w-full",children:[(0,w.jsxs)("div",{className:"pb-4 px-6",children:[(0,w.jsx)("h1",{className:"font-semibold text-xl desk:text-3xl",children:H}),(0,w.jsx)("h2",{className:"font-normal text-md",children:U})]}),(0,w.jsxs)("div",{className:"flex gap-5 cursor-pointer pb-2 px-6",children:[(0,w.jsx)("div",{className:"hover:border-b-2 border-b-[#14688E] hover:text-[#14688E]",onClick:()=>F("P"),children:(0,w.jsx)("h1",{className:"".concat("P"===R?"border-b-4 border-b-[#14688E]":""," font-semibold text-xl"),children:p("parking.list")})}),(0,w.jsx)("div",{className:"hover:border-b-2 border-b-[#14688E] hover:text-[#14688E]",onClick:()=>F("M"),children:(0,w.jsx)("h1",{className:"".concat("M"===R?"border-b-4 border-b-[#14688E]":""," font-semibold text-xl"),children:p("parking.map")})})]}),(null==o?void 0:o.data.enuTypeTemplate.toLowerCase())==="elenco"?(0,w.jsx)(w.Fragment,{children:"P"===R?(0,w.jsxs)(w.Fragment,{children:[d&&!g&&(null==o?void 0:null===(r=o.data)||void 0===r?void 0:null===(n=r.lstParking)||void 0===n?void 0:n.map(e=>{let t=l1().sanitize(e.lblParkingClassification[h]),n=e.lblInformationIconText[h],r=l1().sanitize(e.lblIconText[h]),a=e.upiImageDesktop[h].mediaserverpath+"/"+e.upiImageDesktop[h].resourcename,i=e.lblLabelCta[h],l="it"==h?e.enuStatus:e.enuStatusEn,o=e.lblTerminalIndication[h],s=e.lblTag[h],c=e.lblLink[h],u=e.flgTarget?"_blank":"_self",d=e.flgActivateIcon?"block":"hidden",p=e.xconPopup.targeturl;return(0,w.jsxs)("div",{className:"relative pt-2",children:[(0,w.jsx)("div",{className:"bg-red text-[#FFFFFF] w-fit px-5 py-1 rounded-bl-2xl rounded-tr-2xl font-bold text-sm absolute top-0 right-0 ".concat(s?"block":"hidden"),children:s}),(0,w.jsxs)("div",{className:"shadow-lg hover:shadow-2xl pl-10 p-5 rounded-2xl mb-5 grid grid-cols-12 items-center select-none",children:[(0,w.jsxs)("div",{className:"col-span-4 flex flex-col justify-start",children:[(0,w.jsx)("p",{dangerouslySetInnerHTML:{__html:t},className:"font-bold text-2xl mb-3"}),(0,w.jsxs)("div",{className:"flex gap-3 cursor-pointer w-fit",children:[(0,w.jsx)(S.Z,{iconName:"info",className:"w-5 ".concat(d)}),(0,w.jsx)("h3",{onClick:()=>{ee(p)},className:"underline underline-offset-2 text-sm",children:n})]})]}),(0,w.jsxs)("div",{className:"col-span-2 align-middle text-center flex flex-col justify-center",children:[(0,w.jsx)(_(),{src:a,alt:"shortIconDesktop",className:"m-auto w-10 h-10",width:40,height:40,unoptimized:!0}),(0,w.jsx)("p",{dangerouslySetInnerHTML:{__html:r},className:"text-sm"})]}),(0,w.jsx)("div",{className:"col-span-2 flex justify-center",children:(0,w.jsx)("div",{className:"bg-lightblue w-fit p-2 rounded-lg text-[#FFFFFF] text-sm font-bold",children:l})}),(0,w.jsx)("div",{className:"col-span-2 flex justify-center",children:(0,w.jsx)("h3",{className:"bg-lightblue w-fit p-2 rounded-lg text-[#FFFFFF] text-sm font-bold",children:o})}),(0,w.jsxs)("a",{href:c,target:u,className:"col-span-2 flex justify-center cursor-pointer",children:[(0,w.jsx)("p",{dangerouslySetInnerHTML:{__html:i.toUpperCase()},className:"font-bold mr-4"}),(0,w.jsx)(S.Z,{iconName:"arrow",className:"w-3"})]})]})]},e.id)})),!d&&!g&&(0,w.jsxs)(lK.tq,{spaceBetween:10,slidesPerView:c?1:2,onRealIndexChange:e=>v(e.realIndex),modules:[lX.Rv],freeMode:!0,className:"pr-10 pl-5 py-5",children:[null==o?void 0:null===(a=o.data.lstParking)||void 0===a?void 0:a.map(e=>{let t=e.lblTag[h],n=e.lblLink[h],r=e.flgTarget?"_blank":"_self",a=l1().sanitize(e.lblParkingClassification[h]),i=e.upiImageMobile[h].mediaserverpath+"/"+e.upiImageMobile[h].resourcename,l=l1().sanitize(e.lblIconText[h]),o=e.enuStatus,s=e.lblTerminalIndication[h],c=e.lblInformationIconText[h],u=e.xconPopup.targeturl;return(0,w.jsxs)(lK.o5,{className:"rounded-2xl relative p-5 shadow-lg h-auto text-[#000000]",children:[(0,w.jsx)("div",{className:"absolute top-0 right-0 bg-red px-5 py-1 rounded-bl-2xl rounded-tr-2xl font-bold text-sm text-[#FFFFFF] ".concat(t?"block":"hidden"),children:t}),(0,w.jsxs)("a",{href:n,target:r,className:"cursor-pointer flex justify-between mb-10",children:[(0,w.jsx)("p",{dangerouslySetInnerHTML:{__html:a},className:"font-bold text-xl py-2"}),(0,w.jsx)(S.Z,{iconName:"arrow",className:"w-3"})]}),(0,w.jsxs)("div",{className:"flex justify-start gap-2 mb-3",children:[(0,w.jsx)(_(),{src:i,alt:"upiImageMobile",className:"w-fit",width:64,height:64,unoptimized:!0}),(0,w.jsx)("p",{dangerouslySetInnerHTML:{__html:l},className:"text-sm font-bold"})]}),(0,w.jsx)("div",{className:"bg-lightblue w-fit py-1 px-4 rounded-lg text-[#FFFFFF] text-sm font-bold mb-3",children:o}),(0,w.jsx)("h3",{className:"bg-lightblue w-fit py-1 px-4 rounded-lg text-[#FFFFFF] text-sm font-bold mb-12",children:s}),(0,w.jsxs)("div",{className:"group flex gap-2 cursor-pointer",children:[(0,w.jsx)(S.Z,{iconName:"info",className:"w-5"}),(0,w.jsx)("h3",{onClick:()=>{ee(u)},className:"underline underline-offset-2 text-sm",children:c})]})]},e.id)}),(0,w.jsx)("div",{className:"flex justify-center py-10",children:(0,w.jsx)("div",{className:"w-[90%]",children:(0,w.jsx)(uJ,{lenghtlist:V,lenghtBar:1})})})]})]}):(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)("div",{className:"desk:flex gap-5 text-[#000000] px-6 desk:px-0",children:[(0,w.jsx)(_(),{src:d?B:z,alt:"Map",className:"rounded-2xl mb-5",width:900,height:500,unoptimized:!0}),(0,w.jsxs)("div",{className:"",children:[null==o?void 0:null===(l=o.data)||void 0===l?void 0:null===(i=l.lstMap)||void 0===i?void 0:i.map(e=>{let t=e.lblTerminal[h];return(0,w.jsxs)("div",{className:"mb-6 max-w-full",children:[(0,w.jsx)("p",{className:"font-bold text-lg mb-3",children:t}),e.lstParkingsDetail.map(e=>{let t=e.lblParkingName[h],n=e.lblDirections[h],r=e.lblLinkDirections[h],a=e.flgTargetDirections?"_blank":"_self",i=e.lstIcon[0].upiImageDesktopIcon[h].mediaserverpath+"/"+e.lstIcon[0].upiImageDesktopIcon[h].resourcename;return(0,w.jsx)("div",{className:"mb-3",children:(0,w.jsxs)("div",{className:"flex items-center",children:[(0,w.jsx)(_(),{src:i,alt:"parkingIcon",className:"w-16",width:64,height:64,unoptimized:!0}),(0,w.jsxs)("div",{className:"overflow-hidden w-full",children:[(0,w.jsx)("h3",{className:"font-bold text-sm",children:t}),(0,w.jsxs)("div",{className:"flex max-w-full items-center",children:[(0,w.jsx)(S.Z,{iconName:"marker",className:"w-5 h-10"}),(0,w.jsx)("a",{href:r,target:a,className:"underline underline-offset-2 text-sm hover:text-lightblue active:text-lightblue",children:n})]})]})]})},e.id)})]},e.id)}),(0,w.jsx)("p",{dangerouslySetInnerHTML:{__html:Z},className:"text-lg"})]})]})})}):(0,w.jsxs)("div",{children:[(0,w.jsxs)("div",{className:"flex gap-12 font-bold text-lg select-none py-12 text-[#000000]",children:[(0,w.jsxs)("div",{onClick:()=>O("T1"),className:"cursor-pointer",children:[(0,w.jsx)("p",{className:"px-5",children:"Terminal 1"}),(0,w.jsx)("div",{className:"border-2 ".concat(W," ").concat("T1"===P?"block":"hidden")})]}),(0,w.jsxs)("div",{onClick:()=>O("T2"),className:"cursor-pointer",children:[(0,w.jsx)("p",{className:"px-5",children:"Terminal 2"}),(0,w.jsx)("div",{className:"border-2 ".concat(W," ").concat("T2"===P?"block":"hidden")})]})]}),(0,w.jsx)("div",{children:(0,w.jsx)("iframe",{src:"/webmaps/neoMap.jsp?lang=it&target=".concat(P,"&fullscreenfun=fullscreenMap()")})})]}),b&&k&&(0,w.jsxs)("div",{className:"select-none",children:[(0,w.jsx)("div",{className:"bg-black opacity-50 fixed top-0 left-0 bottom-0 right-0 z-50"}),(0,w.jsxs)("div",{className:" ".concat(c?"py-6":""," text-black bg-white w-[80%] fixed top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 z-[51] p-10 rounded-2xl desk:flex"),children:[(0,w.jsx)("button",{className:"bg-black p-0 rounded-3xl cursor-pointer w-5 absolute -top-1 right-0",onClick:et,children:(0,w.jsx)(lH,{onClick:et})}),d?(0,w.jsx)(_(),{src:d?G||"":Y||"",alt:"MapPopup",className:"rounded-2xl",width:600,height:400,unoptimized:!0}):null,(0,w.jsxs)("div",{className:"w-full mb-5 desk:mb-0 desk:p-12",children:[(0,w.jsx)("p",{className:"text-lg font-bold mb-5",children:K}),(0,w.jsx)("p",{dangerouslySetInnerHTML:{__html:l1().sanitize(k&&k.txbDescription?k.txbDescription[h]:"")},className:"text-sm desk:text-base desk:mb-10"}),(0,w.jsx)("div",{className:"flex items-center",children:X?(0,w.jsxs)(C.Fragment,{children:[(0,w.jsx)(S.Z,{iconName:"marker",className:"w-5"}),(0,w.jsx)("a",{href:q,target:$,className:"underline underline-offset-2 text-sm",children:X})]}):(0,w.jsx)(C.Fragment,{})})]}),d?null:(0,w.jsx)(_(),{src:d?G||"":Y||"",alt:"MapPopup",className:"rounded-2xl",width:600,height:400,unoptimized:!0})]})]})]})})},u0=n(6501);let u1="".concat("https://apiextra.seamilano.eu","/ols-loyalty-services/v1/LoyaltyRewardAdapter/getRewardCatalog"),u2="".concat("https://apiextra.seamilano.eu","/ols-loyalty-services/v1/LoyaltyRewardAdapter/redeemPrize"),u3=e=>{let{requestable:t,rewardName:n,cost:r,onClick:a,lang:i}=e;return(0,w.jsxs)("div",{className:"flex gap-6 h-full",children:[(0,w.jsx)("div",{children:(0,w.jsx)("div",{className:"w-[40px] h-[40px] rounded-2xl flex items-center justify-center",children:(0,w.jsx)(S.Z,{iconName:"cup-bg-blue",className:"h-[40px] w-[40px]"})})}),(0,w.jsxs)("div",{className:"flex flex-col gap-3 w-[180px] h-full justify-between mr-7",children:[(0,w.jsx)("div",{className:"flex",children:(0,w.jsxs)("div",{className:"flex flex-col gap-3 border-r border-darkgrey desk:max-w-full",children:[(0,w.jsx)("div",{className:"font-bold text-lg text-black leading-5 mr-2",children:(null==n?void 0:n.length)>20?n.substring(0,20)+"..":n}),(0,w.jsx)("div",{className:"leading-4 text-sm w-[180px]",children:(0,w.jsxs)("b",{children:[r.toLocaleString(i)," ",(0,oM.t)("account.points2")]})})]})}),(0,w.jsxs)("div",{onClick:()=>a(),className:"flex items-center gap-2 justify-center w-fit font-bold rounded-3xl padding px-5 py-2 uppercase "+(t?"hover:bg-lightblue active:bg-lightblue bg-black text-white cursor-pointer":"bg-lightgrey text-darkgrey"),children:[t?null:(0,w.jsx)(S.Z,{iconName:"lock"})," ",(0,oM.t)("loyalty.request")]})]})]})};var u6=e=>{let{lang:t,fetchMovements:n,fetchRewards2:r}=e,a=(0,P.sJ)(L.M),[i,l]=(0,C.useState)([]),o=(0,C.useRef)(null),[s,c]=(0,T.dD)(),[u,d]=(0,C.useState)(!1),[p,f]=(0,C.useState)(!1),[h,m]=(0,C.useState)(!0),[v,g]=(0,C.useState)({policyId:"",bouquetId:""}),x=(0,B.aC)(),b=()=>{fetch("".concat(u1).concat(a?"?"+new URLSearchParams({kOperator:"0",profileId:"null"}).toString():""),{headers:{keyId:"1152261b-5b11-4317-92e9-4125aecc766a"}}).then(e=>e.json()).then(e=>l(e.getRewardCatalogResponse.result.rewardList)).finally(()=>{m(!1)})},y=(e,t)=>{var a;m(!0),fetch("".concat(u2).concat(x?"?"+new URLSearchParams({kOperator:"0",accountNumber:null==x?void 0:null===(a=x.user)||void 0===a?void 0:a.loyalityNumber,rewardPolicyId:e,rewardBouquetId:t,accessChannelId:"3"}).toString():""),{headers:{keyId:"1152261b-5b11-4317-92e9-4125aecc766a"}}).then(e=>e.json()).then(e=>{17===e.redeemPrizeResponse.result.statusCode?u0.ZP.error(e.redeemPrizeResponse.result.statusDesc):(u0.ZP.success(e.redeemPrizeResponse.result.statusDesc),n(),r())}).finally(()=>{m(!1)}),f(!1)},k=(e,t)=>{d(!0),g({policyId:e,bouquetId:t})};(0,C.useEffect)(()=>{p&&y(v.policyId,v.bouquetId)},[p]),(0,C.useEffect)(()=>{a&&b()},[a]);let S=(0,C.useMemo)(()=>null==i?void 0:i.map((e,n)=>(0,w.jsx)(lK.o5,{children:(0,w.jsx)(u3,{lang:t,onClick:()=>(null==a?void 0:a.balance)>=e.creditCost?k(e.rewardPolicyId,e.rewardBouquetId):null,cost:e.creditCost,rewardName:e.rewardItems.rewardName,requestable:(null==a?void 0:a.balance)>=e.creditCost})},n)),[i]);return(0,w.jsxs)("div",{className:"flex flex-col bg-lightgrey desk:bg-white py-4 px-2 desk:py-0 desk:px-0",children:[(0,w.jsx)("div",{className:"text-lg text-black font-bold mb-7",children:(0,oM.t)("loyalty.rewardCatalog")}),(0,w.jsx)("div",{className:"flex w-full",children:(0,w.jsx)(lK.tq,{modules:[lX.Rv],style:{margin:0},slidesPerView:S&&S.length>=4?s||c?1.3:3.25:1.3,freeMode:!0,ref:o,children:S})}),u&&!h?(0,w.jsx)("div",{className:"w-[30%] h-[30%] rounded-3xl",style:{boxShadow:"2px 5px 38px -18px #000000",position:"fixed",top:"40%",left:"40%",border:"none",overflow:"hidden",zIndex:999999},children:(0,w.jsxs)("div",{className:"rounded-3xl bg-white h-full w-full p-10 flex flex-col gap-5 justify-center items-center text-center",children:[(0,w.jsx)("h1",{children:(0,oM.t)("loyalty.confirm")}),(0,w.jsxs)("div",{className:"flex gap-10",children:[(0,w.jsx)("div",{className:"bg-black w-fit rounded-3xl cursor-pointer text-white py-3 px-4 font-bold text-sm uppercase flex gap-2 items-center",onClick:()=>(d(!1),f(!0)),children:(0,oM.t)("loyalty.request")}),(0,w.jsx)("button",{className:"bg-black w-fit rounded-3xl cursor-pointer text-white py-3 px-4 font-bold text-sm uppercase flex gap-2 items-center",onClick:()=>(d(!1),f(!1)),children:(0,oM.t)("loyalty.cancel")})]})]})}):u?(0,w.jsx)("div",{className:"w-[30%] h-[30%] rounded-3xl",style:{boxShadow:"2px 5px 38px -18px #000000",position:"fixed",top:"40%",left:"40%",border:"none",overflow:"hidden",zIndex:999999},children:(0,w.jsx)("div",{className:"rounded-3xl bg-white h-full w-full p-10 flex flex-col gap-5 justify-center items-center text-center",children:(0,w.jsx)(lW.Z,{className:"m-auto",color:"#14688E"})})}):(0,w.jsx)(w.Fragment,{})]})},u5=e=>{let{lang:t,fetchMovements:n,itemsList:r}=e,a=(0,B.aC)();return(0,C.useEffect)(()=>{n()},[a]),r.length>0?(0,w.jsxs)("div",{className:"flex-col",id:"prize-history",children:[(0,w.jsx)("div",{className:"text-lg text-black font-bold mb-7",children:(0,oM.t)("loyalty.pointsOverview")}),r?(0,w.jsxs)("div",{className:"customTable",children:[(0,w.jsxs)("div",{className:"flex head-row",children:[(0,w.jsx)("div",{className:"w-2/6 desk:w-1/6 head text-lightblue font-bold text-lg",children:(0,oM.t)("loyalty.date")}),(0,w.jsx)("div",{className:"w-3/6 desk:w-4/6 head text-lightblue font-bold text-lg",children:(0,oM.t)("loyalty.detail")}),(0,w.jsx)("div",{className:"w-1/6 desk:w-1/6 head text-lightblue font-bold text-lg",children:(0,oM.t)("loyalty.points")})]}),r.map((e,n)=>(0,w.jsxs)("div",{className:"row flex py-[20px] border-b border-darkgrey",children:[(0,w.jsx)("div",{className:"w-2/6 desk:w-1/6 text-lg",children:new Date(null==e?void 0:e.movementDate).toLocaleDateString(t)}),(0,w.jsxs)("div",{className:"w-3/6 desk:w-4/6 flex-col",children:[(0,w.jsx)("div",{className:"text-lg",children:null==e?void 0:e.movementDescr}),(0,w.jsx)("div",{className:"flex text-sm",children:null==e?void 0:e.movementTypeDescr})]}),(0,w.jsxs)("div",{className:"w-1/6 desk:w-1/6 text-lg",children:[Number(null==e?void 0:e.movementQuantity).toLocaleString(t)," p"]})]},n))]}):(0,w.jsx)(w.Fragment,{})]}):null};let u4=e=>{let{dividerTargetUrl:t,children:n,language:r}=e;return(0,w.jsxs)("div",{className:"mt-20",children:[(0,w.jsx)(u8,{language:r,dividerTargetUrl:t}),n]})},u8=e=>{let{dividerTargetUrl:t,language:n}=e,r=(0,P.sJ)(o_),a=(0,P.sJ)(oF),{t:i,i18n:l}=(0,D.$G)(),o=n||l.language,[s,c]=(0,C.useState)(0),[u]=(0,T.dD)(),d=(0,C.useMemo)(()=>null==r?void 0:r.slice(0,s+14),[s,r,o]),p=(0,P.sJ)(oI),f=a?"grid-cols-[2fr_3fr_2fr] desk:grid-cols-[1fr_2fr_2fr_2fr_2fr_1fr]":"grid-cols-[2fr_3fr_2fr] desk:grid-cols-[1fr_2fr_2fr_2fr_2fr]";return(0,w.jsxs)("div",{className:(null==d?void 0:d.length)?"max-w-[91rem] mx-auto":"",children:[(0,w.jsxs)("div",{className:"px-2 desk:p-0",children:[(null==d?void 0:d.length)?(0,w.jsxs)("div",{className:"grid gap-4 text-base font-bold text-lightblue text-center py-2 ".concat(f),children:[(0,w.jsx)("div",{className:"",children:i("destinations.flight")}),(0,w.jsx)("div",{className:"hidden desk:block",children:i("destinations.airline")}),(0,w.jsx)("div",{className:"hidden desk:block",children:i("destinations.airport")}),(0,w.jsx)("div",{children:"".concat(u?i("destinations.activityShort"):i("destinations.activity"))}),(0,w.jsx)("div",{children:"".concat(u?i("destinations.frequencyShort"):i("destinations.frequency"))}),a?null:(0,w.jsx)(w.Fragment,{}),p.flgActivateVoice?(0,w.jsx)("div",{className:"hidden"}):null]}):null,(null==d?void 0:d.length)?d.map((e,n)=>(0,w.jsx)(C.Fragment,{children:(n+1)%5==0?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(sO,{actionColumn:a,actionLabel:i("flights.buyTickets"),actionLink:"/".concat(o,"/voli/prenota-il-tuo-volo"),flightItem:e},n),(0,w.jsx)(sk,{language:o,data:null,dividerMode:!0,targetUrl:t},e.flightId)]}):(0,w.jsx)(sO,{actionColumn:a,actionLabel:i("flights.buyTickets"),actionLink:"/".concat(o,"/voli/prenota-il-tuo-volo"),flightItem:e},n)},n)):(0,w.jsx)("div",{className:"w-full flex justify-center mb-8",children:Array.isArray(r)&&(null==r?void 0:r.length)===0?(0,w.jsx)(uO,{}):null})]}),!(s+14>=(null==r?void 0:r.length))&&(null==d?void 0:d.length)?(0,w.jsx)(uI,{onClick:()=>c(s+14),className:"m-auto mt-8 mb-8",text:i("flights.nextFlights"),iconType:"next"}):null]})},u7=si()(()=>n.e(4).then(n.bind(n,2004)),{loadableGenerated:{webpack:()=>[2004]},ssr:!1});var u9=e=>{var t,n,r,a,i,l,o,s,c,u,d,p,f;let{data:h,language:m}=e,{i18n:v}=(0,D.$G)(),g=m||v.language,[x]=(0,T.dD)(),b=!!h&&(null==h?void 0:null===(t=h.data)||void 0===t?void 0:t.grpVideoFiles)==="grpVimeoVideo",y=(0,T.b7)(null==h?void 0:null===(r=h.data)||void 0===r?void 0:null===(n=r.xconImageRepository)||void 0===n?void 0:n.targeturl);return(0,w.jsxs)("div",{className:"max-w-cont-2 mx-auto px-6 py-5",children:[(0,w.jsxs)("div",{className:"".concat((null==h?void 0:null===(a=h.data)||void 0===a?void 0:a.enuTitleColor)?(0,l$.Cw)("text",null==h?void 0:null===(i=h.data)||void 0===i?void 0:i.enuTitleColor):"text-black"," mb-[25px]"),children:[(null==h?void 0:null===(l=h.data)||void 0===l?void 0:l.lblTitle)&&(0,w.jsx)("h2",{className:"text-2xl desk:text-3xl font-semibold font-secondary",dangerouslySetInnerHTML:{__html:l1().sanitize(null==h?void 0:null===(o=h.data)||void 0===o?void 0:o.lblTitle[g])}}),(null==h?void 0:null===(s=h.data)||void 0===s?void 0:s.lblSubtitle)&&(0,w.jsx)("h3",{className:"desk:text-lg font-primary mt-[10px]",dangerouslySetInnerHTML:{__html:l1().sanitize(null==h?void 0:null===(c=h.data)||void 0===c?void 0:c.lblSubtitle[g])}})]}),h&&(0,w.jsx)("div",{children:(0,w.jsx)(u7,{light:!!y&&(null==y?void 0:null===(d=y.data)||void 0===d?void 0:null===(u=d.image)||void 0===u?void 0:u.mediaserverpath)+"/"+(null==y?void 0:null===(f=y.data)||void 0===f?void 0:null===(p=f.image)||void 0===p?void 0:p.resourcename),className:"react-player",controls:!0,width:"100%",height:"".concat(x?b?"":"20rem":"32rem"),url:(()=>{var e,t,n,r,a,i,l;switch(null==h?void 0:null===(e=h.data)||void 0===e?void 0:e.grpVideoFiles){case"grpYoutubeUrl":return null==h?void 0:null===(t=h.data)||void 0===t?void 0:t.lblEmbedUrl[g];case"grpVimeoVideo":return null==h?void 0:null===(n=h.data)||void 0===n?void 0:n.lblEmbedVideoVimeoUrl[g];case"grpUploadVideos":return(null==h?void 0:null===(a=h.data)||void 0===a?void 0:null===(r=a.upfVideoFiles[g])||void 0===r?void 0:r.mediaserverpath)+"/"+(null==h?void 0:null===(l=h.data)||void 0===l?void 0:null===(i=l.upfVideoFiles[g])||void 0===i?void 0:i.resourcename);default:return""}})()})})]})}},8172:function(e,t,n){"use strict";var r,a;n.d(t,{Hd:function(){return l},Q2:function(){return o},UW:function(){return r},Uv:function(){return i}});let i={A:{it:"/it/voli/arrivi/volo-in-arrivo",en:"/en/flights/arrivals/flight-detail"},D:{it:"/it/voli/partenze/volo-in-partenza",en:"/en/flights/departures/flight-detail"}},l={A:{it:"/it/voli/arrivi",en:"/en/flights/arrivals"},D:{it:"/it/voli/partenze",en:"/en/flights/departures"}};(a=r||(r={})).A="A",a.D="D";let o={movementType:"D",dateFrom:new Date,dateTo:"",loadingType:"P",airlineDescription:"",airportDestinationIata:"",flightNumber:"",searchText:"",terminal:"all"}},6197:function(e,t,n){"use strict";n.d(t,{Ho:function(){return o},aC:function(){return s}});var r=n(5893),a=n(1955),i=n(7294);let l=(0,i.createContext)(void 0),o=e=>{let{children:t}=e,n=a.Z.get("token"),o=n?JSON.parse(n):null,[s,c]=(0,i.useState)(o),u=e=>{c(e)},d=()=>{c(null)},p=(0,i.useMemo)(()=>({user:s,updateUser:u,removeUser:d}),[s]);return(0,r.jsx)(l.Provider,{value:p,children:t})},s=()=>(0,i.useContext)(l)},8903:function(e,t,n){"use strict";n.d(t,{$N:function(){return p},b5:function(){return s},Yr:function(){return l.Z},xW:function(){return h},dD:function(){return o.Z},b7:function(){return a},O3:function(){return i}});var r=n(7294),a=function(e){let[t,n]=(0,r.useState)(),a=()=>fetch(e).then(e=>e.json()).then(e=>n(e)).catch(e=>{console.error("useModule Error -> ",e)});return(0,r.useEffect)(()=>{e&&a()},[e]),t},i=function(e,t){(0,r.useEffect)(()=>{function n(n){(null==e?void 0:e.current)&&!e.current.contains(n.target)&&t()}return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[e])},l=n(3659),o=n(9175),s=function(e,t){let[n,a]=(0,r.useState)(),[i,l]=(0,r.useState)(t),o=()=>{let t="",n="",r=new URLSearchParams;switch(e){case"news":t="/rest/v1/SEA-LinMxp/contents/news",n="xtaxNewsCategory.ti.label",r.set("xtaxAirports.ti.label","'".concat("Malpensa","'"));break;case"faqs":t="/rest/v1/SEA-LinMxp/contents/faq",n="xtaxFaqCategories.ti.label"}"TUTTE"!==i?r.set(n,"'"+i+"'"):r.set("enuPageCategory","'News'"),"news"==e&&r.set("sort","dteNews:DESC");let l=r.toString().replace("&","+AND+");fetch("".concat("https://resourcesols3cms.seamilano.eu"+t).concat(i?"?query="+l:"")).then(e=>e.json()).then(e=>a(e))};return(0,r.useEffect)(()=>o(),[i]),[n,e=>{l(e)}]},c=n(1643),u=n(2120),d=n(4480),p=()=>{let[e,t]=(0,d.FV)(c.Z),{i18n:n}=(0,u.$G)(),a=n.language,i=()=>{fetch("https://apiextra.seamilano.eu/ols-flights/v1"+"/".concat(a,"/anagraphic/airlines/lists?airportReferenceIata=").concat("mxp","&active=y"),{headers:{keyId:"6bc034ea-ae66-40ce-891e-3dccf63cb2eb"}}).then(e=>e.json()).then(e=>t(e.data))};return(0,r.useEffect)(()=>{i()},[a]),[e]};let f=["iPhone","iPod","iPad","iPhone Simulator","iPod Simulator","iPad Simulator","iOS","MacIntel"];var h=()=>{let[e,t]=(0,r.useState)(!1),n=()=>{t(f.includes(navigator.platform))};return(0,r.useEffect)(()=>{n()},[navigator]),e}},3659:function(e,t,n){"use strict";var r=n(7294);t.Z=function(e){let{urls:t}=e,[n,a]=(0,r.useState)(),i=()=>{Promise.all(t.map(e=>fetch(e).then(e=>e.json()))).then(e=>a(e)).catch(e=>{console.error("[useDataCard] Error -> ",e)})};return(0,r.useEffect)(()=>{t&&t.length&&i()},[t]),n}},9175:function(e,t,n){"use strict";var r=n(7294);t.Z=()=>{let[e,t]=(0,r.useState)(!0),[n,a]=(0,r.useState)(!1),[i,l]=(0,r.useState)(!1),o=()=>{l(window.innerWidth>=1024),a(window.innerWidth>=768&&window.innerWidth<=1024),t(window.innerWidth<768)};return(0,r.useEffect)(()=>(window.addEventListener("resize",o),()=>window.addEventListener("resize",o)),[e,n,i]),(0,r.useEffect)(()=>{o()},[]),[e,n,i]}},6117:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(5893),a=n(4480),i=n(5397),l=n(6197),o=n(6501),s=n(2831),c=n(2120);n(5946).ZP.use(c.Db).init({fallbackLng:"en",resources:{en:{translation:{homepage:{footer_airport:"Airport:"},menulabels:{labelBoutique:"E-Boutique"},service:{serviceCategory:"Category",beforeSecurityChecks:"Before security checks",afterSecurityChecks:"After security checks"},login:{title:"Login",placeholderEmail:"Address e-mail *",placeholderPassword:"Password *",loginButton:"Sign in",forgetPasswordText:"Forgot Password ?",newUserText:" New user? Sign up",wrongEmailOrPassword:"Email or password not valid",wrongEmail:"Email not valid"},shop:{noShopsFound:"No stores match your search criteria",noProductsForShop:"There are no products available for this shop",chooseForYou:"CHOOSE FOR YOU",infoShop:"STORE INFORMATION",category:"Category",beforeFilter:"Before Security Checks",afterFilter:"After Security Checks",fashion:"FASHION AND FASHION ACCESSORIES",beauty:"WELLNESS AND BEAUTY",food:"GASTRONOMY/CONFECTIONERY",dutyFree:"DUTY FREE",books:"BOOKS/NEWS PAPER\\SOUVENIR",restaurants:"RESTAURANT",detail:"DETAIL",book:"BOOK",map:"See map",inAirport:"airport",br:"bar-restaurants",shops:"shops",openingShop:"Opening hours",whereShop:"Where to find us",helpShop:"Need help?",contacts:"Contacts"},form:{airport:"Airport",motivation:"MOTIVATION",argument:"TOPIC",solution:"SOLUTION",selectFile:"Select File",selectMotivation:"Select a Motivation",selectArgument:"Select a topic",selectOption:"Select an option",sendEmailNow:"SEND EMAIL NOW",validEmail:"Enter a valid email",none:"None"},flights:{baggageCarousel:"Baggage Carousel",flightNumber:"Flight number",departingFrom:"Departing to:",comingFrom:"Coming from:",departures:"Departures",arrivals:"Arrivals",details:"Details",lastUpdate:"Last update",lastUpdateDetail:"Updated at",nextFlights:"Next flights",previousFlights:"Previous flights",searchFlights:"Search flights",livesearchPlaceholder:"Search flight no., city...",to:"To",from:"From",departuresCheckIn1:"Arrive at the airport early, following the airline's guidelines. Ensure you have the required documents for your destination country.",departuresCheckIn2:"Arrive at the airport early, following the airline's guidelines. Ensure you have the required documents for your destination country.",flightTo:" TO ",flightFrom:" FROM ",follow:"Follow",trackingMode:"Track Your Flight",flightTracking:"Flight Tracking",flightNotTrackable:"Flight Not Trackable",flightTrackingSuccess:"Flight tracking activated",flightTrackingAlreadySubscribed:"Tracking already active for this flight, would you like to deactive it?",flightTrackingMaxSubscription:"Is not possible to activate flight tracking on more then three flights",flightGenericError:"There was an error, retry",flightDeparture:"DEPARTURE",flightArrival:"ARRIVAL",flightDateOn:"on ",flightDateAt:"at ",flightDetailEmpty:"Flight information not available",flightEmpty:"No flights",flightsDepartureGoTo:"Departures",flightsArrivalGoTo:"Arrivals",flightsSearchCta:"Find out the flight you’re interested in",flightTrackingNotLogged:"You must be logged in to activate flight tracking",flightTrackingDisable:"Deactivate",flightTrackingSuspend:"Flight tracking deactivated",buyTickets:"Buy tickets",showMore:"Show more",noResults:"No results",imessageText:"Subscribe to flight ",whatsappText:"Subscribe to flight "},account:{welcome:"Welcome to your personal area! Track your flight and check your purchases. Manage your account with just a simple click.",hello:"Hi",yes:"YES",points1:"You have",points2:"points",points3:"You're",points4:"away from winning your next prize.",points5:"Congrats! Redeem your reward and continue collecting points with ViaMilano Program.",preference:"Preferences",changeInfo:"Change your info",changeInfosubTitle:"You can modify your personal info at any moment so that your account is always up to date.",data:"User Data",name:"Name",surname:"Surname",birthday:"Date of Birth",cell:"Cellphone number",sex:"Sex",save:"SAVE CHANGES",backToSettings:"BACK TO SETTINGS",modify:"Modify",account:"You can handle you account and your subscriptions here",consent:"Modify privacy consent",consentTitle:"Having read the privacy information for the processing of my personal data pursuant to art. 13 of Regulation (EU) 2016/679 by the Joint Controllers of the S.E.A. Treatment, and art. 6 of Regulation (EU) 2016/679 I give the following consents:",consentSubTitle:"To receive communications for marketing purposes through:",privacy:"I declare that I have read the Privacy Information and consent to the processing of my personal data provided in the context of using the Service.",personalData:"I authorize the processing of my personal data for the sending of airport information, promotional and commercial communications relating to SEA services, through its channels, for promotional, commercial and marketing purposes, as indicated in the Privacy Policy.",personalDataprofile:"I authorize the processing of my personal data for profiling activities, including but not limited to the processing of data relating to my purchases, my preferences and consumption choices for market analysis and statistics activities, creation of profiles (individual and/or or aggregated), as indicated in the Privacy Policy.",myAccountTitle:"Personal information: user data, telepass and preferences",pswSubTitle:"It's possible to update your password at any moment in order to keep your account safe.",changepsw:"Change password",privacyTitle:"Verify your privacy consents",privacySubTitle:"You can check or modify your consents and subscriptions here.",deleteTitle:"Delete my account",deleteSubTitle:"Delete your account and Fidelity card Via Milano Program.",telepassTitle:"Connect your Telepass code",telepassSubtitle:"Set your Telepass code and collect ViaMilano Program points",telepassNumber:"Telepass number",preferenceTitle:"Preferences: the more you add the more you get",preferenceSubtitle:"Do you wish for SEA to know you better in order to give you a better service in line with your needs?",fidelityCardNumber:"Card number:",showFidelityCard:"Show fidelity card",getYourFidelityCard:"Get your fidelity card",fidelityCard:"My fidelity card",flightsTracking:"Flight tracking",myPurchases:"My purchases",myAccount:"My account",logout:"Logout",flightTrackingLast6Month:"Last 6 months",flightTrackingLast3Month:"Last 3 months",flightTrackingLastMonth:"Last month",genderM:"Male",genderF:"Female",cardSubscription:"Sign up for the program that allows you to collect points with every purchase, obtaining rewards and benefits.",notFound:"Not found",subscribe:"Subscribe"},parking:{today:"Today",hour:"Hour",time:"Time",searchParking:"Search parking",chooseTime:"Select time",list:"List",map:"Map"},trains:{searchTrain:"Search trains",linkTrain:"/train"},travel_inspiration:{city:"City",sea:"Sea",culture:"Culture",nature:"Nature",departuresCheckIn2:"Arrive at the airport hours in advance: 2",findYourFlightTo:"Find your flight to "},destinations:{noResult:"Your research has no results.",selectContinent:"Select continent",selectNation:"Select country/territory",selectCity:"Select city",flight:"Flight",airline:"Airline",airport:"Airport",activity:"Operating period",activityShort:"Active",frequency:"Time and Frequency",frequencyShort:"Frequency"},airlines:{selectCode:"Select code",airlines:"Airline",code:"Code",goToWebSite:"WEB SITE",contactAirline:"Contact the airline",contact:"Contact"},purchases:{date:"Date",details:"Details",pnr:"Purchase Code (PNR)",tot:"Total",ticket:"VIEW TICKET",shopping:"Start shopping!",nopurchases:"No purchases found"},loyalty:{programDescription:"With your Via Milano Program loyalty card you can earn points with your purchases of products or services at Milan Malpensa airport. In shops, just show the loyalty card code during the purchase.",rules:"Discover the regulation",knowMore:"Learn more",showFidelityProgram:"Program",downloadCard:"Download fidelity card",myFidelityProgram:"My loyalty program",pointsLabel:"You have",points:"Points",pointsOverview:"Points overview",date:"Date",detail:"Detail",rewardCatalog:"Rewards catalog",myRewards:"My rewards",rewardHistoryCta:"See my rewards history",residue:"Residual",request:"Request",confirm:"Are you sure to redeem the prize?",cancel:"Cancel"},news:{seeAllTheNews:"SEE ALL THE NEWS",readArticle:"READ ARTICLE"},faqs:{seeAllTheFaqs:"SEE ALL THE FAQS"},globalSearch:{search:"Search...",searchBtn:"SEARCH",delete:"Delete",noResults:"There are no results for",all:"All",resultsFor:"search results for",visitPage:"VISIT PAGE"}}},it:{translation:{homepage:{footer_airport:"Aeroporto:"},menulabels:{labelBoutique:"E-Boutique"},service:{serviceCategory:"Categoria",beforeSecurityChecks:"Prima dei controlli di sicurezza",afterSecurityChecks:"Dopo dei controlli di sicurezza"},login:{title:"Login",placeholderEmail:"Indirizzo e-mail *",placeholderPassword:"Password *",loginButton:"Accedi",forgetPasswordText:"Password dimenticata?",newUserText:" Nuovo utente? Registrati",wrongEmailOrPassword:"Email o password non validi",wrongEmail:"Email non valida"},shop:{noShopsFound:"Nessun negozio corrisponde ai criteri di ricerca",noProductsForShop:"Non ci sono prodotti disponibili per questo negozio",chooseForYou:"SCELTI PER TE",infoShop:"INFORMAZIONI NEGOZIO",category:"Categoria",beforeFilter:"Prima dei filtri di sicurezza",afterFilter:"Oltre i filtri di sicurezza",fashion:"MODA/ACCESSORI",beauty:"BENESSERE/BELLEZZA",food:"GASTRONOMIA/PASTICCERIA",dutyFree:"DUTY FREE",books:"LIBRI/GIORNALI/SOUVENIR",restaurants:"RISTORANTE",detail:"DETTAGLIO",book:"PRENOTA",map:"Vedi mappa",inAirport:"in-aeroporto",br:"bar-ristoranti",shops:"negozi",openingShop:"Orari apertura",whereShop:"Dove ci trovi",helpShop:"Possiamo aiutarti?",contacts:"Contatti"},form:{airport:"Aeroporto",motivation:"MOTIVAZIONE",argument:"ARGOMENTO",solution:"SOLUZIONE",selectFile:"Seleziona File",selectMotivation:"Seleziona una motivazione",selectArgument:"Seleziona un argomento",selectOption:"Seleziona un'opzione",sendEmailNow:"INVIA EMAIL ORA",validEmail:"Inserisci una email valida",none:"Nessuno"},flights:{baggageCarousel:"Nastro bagagli",flightNumber:"Numero volo",departingFrom:"In partenza per:",comingFrom:"In arrivo da:",departures:"Partenze",arrivals:"Arrivi",details:"Dettagli",lastUpdate:"Ultimo aggiornamento",lastUpdateDetail:"Aggiornato alle",nextFlights:"Vedi voli successivi",previousFlights:"Vedi voli precedenti",searchFlights:"Cerca voli",livesearchPlaceholder:"Cerca n. volo, citt\xe0...",departuresCheckIn1:"Arriva in aeroporto in anticipo, seguendo le indicazioni della compagnia aerea. Assicurati di avere i documenti necessari per il tuo viaggio.",departuresCheckIn2:"Arriva in aeroporto in anticipo, seguendo le indicazioni della compagnia aerea. Assicurati di avere i documenti necessari per il tuo viaggio.",to:"A",from:"Da",flightTo:" PER ",flightFrom:" DA ",follow:"Segui",trackingMode:"Attiva Tracking",flightTracking:"Tracking volo",flightNotTrackable:"Volo non tracciabile",flightTrackingSuccess:"Il tracking del volo \xe8 stato attivato",flightTrackingAlreadySubscribed:"Il tracking \xe8 gi\xe0 attivo per questo volo, vuoi disattivarlo?",flightTrackingMaxSubscription:"Non \xe8 possibile attivare il flight tracking su pi\xf9 di tre voli",flightGenericError:"Si \xe8 verificato un errore, riprova",flightDeparture:"PARTENZA",flightArrival:"ARRIVO",flightDateOn:"il ",flightDateAt:"alle ",flightDetailEmpty:"Informazioni volo non disponibili",flightEmpty:"Nessun volo presente",flightsDepartureGoTo:"Voli in partenza",flightsArrivalGoTo:"Voli in arrivo",flightsSearchCta:"Cerca i voli che ti interessano!",flightTrackingNotLogged:"Devi aver effettuato l'accesso per attivare il tracking del volo",flightTrackingDisable:"Disattiva",flightTrackingSuspend:"Il tracking del volo \xe8 stato disattivato",buyTickets:"Acquista biglietti",showMore:"Mostra di pi\xf9",noResults:"Nessun risultato",imessageText:"Ricevi le informazioni del volo ",whatsappText:"Ricevi le informazioni del volo "},account:{welcome:"Benvenuto nell'area personale! Traccia il tuo volo e visualizza i tuoi acquisti. Gestisci il tuo account con un semplice clic.",hello:"Ciao",yes:"SI",points1:"Hai",points2:"punti",points3:"Ti mancano",points4:"per aggiudicarti il prossimo premio.",points5:"Complimenti! Riscatta il tuo premio e continua a collezionare punti con ViaMilano Program.",preference:"Preferenze",changeInfo:"Cambia le informazioni",changeInfosubTitle:"Puoi modificare le tue informazioni personali in qualsiasi momento in modo che il tuo account sia sempre aggiornato.",data:"Dati Utente",name:"Nome",surname:"Cognome",birthday:"Data di nascita",cell:"Cellulare",sex:"Sesso",save:"SALVA MODIFICHE",backToSettings:"TORNA AD IMPOSTAZIONI",modify:"Modifica",account:"Puoi gestire il tuo account e le tue sottoscrizioni qui",consent:"modifica consensi privacy",consentTitle:"Presa visione dell'informativa privacy per il trattamento dei miei dati personali resa ai sensi dell'art. 13 del Regolamento (UE) 2016/679 dai Contitolari del Trattamento S.E.A., e art. 6 del Regolamento (UE) 2016/679 presto i seguenti consensi:",consentSubTitle:"Per ricevere comunicazioni con finalit\xe0 di marketing attraverso:",privacy:"Dichiaro di aver preso visione dell'Informativa Privacy e di acconsentire al trattamento dei miei dati personali forniti nell'ambito della fruizione del Servizio.",personalData:"Autorizzo il trattamento dei miei dati personali per l'invio di informazioni aeroportuali, comunicazioni promozionali, commerciali relative a servizi di SEA, tramite i suoi canali, per finalit\xe0 promozionali, commerciali e di marketing, come indicato nell'Informativa Privacy.",personalDataprofile:"Autorizzo il trattamento dei miei dati personali per attivit\xe0 di profilazione, ivi incluso a mero titolo esemplificativo il trattamento dei dati relativi ai miei acquisti, le mie preferenze e scelte di consumo per attivit\xe0 di analisi di mercato e statistiche, creazione di profili (individuali e/o aggregati), come indicato nell'Informativa Privacy.",myAccountTitle:"Informazioni personali: dati utente, telepass e preferenze",pswSubTitle:"\xc8 possibile aggiornare la password in qualsiasi momento per proteggere il tuo account.",privacyTitle:"Verifica i tuoi consensi privacy",privacySubTitle:"Puoi verificare o modificare qui i tuoi consensi e le tue sottoscrizioni.",cancelTitle:"Cancella il mio account",cancelSubTitle:"Cancellazione dell'account e della Fidelity card Via Milano Program.",telepassTitle:"Associa il tuo codice Telepass",telepassSubtitle:"Associando il tuo codice Telepass e accumuli punti ViaMilano Program",telepassNumber:"Numero Telepass",preferenceTitle:"Preferenze: pi\xf9 aggiungi pi\xf9 ottieni",preferenceSubtitle:"Desideri che SEA possa conoscerti meglio per offriti un servizio migliore e in linea con le tue esigenze?",fidelityCardNumber:"Numero carta:",showFidelityCard:"Visualizza carta fedelt\xe0",getYourFidelityCard:"Ottieni la tua carta fedelt\xe0",fidelityCard:"La mia carta fedelt\xe0",flightsTracking:"Tracking voli",myPurchases:"I miei acquisti",myAccount:"Il mio account",logout:"Logout",flightTrackingLast6Month:"Ultimi 6 mesi",flightTrackingLast3Month:"Ultimi 3 mesi",flightTrackingLastMonth:"Ultimo mese",genderM:"Maschio",genderF:"Femmina",cardSubscription:"Iscriviti al programma che ti permette di raccogliere punti ad ogni acquisto ottenendo premi e vantaggi.",notFound:"Non associato",subscribe:"Iscriviti"},parking:{searchParking:"Cerca parcheggi",today:"Oggi",hour:"Ora",time:"Orario",chooseTime:"Seleziona ora",list:"Elenco",map:"Mappa"},trains:{searchTrain:"Cerca treni",linkTrain:"/treno"},travel_inspiration:{city:"Citt\xe0",sea:"Mare",culture:"Cultura",nature:"Natura",departuresCheckIn2:"Arrivare in aeroporto in anticipo di ore: 2",findYourFlightTo:"Trova il tuo volo per "},destinations:{noResult:"La tua ricerca non ha prodotto risultati.",selectContinent:"Seleziona continente",selectNation:"Seleziona nazione/territorio",selectCity:"Seleziona citt\xe0",flight:"Volo",airline:"Compagnia aerea",airport:"Aeroporto",activity:"Operativit\xe0 voli",activityShort:"Attivit\xe0",frequency:"Orario e frequenza",frequencyShort:"Frequenza"},airlines:{selectCode:"Seleziona codice",airlines:"Compagnia aerea",code:"Codice",goToWebSite:"VAI AL SITO",contactAirline:"Contatta la compagnia aerea",contact:"Contatta"},purchases:{date:"Data Ordine",details:"Dettagli",pnr:"Codice d'acquisto (PNR)",tot:"Totale",ticket:"VISUALIZZA TICKET",shopping:"Inizia a fare acquisti!",nopurchases:"Nessun acquisto presente"},loyalty:{programDescription:"Con la tua carta fedelt\xe0 Via Milano Program potrai guadagnare punti con i tuoi acquisti di prodotti o servizi presso l’aeroporto di Milano Malpensa. Nei negozi baster\xe0 mostrare il codice della carta fedelt\xe0 in fase di acquisto.",rules:"Scopri il regolamento",knowMore:"Scopri di pi\xf9",showFidelityProgram:"Programma",downloadCard:"Scarica carta fedelt\xe0",myFidelityProgram:"Il mio Programma Fedelt\xe0",pointsLabel:"Hai totalizzato",points:"Punti",pointsOverview:"Panoramica punti",date:"Data",detail:"Dettaglio",rewardCatalog:"Catalogo premi",myRewards:"I miei premi",rewardHistoryCta:"Vedi il mio storico premi",residue:"Residuo",request:"Richiedi",confirm:"Sei sicuro di voler confermare l'operazione?",cancel:"Annulla"},news:{seeAllTheNews:"VEDI TUTTE LE NOTIZIE",readArticle:"LEGGI ARTICOLO"},faqs:{seeAllTheFaqs:"VEDI TUTTE LE FAQS"},globalSearch:{search:"Cerca...",searchBtn:"CERCA",delete:"Cancella",noResults:"Non ci sono risultati per ",all:"Tutti i ",resultsFor:" risultati di ricerca per ",visitPage:"VISITA PAGINA"}}}}}),n(876);var u=n(4298),d=n.n(u),p=n(7294),f=()=>((0,p.useEffect)(()=>{let e=()=>{document.querySelectorAll('img[src*="sascdn.com"]').forEach(e=>{e.setAttribute("alt",""),e.setAttribute("aria-hidden","true"),e.setAttribute("role","presentation")}),document.querySelectorAll('[id^="sas_"] button').forEach(e=>{e.getAttribute("aria-label")||e.setAttribute("aria-label","Chiudi pubblicit\xe0")})},t=new MutationObserver(()=>e());return t.observe(document.body,{childList:!0,subtree:!0}),e(),()=>t.disconnect()},[]),null);function h(e){let{Component:t,pageProps:n}=e,{lang:c,data:u,footerData:p,navigationData:h}=n;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("noscript",{dangerouslySetInnerHTML:{__html:'<iframe src=https://www.googletagmanager.com/ns.html?id=GTM-PHDZC8M\n            height="0" width="0" style="display:none;visibility:hidden"></iframe>'}}),(0,r.jsx)(d(),{strategy:"afterInteractive",children:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n            new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n            j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n            'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n            })(window,document,'script','dataLayer','GTM-PHDZC8M');"})]}),(0,r.jsx)(a.Wh,{children:(0,r.jsxs)(l.Ho,{children:[(0,r.jsx)(f,{}),(0,r.jsxs)("div",{className:"font-primary font-normal",children:[(0,r.jsx)(o.x7,{position:"bottom-right"}),(0,r.jsx)(i.SV,{customMessage:"Alert is broken",children:(0,r.jsx)(i.bZ,{language:c,targetUrl:"/resourcesols3cms.seamilano.eu/rest/v1/SEA-LinMxp/contents/alert"})}),h?(0,r.jsx)(i.SV,{customMessage:"Navigation menu is broken",children:(0,r.jsx)(s.Z,{language:c,navigationData:h,hostPageData:u?u.data[0]:null})}):null,(0,r.jsx)(t,{...n}),p?(0,r.jsx)(i.SV,{customMessage:"Footer is broken",children:(0,r.jsx)(i.$_,{dataFooter:p.data,lang:c})}):null]})]})})]})}},3743:function(e,t){"use strict";let n={rosso:["text-[#FF0000]","bg-[#FF0000]","border-[#FF0000]","fill-[#FF0000]"],bianco:["text-[#FFFFFF]","bg-[#FFFFFF]","border-[#FFFFFF]","fill-[#FFFFFF]"],nero:["text-[#000000]","bg-[#000000]","border-[#000000]","fill-[#000000]"],azzurro:["text-[#14688E]","bg-[#14688E]","border-[#14688E]","fill-[#14688E]"],grigio:["text-[#E6E6E6]","bg-[#E6E6E6]","border-[#E6E6E6]","fill-[#E6E6E6]"],grigiomedio:["text-[#505050]","bg-[#505050]","border-[#505050]","fill-[#505050]"]};t.Z=function(e,t){let r={text:0,bg:1,border:2,fill:3},a=n[null==t?void 0:t.toLowerCase()];return a&&r.hasOwnProperty(e)?""+a[r[e]]:""}},8612:function(e,t){"use strict";t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=e.getFullYear(),a=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),l=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0");return"".concat(r).concat(t).concat(a).concat(t).concat(i)+"".concat(n?" "+"".concat(l,":").concat(o):"")}},376:function(e,t){"use strict";t.Z=function(e){let t=e.getHours().toString().padStart(2,"0"),n=e.getMinutes().toString().padStart(2,"0");return"".concat(t,":").concat(n)}},2593:function(e,t){"use strict";t.Z=(e,t)=>{var n,r,a,i,l,o,s,c,u,d,p,f,h,m,v,g;if(!e)return"";if(null==e?void 0:e.hasOwnProperty("grpLinkTypeIcons")){switch(null==e?void 0:e.grpLinkTypeIcons){case"grpLinkIcons":return null==e?void 0:e.lblLinkIcons[t];case"grpGenericPageIcons":return null==e?void 0:null===(n=e.xconGenericPageIcons)||void 0===n?void 0:n.lblUrlPath[t];case"grpNews":return null==e?void 0:null===(r=e.xconNews)||void 0===r?void 0:r.lblUrlPath[t]}return""}if(null==e?void 0:e.hasOwnProperty("grpLinkTypeSubFooter")){switch(null==e?void 0:e.grpLinkTypeSubFooter){case"grpLinkSiteMapSubFooter":return null==e?void 0:e.lblLinkSiteMapSubFooter[t];case"grpGenericPageSubFooter":return null==e?void 0:null===(a=e.xconGenericPageSubFooter)||void 0===a?void 0:a.lblUrlPath[t];case"grpNewsSubFooter":return null==e?void 0:null===(i=e.xconNewsSubFooter)||void 0===i?void 0:i.lblUrlPath[t]}return""}if((null==e?void 0:e.hasOwnProperty("lblLinkCtaService"))&&(null==e?void 0:e.lblLinkCtaService[t]))return null==e?void 0:e.lblLinkCtaService[t];if(null==e?void 0:e.hasOwnProperty("grpLinkType"))switch(e.grpLinkType){case"grpLinkLibero":case"grpLink":if(!(null==e?void 0:e.hasOwnProperty("lblLink")))return"";if((null==e?void 0:e.hasOwnProperty("lblLinkBox"))&&(null==e?void 0:e.lblLinkBox))return null==e?void 0:e.lblLinkBox[t];return(null==e?void 0:e.lblLink[t])||"";case"grpGenericPage":if(!e.hasOwnProperty("xconGenericPage"))return"";return(null==e?void 0:null===(l=e.xconGenericPage)||void 0===l?void 0:l.lblUrlPath)?null==e?void 0:null===(o=e.xconGenericPage)||void 0===o?void 0:o.lblUrlPath[t]:"";case"grpNews":if(!e.hasOwnProperty("xconNews"))return"";return(null==e?void 0:null===(s=e.xconNews)||void 0===s?void 0:s.lblUrlPath[t])||""}if(null==e?void 0:e.hasOwnProperty("grpLink"))switch(null==e?void 0:e.grpLink){case"grpLinkLibero":case"grpLink":if(!(null==e?void 0:e.hasOwnProperty("lblLink")))return"";return(null==e?void 0:e.lblLink[t])||"";default:if(!e.hasOwnProperty("xconGenericPage"))return"";return(null==e?void 0:null===(c=e.xconGenericPage)||void 0===c?void 0:c.lblUrlPath)&&(null===(u=e.xconGenericPage)||void 0===u?void 0:u.lblUrlPath[t])?null===(d=e.xconGenericPage)||void 0===d?void 0:d.lblUrlPath[t]:""}if((null==e?void 0:e.hasOwnProperty("lblLinkCtaEcommerce"))&&(null==e?void 0:e.lblLinkCtaEcommerce[t]))return null==e?void 0:e.lblLinkCtaEcommerce[t];if((null==e?void 0:e.hasOwnProperty("lblLinkBox"))&&(null==e?void 0:e.lblLinkBox[t]))return null==e?void 0:e.lblLinkBox[t];if((null==e?void 0:e.hasOwnProperty("grpLinkTypeTravel"))&&"grpGenericPageTravel"===e.grpLinkTypeTravel)return(null==e?void 0:e.hasOwnProperty("xconGenericPageTravel"))?null==e?void 0:null===(p=e.xconGenericPageTravel)||void 0===p?void 0:p.lblUrlPath[t]:"";if(null==e?void 0:e.hasOwnProperty("lblUrlPath"))return(null==e?void 0:e.lblUrlPath[t])||"";if(null==e?void 0:e.hasOwnProperty("grpLinkTypeBoxLaunch")){if(null==e?void 0:e.lblLinkBoxLaunch[t])return null==e?void 0:e.lblLinkBoxLaunch[t];if(null==e?void 0:null===(f=e.xconPopupBoxLaunch)||void 0===f?void 0:f.id)return"";if(null==e?void 0:null===(h=e.xconGenericPageBoxLaunch)||void 0===h?void 0:h.id)return null==e?void 0:null===(m=e.xconGenericPageBoxLaunch)||void 0===m?void 0:m.lblUrlPath[t];if(null==e?void 0:null===(v=e.xconNewsBoxLaunch)||void 0===v?void 0:v.id)return"";null==e||null===(g=e.xconGenericPage)||void 0===g||g.id}return""}},2459:function(e,t){"use strict";t.Z=function(e){return"ANNULLATO"==e||"CANCELLED"==e||"RITARDO"==e||"DELAY"==e?"bg-red":"bg-lightblue"}},7804:function(e,t,n){"use strict";n.d(t,{Cw:function(){return r.Z},p6:function(){return o.Z},mr:function(){return l.Z},Bi:function(){return a.Z},T8:function(){return i},Rw:function(){return s}});var r=n(3743),a=n(2593),i=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e&&window.open(e,t?"_blanck":"_self")},l=n(376),o=n(8612),s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"seconds",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={seconds:1e3,minutes:6e4,hours:36e5,days:864e5,months:2630016e3,years:31536e6};return n?e/r[t]:e*r[t]}},5843:function(){},6503:function(){},853:function(){},6761:function(){},876:function(){},4180:function(e){e.exports={searchResult:"Autocomplete_searchResult__FjIQo"}},8624:function(e){e.exports={reactDatePicker:"CustomPicker_reactDatePicker__92es6","react-date-picker":"CustomPicker_react-date-picker__uQM5S"}},8639:function(e){e.exports={dropdownWrapper:"DestinationFlightFilterPanel_dropdownWrapper__jLBVb"}},4638:function(e){e.exports={customPickerWrapper:"FlightPanel_customPickerWrapper__C9YyY","react-datepicker__tab-loop":"FlightPanel_react-datepicker__tab-loop__Ia_0m","react-datepicker":"FlightPanel_react-datepicker__8rS7W","react-datepicker__month-container":"FlightPanel_react-datepicker__month-container__emg6r",customPicker:"FlightPanel_customPicker__rQwfl",customRadio:"FlightPanel_customRadio__5dN3A",selectedItem:"FlightPanel_selectedItem__T3hnK",activeRadio:"FlightPanel_activeRadio__YNpY7",customTextInputWrapper:"FlightPanel_customTextInputWrapper__DbSET",icon:"FlightPanel_icon__Mlqvs",customTextInput:"FlightPanel_customTextInput__OXxXa"}},6950:function(e){e.exports={customSelect:"Livesearch_customSelect__irTsK"}},9522:function(e){e.exports={navItem:"Navigation_navItem__3fAtU",decorator:"Navigation_decorator__shkWy",active:"Navigation_active__EXzPW",navItemsContainer:"Navigation_navItemsContainer__ka72Z",customShadow:"Navigation_customShadow__hXok2"}},2586:function(e){e.exports={slideTitle:"Slider_slideTitle__sM7FQ",slideSubtitle:"Slider_slideSubtitle__bVGqY",slideItem:"Slider_slideItem__y2ETO",slideItemFixed:"Slider_slideItemFixed__KTosV",extContainer:"Slider_extContainer__lBtVi",carouselSectionWrapper:"Slider_carouselSectionWrapper__J_2Fr",slideImageContainer:"Slider_slideImageContainer__sj_Cd",slideImagePreserveRatio:"Slider_slideImagePreserveRatio__fEq6_",slideImageCover:"Slider_slideImageCover__WJb5l",customBullet:"Slider_customBullet__A2HWh"}},3539:function(e){e.exports={activeTab:"Tabber_activeTab__FhOvw"}},7663:function(e){!function(){var t={229:function(e){var t,n,r,a=e.exports={};function i(){throw Error("setTimeout has not been defined")}function l(){throw Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!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:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:l}catch(e){n=l}}();var s=[],c=!1,u=-1;function d(){c&&r&&(c=!1,r.length?s=r.concat(s):u=-1,s.length&&p())}function p(){if(!c){var e=o(d);c=!0;for(var t=s.length;t;){for(r=s,s=[];++u<t;)r&&r[u].run();u=-1,t=s.length}r=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===l||!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 f(e,t){this.fun=e,this.array=t}function h(){}a.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];s.push(new f(e,t)),1!==s.length||c||o(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=h,a.addListener=h,a.once=h,a.off=h,a.removeListener=h,a.removeAllListeners=h,a.emit=h,a.prependListener=h,a.prependOnceListener=h,a.listeners=function(e){return[]},a.binding=function(e){throw Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw Error("process.chdir is not supported")},a.umask=function(){return 0}}},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var i=n[e]={exports:{}},l=!0;try{t[e](i,i.exports,r),l=!1}finally{l&&delete n[e]}return i.exports}r.ab="//";var a=r(229);e.exports=a}()},5152:function(e,t,n){e.exports=n(2602)},5675:function(e,t,n){e.exports=n(6210)},1163:function(e,t,n){e.exports=n(3079)},4298:function(e,t,n){e.exports=n(3381)},2703:function(e,t,n){"use strict";var r=n(414);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,i,l){if(l!==r){var o=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:a};return n.PropTypes=n,n}},5697:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9198:function(e,t,n){!function(e,t,n,r,a,i,l,o,s,c,u,d,p,f,h,m,v,g,x,b,y,w,k,S,j,C,N,T,E,D,M,_,A,L,I,P,O,R,F,B,z,Z,H,U,V,W,G,Y,q,K,$,X,J,Q,ee,et,en,er,ea,ei,el,eo,es,ec,eu,ed,ep){"use strict";function ef(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var eh=ef(t),em=ef(r),ev=ef(a),eg=ef(i),ex=ef(l),eb=ef(o),ey=ef(s),ew=ef(c),ek=ef(u),eS=ef(d),ej=ef(p),eC=ef(f),eN=ef(v),eT=ef(g),eE=ef(x),eD=ef(b),eM=ef(y),e_=ef(w),eA=ef(k),eL=ef(S),eI=ef(j),eP=ef(C),eO=ef(N),eR=ef(T),eF=ef(E),eB=ef(D),ez=ef(M),eZ=ef(_),eH=ef(A),eU=ef(L),eV=ef(I),eW=ef(P),eG=ef(O),eY=ef(R),eq=ef(F),eK=ef(B),e$=ef(z),eX=ef(H),eJ=ef(U),eQ=ef(V),e0=ef(W),e1=ef(G),e2=ef(Y),e3=ef(q),e6=ef($),e5=ef(X),e4=ef(J),e8=ef(Q),e7=ef(ee),e9=ef(et),te=ef(en),tt=ef(er),tn=ef(ea),tr=ef(ei),ta=ef(el),ti=ef(eo),tl=ef(es),to=ef(ec),ts=ef(eu),tc=ef(ep);function tu(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 td(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tu(Object(n),!0).forEach(function(t){tv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tp(e){return(tp="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)}function tf(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function th(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tC(r.key),r)}}function tm(e,t,n){return t&&th(e.prototype,t),n&&th(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tv(e,t,n){return(t=tC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tg(){return(tg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function tx(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ty(e,t)}function tb(e){return(tb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ty(e,t){return(ty=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tw(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=tb(e);return n=t?Reflect.construct(r,arguments,tb(this).constructor):r.apply(this,arguments),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return tw(e)}(this,n)}}function tS(e){return function(e){if(Array.isArray(e))return tj(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return tj(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tj(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tj(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 tC(e){var t=function(e,t){if("object"!=typeof e||null===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:String(t)}function tN(e){var t=e?"string"==typeof e||e instanceof String?tl.default(e):ta.default(e):new Date;return tT(t)?t:null}function tT(e,t){return t=t||new Date("1/1/1000"),eg.default(e)&&!tn.default(e,t)}function tE(e,t,n){if("en"===n)return ex.default(e,t,{awareOfUnicodeTokens:!0});var r=tH(n)||tH(tZ())||null;return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),ex.default(e,t,{locale:r,awareOfUnicodeTokens:!0})}function tD(e,t){var n=t.dateFormat,r=t.locale;return e&&tE(e,Array.isArray(n)?n[0]:n,r)||""}function tM(e,t){var n=t.hour,r=t.minute,a=t.second;return eU.default(eH.default(eZ.default(e,void 0===a?0:a),void 0===r?0:r),void 0===n?0:n)}function t_(e,t,n){var r=tH(t||tZ());return eQ.default(e,{locale:r,weekStartsOn:n})}function tA(e){return e0.default(e)}function tL(e){return e2.default(e)}function tI(){return eJ.default(tN())}function tP(e,t){return e&&t?e9.default(e,t):!e&&!t}function tO(e,t){return e&&t?e7.default(e,t):!e&&!t}function tR(e,t){return e&&t?te.default(e,t):!e&&!t}function tF(e,t){return e&&t?e8.default(e,t):!e&&!t}function tB(e,t){return e&&t?e4.default(e,t):!e&&!t}function tz(e,t,n){var r,a=eJ.default(t),i=e3.default(n);try{r=tr.default(e,{start:a,end:i})}catch(e){r=!1}return r}function tZ(){return("undefined"!=typeof window?window:globalThis).__localeId__}function tH(e){if("string"==typeof e){var t="undefined"!=typeof window?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function tU(e,t){return tE(eV.default(tN(),e),"LLLL",t)}function tV(e,t){return tE(eV.default(tN(),e),"LLL",t)}function tW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,a=t.excludeDates,i=t.excludeDateIntervals,l=t.includeDates,o=t.includeDateIntervals,s=t.filterDate;return tK(e,{minDate:n,maxDate:r})||a&&a.some(function(t){return tF(e,t)})||i&&i.some(function(t){var n=t.start,r=t.end;return tr.default(e,{start:n,end:r})})||l&&!l.some(function(t){return tF(e,t)})||o&&!o.some(function(t){var n=t.start,r=t.end;return tr.default(e,{start:n,end:r})})||s&&!s(tN(e))||!1}function tG(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some(function(t){var n=t.start,r=t.end;return tr.default(e,{start:n,end:r})}):n&&n.some(function(t){return tF(e,t)})||!1}function tY(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,a=t.excludeDates,i=t.includeDates,l=t.filterDate;return tK(e,{minDate:e0.default(n),maxDate:e6.default(r)})||a&&a.some(function(t){return tO(e,t)})||i&&!i.some(function(t){return tO(e,t)})||l&&!l(tN(e))||!1}function tq(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,a=t.excludeDates,i=t.includeDates,l=t.filterDate,o=new Date(e,0,1);return tK(o,{minDate:e2.default(n),maxDate:e5.default(r)})||a&&a.some(function(e){return tP(o,e)})||i&&!i.some(function(e){return tP(o,e)})||l&&!l(tN(o))||!1}function tK(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&0>eK.default(e,n)||r&&eK.default(e,r)>0}function t$(e,t){return t.some(function(t){return eL.default(t)===eL.default(e)&&eA.default(t)===eA.default(e)})}function tX(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,a=t.filterTime;return n&&t$(e,n)||r&&!t$(e,r)||a&&!a(e)||!1}function tJ(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw Error("Both minTime and maxTime props required");var a,i=tN(),l=eU.default(eH.default(i,eA.default(e)),eL.default(e)),o=eU.default(eH.default(i,eA.default(n)),eL.default(n)),s=eU.default(eH.default(i,eA.default(r)),eL.default(r));try{a=!tr.default(l,{start:o,end:s})}catch(e){a=!1}return a}function tQ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,a=eE.default(e,1);return n&&e$.default(n,a)>0||r&&r.every(function(e){return e$.default(e,a)>0})||!1}function t0(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,a=eS.default(e,1);return n&&e$.default(a,n)>0||r&&r.every(function(e){return e$.default(a,e)>0})||!1}function t1(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,a=eM.default(e,1);return n&&eX.default(n,a)>0||r&&r.every(function(e){return eX.default(e,a)>0})||!1}function t2(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,a=eC.default(e,1);return n&&eX.default(a,n)>0||r&&r.every(function(e){return eX.default(a,e)>0})||!1}function t3(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(e){return eK.default(e,t)>=0});return eY.default(r)}return n?eY.default(n):t}function t6(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(e){return 0>=eK.default(e,t)});return eq.default(r)}return n?eq.default(n):t}function t5(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,a=e.length;r<a;r++){var i=e[r];if(ev.default(i)){var l=tE(i,"MM.dd.yyyy"),o=n.get(l)||[];o.includes(t)||(o.push(t),n.set(l,o))}else if("object"===tp(i)){var s=Object.keys(i),c=s[0],u=i[s[0]];if("string"==typeof c&&u.constructor===Array)for(var d=0,p=u.length;d<p;d++){var f=tE(u[d],"MM.dd.yyyy"),h=n.get(f)||[];h.includes(c)||(h.push(c),n.set(f,h))}}}return n}function t4(e){return e<10?"0".concat(e):"".concat(e)}function t8(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12,n=Math.ceil(eB.default(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}var t7=function(e){tx(r,e);var n=tk(r);function r(e){tf(this,r),tv(tw(a=n.call(this,e)),"renderOptions",function(){var e=a.props.year,t=a.state.yearsList.map(function(t){return eh.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:a.onChange.bind(tw(a),t),"aria-selected":e===t?"true":void 0},e===t?eh.default.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",t)}),n=a.props.minDate?eB.default(a.props.minDate):null,r=a.props.maxDate?eB.default(a.props.maxDate):null;return r&&a.state.yearsList.find(function(e){return e===r})||t.unshift(eh.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:a.incrementYears},eh.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&a.state.yearsList.find(function(e){return e===n})||t.push(eh.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:a.decrementYears},eh.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t}),tv(tw(a),"onChange",function(e){a.props.onChange(e)}),tv(tw(a),"handleClickOutside",function(){a.props.onCancel()}),tv(tw(a),"shiftYears",function(e){var t=a.state.yearsList.map(function(t){return t+e});a.setState({yearsList:t})}),tv(tw(a),"incrementYears",function(){return a.shiftYears(1)}),tv(tw(a),"decrementYears",function(){return a.shiftYears(-1)});var a,i=e.yearDropdownItemNumber,l=e.scrollableYearDropdown;return a.state={yearsList:function(e,t,n,r){for(var a=[],i=0;i<2*t+1;i++){var l=e+t-i,o=!0;n&&(o=eB.default(n)<=l),r&&o&&(o=eB.default(r)>=l),o&&a.push(l)}return a}(a.props.year,i||(l?10:5),a.props.minDate,a.props.maxDate)},a.dropdownRef=t.createRef(),a}return tm(r,[{key:"componentDidMount",value:function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,n=t?t.find(function(e){return e.ariaSelected}):null;e.scrollTop=n?n.offsetTop+(n.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}}},{key:"render",value:function(){var e=em.default({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return eh.default.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())}}]),r}(eh.default.Component),t9=to.default(t7),ne=function(e){tx(n,e);var t=tk(n);function n(){var e;tf(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return tv(tw(e=t.call.apply(t,[this].concat(a))),"state",{dropdownVisible:!1}),tv(tw(e),"renderSelectOptions",function(){for(var t=e.props.minDate?eB.default(e.props.minDate):1900,n=e.props.maxDate?eB.default(e.props.maxDate):2100,r=[],a=t;a<=n;a++)r.push(eh.default.createElement("option",{key:a,value:a},a));return r}),tv(tw(e),"onSelectChange",function(t){e.onChange(t.target.value)}),tv(tw(e),"renderSelectMode",function(){return eh.default.createElement("select",{value:e.props.year,className:"react-datepicker__year-select",onChange:e.onSelectChange},e.renderSelectOptions())}),tv(tw(e),"renderReadView",function(t){return eh.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(t){return e.toggleDropdown(t)}},eh.default.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),eh.default.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},e.props.year))}),tv(tw(e),"renderDropdown",function(){return eh.default.createElement(t9,{key:"dropdown",year:e.props.year,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableYearDropdown:e.props.scrollableYearDropdown,yearDropdownItemNumber:e.props.yearDropdownItemNumber})}),tv(tw(e),"renderScrollMode",function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n}),tv(tw(e),"onChange",function(t){e.toggleDropdown(),t!==e.props.year&&e.props.onChange(t)}),tv(tw(e),"toggleDropdown",function(t){e.setState({dropdownVisible:!e.state.dropdownVisible},function(){e.props.adjustDateOnChange&&e.handleYearChange(e.props.date,t)})}),tv(tw(e),"handleYearChange",function(t,n){e.onSelect(t,n),e.setOpen()}),tv(tw(e),"onSelect",function(t,n){e.props.onSelect&&e.props.onSelect(t,n)}),tv(tw(e),"setOpen",function(){e.props.setOpen&&e.props.setOpen(!0)}),e}return tm(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return eh.default.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(eh.default.Component),nt=function(e){tx(n,e);var t=tk(n);function n(){var e;tf(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return tv(tw(e=t.call.apply(t,[this].concat(a))),"isSelectedMonth",function(t){return e.props.month===t}),tv(tw(e),"renderOptions",function(){return e.props.monthNames.map(function(t,n){return eh.default.createElement("div",{className:e.isSelectedMonth(n)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:t,onClick:e.onChange.bind(tw(e),n),"aria-selected":e.isSelectedMonth(n)?"true":void 0},e.isSelectedMonth(n)?eh.default.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",t)})}),tv(tw(e),"onChange",function(t){return e.props.onChange(t)}),tv(tw(e),"handleClickOutside",function(){return e.props.onCancel()}),e}return tm(n,[{key:"render",value:function(){return eh.default.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}(eh.default.Component),nn=to.default(nt),nr=function(e){tx(n,e);var t=tk(n);function n(){var e;tf(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return tv(tw(e=t.call.apply(t,[this].concat(a))),"state",{dropdownVisible:!1}),tv(tw(e),"renderSelectOptions",function(e){return e.map(function(e,t){return eh.default.createElement("option",{key:t,value:t},e)})}),tv(tw(e),"renderSelectMode",function(t){return eh.default.createElement("select",{value:e.props.month,className:"react-datepicker__month-select",onChange:function(t){return e.onChange(t.target.value)}},e.renderSelectOptions(t))}),tv(tw(e),"renderReadView",function(t,n){return eh.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:e.toggleDropdown},eh.default.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),eh.default.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},n[e.props.month]))}),tv(tw(e),"renderDropdown",function(t){return eh.default.createElement(nn,{key:"dropdown",month:e.props.month,monthNames:t,onChange:e.onChange,onCancel:e.toggleDropdown})}),tv(tw(e),"renderScrollMode",function(t){var n=e.state.dropdownVisible,r=[e.renderReadView(!n,t)];return n&&r.unshift(e.renderDropdown(t)),r}),tv(tw(e),"onChange",function(t){e.toggleDropdown(),t!==e.props.month&&e.props.onChange(t)}),tv(tw(e),"toggleDropdown",function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})}),e}return tm(n,[{key:"render",value:function(){var e,t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return tV(e,t.props.locale)}:function(e){return tU(e,t.props.locale)});switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode(n);break;case"select":e=this.renderSelectMode(n)}return eh.default.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(eh.default.Component),na=function(e){tx(n,e);var t=tk(n);function n(e){var r;return tf(this,n),tv(tw(r=t.call(this,e)),"renderOptions",function(){return r.state.monthYearsList.map(function(e){var t=ez.default(e),n=tP(r.props.date,e)&&tO(r.props.date,e);return eh.default.createElement("div",{className:n?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:t,onClick:r.onChange.bind(tw(r),t),"aria-selected":n?"true":void 0},n?eh.default.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",tE(e,r.props.dateFormat,r.props.locale))})}),tv(tw(r),"onChange",function(e){return r.props.onChange(e)}),tv(tw(r),"handleClickOutside",function(){r.props.onCancel()}),r.state={monthYearsList:function(e,t){for(var n=[],r=tA(e),a=tA(t);!tt.default(r,a);)n.push(tN(r)),r=eS.default(r,1);return n}(r.props.minDate,r.props.maxDate)},r}return tm(n,[{key:"render",value:function(){var e=em.default({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return eh.default.createElement("div",{className:e},this.renderOptions())}}]),n}(eh.default.Component),ni=to.default(na),nl=function(e){tx(n,e);var t=tk(n);function n(){var e;tf(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return tv(tw(e=t.call.apply(t,[this].concat(a))),"state",{dropdownVisible:!1}),tv(tw(e),"renderSelectOptions",function(){for(var t=tA(e.props.minDate),n=tA(e.props.maxDate),r=[];!tt.default(t,n);){var a=ez.default(t);r.push(eh.default.createElement("option",{key:a,value:a},tE(t,e.props.dateFormat,e.props.locale))),t=eS.default(t,1)}return r}),tv(tw(e),"onSelectChange",function(t){e.onChange(t.target.value)}),tv(tw(e),"renderSelectMode",function(){return eh.default.createElement("select",{value:ez.default(tA(e.props.date)),className:"react-datepicker__month-year-select",onChange:e.onSelectChange},e.renderSelectOptions())}),tv(tw(e),"renderReadView",function(t){var n=tE(e.props.date,e.props.dateFormat,e.props.locale);return eh.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(t){return e.toggleDropdown(t)}},eh.default.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),eh.default.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},n))}),tv(tw(e),"renderDropdown",function(){return eh.default.createElement(ni,{key:"dropdown",date:e.props.date,dateFormat:e.props.dateFormat,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableMonthYearDropdown:e.props.scrollableMonthYearDropdown,locale:e.props.locale})}),tv(tw(e),"renderScrollMode",function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n}),tv(tw(e),"onChange",function(t){e.toggleDropdown();var n=tN(parseInt(t));tP(e.props.date,n)&&tO(e.props.date,n)||e.props.onChange(n)}),tv(tw(e),"toggleDropdown",function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})}),e}return tm(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return eh.default.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(eh.default.Component),no=function(e){tx(n,e);var t=tk(n);function n(){var e;tf(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return tv(tw(e=t.call.apply(t,[this].concat(a))),"dayEl",eh.default.createRef()),tv(tw(e),"handleClick",function(t){!e.isDisabled()&&e.props.onClick&&e.props.onClick(t)}),tv(tw(e),"handleMouseEnter",function(t){!e.isDisabled()&&e.props.onMouseEnter&&e.props.onMouseEnter(t)}),tv(tw(e),"handleOnKeyDown",function(t){" "===t.key&&(t.preventDefault(),t.key="Enter"),e.props.handleOnKeyDown(t)}),tv(tw(e),"isSameDay",function(t){return tF(e.props.day,t)}),tv(tw(e),"isKeyboardSelected",function(){return!e.props.disabledKeyboardNavigation&&!e.isSameDay(e.props.selected)&&e.isSameDay(e.props.preSelection)}),tv(tw(e),"isDisabled",function(){return tW(e.props.day,e.props)}),tv(tw(e),"isExcluded",function(){return tG(e.props.day,e.props)}),tv(tw(e),"getHighLightedClass",function(t){var n=e.props,r=n.day,a=n.highlightDates;if(!a)return!1;var i=tE(r,"MM.dd.yyyy");return a.get(i)}),tv(tw(e),"isInRange",function(){var t=e.props,n=t.day,r=t.startDate,a=t.endDate;return!(!r||!a)&&tz(n,r,a)}),tv(tw(e),"isInSelectingRange",function(){var t,n=e.props,r=n.day,a=n.selectsStart,i=n.selectsEnd,l=n.selectsRange,o=n.selectsDisabledDaysInRange,s=n.startDate,c=n.endDate,u=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return!(!(a||i||l)||!u||!o&&e.isDisabled())&&(a&&c&&(tn.default(u,c)||tB(u,c))?tz(r,u,c):(i&&s&&(tt.default(u,s)||tB(u,s))||!(!l||!s||c||!tt.default(u,s)&&!tB(u,s)))&&tz(r,s,u))}),tv(tw(e),"isSelectingRangeStart",function(){if(!e.isInSelectingRange())return!1;var t,n=e.props,r=n.day,a=n.startDate,i=n.selectsStart,l=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return tF(r,i?l:a)}),tv(tw(e),"isSelectingRangeEnd",function(){if(!e.isInSelectingRange())return!1;var t,n=e.props,r=n.day,a=n.endDate,i=n.selectsEnd,l=n.selectsRange,o=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return tF(r,i||l?o:a)}),tv(tw(e),"isRangeStart",function(){var t=e.props,n=t.day,r=t.startDate,a=t.endDate;return!(!r||!a)&&tF(r,n)}),tv(tw(e),"isRangeEnd",function(){var t=e.props,n=t.day,r=t.startDate,a=t.endDate;return!(!r||!a)&&tF(a,n)}),tv(tw(e),"isWeekend",function(){var t=eI.default(e.props.day);return 0===t||6===t}),tv(tw(e),"isAfterMonth",function(){return void 0!==e.props.month&&(e.props.month+1)%12===eR.default(e.props.day)}),tv(tw(e),"isBeforeMonth",function(){return void 0!==e.props.month&&(eR.default(e.props.day)+1)%12===e.props.month}),tv(tw(e),"isCurrentDay",function(){return e.isSameDay(tN())}),tv(tw(e),"isSelected",function(){return e.isSameDay(e.props.selected)}),tv(tw(e),"getClassNames",function(t){var n=e.props.dayClassName?e.props.dayClassName(t):void 0;return em.default("react-datepicker__day",n,"react-datepicker__day--"+tE(e.props.day,"ddd",void 0),{"react-datepicker__day--disabled":e.isDisabled(),"react-datepicker__day--excluded":e.isExcluded(),"react-datepicker__day--selected":e.isSelected(),"react-datepicker__day--keyboard-selected":e.isKeyboardSelected(),"react-datepicker__day--range-start":e.isRangeStart(),"react-datepicker__day--range-end":e.isRangeEnd(),"react-datepicker__day--in-range":e.isInRange(),"react-datepicker__day--in-selecting-range":e.isInSelectingRange(),"react-datepicker__day--selecting-range-start":e.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":e.isSelectingRangeEnd(),"react-datepicker__day--today":e.isCurrentDay(),"react-datepicker__day--weekend":e.isWeekend(),"react-datepicker__day--outside-month":e.isAfterMonth()||e.isBeforeMonth()},e.getHighLightedClass("react-datepicker__day--highlighted"))}),tv(tw(e),"getAriaLabel",function(){var t=e.props,n=t.day,r=t.ariaLabelPrefixWhenEnabled,a=t.ariaLabelPrefixWhenDisabled,i=e.isDisabled()||e.isExcluded()?void 0===a?"Not available":a:void 0===r?"Choose":r;return"".concat(i," ").concat(tE(n,"PPPP",e.props.locale))}),tv(tw(e),"getTabIndex",function(t,n){var r=t||e.props.selected,a=n||e.props.preSelection;return e.isKeyboardSelected()||e.isSameDay(r)&&tF(a,r)?0:-1}),tv(tw(e),"handleFocusDay",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1;0===e.getTabIndex()&&!t.isInputFocused&&e.isSameDay(e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(n=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(n=!0)),n&&e.dayEl.current.focus({preventScroll:!0})}),tv(tw(e),"renderDayContents",function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(eP.default(e.props.day),e.props.day):eP.default(e.props.day)}),tv(tw(e),"render",function(){return eh.default.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option","aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()},e.renderDayContents())}),e}return tm(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(e){this.handleFocusDay(e)}}]),n}(eh.default.Component),ns=function(e){tx(n,e);var t=tk(n);function n(){var e;tf(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return tv(tw(e=t.call.apply(t,[this].concat(a))),"handleClick",function(t){e.props.onClick&&e.props.onClick(t)}),e}return tm(n,[{key:"render",value:function(){var e=this.props,t=e.weekNumber,n=e.ariaLabelPrefix,r={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!e.onClick};return eh.default.createElement("div",{className:em.default(r),"aria-label":"".concat(void 0===n?"week ":n," ").concat(this.props.weekNumber),onClick:this.handleClick},t)}}]),n}(eh.default.Component),nc=function(e){tx(n,e);var t=tk(n);function n(){var e;tf(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return tv(tw(e=t.call.apply(t,[this].concat(a))),"handleDayClick",function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n)}),tv(tw(e),"handleDayMouseEnter",function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)}),tv(tw(e),"handleWeekClick",function(t,n,r){"function"==typeof e.props.onWeekSelect&&e.props.onWeekSelect(t,n,r),e.props.shouldCloseOnSelect&&e.props.setOpen(!1)}),tv(tw(e),"formatWeekNumber",function(t){var n;return e.props.formatWeekNumber?e.props.formatWeekNumber(t):(n=tZ()&&tH(tZ()),eO.default(t,n?{locale:n}:null))}),tv(tw(e),"renderDays",function(){var t=t_(e.props.day,e.props.locale,e.props.calendarStartDay),n=[],r=e.formatWeekNumber(t);if(e.props.showWeekNumber){var a=e.props.onWeekSelect?e.handleWeekClick.bind(tw(e),t,r):void 0;n.push(eh.default.createElement(ns,{key:"W",weekNumber:r,onClick:a,ariaLabelPrefix:e.props.ariaLabelPrefix}))}return n.concat([0,1,2,3,4,5,6].map(function(n){var r=ew.default(t,n);return eh.default.createElement(no,{ariaLabelPrefixWhenEnabled:e.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:e.props.disabledDayAriaLabelPrefix,key:r.valueOf(),day:r,month:e.props.month,onClick:e.handleDayClick.bind(tw(e),r),onMouseEnter:e.handleDayMouseEnter.bind(tw(e),r),minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,highlightDates:e.props.highlightDates,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,renderDayContents:e.props.renderDayContents,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart,locale:e.props.locale})}))}),e}return tm(n,[{key:"render",value:function(){return eh.default.createElement("div",{className:"react-datepicker__week"},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(eh.default.Component),nu=function(e){tx(n,e);var t=tk(n);function n(){var e;tf(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return tv(tw(e=t.call.apply(t,[this].concat(a))),"MONTH_REFS",tS(Array(12)).map(function(){return eh.default.createRef()})),tv(tw(e),"QUARTER_REFS",tS([,,,,]).map(function(){return eh.default.createRef()})),tv(tw(e),"isDisabled",function(t){return tW(t,e.props)}),tv(tw(e),"isExcluded",function(t){return tG(t,e.props)}),tv(tw(e),"handleDayClick",function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n,e.props.orderInDisplay)}),tv(tw(e),"handleDayMouseEnter",function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)}),tv(tw(e),"handleMouseLeave",function(){e.props.onMouseLeave&&e.props.onMouseLeave()}),tv(tw(e),"isRangeStartMonth",function(t){var n=e.props,r=n.day,a=n.startDate,i=n.endDate;return!(!a||!i)&&tO(eV.default(r,t),a)}),tv(tw(e),"isRangeStartQuarter",function(t){var n=e.props,r=n.day,a=n.startDate,i=n.endDate;return!(!a||!i)&&tR(eW.default(r,t),a)}),tv(tw(e),"isRangeEndMonth",function(t){var n=e.props,r=n.day,a=n.startDate,i=n.endDate;return!(!a||!i)&&tO(eV.default(r,t),i)}),tv(tw(e),"isRangeEndQuarter",function(t){var n=e.props,r=n.day,a=n.startDate,i=n.endDate;return!(!a||!i)&&tR(eW.default(r,t),i)}),tv(tw(e),"isWeekInMonth",function(t){var n=e.props.day,r=ew.default(t,6);return tO(t,n)||tO(r,n)}),tv(tw(e),"isCurrentMonth",function(e,t){return eB.default(e)===eB.default(tN())&&t===eR.default(tN())}),tv(tw(e),"isCurrentQuarter",function(e,t){return eB.default(e)===eB.default(tN())&&t===eF.default(tN())}),tv(tw(e),"isSelectedMonth",function(e,t,n){return eR.default(e)===t&&eB.default(e)===eB.default(n)}),tv(tw(e),"isSelectedQuarter",function(e,t,n){return eF.default(e)===t&&eB.default(e)===eB.default(n)}),tv(tw(e),"renderWeeks",function(){for(var t=[],n=e.props.fixedHeight,r=0,a=!1,i=t_(tA(e.props.day),e.props.locale,e.props.calendarStartDay);t.push(eh.default.createElement(nc,{ariaLabelPrefix:e.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:e.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:e.props.disabledDayAriaLabelPrefix,key:r,day:i,month:eR.default(e.props.day),onDayClick:e.handleDayClick,onDayMouseEnter:e.handleDayMouseEnter,onWeekSelect:e.props.onWeekSelect,formatWeekNumber:e.props.formatWeekNumber,locale:e.props.locale,minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,highlightDates:e.props.highlightDates,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,showWeekNumber:e.props.showWeekNumbers,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,setOpen:e.props.setOpen,shouldCloseOnSelect:e.props.shouldCloseOnSelect,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,renderDayContents:e.props.renderDayContents,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,calendarStartDay:e.props.calendarStartDay,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart})),!a;){r++,i=ek.default(i,1);var l=n&&r>=6,o=!n&&!e.isWeekInMonth(i);if(l||o){if(!e.props.peekNextMonth)break;a=!0}}return t}),tv(tw(e),"onMonthClick",function(t,n){e.handleDayClick(tA(eV.default(e.props.day,n)),t)}),tv(tw(e),"handleMonthNavigation",function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.MONTH_REFS[t].current&&e.MONTH_REFS[t].current.focus())}),tv(tw(e),"onMonthKeyDown",function(t,n){t.preventDefault();var r=t.key;if(!e.props.disabledKeyboardNavigation)switch(r){case"Enter":e.onMonthClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleMonthNavigation(11===n?0:n+1,eS.default(e.props.preSelection,1));break;case"ArrowLeft":e.handleMonthNavigation(0===n?11:n-1,eE.default(e.props.preSelection,1));break;case"ArrowUp":e.handleMonthNavigation(n>=0&&n<=2?n+9:n-3,eE.default(e.props.preSelection,3));break;case"ArrowDown":e.handleMonthNavigation(n>=9&&n<=11?n-9:n+3,eS.default(e.props.preSelection,3))}}),tv(tw(e),"onQuarterClick",function(t,n){var r;e.handleDayClick((r=eW.default(e.props.day,n),e1.default(r)),t)}),tv(tw(e),"handleQuarterNavigation",function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.QUARTER_REFS[t-1].current&&e.QUARTER_REFS[t-1].current.focus())}),tv(tw(e),"onQuarterKeyDown",function(t,n){var r=t.key;if(!e.props.disabledKeyboardNavigation)switch(r){case"Enter":e.onQuarterClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleQuarterNavigation(4===n?1:n+1,ej.default(e.props.preSelection,1));break;case"ArrowLeft":e.handleQuarterNavigation(1===n?4:n-1,eD.default(e.props.preSelection,1))}}),tv(tw(e),"getMonthClassNames",function(t){var n,r,a,i,l,o=e.props,s=o.day,c=o.startDate,u=o.endDate,d=o.selected,p=o.minDate,f=o.maxDate,h=o.preSelection,m=o.monthClassName,v=o.excludeDates,g=o.includeDates,x=m?m(eV.default(s,t)):void 0,b=eV.default(s,t);return em.default("react-datepicker__month-text","react-datepicker__month-".concat(t),x,{"react-datepicker__month--disabled":(p||f||v||g)&&tY(b,e.props),"react-datepicker__month--selected":e.isSelectedMonth(s,t,d),"react-datepicker__month-text--keyboard-selected":!e.props.disabledKeyboardNavigation&&eR.default(h)===t,"react-datepicker__month--in-range":(n=eB.default(c),r=eR.default(c),a=eB.default(u),i=eR.default(u),l=eB.default(s),n===a&&n===l?r<=t&&t<=i:n<a?l===n&&r<=t||l===a&&i>=t||l<a&&l>n:void 0),"react-datepicker__month--range-start":e.isRangeStartMonth(t),"react-datepicker__month--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--today":e.isCurrentMonth(s,t)})}),tv(tw(e),"getTabIndex",function(t){var n=eR.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"}),tv(tw(e),"getQuarterTabIndex",function(t){var n=eF.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"}),tv(tw(e),"getAriaLabel",function(t){var n=e.props,r=n.chooseDayAriaLabelPrefix,a=n.disabledDayAriaLabelPrefix,i=n.day,l=eV.default(i,t),o=e.isDisabled(l)||e.isExcluded(l)?void 0===a?"Not available":a:void 0===r?"Choose":r;return"".concat(o," ").concat(tE(l,"MMMM yyyy"))}),tv(tw(e),"getQuarterClassNames",function(t){var n,r,a,i,l,o=e.props,s=o.day,c=o.startDate,u=o.endDate,d=o.selected,p=o.minDate,f=o.maxDate,h=o.preSelection;return em.default("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter--disabled":(p||f)&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,a=t.excludeDates,i=t.includeDates,l=t.filterDate;return tK(e,{minDate:n,maxDate:r})||a&&a.some(function(t){return tR(e,t)})||i&&!i.some(function(t){return tR(e,t)})||l&&!l(tN(e))||!1}(eW.default(s,t),e.props),"react-datepicker__quarter--selected":e.isSelectedQuarter(s,t,d),"react-datepicker__quarter-text--keyboard-selected":eF.default(h)===t,"react-datepicker__quarter--in-range":(n=eB.default(c),r=eF.default(c),a=eB.default(u),i=eF.default(u),l=eB.default(s),n===a&&n===l?r<=t&&t<=i:n<a?l===n&&r<=t||l===a&&i>=t||l<a&&l>n:void 0),"react-datepicker__quarter--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter--range-end":e.isRangeEndQuarter(t)})}),tv(tw(e),"renderMonths",function(){var t=e.props,n=t.showFullMonthYearPicker,r=t.showTwoColumnMonthYearPicker,a=t.showFourColumnMonthYearPicker,i=t.locale,l=t.day,o=t.selected;return(a?[[0,1,2,3],[4,5,6,7],[8,9,10,11]]:r?[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]]:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]]).map(function(t,r){return eh.default.createElement("div",{className:"react-datepicker__month-wrapper",key:r},t.map(function(t,r){return eh.default.createElement("div",{ref:e.MONTH_REFS[t],key:r,onClick:function(n){e.onMonthClick(n,t)},onKeyDown:function(n){e.onMonthKeyDown(n,t)},tabIndex:e.getTabIndex(t),className:e.getMonthClassNames(t),role:"option","aria-label":e.getAriaLabel(t),"aria-current":e.isCurrentMonth(l,t)?"date":void 0,"aria-selected":e.isSelectedMonth(l,t,o)},n?tU(t,i):tV(t,i))}))})}),tv(tw(e),"renderQuarters",function(){var t=e.props,n=t.day,r=t.selected;return eh.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(t,a){var i;return eh.default.createElement("div",{key:a,ref:e.QUARTER_REFS[a],role:"option",onClick:function(n){e.onQuarterClick(n,t)},onKeyDown:function(n){e.onQuarterKeyDown(n,t)},className:e.getQuarterClassNames(t),"aria-selected":e.isSelectedQuarter(n,t,r),tabIndex:e.getQuarterTabIndex(t),"aria-current":e.isCurrentQuarter(n,t)?"date":void 0},(i=e.props.locale,tE(eW.default(tN(),t),"QQQ",i)))}))}),tv(tw(e),"getClassNames",function(){var t=e.props;t.day;var n=t.selectingDate,r=t.selectsStart,a=t.selectsEnd,i=t.showMonthYearPicker,l=t.showQuarterYearPicker;return em.default("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(r||a)},{"react-datepicker__monthPicker":i},{"react-datepicker__quarterPicker":l})}),e}return tm(n,[{key:"render",value:function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,a=e.ariaLabelPrefix;return eh.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(void 0===a?"month ":a," ").concat(tE(r,"yyyy-MM")),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())}}]),n}(eh.default.Component),nd=function(e){tx(n,e);var t=tk(n);function n(){var e;tf(this,n);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return tv(tw(e=t.call.apply(t,[this].concat(a))),"state",{height:null}),tv(tw(e),"handleClick",function(t){(e.props.minTime||e.props.maxTime)&&tJ(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&tX(t,e.props)||e.props.onChange(t)}),tv(tw(e),"isSelectedTime",function(t,n,r){return e.props.selected&&n===eL.default(t)&&r===eA.default(t)}),tv(tw(e),"liClasses",function(t,n,r){var a=["react-datepicker__time-list-item",e.props.timeClassName?e.props.timeClassName(t,n,r):void 0];return e.isSelectedTime(t,n,r)&&a.push("react-datepicker__time-list-item--selected"),((e.props.minTime||e.props.maxTime)&&tJ(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&tX(t,e.props))&&a.push("react-datepicker__time-list-item--disabled"),e.props.injectTimes&&(60*eL.default(t)+eA.default(t))%e.props.intervals!=0&&a.push("react-datepicker__time-list-item--injected"),a.join(" ")}),tv(tw(e),"handleOnKeyDown",function(t,n){" "===t.key&&(t.preventDefault(),t.key="Enter"),"Enter"===t.key&&e.handleClick(n),e.props.handleOnKeyDown(t)}),tv(tw(e),"renderTimes",function(){for(var t,n=[],r=e.props.format?e.props.format:"p",a=e.props.intervals,i=(t=tN(e.props.selected),eJ.default(t)),l=1440/a,o=e.props.injectTimes&&e.props.injectTimes.sort(function(e,t){return e-t}),s=e.props.selected||e.props.openToDate||tN(),c=eL.default(s),u=eA.default(s),d=eU.default(eH.default(i,u),c),p=0;p<l;p++){var f=eb.default(i,p*a);if(n.push(f),o){var h=function(e,t,n,r,a){for(var i=a.length,l=[],o=0;o<i;o++){var s=eb.default(ey.default(e,eL.default(a[o])),eA.default(a[o])),c=eb.default(e,(n+1)*r);tt.default(s,t)&&tn.default(s,c)&&l.push(a[o])}return l}(i,f,p,a,o);n=n.concat(h)}}return n.map(function(t,n){return eh.default.createElement("li",{key:n,onClick:e.handleClick.bind(tw(e),t),className:e.liClasses(t,c,u),ref:function(n){(tn.default(t,d)||tB(t,d))&&(e.centerLi=n)},onKeyDown:function(n){e.handleOnKeyDown(n,t)},tabIndex:"0","aria-selected":e.isSelectedTime(t,c,u)?"true":void 0},tE(t,r,e.props.locale))})}),e}return tm(n,[{key:"componentDidMount",value:function(){this.list.scrollTop=this.centerLi&&n.calcCenterPosition(this.props.monthRef?this.props.monthRef.clientHeight-this.header.clientHeight:this.list.clientHeight,this.centerLi),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var e=this,t=this.state.height;return eh.default.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},eh.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(t){e.header=t}},eh.default.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),eh.default.createElement("div",{className:"react-datepicker__time"},eh.default.createElement("div",{className:"react-datepicker__time-box"},eh.default.createElement("ul",{className:"react-datepicker__time-list",ref:function(t){e.list=t},style:t?{height:t}:{},tabIndex:"0"},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n}(eh.default.Component);tv(nd,"calcCenterPosition",function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)});var np=function(e){tx(n,e);var t=tk(n);function n(e){var r;return tf(this,n),tv(tw(r=t.call(this,e)),"YEAR_REFS",tS(Array(r.props.yearItemNumber)).map(function(){return eh.default.createRef()})),tv(tw(r),"isDisabled",function(e){return tW(e,r.props)}),tv(tw(r),"isExcluded",function(e){return tG(e,r.props)}),tv(tw(r),"updateFocusOnPaginate",function(e){var t=(function(){this.YEAR_REFS[e].current.focus()}).bind(tw(r));window.requestAnimationFrame(t)}),tv(tw(r),"handleYearClick",function(e,t){r.props.onDayClick&&r.props.onDayClick(e,t)}),tv(tw(r),"handleYearNavigation",function(e,t){var n=r.props,a=n.date,i=n.yearItemNumber,l=t8(a,i).startPeriod;r.isDisabled(t)||r.isExcluded(t)||(r.props.setPreSelection(t),e-l==-1?r.updateFocusOnPaginate(i-1):e-l===i?r.updateFocusOnPaginate(0):r.YEAR_REFS[e-l].current.focus())}),tv(tw(r),"isSameDay",function(e,t){return tF(e,t)}),tv(tw(r),"isCurrentYear",function(e){return e===eB.default(tN())}),tv(tw(r),"isKeyboardSelected",function(e){var t=tL(eG.default(r.props.date,e));return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!tF(t,tL(r.props.selected))&&tF(t,tL(r.props.preSelection))}),tv(tw(r),"onYearClick",function(e,t){var n=r.props.date;r.handleYearClick(tL(eG.default(n,t)),e)}),tv(tw(r),"onYearKeyDown",function(e,t){var n=e.key;if(!r.props.disabledKeyboardNavigation)switch(n){case"Enter":r.onYearClick(e,t),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleYearNavigation(t+1,eC.default(r.props.preSelection,1));break;case"ArrowLeft":r.handleYearNavigation(t-1,eM.default(r.props.preSelection,1))}}),tv(tw(r),"getYearClassNames",function(e){var t=r.props,n=t.minDate,a=t.maxDate,i=t.selected,l=t.excludeDates,o=t.includeDates,s=t.filterDate;return em.default("react-datepicker__year-text",{"react-datepicker__year-text--selected":e===eB.default(i),"react-datepicker__year-text--disabled":(n||a||l||o||s)&&tq(e,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(e),"react-datepicker__year-text--today":r.isCurrentYear(e)})}),tv(tw(r),"getYearTabIndex",function(e){return r.props.disabledKeyboardNavigation?"-1":e===eB.default(r.props.preSelection)?"0":"-1"}),r}return tm(n,[{key:"render",value:function(){for(var e=this,t=[],n=this.props,r=t8(n.date,n.yearItemNumber),a=r.startPeriod,i=r.endPeriod,l=function(n){t.push(eh.default.createElement("div",{ref:e.YEAR_REFS[n-a],onClick:function(t){e.onYearClick(t,n)},onKeyDown:function(t){e.onYearKeyDown(t,n)},tabIndex:e.getYearTabIndex(n),className:e.getYearClassNames(n),key:n,"aria-current":e.isCurrentYear(n)?"date":void 0},n))},o=a;o<=i;o++)l(o);return eh.default.createElement("div",{className:"react-datepicker__year"},eh.default.createElement("div",{className:"react-datepicker__year-wrapper"},t))}}]),n}(eh.default.Component),nf=function(e){tx(n,e);var t=tk(n);function n(e){var r;return tf(this,n),tv(tw(r=t.call(this,e)),"onTimeChange",function(e){r.setState({time:e});var t=new Date;t.setHours(e.split(":")[0]),t.setMinutes(e.split(":")[1]),r.props.onChange(t)}),tv(tw(r),"renderTimeInput",function(){var e=r.state.time,t=r.props,n=t.date,a=t.timeString,i=t.customTimeInput;return i?eh.default.cloneElement(i,{date:n,value:e,onChange:r.onTimeChange}):eh.default.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:e,onChange:function(e){r.onTimeChange(e.target.value||a)}})}),r.state={time:r.props.timeString},r}return tm(n,[{key:"render",value:function(){return eh.default.createElement("div",{className:"react-datepicker__input-time-container"},eh.default.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),eh.default.createElement("div",{className:"react-datepicker-time__input-container"},eh.default.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.timeString!==t.time?{time:e.timeString}:null}}]),n}(eh.default.Component);function nh(e){var t=e.className,n=e.children,r=e.showPopperArrow,a=e.arrowProps;return eh.default.createElement("div",{className:t},r&&eh.default.createElement("div",tg({className:"react-datepicker__triangle"},void 0===a?{}:a)),n)}var nm=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],nv=function(e){tx(n,e);var t=tk(n);function n(e){var r;return tf(this,n),tv(tw(r=t.call(this,e)),"handleClickOutside",function(e){r.props.onClickOutside(e)}),tv(tw(r),"setClickOutsideRef",function(){return r.containerRef.current}),tv(tw(r),"handleDropdownFocus",function(e){(function(){var e=((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).className||"").split(/\s+/);return nm.some(function(t){return e.indexOf(t)>=0})})(e.target)&&r.props.onDropdownFocus()}),tv(tw(r),"getDateInView",function(){var e=r.props,t=e.preSelection,n=e.selected,a=e.openToDate,i=t3(r.props),l=t6(r.props),o=tN();return a||n||t||(i&&tn.default(o,i)?i:l&&tt.default(o,l)?l:o)}),tv(tw(r),"increaseMonth",function(){r.setState(function(e){var t=e.date;return{date:eS.default(t,1)}},function(){return r.handleMonthChange(r.state.date)})}),tv(tw(r),"decreaseMonth",function(){r.setState(function(e){var t=e.date;return{date:eE.default(t,1)}},function(){return r.handleMonthChange(r.state.date)})}),tv(tw(r),"handleDayClick",function(e,t,n){r.props.onSelect(e,t,n),r.props.setPreSelection&&r.props.setPreSelection(e)}),tv(tw(r),"handleDayMouseEnter",function(e){r.setState({selectingDate:e}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)}),tv(tw(r),"handleMonthMouseLeave",function(){r.setState({selectingDate:null}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()}),tv(tw(r),"handleYearChange",function(e){r.props.onYearChange&&(r.props.onYearChange(e),r.setState({isRenderAriaLiveMessage:!0})),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)}),tv(tw(r),"handleMonthChange",function(e){r.props.onMonthChange&&(r.props.onMonthChange(e),r.setState({isRenderAriaLiveMessage:!0})),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)}),tv(tw(r),"handleMonthYearChange",function(e){r.handleYearChange(e),r.handleMonthChange(e)}),tv(tw(r),"changeYear",function(e){r.setState(function(t){var n=t.date;return{date:eG.default(n,e)}},function(){return r.handleYearChange(r.state.date)})}),tv(tw(r),"changeMonth",function(e){r.setState(function(t){var n=t.date;return{date:eV.default(n,e)}},function(){return r.handleMonthChange(r.state.date)})}),tv(tw(r),"changeMonthYear",function(e){r.setState(function(t){var n=t.date;return{date:eG.default(eV.default(n,eR.default(e)),eB.default(e))}},function(){return r.handleMonthYearChange(r.state.date)})}),tv(tw(r),"header",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=t_(e,r.props.locale,r.props.calendarStartDay),n=[];return r.props.showWeekNumbers&&n.push(eh.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),n.concat([0,1,2,3,4,5,6].map(function(e){var n=ew.default(t,e),a=r.formatWeekday(n,r.props.locale),i=r.props.weekDayClassName?r.props.weekDayClassName(n):void 0;return eh.default.createElement("div",{key:e,className:em.default("react-datepicker__day-name",i)},a)}))}),tv(tw(r),"formatWeekday",function(e,t){var n;return r.props.formatWeekDay?"function"==typeof(n=r.props.formatWeekDay)?n(e,t):tE(e,"EEEE",t):r.props.useWeekdaysShort?tE(e,"EEE",t):tE(e,"EEEEEE",t)}),tv(tw(r),"decreaseYear",function(){r.setState(function(e){var t=e.date;return{date:eM.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})}),tv(tw(r),"renderPreviousButton",function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=t1(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.yearItemNumber,a=void 0===r?12:r,i=t8(tL(eM.default(e,a)),a).endPeriod,l=n&&eB.default(n);return l&&l>i||!1}(r.state.date,r.props);break;default:e=tQ(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.decreaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),n=null);var a=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,i=r.props,l=i.previousMonthButtonLabel,o=i.previousYearButtonLabel,s=r.props,c=s.previousMonthAriaLabel,u=s.previousYearAriaLabel;return eh.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:r.props.handleOnKeyDown,"aria-label":a?void 0===u?"string"==typeof o?o:"Previous Year":u:void 0===c?"string"==typeof l?l:"Previous Month":c},eh.default.createElement("span",{className:"react-datepicker__navigation-icon react-datepicker__navigation-icon--previous"},a?r.props.previousYearButtonLabel:r.props.previousMonthButtonLabel))}}}),tv(tw(r),"increaseYear",function(){r.setState(function(e){var t=e.date;return{date:eC.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})}),tv(tw(r),"renderNextButton",function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=t2(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.yearItemNumber,a=void 0===r?12:r,i=t8(eC.default(e,a),a).startPeriod,l=n&&eB.default(n);return l&&l<i||!1}(r.state.date,r.props);break;default:e=t0(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--next"];r.props.showTimeSelect&&t.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&t.push("react-datepicker__navigation--next--with-today-button");var n=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.increaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--next--disabled"),n=null);var a=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,i=r.props,l=i.nextMonthButtonLabel,o=i.nextYearButtonLabel,s=r.props,c=s.nextMonthAriaLabel,u=s.nextYearAriaLabel;return eh.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:r.props.handleOnKeyDown,"aria-label":a?void 0===u?"string"==typeof o?o:"Next Year":u:void 0===c?"string"==typeof l?l:"Next Month":c},eh.default.createElement("span",{className:"react-datepicker__navigation-icon react-datepicker__navigation-icon--next"},a?r.props.nextYearButtonLabel:r.props.nextMonthButtonLabel))}}}),tv(tw(r),"renderCurrentMonth",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=["react-datepicker__current-month"];return r.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),eh.default.createElement("div",{className:t.join(" ")},tE(e,r.props.dateFormat,r.props.locale))}),tv(tw(r),"renderYearDropdown",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showYearDropdown&&!e)return eh.default.createElement(ne,{adjustDateOnChange:r.props.adjustDateOnChange,date:r.state.date,onSelect:r.props.onSelect,setOpen:r.props.setOpen,dropdownMode:r.props.dropdownMode,onChange:r.changeYear,minDate:r.props.minDate,maxDate:r.props.maxDate,year:eB.default(r.state.date),scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})}),tv(tw(r),"renderMonthDropdown",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthDropdown&&!e)return eh.default.createElement(nr,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,onChange:r.changeMonth,month:eR.default(r.state.date),useShortMonthInDropdown:r.props.useShortMonthInDropdown})}),tv(tw(r),"renderMonthYearDropdown",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthYearDropdown&&!e)return eh.default.createElement(nl,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonthYear,minDate:r.props.minDate,maxDate:r.props.maxDate,date:r.state.date,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})}),tv(tw(r),"handleTodayButtonClick",function(e){r.props.onSelect(tI(),e),r.props.setPreSelection&&r.props.setPreSelection(tI())}),tv(tw(r),"renderTodayButton",function(){if(r.props.todayButton&&!r.props.showTimeSelectOnly)return eh.default.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return r.handleTodayButtonClick(e)}},r.props.todayButton)}),tv(tw(r),"renderDefaultHeader",function(e){var t=e.monthDate,n=e.i;return eh.default.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(t),eh.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(0!==n),r.renderMonthYearDropdown(0!==n),r.renderYearDropdown(0!==n)),eh.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))}),tv(tw(r),"renderCustomHeader",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.monthDate,n=e.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var a=tQ(r.state.date,r.props),i=t0(r.state.date,r.props),l=t1(r.state.date,r.props),o=t2(r.state.date,r.props),s=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return eh.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},r.props.renderCustomHeader(td(td({},r.state),{},{customHeaderCount:n,monthDate:t,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:a,nextMonthButtonDisabled:i,prevYearButtonDisabled:l,nextYearButtonDisabled:o})),s&&eh.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))}),tv(tw(r),"renderYearHeader",function(){var e=r.state.date,t=r.props,n=t.showYearPicker,a=t8(e,t.yearItemNumber),i=a.startPeriod,l=a.endPeriod;return eh.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},n?"".concat(i," - ").concat(l):eB.default(e))}),tv(tw(r),"renderHeader",function(e){switch(!0){case void 0!==r.props.renderCustomHeader:return r.renderCustomHeader(e);case r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker:return r.renderYearHeader(e);default:return r.renderDefaultHeader(e)}}),tv(tw(r),"renderMonths",function(){if(!r.props.showTimeSelectOnly&&!r.props.showYearPicker){for(var e=[],t=r.props.showPreviousMonths?r.props.monthsShown-1:0,n=eE.default(r.state.date,t),a=0;a<r.props.monthsShown;++a){var i=a-r.props.monthSelectedIn,l=eS.default(n,i),o="month-".concat(a),s=a<r.props.monthsShown-1,c=a>0;e.push(eh.default.createElement("div",{key:o,ref:function(e){r.monthContainer=e},className:"react-datepicker__month-container"},r.renderHeader({monthDate:l,i:a}),eh.default.createElement(nu,{chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,ariaLabelPrefix:r.props.monthAriaLabelPrefix,onChange:r.changeMonthYear,day:l,dayClassName:r.props.dayClassName,calendarStartDay:r.props.calendarStartDay,monthClassName:r.props.monthClassName,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,onWeekSelect:r.props.onWeekSelect,orderInDisplay:a,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,highlightDates:r.props.highlightDates,selectingDate:r.state.selectingDate,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,fixedHeight:r.props.fixedHeight,filterDate:r.props.filterDate,preSelection:r.props.preSelection,setPreSelection:r.props.setPreSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumbers:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,peekNextMonth:r.props.peekNextMonth,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,isInputFocused:r.props.isInputFocused,containerRef:r.containerRef,monthShowsDuplicateDaysEnd:s,monthShowsDuplicateDaysStart:c})))}return e}}),tv(tw(r),"renderYears",function(){if(!r.props.showTimeSelectOnly)return r.props.showYearPicker?eh.default.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader(),eh.default.createElement(np,tg({onDayClick:r.handleDayClick,date:r.state.date},r.props))):void 0}),tv(tw(r),"renderTimeSection",function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return eh.default.createElement(nd,{selected:r.props.selected,openToDate:r.props.openToDate,onChange:r.props.onTimeChange,timeClassName:r.props.timeClassName,format:r.props.timeFormat,includeTimes:r.props.includeTimes,intervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,todayButton:r.props.todayButton,showMonthDropdown:r.props.showMonthDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,monthRef:r.state.monthContainer,injectTimes:r.props.injectTimes,locale:r.props.locale,handleOnKeyDown:r.props.handleOnKeyDown,showTimeSelectOnly:r.props.showTimeSelectOnly})}),tv(tw(r),"renderInputTimeSection",function(){var e=new Date(r.props.selected),t=tT(e)&&r.props.selected?"".concat(t4(e.getHours()),":").concat(t4(e.getMinutes())):"";if(r.props.showTimeInput)return eh.default.createElement(nf,{date:e,timeString:t,timeInputLabel:r.props.timeInputLabel,onChange:r.props.onTimeChange,customTimeInput:r.props.customTimeInput})}),tv(tw(r),"renderAriaLiveRegion",function(){var e,t=t8(r.state.date,r.props.yearItemNumber),n=t.startPeriod,a=t.endPeriod;return e=r.props.showYearPicker?"".concat(n," - ").concat(a):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?eB.default(r.state.date):"".concat(tU(eR.default(r.state.date),r.props.locale)," ").concat(eB.default(r.state.date)),eh.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&e)}),tv(tw(r),"renderChildren",function(){if(r.props.children)return eh.default.createElement("div",{className:"react-datepicker__children-container"},r.props.children)}),r.containerRef=eh.default.createRef(),r.state={date:r.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},r}return tm(n,[{key:"componentDidMount",value:function(){this.props.showTimeSelect&&(this.assignMonthContainer=void this.setState({monthContainer:this.monthContainer}))}},{key:"componentDidUpdate",value:function(e){!this.props.preSelection||tF(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn?this.props.openToDate&&!tF(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate}):this.setState({date:this.props.preSelection})}},{key:"render",value:function(){var e=this.props.container||nh;return eh.default.createElement("div",{ref:this.containerRef},eh.default.createElement(e,{className:em.default("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:12}}}]),n}(eh.default.Component),ng=function(e){tx(n,e);var t=tk(n);function n(e){var r;return tf(this,n),(r=t.call(this,e)).el=document.createElement("div"),r}return tm(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return ts.default.createPortal(this.props.children,this.el)}}]),n}(eh.default.Component),nx=function(e){return!e.disabled&&-1!==e.tabIndex},nb=function(e){tx(n,e);var t=tk(n);function n(e){var r;return tf(this,n),tv(tw(r=t.call(this,e)),"getTabChildren",function(){return Array.prototype.slice.call(r.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(nx)}),tv(tw(r),"handleFocusStart",function(e){var t=r.getTabChildren();t&&t.length>1&&t[t.length-1].focus()}),tv(tw(r),"handleFocusEnd",function(e){var t=r.getTabChildren();t&&t.length>1&&t[0].focus()}),r.tabLoopRef=eh.default.createRef(),r}return tm(n,[{key:"render",value:function(){return this.props.enableTabLoop?eh.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},eh.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,eh.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(eh.default.Component),ny=function(e){tx(n,e);var t=tk(n);function n(){return tf(this,n),t.apply(this,arguments)}return tm(n,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.wrapperClassName,a=t.hidePopper,i=t.popperComponent,l=t.popperModifiers,o=t.popperPlacement,s=t.popperProps,c=t.targetComponent,u=t.enableTabLoop,d=t.popperOnKeyDown,p=t.portalId,f=t.portalHost;if(!a){var h=em.default("react-datepicker-popper",n);e=eh.default.createElement(ed.Popper,tg({modifiers:l,placement:o},s),function(e){var t=e.ref,n=e.style,r=e.placement,a=e.arrowProps;return eh.default.createElement(nb,{enableTabLoop:u},eh.default.createElement("div",{ref:t,style:n,className:h,"data-placement":r,onKeyDown:d},eh.default.cloneElement(i,{arrowProps:a})))})}this.props.popperContainer&&(e=eh.default.createElement(this.props.popperContainer,{},e)),p&&!a&&(e=eh.default.createElement(ng,{portalId:p,portalHost:f},e));var m=em.default("react-datepicker-wrapper",r);return eh.default.createElement(ed.Manager,{className:"react-datepicker-manager"},eh.default.createElement(ed.Reference,null,function(e){var t=e.ref;return eh.default.createElement("div",{ref:t,className:m},c)}),e)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(eh.default.Component),nw="react-datepicker-ignore-onclickoutside",nk=to.default(nv),nS="Date input not valid.",nj=function(e){tx(n,e);var t=tk(n);function n(e){var r;return tf(this,n),tv(tw(r=t.call(this,e)),"getPreSelection",function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:tN()}),tv(tw(r),"calcInitialState",function(){var e,t=r.getPreSelection(),n=t3(r.props),a=t6(r.props),i=n&&tn.default(t,eJ.default(n))?n:a&&tt.default(t,e3.default(a))?a:t;return{open:r.props.startOpen||!1,preventFocus:!1,preSelection:null!==(e=r.props.selectsRange?r.props.startDate:r.props.selected)&&void 0!==e?e:i,highlightDates:t5(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),tv(tw(r),"clearPreventFocusTimeout",function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)}),tv(tw(r),"setFocus",function(){r.input&&r.input.focus&&r.input.focus({preventScroll:!0})}),tv(tw(r),"setBlur",function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()}),tv(tw(r),"setOpen",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.setState({open:e,preSelection:e&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:nN},function(){e||r.setState(function(e){return{focused:!!t&&e.focused}},function(){t||r.setBlur(),r.setState({inputValue:null})})})}),tv(tw(r),"inputOk",function(){return ev.default(r.state.preSelection)}),tv(tw(r),"isCalendarOpen",function(){return void 0===r.props.open?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open}),tv(tw(r),"handleFocus",function(e){r.state.preventFocus||(r.props.onFocus(e),r.props.preventOpenOnFocus||r.props.readOnly||r.setOpen(!0)),r.setState({focused:!0})}),tv(tw(r),"cancelFocusInput",function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=null}),tv(tw(r),"deferFocusInput",function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout(function(){return r.setFocus()},1)}),tv(tw(r),"handleDropdownFocus",function(){r.cancelFocusInput()}),tv(tw(r),"handleBlur",function(e){(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&r.props.onBlur(e),r.setState({focused:!1})}),tv(tw(r),"handleCalendarClickOutside",function(e){r.props.inline||r.setOpen(!1),r.props.onClickOutside(e),r.props.withPortal&&e.preventDefault()}),tv(tw(r),"handleChange",function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=t[0];if(!r.props.onChangeRaw||(r.props.onChangeRaw.apply(tw(r),t),"function"==typeof a.isDefaultPrevented&&!a.isDefaultPrevented())){r.setState({inputValue:a.target.value,lastPreSelectChange:nC});var i=function(e,t,n,r,a){var i=tH(n)||tH(tZ()),l=Array.isArray(t)?t:[t];a=a||tN();for(var o=0,s=l.length;o<s;o++){var c=l[o],u=ti.default(e,c,a,{locale:i});if(tT(u)&&(!r||e===tE(u,c,n)))return u}return null}(a.target.value,r.props.dateFormat,r.props.locale,r.props.strictParsing,r.props.selected,r.props.minDate);r.props.showTimeSelectOnly&&!tF(i,r.props.selected)&&(i=null==i?tc.default(r.props.selected,{hours:eL.default(r.props.selected),minutes:eA.default(r.props.selected),seconds:e_.default(r.props.selected)}):tc.default(r.props.selected,{hours:eL.default(i),minutes:eA.default(i),seconds:e_.default(i)})),!i&&a.target.value||r.setSelected(i,a,!0)}}),tv(tw(r),"handleSelect",function(e,t,n){if(r.setState({preventFocus:!0},function(){return r.preventFocusTimeout=setTimeout(function(){return r.setState({preventFocus:!1})},50),r.preventFocusTimeout}),r.props.onChangeRaw&&r.props.onChangeRaw(t),r.setSelected(e,t,!1,n),r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect)r.setPreSelection(e);else if(!r.props.inline){r.props.selectsRange||r.setOpen(!1);var a=r.props,i=a.startDate,l=a.endDate;!i||l||tn.default(e,i)||r.setOpen(!1)}}),tv(tw(r),"setSelected",function(e,t,n,a){var i=e;if(r.props.showYearPicker){if(null!==i&&tq(eB.default(i),r.props))return}else if(r.props.showMonthYearPicker){if(null!==i&&tY(i,r.props))return}else if(null!==i&&tW(i,r.props))return;var l=r.props,o=l.onChange,s=l.selectsRange,c=l.startDate,u=l.endDate;if(!tB(r.props.selected,i)||r.props.allowSameDay||s){if(null!==i&&(!r.props.selected||n&&(r.props.showTimeSelect||r.props.showTimeSelectOnly||r.props.showTimeInput)||(i=tM(i,{hour:eL.default(r.props.selected),minute:eA.default(r.props.selected),second:e_.default(r.props.selected)})),r.props.inline||r.setState({preSelection:i}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:a})),s){var d=c&&!u,p=c&&u;c||u?d&&o(tn.default(i,c)?[i,null]:[c,i],t):o([i,null],t),p&&o([i,null],t)}else o(i,t)}n||(r.props.onSelect(i,t),r.setState({inputValue:null}))}),tv(tw(r),"setPreSelection",function(e){var t=void 0!==r.props.minDate,n=void 0!==r.props.maxDate,a=!0;if(e){var i=eJ.default(e);if(t&&n)a=tz(e,r.props.minDate,r.props.maxDate);else if(t){var l=eJ.default(r.props.minDate);a=tt.default(e,l)||tB(i,l)}else if(n){var o=e3.default(r.props.maxDate);a=tn.default(e,o)||tB(i,o)}}a&&r.setState({preSelection:e})}),tv(tw(r),"handleTimeChange",function(e){var t=tM(r.props.selected?r.props.selected:r.getPreSelection(),{hour:eL.default(e),minute:eA.default(e)});r.setState({preSelection:t}),r.props.onChange(t),r.props.shouldCloseOnSelect&&r.setOpen(!1),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})}),tv(tw(r),"onInputClick",function(){r.props.disabled||r.props.readOnly||r.setOpen(!0),r.props.onInputClick()}),tv(tw(r),"onInputKeyDown",function(e){r.props.onKeyDown(e);var t=e.key;if(r.state.open||r.props.inline||r.props.preventOpenOnFocus){if(r.state.open){if("ArrowDown"===t||"ArrowUp"===t){e.preventDefault();var n=r.calendar.componentNode&&r.calendar.componentNode.querySelector('.react-datepicker__day[tabindex="0"]');return void(n&&n.focus({preventScroll:!0}))}var a=tN(r.state.preSelection);"Enter"===t?(e.preventDefault(),r.inputOk()&&r.state.lastPreSelectChange===nN?(r.handleSelect(a,e),r.props.shouldCloseOnSelect||r.setPreSelection(a)):r.setOpen(!1)):"Escape"===t&&(e.preventDefault(),r.setOpen(!1)),r.inputOk()||r.props.onInputError({code:1,msg:nS})}}else"ArrowDown"!==t&&"ArrowUp"!==t&&"Enter"!==t||r.onInputClick()}),tv(tw(r),"onPortalKeyDown",function(e){"Escape"===e.key&&(e.preventDefault(),r.setState({preventFocus:!0},function(){r.setOpen(!1),setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})}))}),tv(tw(r),"onDayKeyDown",function(e){r.props.onKeyDown(e);var t,n=e.key,a=tN(r.state.preSelection);if("Enter"===n)e.preventDefault(),r.handleSelect(a,e),r.props.shouldCloseOnSelect||r.setPreSelection(a);else if("Escape"===n)e.preventDefault(),r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:nS});else if(!r.props.disabledKeyboardNavigation){switch(n){case"ArrowLeft":t=eN.default(a,1);break;case"ArrowRight":t=ew.default(a,1);break;case"ArrowUp":t=eT.default(a,1);break;case"ArrowDown":t=ek.default(a,1);break;case"PageUp":t=eE.default(a,1);break;case"PageDown":t=eS.default(a,1);break;case"Home":t=eM.default(a,1);break;case"End":t=eC.default(a,1)}if(!t)return void(r.props.onInputError&&r.props.onInputError({code:1,msg:nS}));if(e.preventDefault(),r.setState({lastPreSelectChange:nN}),r.props.adjustDateOnChange&&r.setSelected(t),r.setPreSelection(t),r.props.inline){var i=eR.default(a),l=eR.default(t),o=eB.default(a),s=eB.default(t);i!==l||o!==s?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}}),tv(tw(r),"onPopperKeyDown",function(e){"Escape"===e.key&&(e.preventDefault(),r.setState({preventFocus:!0},function(){r.setOpen(!1),setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})}))}),tv(tw(r),"onClearClick",function(e){e&&e.preventDefault&&e.preventDefault(),r.props.selectsRange?r.props.onChange([null,null],e):r.props.onChange(null,e),r.setState({inputValue:null})}),tv(tw(r),"clear",function(){r.onClearClick()}),tv(tw(r),"onScroll",function(e){"boolean"==typeof r.props.closeOnScroll&&r.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||r.setOpen(!1):"function"==typeof r.props.closeOnScroll&&r.props.closeOnScroll(e)&&r.setOpen(!1)}),tv(tw(r),"renderCalendar",function(){return r.props.inline||r.isCalendarOpen()?eh.default.createElement(nk,{ref:function(e){r.calendar=e},locale:r.props.locale,calendarStartDay:r.props.calendarStartDay,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,monthAriaLabelPrefix:r.props.monthAriaLabelPrefix,adjustDateOnChange:r.props.adjustDateOnChange,setOpen:r.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,dateFormat:r.props.dateFormatCalendar,useWeekdaysShort:r.props.useWeekdaysShort,formatWeekDay:r.props.formatWeekDay,dropdownMode:r.props.dropdownMode,selected:r.props.selected,preSelection:r.state.preSelection,onSelect:r.handleSelect,onWeekSelect:r.props.onWeekSelect,openToDate:r.props.openToDate,minDate:r.props.minDate,maxDate:r.props.maxDate,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,startDate:r.props.startDate,endDate:r.props.endDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,filterDate:r.props.filterDate,onClickOutside:r.handleCalendarClickOutside,formatWeekNumber:r.props.formatWeekNumber,highlightDates:r.state.highlightDates,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,includeTimes:r.props.includeTimes,injectTimes:r.props.injectTimes,inline:r.props.inline,shouldFocusDayInline:r.state.shouldFocusDayInline,peekNextMonth:r.props.peekNextMonth,showMonthDropdown:r.props.showMonthDropdown,showPreviousMonths:r.props.showPreviousMonths,useShortMonthInDropdown:r.props.useShortMonthInDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showWeekNumbers:r.props.showWeekNumbers,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,forceShowMonthNavigation:r.props.forceShowMonthNavigation,showDisabledMonthNavigation:r.props.showDisabledMonthNavigation,scrollableYearDropdown:r.props.scrollableYearDropdown,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,todayButton:r.props.todayButton,weekLabel:r.props.weekLabel,outsideClickIgnoreClass:nw,fixedHeight:r.props.fixedHeight,monthsShown:r.props.monthsShown,monthSelectedIn:r.state.monthSelectedIn,onDropdownFocus:r.handleDropdownFocus,onMonthChange:r.props.onMonthChange,onYearChange:r.props.onYearChange,dayClassName:r.props.dayClassName,weekDayClassName:r.props.weekDayClassName,monthClassName:r.props.monthClassName,timeClassName:r.props.timeClassName,showTimeSelect:r.props.showTimeSelect,showTimeSelectOnly:r.props.showTimeSelectOnly,onTimeChange:r.handleTimeChange,timeFormat:r.props.timeFormat,timeIntervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,className:r.props.calendarClassName,container:r.props.calendarContainer,yearItemNumber:r.props.yearItemNumber,yearDropdownItemNumber:r.props.yearDropdownItemNumber,previousMonthAriaLabel:r.props.previousMonthAriaLabel,previousMonthButtonLabel:r.props.previousMonthButtonLabel,nextMonthAriaLabel:r.props.nextMonthAriaLabel,nextMonthButtonLabel:r.props.nextMonthButtonLabel,previousYearAriaLabel:r.props.previousYearAriaLabel,previousYearButtonLabel:r.props.previousYearButtonLabel,nextYearAriaLabel:r.props.nextYearAriaLabel,nextYearButtonLabel:r.props.nextYearButtonLabel,timeInputLabel:r.props.timeInputLabel,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderCustomHeader:r.props.renderCustomHeader,popperProps:r.props.popperProps,renderDayContents:r.props.renderDayContents,onDayMouseEnter:r.props.onDayMouseEnter,onMonthMouseLeave:r.props.onMonthMouseLeave,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showTimeInput:r.props.showTimeInput,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,showPopperArrow:r.props.showPopperArrow,excludeScrollbar:r.props.excludeScrollbar,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,isInputFocused:r.state.focused,customTimeInput:r.props.customTimeInput,setPreSelection:r.setPreSelection},r.props.children):null}),tv(tw(r),"renderAriaLiveRegion",function(){var e,t=r.props,n=t.dateFormat,a=t.locale,i=r.props.showTimeInput||r.props.showTimeSelect?"PPPPp":"PPPP";return e=r.props.selectsRange?"Selected start date: ".concat(tD(r.props.startDate,{dateFormat:i,locale:a}),". ").concat(r.props.endDate?"End date: "+tD(r.props.endDate,{dateFormat:i,locale:a}):""):r.props.showTimeSelectOnly?"Selected time: ".concat(tD(r.props.selected,{dateFormat:n,locale:a})):r.props.showYearPicker?"Selected year: ".concat(tD(r.props.selected,{dateFormat:"yyyy",locale:a})):r.props.showMonthYearPicker?"Selected month: ".concat(tD(r.props.selected,{dateFormat:"MMMM yyyy",locale:a})):r.props.showQuarterYearPicker?"Selected quarter: ".concat(tD(r.props.selected,{dateFormat:"yyyy, QQQ",locale:a})):"Selected date: ".concat(tD(r.props.selected,{dateFormat:i,locale:a})),eh.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&e)}),tv(tw(r),"renderDateInput",function(){var e,t=em.default(r.props.className,tv({},nw,r.state.open)),n=r.props.customInput||eh.default.createElement("input",{type:"text"}),a=r.props.customInputRef||"ref",i="string"==typeof r.props.value?r.props.value:"string"==typeof r.state.inputValue?r.state.inputValue:r.props.selectsRange?function(e,t,n){if(!e)return"";var r=tD(e,n),a=t?tD(t,n):"";return"".concat(r," - ").concat(a)}(r.props.startDate,r.props.endDate,r.props):tD(r.props.selected,r.props);return eh.default.cloneElement(n,(tv(e={},a,function(e){r.input=e}),tv(e,"value",i),tv(e,"onBlur",r.handleBlur),tv(e,"onChange",r.handleChange),tv(e,"onClick",r.onInputClick),tv(e,"onFocus",r.handleFocus),tv(e,"onKeyDown",r.onInputKeyDown),tv(e,"id",r.props.id),tv(e,"name",r.props.name),tv(e,"form",r.props.form),tv(e,"autoFocus",r.props.autoFocus),tv(e,"placeholder",r.props.placeholderText),tv(e,"disabled",r.props.disabled),tv(e,"autoComplete",r.props.autoComplete),tv(e,"className",em.default(n.props.className,t)),tv(e,"title",r.props.title),tv(e,"readOnly",r.props.readOnly),tv(e,"required",r.props.required),tv(e,"tabIndex",r.props.tabIndex),tv(e,"aria-describedby",r.props.ariaDescribedBy),tv(e,"aria-invalid",r.props.ariaInvalid),tv(e,"aria-labelledby",r.props.ariaLabelledBy),tv(e,"aria-required",r.props.ariaRequired),e))}),tv(tw(r),"renderClearButton",function(){var e=r.props,t=e.isClearable,n=e.selected,a=e.startDate,i=e.endDate,l=e.clearButtonTitle,o=e.clearButtonClassName,s=e.ariaLabelClose;return t&&(null!=n||null!=a||null!=i)?eh.default.createElement("button",{type:"button",className:"react-datepicker__close-icon ".concat(void 0===o?"":o).trim(),"aria-label":void 0===s?"Close":s,onClick:r.onClearClick,title:l,tabIndex:-1}):null}),r.state=r.calcInitialState(),r}return tm(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(e,t){var n,r;e.inline&&(n=e.selected,r=this.props.selected,n&&r?eR.default(n)!==eR.default(r)||eB.default(n)!==eB.default(r):n!==r)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:t5(this.props.highlightDates)}),t.focused||tB(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&this.props.onCalendarOpen(),!0===t.open&&!1===this.state.open&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){return eh.default.createElement("div",{className:"react-datepicker__input-container"},this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?eh.default.createElement(nb,{enableTabLoop:this.props.enableTabLoop},eh.default.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=eh.default.createElement(ng,{portalId:this.props.portalId,portalHost:this.props.portalHost},t)),eh.default.createElement("div",null,this.renderInputContainer(),t)}return eh.default.createElement(ny,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:e,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:12,renderDayContents:function(e){return e},focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0}}}]),n}(eh.default.Component),nC="input",nN="navigate";e.CalendarContainer=nh,e.default=nj,e.getDefaultLocale=tZ,e.registerLocale=function(e,t){var n="undefined"!=typeof window?window:globalThis;n.__localeData__||(n.__localeData__={}),n.__localeData__[e]=t},e.setDefaultLocale=function(e){("undefined"!=typeof window?window:globalThis).__localeId__=e},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(7294),n(5697),n(4184),n(2897),n(2304),n(7204),n(7859),n(6797),n(7633),n(3472),n(7930),n(5680),n(932),n(6640),n(5516),n(5394),n(8257),n(9359),n(1806),n(5717),n(9724),n(5502),n(6314),n(8931),n(9986),n(9378),n(6702),n(6789),n(3237),n(6696),n(6329),n(4845),n(8774),n(6954),n(8617),n(3783),n(2117),n(2011),n(5945),n(9769),n(2041),n(5688),n(8494),n(2350),n(258),n(5831),n(8078),n(5343),n(8825),n(154),n(1999),n(9634),n(9905),n(5500),n(1151),n(3280),n(4174),n(2256),n(5538),n(6381),n(1035),n(2980),n(8949),n(3935),n(6829),n(4470))},9590:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,i){try{return function e(i,l){if(i===l)return!0;if(i&&l&&"object"==typeof i&&"object"==typeof l){var o,s,c,u;if(i.constructor!==l.constructor)return!1;if(Array.isArray(i)){if((o=i.length)!=l.length)return!1;for(s=o;0!=s--;)if(!e(i[s],l[s]))return!1;return!0}if(n&&i instanceof Map&&l instanceof Map){if(i.size!==l.size)return!1;for(u=i.entries();!(s=u.next()).done;)if(!l.has(s.value[0]))return!1;for(u=i.entries();!(s=u.next()).done;)if(!e(s.value[1],l.get(s.value[0])))return!1;return!0}if(r&&i instanceof Set&&l instanceof Set){if(i.size!==l.size)return!1;for(u=i.entries();!(s=u.next()).done;)if(!l.has(s.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(i)&&ArrayBuffer.isView(l)){if((o=i.length)!=l.length)return!1;for(s=o;0!=s--;)if(i[s]!==l[s])return!1;return!0}if(i.constructor===RegExp)return i.source===l.source&&i.flags===l.flags;if(i.valueOf!==Object.prototype.valueOf)return i.valueOf()===l.valueOf();if(i.toString!==Object.prototype.toString)return i.toString()===l.toString();if((o=(c=Object.keys(i)).length)!==Object.keys(l).length)return!1;for(s=o;0!=s--;)if(!Object.prototype.hasOwnProperty.call(l,c[s]))return!1;if(t&&i instanceof Element)return!1;for(s=o;0!=s--;)if(("_owner"!==c[s]&&"__v"!==c[s]&&"__o"!==c[s]||!i.$$typeof)&&!e(i[c[s]],l[c[s]]))return!1;return!0}return i!=i&&l!=l}(e,i)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},9921:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,l=n?Symbol.for("react.strict_mode"):60108,o=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,x=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,y=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case o:case l:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case v:case m:case s:return e;default:return t}}case a:return t}}}function k(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=a,t.Profiler=o,t.StrictMode=l,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||w(e)===u},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===o},t.isStrictMode=function(e){return w(e)===l},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===o||e===l||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===p||e.$$typeof===x||e.$$typeof===b||e.$$typeof===y||e.$$typeof===g)},t.typeOf=w},9864:function(e,t,n){"use strict";e.exports=n(9921)},8949:function(e,t,n){"use strict";n.r(t),n.d(t,{IGNORE_CLASS_NAME:function(){return h}});var r,a,i=n(7294),l=n(3935);function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}},u=(void 0===r&&(r=0),function(){return++r}),d={},p={},f=["touchstart","touchmove"],h="ignore-react-onclickoutside";function m(e,t){var n=null;return -1!==f.indexOf(t)&&a&&(n={passive:!e.props.preventDefault}),n}t.default=function(e,t){var n,r,f=e.displayName||e.name||"Component";return r=n=function(n){function r(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"==typeof r.__clickOutsideHandlerProp){r.__clickOutsideHandlerProp(e);return}var t=r.getInstance();if("function"==typeof t.props.handleClickOutside){t.props.handleClickOutside(e);return}if("function"==typeof t.handleClickOutside){t.handleClickOutside(e);return}throw Error("WrappedComponent: "+f+" lacks a handleClickOutside(event) function for processing outside click events.")},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,l.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!=typeof document&&!p[r._uid]){void 0===a&&(a=c()),p[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),d[r._uid]=function(e){null!==r.componentNode&&(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),!(r.props.excludeScrollbar&&(document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY)))&&function(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){var r;if(e.parentNode&&((r=e)===t||(r.correspondingElement?r.correspondingElement.classList.contains(n):r.classList.contains(n))))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e)},e.forEach(function(e){document.addEventListener(e,d[r._uid],m(s(r),e))})}},r.disableOnClickOutside=function(){delete p[r._uid];var e=d[r._uid];if(e&&"undefined"!=typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach(function(t){return document.removeEventListener(t,e,m(s(r),t))}),delete d[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=u(),r}r.prototype=Object.create(n.prototype),r.prototype.constructor=r,o(r,n);var h=r.prototype;return h.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},h.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw Error("WrappedComponent: "+f+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},h.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},h.componentWillUnmount=function(){this.disableOnClickOutside()},h.render=function(){var t=this.props;t.excludeScrollbar;var n=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(a[n]=e[n]);return a}(t,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,(0,i.createElement)(e,n)},r}(i.Component),n.displayName="OnClickOutside("+f+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:h,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}},6829:function(e,t,n){"use strict";n.r(t),n.d(t,{Manager:function(){return d},Popper:function(){return eT},Reference:function(){return eM},usePopper:function(){return eS}});var r,a,i,l,o,s=n(7294),c=s.createContext(),u=s.createContext();function d(e){var t=e.children,n=s.useState(null),r=n[0],a=n[1],i=s.useRef(!1);s.useEffect(function(){return function(){i.current=!0}},[]);var l=s.useCallback(function(e){i.current||a(e)},[]);return s.createElement(c.Provider,{value:r},s.createElement(u.Provider,{value:l},t))}var p=function(e){return Array.isArray(e)?e[0]:e},f=function(e){if("function"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},h=function(e,t){if("function"==typeof e)return f(e,t);null!=e&&(e.current=t)},m=function(e){return e.reduce(function(e,t){var n=t[0],r=t[1];return e[n]=r,e},{})},v="undefined"!=typeof window&&window.document&&window.document.createElement?s.useLayoutEffect:s.useEffect,g=n(3935);function x(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function b(e){var t=x(e).Element;return e instanceof t||e instanceof Element}function y(e){var t=x(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function w(e){if("undefined"==typeof ShadowRoot)return!1;var t=x(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var k=Math.max,S=Math.min,j=Math.round;function C(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function N(){return!/^((?!chrome|android).)*safari/i.test(C())}function T(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),a=1,i=1;t&&y(e)&&(a=e.offsetWidth>0&&j(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&j(r.height)/e.offsetHeight||1);var l=(b(e)?x(e):window).visualViewport,o=!N()&&n,s=(r.left+(o&&l?l.offsetLeft:0))/a,c=(r.top+(o&&l?l.offsetTop:0))/i,u=r.width/a,d=r.height/i;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function E(e){var t=x(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function D(e){return e?(e.nodeName||"").toLowerCase():null}function M(e){return((b(e)?e.ownerDocument:e.document)||window.document).documentElement}function _(e){return T(M(e)).left+E(e).scrollLeft}function A(e){return x(e).getComputedStyle(e)}function L(e){var t=A(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function I(e){var t=T(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function P(e){return"html"===D(e)?e:e.assignedSlot||e.parentNode||(w(e)?e.host:null)||M(e)}function O(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(D(t))>=0?t.ownerDocument.body:y(t)&&L(t)?t:e(P(t))}(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),i=x(r),l=a?[i].concat(i.visualViewport||[],L(r)?r:[]):r,o=t.concat(l);return a?o:o.concat(O(P(l)))}function R(e){return y(e)&&"fixed"!==A(e).position?e.offsetParent:null}function F(e){for(var t=x(e),n=R(e);n&&["table","td","th"].indexOf(D(n))>=0&&"static"===A(n).position;)n=R(n);return n&&("html"===D(n)||"body"===D(n)&&"static"===A(n).position)?t:n||function(e){var t=/firefox/i.test(C());if(/Trident/i.test(C())&&y(e)&&"fixed"===A(e).position)return null;var n=P(e);for(w(n)&&(n=n.host);y(n)&&0>["html","body"].indexOf(D(n));){var r=A(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var B="bottom",z="right",Z="left",H="auto",U=["top",B,z,Z],V="start",W="viewport",G="popper",Y=U.reduce(function(e,t){return e.concat([t+"-"+V,t+"-end"])},[]),q=[].concat(U,[H]).reduce(function(e,t){return e.concat([t,t+"-"+V,t+"-end"])},[]),K=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],$={placement:"bottom",modifiers:[],strategy:"absolute"};function X(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var J={passive:!0};function Q(e){return e.split("-")[0]}function ee(e){return e.split("-")[1]}function et(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function en(e){var t,n=e.reference,r=e.element,a=e.placement,i=a?Q(a):null,l=a?ee(a):null,o=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case"top":t={x:o,y:n.y-r.height};break;case B:t={x:o,y:n.y+n.height};break;case z:t={x:n.x+n.width,y:s};break;case Z:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?et(i):null;if(null!=c){var u="y"===c?"height":"width";switch(l){case V:t[c]=t[c]-(n[u]/2-r[u]/2);break;case"end":t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var er={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ea(e){var t,n,r,a,i,l,o,s=e.popper,c=e.popperRect,u=e.placement,d=e.variation,p=e.offsets,f=e.position,h=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,g=e.isFixed,b=p.x,y=void 0===b?0:b,w=p.y,k=void 0===w?0:w,S="function"==typeof v?v({x:y,y:k}):{x:y,y:k};y=S.x,k=S.y;var C=p.hasOwnProperty("x"),N=p.hasOwnProperty("y"),T=Z,E="top",D=window;if(m){var _=F(s),L="clientHeight",I="clientWidth";_===x(s)&&"static"!==A(_=M(s)).position&&"absolute"===f&&(L="scrollHeight",I="scrollWidth"),("top"===u||(u===Z||u===z)&&"end"===d)&&(E=B,k-=(g&&_===D&&D.visualViewport?D.visualViewport.height:_[L])-c.height,k*=h?1:-1),(u===Z||("top"===u||u===B)&&"end"===d)&&(T=z,y-=(g&&_===D&&D.visualViewport?D.visualViewport.width:_[I])-c.width,y*=h?1:-1)}var P=Object.assign({position:f},m&&er),O=!0===v?(t={x:y,y:k},n=x(s),r=t.x,a=t.y,{x:j(r*(i=n.devicePixelRatio||1))/i||0,y:j(a*i)/i||0}):{x:y,y:k};return(y=O.x,k=O.y,h)?Object.assign({},P,((o={})[E]=N?"0":"",o[T]=C?"0":"",o.transform=1>=(D.devicePixelRatio||1)?"translate("+y+"px, "+k+"px)":"translate3d("+y+"px, "+k+"px, 0)",o)):Object.assign({},P,((l={})[E]=N?k+"px":"",l[T]=C?y+"px":"",l.transform="",l))}var ei={left:"right",right:"left",bottom:"top",top:"bottom"};function el(e){return e.replace(/left|right|bottom|top/g,function(e){return ei[e]})}var eo={start:"end",end:"start"};function es(e){return e.replace(/start|end/g,function(e){return eo[e]})}function ec(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&w(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function eu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ed(e,t,n){var r,a,i,l,o,s,c,u,d,p;return t===W?eu(function(e,t){var n=x(e),r=M(e),a=n.visualViewport,i=r.clientWidth,l=r.clientHeight,o=0,s=0;if(a){i=a.width,l=a.height;var c=N();(c||!c&&"fixed"===t)&&(o=a.offsetLeft,s=a.offsetTop)}return{width:i,height:l,x:o+_(e),y:s}}(e,n)):b(t)?((r=T(t,!1,"fixed"===n)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):eu((a=M(e),l=M(a),o=E(a),s=null==(i=a.ownerDocument)?void 0:i.body,c=k(l.scrollWidth,l.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=k(l.scrollHeight,l.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),d=-o.scrollLeft+_(a),p=-o.scrollTop,"rtl"===A(s||l).direction&&(d+=k(l.clientWidth,s?s.clientWidth:0)-c),{width:c,height:u,x:d,y:p}))}function ep(){return{top:0,right:0,bottom:0,left:0}}function ef(e){return Object.assign({},ep(),e)}function eh(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function em(e,t){void 0===t&&(t={});var n,r,a,i,l,o,s,c,u=t,d=u.placement,p=void 0===d?e.placement:d,f=u.strategy,h=void 0===f?e.strategy:f,m=u.boundary,v=u.rootBoundary,g=u.elementContext,x=void 0===g?G:g,w=u.altBoundary,j=u.padding,C=void 0===j?0:j,N=ef("number"!=typeof C?C:eh(C,U)),E=e.rects.popper,_=e.elements[void 0!==w&&w?x===G?"reference":G:x],L=(n=b(_)?_:_.contextElement||M(e.elements.popper),r=void 0===m?"clippingParents":m,a=void 0===v?W:v,s=(o=[].concat("clippingParents"===r?(i=O(P(n)),b(l=["absolute","fixed"].indexOf(A(n).position)>=0&&y(n)?F(n):n)?i.filter(function(e){return b(e)&&ec(e,l)&&"body"!==D(e)}):[]):[].concat(r),[a]))[0],(c=o.reduce(function(e,t){var r=ed(n,t,h);return e.top=k(r.top,e.top),e.right=S(r.right,e.right),e.bottom=S(r.bottom,e.bottom),e.left=k(r.left,e.left),e},ed(n,s,h))).width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c),I=T(e.elements.reference),R=en({reference:I,element:E,strategy:"absolute",placement:p}),Z=eu(Object.assign({},E,R)),H=x===G?Z:I,V={top:L.top-H.top+N.top,bottom:H.bottom-L.bottom+N.bottom,left:L.left-H.left+N.left,right:H.right-L.right+N.right},Y=e.modifiersData.offset;if(x===G&&Y){var q=Y[p];Object.keys(V).forEach(function(e){var t=[z,B].indexOf(e)>=0?1:-1,n=["top",B].indexOf(e)>=0?"y":"x";V[e]+=q[n]*t})}return V}function ev(e,t,n){return k(e,S(t,n))}function eg(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ex(e){return["top",z,B,Z].some(function(t){return e[t]>=0})}var eb=(i=void 0===(a=(r={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=void 0===a||a,l=r.resize,o=void 0===l||l,s=x(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",n.update,J)}),o&&s.addEventListener("resize",n.update,J),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",n.update,J)}),o&&s.removeEventListener("resize",n.update,J)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=en({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=n.adaptive,i=n.roundOffsets,l=void 0===i||i,o={placement:Q(t.placement),variation:ee(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ea(Object.assign({},o,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===a||a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ea(Object.assign({},o,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},a=t.elements[e];y(a)&&D(a)&&(Object.assign(a.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],a=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});y(r)&&D(r)&&(Object.assign(r.style,i),Object.keys(a).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=void 0===a?[0,0]:a,l=q.reduce(function(e,n){var r,a,l,o,s,c;return e[n]=(r=t.rects,l=[Z,"top"].indexOf(a=Q(n))>=0?-1:1,s=(o="function"==typeof i?i(Object.assign({},r,{placement:n})):i)[0],c=o[1],s=s||0,c=(c||0)*l,[Z,z].indexOf(a)>=0?{x:c,y:s}:{x:s,y:c}),e},{}),o=l[t.placement],s=o.x,c=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=l}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=void 0===a||a,l=n.altAxis,o=void 0===l||l,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,v=t.options.placement,g=Q(v)===v,x=s||(g||!h?[el(v)]:function(e){if(Q(e)===H)return[];var t=el(e);return[es(e),t,es(t)]}(v)),b=[v].concat(x).reduce(function(e,n){var r,a,i,l,o,s,p,f,v,g,x,b;return e.concat(Q(n)===H?(a=(r={placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}).placement,i=r.boundary,l=r.rootBoundary,o=r.padding,s=r.flipVariations,f=void 0===(p=r.allowedAutoPlacements)?q:p,0===(x=(g=(v=ee(a))?s?Y:Y.filter(function(e){return ee(e)===v}):U).filter(function(e){return f.indexOf(e)>=0})).length&&(x=g),Object.keys(b=x.reduce(function(e,n){return e[n]=em(t,{placement:n,boundary:i,rootBoundary:l,padding:o})[Q(n)],e},{})).sort(function(e,t){return b[e]-b[t]})):n)},[]),y=t.rects.reference,w=t.rects.popper,k=new Map,S=!0,j=b[0],C=0;C<b.length;C++){var N=b[C],T=Q(N),E=ee(N)===V,D=["top",B].indexOf(T)>=0,M=D?"width":"height",_=em(t,{placement:N,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),A=D?E?z:Z:E?B:"top";y[M]>w[M]&&(A=el(A));var L=el(A),I=[];if(i&&I.push(_[T]<=0),o&&I.push(_[A]<=0,_[L]<=0),I.every(function(e){return e})){j=N,S=!1;break}k.set(N,I)}if(S)for(var P=h?3:1,O=function(e){var t=b.find(function(t){var n=k.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return j=t,"break"},R=P;R>0&&"break"!==O(R);R--);t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=n.altAxis,l=n.boundary,o=n.rootBoundary,s=n.altBoundary,c=n.padding,u=n.tether,d=void 0===u||u,p=n.tetherOffset,f=void 0===p?0:p,h=em(t,{boundary:l,rootBoundary:o,padding:c,altBoundary:s}),m=Q(t.placement),v=ee(t.placement),g=!v,x=et(m),b="x"===x?"y":"x",y=t.modifiersData.popperOffsets,w=t.rects.reference,j=t.rects.popper,C="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,N="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(y){if(void 0===a||a){var D,M="y"===x?"top":Z,_="y"===x?B:z,A="y"===x?"height":"width",L=y[x],P=L+h[M],O=L-h[_],R=d?-j[A]/2:0,H=v===V?w[A]:j[A],U=v===V?-j[A]:-w[A],W=t.elements.arrow,G=d&&W?I(W):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ep(),q=Y[M],K=Y[_],$=ev(0,w[A],G[A]),X=g?w[A]/2-R-$-q-N.mainAxis:H-$-q-N.mainAxis,J=g?-w[A]/2+R+$+K+N.mainAxis:U+$+K+N.mainAxis,en=t.elements.arrow&&F(t.elements.arrow),er=en?"y"===x?en.clientTop||0:en.clientLeft||0:0,ea=null!=(D=null==T?void 0:T[x])?D:0,ei=ev(d?S(P,L+X-ea-er):P,L,d?k(O,L+J-ea):O);y[x]=ei,E[x]=ei-L}if(void 0!==i&&i){var el,eo,es="x"===x?"top":Z,ec="x"===x?B:z,eu=y[b],ed="y"===b?"height":"width",ef=eu+h[es],eh=eu-h[ec],eg=-1!==["top",Z].indexOf(m),ex=null!=(eo=null==T?void 0:T[b])?eo:0,eb=eg?ef:eu-w[ed]-j[ed]-ex+N.altAxis,ey=eg?eu+w[ed]+j[ed]-ex-N.altAxis:eh,ew=d&&eg?(el=ev(eb,eu,ey))>ey?ey:el:ev(d?eb:ef,eu,d?ey:eh);y[b]=ew,E[b]=ew-eu}t.modifiersData[r]=E}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r=e.state,a=e.name,i=e.options,l=r.elements.arrow,o=r.modifiersData.popperOffsets,s=Q(r.placement),c=et(s),u=[Z,z].indexOf(s)>=0?"height":"width";if(l&&o){var d=ef("number"!=typeof(t="function"==typeof(t=i.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:eh(t,U)),p=I(l),f="y"===c?"top":Z,h="y"===c?B:z,m=r.rects.reference[u]+r.rects.reference[c]-o[c]-r.rects.popper[u],v=o[c]-r.rects.reference[c],g=F(l),x=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,b=d[f],y=x-p[u]-d[h],w=x/2-p[u]/2+(m/2-v/2),k=ev(b,w,y);r.modifiersData[a]=((n={})[c]=k,n.centerOffset=k-w,n)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ec(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,l=em(t,{elementContext:"reference"}),o=em(t,{altBoundary:!0}),s=eg(l,r),c=eg(o,a,i),u=ex(s),d=ex(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:a,o=void 0===(l=r.defaultOptions)?$:l,function(e,t,n){void 0===n&&(n=o);var r,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},$,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var r,a,c,p,f,h="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},o,l.options,h),l.scrollParents={reference:b(e)?O(e):e.contextElement?O(e.contextElement):[],popper:O(t)};var m=(a=Object.keys(r=[].concat(i,l.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),c=new Map,p=new Set,f=[],a.forEach(function(e){c.set(e.name,e)}),a.forEach(function(e){p.has(e.name)||function e(t){p.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!p.has(t)){var n=c.get(t);n&&e(n)}}),f.push(t)}(e)}),K.reduce(function(e,t){return e.concat(f.filter(function(e){return e.phase===t}))},[]));return l.orderedModifiers=m.filter(function(e){return e.enabled}),l.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var a=r({state:l,name:t,instance:u,options:void 0===n?{}:n});s.push(a||function(){})}}),u.update()},forceUpdate:function(){if(!c){var e,t,n,r,a,i,o,s,d,p,f,h,m=l.elements,v=m.reference,g=m.popper;if(X(v,g)){l.rects={reference:(t=F(g),n="fixed"===l.options.strategy,r=y(t),s=y(t)&&(i=j((a=t.getBoundingClientRect()).width)/t.offsetWidth||1,o=j(a.height)/t.offsetHeight||1,1!==i||1!==o),d=M(t),p=T(v,s,n),f={scrollLeft:0,scrollTop:0},h={x:0,y:0},(r||!r&&!n)&&(("body"!==D(t)||L(d))&&(f=(e=t)!==x(e)&&y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:E(e)),y(t)?(h=T(t,!0),h.x+=t.clientLeft,h.y+=t.clientTop):d&&(h.x=_(d))),{x:p.left+f.scrollLeft-h.x,y:p.top+f.scrollTop-h.y,width:p.width,height:p.height}),popper:I(g)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(e){return l.modifiersData[e.name]=Object.assign({},e.data)});for(var b=0;b<l.orderedModifiers.length;b++){if(!0===l.reset){l.reset=!1,b=-1;continue}var w=l.orderedModifiers[b],k=w.fn,S=w.options,C=void 0===S?{}:S,N=w.name;"function"==typeof k&&(l=k({state:l,options:C,name:N,instance:u})||l)}}}},update:(r=function(){return new Promise(function(e){u.forceUpdate(),e(l)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(r())})})),a}),destroy:function(){d(),c=!0}};if(!X(e,t))return u;function d(){s.forEach(function(e){return e()}),s=[]}return u.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}),ey=n(9590),ew=n.n(ey),ek=[],eS=function(e,t,n){void 0===n&&(n={});var r=s.useRef(null),a={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||ek},i=s.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=i[0],o=i[1],c=s.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);g.flushSync(function(){o({styles:m(n.map(function(e){return[e,t.styles[e]||{}]})),attributes:m(n.map(function(e){return[e,t.attributes[e]]}))})})},requires:["computeStyles"]}},[]),u=s.useMemo(function(){var e={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[c,{name:"applyStyles",enabled:!1}])};return ew()(r.current,e)?r.current||e:(r.current=e,e)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,c]),d=s.useRef();return v(function(){d.current&&d.current.setOptions(u)},[u]),v(function(){if(null!=e&&null!=t){var r=(n.createPopper||eb)(e,t,u);return d.current=r,function(){r.destroy(),d.current=null}}},[e,t,n.createPopper]),{state:d.current?d.current.state:null,styles:l.styles,attributes:l.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},ej=function(){},eC=function(){return Promise.resolve(null)},eN=[];function eT(e){var t=e.placement,n=void 0===t?"bottom":t,r=e.strategy,a=void 0===r?"absolute":r,i=e.modifiers,l=void 0===i?eN:i,o=e.referenceElement,u=e.onFirstUpdate,d=e.innerRef,f=e.children,m=s.useContext(c),v=s.useState(null),g=v[0],x=v[1],b=s.useState(null),y=b[0],w=b[1];s.useEffect(function(){h(d,g)},[d,g]);var k=eS(o||m,g,s.useMemo(function(){return{placement:n,strategy:a,onFirstUpdate:u,modifiers:[].concat(l,[{name:"arrow",enabled:null!=y,options:{element:y}}])}},[n,a,u,l,y])),S=k.state,j=k.styles,C=k.forceUpdate,N=k.update,T=s.useMemo(function(){return{ref:x,style:j.popper,placement:S?S.placement:n,hasPopperEscaped:S&&S.modifiersData.hide?S.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:S&&S.modifiersData.hide?S.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:j.arrow,ref:w},forceUpdate:C||ej,update:N||eC}},[x,w,n,S,j,N,C]);return p(f)(T)}var eE=n(2473),eD=n.n(eE);function eM(e){var t=e.children,n=e.innerRef,r=s.useContext(u),a=s.useCallback(function(e){h(n,e),f(r,e)},[n,r]);return s.useEffect(function(){return function(){return h(n,null)}},[]),s.useEffect(function(){eD()(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),p(t)({ref:a})}},8297: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 a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)0>t.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};Object.defineProperty(t,"__esModule",{value:!0});var s=l(n(7294)),c=n(6657),u=(0,n(10).createAnimation)("MoonLoader","100% {transform: rotate(360deg)}","moon");t.default=function(e){var t=e.loading,n=e.color,a=void 0===n?"#000000":n,i=e.speedMultiplier,l=void 0===i?1:i,d=e.cssOverride,p=e.size,f=o(e,["loading","color","speedMultiplier","cssOverride","size"]),h=(0,c.parseLengthAndUnit)(void 0===p?60:p),m=h.value,v=h.unit,g=m/7,x=r({display:"inherit",position:"relative",width:"".concat("".concat(m+2*g).concat(v)),height:"".concat("".concat(m+2*g).concat(v)),animation:"".concat(u," ").concat(.6/l,"s 0s infinite linear"),animationFillMode:"forwards"},void 0===d?{}:d),b=function(e){return{width:(0,c.cssValue)(e),height:(0,c.cssValue)(e),borderRadius:"100%"}},y=r(r({},b(g)),{backgroundColor:"".concat(a),opacity:"0.8",position:"absolute",top:"".concat("".concat(m/2-g/2).concat(v)),animation:"".concat(u," ").concat(.6/l,"s 0s infinite linear"),animationFillMode:"forwards"}),w=r(r({},b(m)),{border:"".concat(g,"px solid ").concat(a),opacity:"0.1",boxSizing:"content-box",position:"absolute"});return void 0===t||t?s.createElement("span",r({style:x},f),s.createElement("span",{style:y}),s.createElement("span",{style:w})):null}},4055:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(7294),a={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function i(e){if("number"==typeof e)return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return a[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function l(e){var t=i(e);return"".concat(t.value).concat(t.unit)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)0>t.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},c=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var a=document.createElement("style");document.head.appendChild(a);var i=a.sheet,l="\n    @keyframes ".concat(r," {\n      ").concat(t,"\n    }\n  ");return i&&i.insertRule(l,0),r}("MoonLoader","100% {transform: rotate(360deg)}","moon"),u=function(e){var t=e.loading,n=e.color,a=void 0===n?"#000000":n,u=e.speedMultiplier,d=void 0===u?1:u,p=e.cssOverride,f=e.size,h=s(e,["loading","color","speedMultiplier","cssOverride","size"]),m=i(void 0===f?60:f),v=m.value,g=m.unit,x=v/7,b=o({display:"inherit",position:"relative",width:"".concat("".concat(v+2*x).concat(g)),height:"".concat("".concat(v+2*x).concat(g)),animation:"".concat(c," ").concat(.6/d,"s 0s infinite linear"),animationFillMode:"forwards"},void 0===p?{}:p),y=function(e){return{width:l(e),height:l(e),borderRadius:"100%"}},w=o(o({},y(x)),{backgroundColor:"".concat(a),opacity:"0.8",position:"absolute",top:"".concat("".concat(v/2-x/2).concat(g)),animation:"".concat(c," ").concat(.6/d,"s 0s infinite linear"),animationFillMode:"forwards"}),k=o(o({},y(v)),{border:"".concat(x,"px solid ").concat(a),opacity:"0.1",boxSizing:"content-box",position:"absolute"});return void 0===t||t?r.createElement("span",o({style:b},h),r.createElement("span",{style:w}),r.createElement("span",{style:k})):null}},10:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createAnimation=void 0,t.createAnimation=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var a=document.createElement("style");document.head.appendChild(a);var i=a.sheet,l="\n    @keyframes ".concat(r," {\n      ").concat(t,"\n    }\n  ");return i&&i.insertRule(l,0),r}},6657:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cssValue=t.parseLengthAndUnit=void 0;var n={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function r(e){if("number"==typeof e)return{value:e,unit:"px"};var t,r=(e.match(/^[0-9.]*/)||"").toString();t=r.includes(".")?parseFloat(r):parseInt(r,10);var a=(e.match(/[^0-9]*$/)||"").toString();return n[a]?{value:t,unit:a}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}t.parseLengthAndUnit=r,t.cssValue=function(e){var t=r(e);return"".concat(t.value).concat(t.unit)}},8379:function(e){e.exports=function(){let e=["a","b","c","d","e","f","0","1","2","3","4","5","6","7","8","9"],t=[];for(let n=0;n<36;n++)8===n||13===n||18===n||23===n?t[n]="-":t[n]=e[Math.ceil(Math.random()*e.length-1)];return t.join("")}},4480:function(e,t,n){"use strict";let r;n.d(t,{FV:function(){return iT},Wh:function(){return iS},Zl:function(){return iE},cn:function(){return ij},nZ:function(){return iC},sJ:function(){return iN}});var a,i,l,o,s=n(7294),c=n(3935),u=n(3454),d=function(e){let t=Error(e);if(void 0===t.stack)try{throw t}catch(e){}return t},p=function(e){return!!e&&"function"==typeof e.then},f=function(e,t){if(null!=e)return e;throw d(null!=t?t:"Got unexpected null or undefined")};function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class m{getValue(){throw d("BaseLoadable")}toPromise(){throw d("BaseLoadable")}valueMaybe(){throw d("BaseLoadable")}valueOrThrow(){throw d(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw d("BaseLoadable")}promiseOrThrow(){throw d(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw d("BaseLoadable")}errorOrThrow(){throw d(`Loadable expected error, but in "${this.state}" state`)}is(e){return e.state===this.state&&e.contents===this.contents}map(e){throw d("BaseLoadable")}}class v extends m{constructor(e){super(),h(this,"state","hasValue"),h(this,"contents",void 0),this.contents=e}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(e){try{let t=e(this.contents);return p(t)?w(t):j(t)?t:b(t)}catch(t){return p(t)?w(t.next(()=>this.map(e))):y(t)}}}class g extends m{constructor(e){super(),h(this,"state","hasError"),h(this,"contents",void 0),this.contents=e}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(e){return this}}class x extends m{constructor(e){super(),h(this,"state","loading"),h(this,"contents",void 0),this.contents=e}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(e){return w(this.contents.then(t=>{let n=e(t);if(j(n))switch(n.state){case"hasValue":case"loading":return n.contents;case"hasError":throw n.contents}return n}).catch(t=>{if(p(t))return t.then(()=>this.map(e).contents);throw t}))}}function b(e){return Object.freeze(new v(e))}function y(e){return Object.freeze(new g(e))}function w(e){return Object.freeze(new x(e))}function k(){return Object.freeze(new x(new Promise(()=>{})))}function S(e){var t;let n=(t=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])).map(e=>j(e)?e:p(e)?w(e):b(e))).every(e=>"hasValue"===e.state)?b(t.map(e=>e.contents)):t.some(e=>"hasError"===e.state)?y(f(t.find(e=>"hasError"===e.state),"Invalid loadable passed to loadableAll").contents):w(Promise.all(t.map(e=>e.contents)));return Array.isArray(e)?n:n.map(t=>Object.getOwnPropertyNames(e).reduce((e,n,r)=>({...e,[n]:t[r]}),{}))}function j(e){return e instanceof m}var C=Object.freeze({__proto__:null,loadableWithValue:b,loadableWithError:y,loadableWithPromise:w,loadableLoading:k,loadableAll:S,isLoadable:j,RecoilLoadable:{of:e=>p(e)?w(e):j(e)?e:b(e),error:e=>y(e),loading:()=>k(),all:S,isLoadable:j}});let N={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};function T(e){return N.RECOIL_GKS_ENABLED.has(e)}void 0!==u&&(null==u?void 0:u.env)!=null&&(function(e,t){var n,r;let a=null===(n=u.env[e])||void 0===n?void 0:null===(r=n.toLowerCase())||void 0===r?void 0:r.trim();if(null!=a&&""!==a){if(!["true","false"].includes(a))throw d(`process.env.${e} value must be 'true', 'false', or empty: ${a}`);t("true"===a)}}("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",e=>{N.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=e}),function(e,t){var n;let r=null===(n=u.env[e])||void 0===n?void 0:n.trim();null!=r&&""!==r&&t(r.split(/\s*,\s*|\s+/))}("RECOIL_GKS_ENABLED",e=>{e.forEach(e=>{N.RECOIL_GKS_ENABLED.add(e)})})),T.setPass=e=>{N.RECOIL_GKS_ENABLED.add(e)},T.setFail=e=>{N.RECOIL_GKS_ENABLED.delete(e)},T.clear=()=>{N.RECOIL_GKS_ENABLED.clear()};var E=function(e,t,{error:n}={}){return null};let D=null!==(i=s.createMutableSource)&&void 0!==i?i:s.unstable_createMutableSource,M=null!==(l=s.useMutableSource)&&void 0!==l?l:s.unstable_useMutableSource,_=null!==(o=s.useSyncExternalStore)&&void 0!==o?o:s.unstable_useSyncExternalStore,A=!1;var L={createMutableSource:D,useMutableSource:M,useSyncExternalStore:_,currentRendererSupportsUseSyncExternalStore:function(){var e;let{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,r=null!=(null!==(e=null==t?void 0:t.current)&&void 0!==e?e:n.currentDispatcher).useSyncExternalStore;return!_||r||A||(A=!0,E("A React renderer without React 18+ API support is being used with React 18+.")),r},reactMode:function(){return T("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:T("recoil_sync_external_store")&&null!=_?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:T("recoil_mutable_source")&&null!=M&&"undefined"!=typeof window&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?T("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:T("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}},isFastRefreshEnabled:function(){return!1}};class I{constructor(e){h(this,"key",void 0),this.key=e}toJSON(){return{key:this.key}}}class P extends I{}class O extends I{}var R=Object.freeze({__proto__:null,AbstractRecoilValue:I,RecoilState:P,RecoilValueReadOnly:O,isRecoilValue:function(e){return e instanceof P||e instanceof O}}),F=function(e,...t){},B=function(e,t){return function*(){let n=0;for(let r of e)yield t(r,n++)}()};let{isFastRefreshEnabled:z}=L;class Z{}let H=new Z,U=new Map,V=new Map;class W extends Error{}let G=new Map;function Y(e){return G.get(e)}var q={nodes:U,recoilValues:V,registerNode:function(e){var t;N.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&(t=e.key,U.has(t)&&console.warn(`Duplicate atom key "${t}". This is a FATAL ERROR in
      production. But it is safe to ignore this warning if it occurred because of
      hot module replacement.`)),U.set(e.key,e);let n=null==e.set?new R.RecoilValueReadOnly(e.key):new R.RecoilState(e.key);return V.set(e.key,n),n},getNode:function(e){let t=U.get(e);if(null==t)throw new W(`Missing definition for RecoilValue: "${e}""`);return t},getNodeMaybe:function(e){return U.get(e)},deleteNodeConfigIfPossible:function(e){var t,n;if(!T("recoil_memory_managament_2020"))return;let r=U.get(e);null!=r&&null!==(t=r.shouldDeleteConfigOnRelease)&&void 0!==t&&t.call(r)&&(U.delete(e),null===(n=Y(e))||void 0===n||n(),G.delete(e))},setConfigDeletionHandler:function(e,t){T("recoil_memory_managament_2020")&&(void 0===t?G.delete(e):G.set(e,t))},getConfigDeletionHandler:Y,recoilValuesForKeys:function(e){return B(e,e=>f(V.get(e)))},NodeMissingError:W,DefaultValue:Z,DEFAULT_VALUE:H},K=function(e,t){t()},$=(function(e){var t="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},n={},r={},a=function(e){return function(){return e}},i=n.hash=function(e){var n=void 0===e?"undefined":t(e);if("number"===n)return e;"string"!==n&&(e+="");for(var r=0,a=0,i=e.length;a<i;++a)r=(r<<5)-r+e.charCodeAt(a)|0;return r},l=function(e,t){return t>>>e&31},o=function(e){return 1<<e},s=function(e,t){var n;return n=e&t-1,n-=n>>1&1431655765,n=(n=(858993459&n)+(n>>2&858993459))+(n>>4)&252645135,n+=n>>8,127&(n+=n>>16)},c=function(e,t,n,r){var a=r;if(!e){var i=r.length;a=Array(i);for(var l=0;l<i;++l)a[l]=r[l]}return a[t]=n,a},u=function(e,t,n){var r=n.length-1,a=0,i=0,l=n;if(e)a=i=t;else for(l=Array(r);a<t;)l[i++]=n[a++];for(++a;a<=r;)l[i++]=n[a++];return e&&(l.length=r),l},d=function(e,t,n,r){var a=r.length;if(e){for(var i=a;i>=t;)r[i--]=r[i];return r[t]=n,r}for(var l=0,o=0,s=Array(a+1);l<t;)s[o++]=r[l++];for(s[t]=n;l<a;)s[++o]=r[l++];return s},p={__hamt_isEmpty:!0},f=function(e){return e===p||e&&e.__hamt_isEmpty},h=function(e,t,n,r){return{type:1,edit:e,hash:t,key:n,value:r,_modify:S}},m=function(e,t,n){return{type:2,edit:e,hash:t,children:n,_modify:j}},v=function(e,t,n){return{type:3,edit:e,mask:t,children:n,_modify:C}},g=function(e,t,n){return{type:4,edit:e,size:t,children:n,_modify:N}},x=function(e,t,n,r,a){for(var i=[],l=r,o=0,s=0;l;++s)1&l&&(i[s]=a[o++]),l>>>=1;return i[t]=n,g(e,o+1,i)},b=function(e,t,n,r){for(var a=Array(t-1),i=0,l=0,o=0,s=r.length;o<s;++o)if(o!==n){var c=r[o];c&&!f(c)&&(a[i++]=c,l|=1<<o)}return v(e,l,a)},y=function e(t,n,r,a,i,s){if(r===i)return m(t,r,[s,a]);var c=l(n,r),u=l(n,i);return v(t,o(c)|o(u),c===u?[e(t,n+5,r,a,i,s)]:c<u?[a,s]:[s,a])},w=function(e,t,n,a,i,l,o,s){for(var d=i.length,p=0;p<d;++p){var f=i[p];if(n(o,f.key)){var m=f.value,v=l(m);if(v===m)return i;if(v===r)return--s.value,u(e,p,i);return c(e,p,h(t,a,o,v),i)}}var g=l();return g===r?i:(++s.value,c(e,d,h(t,a,o,g),i))},k=function(e,t){return e===t.edit},S=function(e,t,n,a,i,l,o){if(t(l,this.key)){var s=a(this.value);return s===this.value?this:s===r?(--o.value,p):k(e,this)?(this.value=s,this):h(e,i,l,s)}var c=a();return c===r?this:(++o.value,y(e,n,this.hash,this,i,h(e,i,l,c)))},j=function(e,t,n,a,i,l,o){if(i===this.hash){var s=w(k(e,this),e,t,this.hash,this.children,a,l,o);return s===this.children?this:s.length>1?m(e,this.hash,s):s[0]}var c=a();return c===r?this:(++o.value,y(e,n,this.hash,this,i,h(e,i,l,c)))},C=function(e,t,n,r,a,i,h){var m,g=this.mask,b=this.children,y=l(n,a),w=o(y),S=s(g,w),j=g&w,C=j?b[S]:p,N=C._modify(e,t,n+5,r,a,i,h);if(C===N)return this;var T=k(e,this),E=g,D=void 0;if(j&&f(N)){if(!(E&=~w))return p;if(b.length<=2&&((m=b[1^S])===p||1===m.type||2===m.type))return b[1^S];D=u(T,S,b)}else if(j||f(N))D=c(T,S,N,b);else{if(b.length>=16)return x(e,y,N,g,b);E|=w,D=d(T,S,N,b)}return T?(this.mask=E,this.children=D,this):v(e,E,D)},N=function(e,t,n,r,a,i,o){var s=this.size,u=this.children,d=l(n,a),h=u[d],m=(h||p)._modify(e,t,n+5,r,a,i,o);if(h===m)return this;var v=k(e,this),x=void 0;if(f(h)&&!f(m))++s,x=c(v,d,m,u);else if(!f(h)&&f(m)){if(--s<=8)return b(e,s,d,u);x=c(v,d,p,u)}else x=c(v,d,m,u);return v?(this.size=s,this.children=x,this):g(e,s,x)};function T(e,t,n,r,a){this._editable=e,this._edit=t,this._config=n,this._root=r,this._size=a}p._modify=function(e,t,n,a,i,l,o){var s=a();return s===r?p:(++o.value,h(e,i,l,s))},T.prototype.setTree=function(e,t){return this._editable?(this._root=e,this._size=t,this):e===this._root?this:new T(this._editable,this._edit,this._config,e,t)};var E=n.tryGetHash=function(e,t,n,r){for(var a=r._root,i=0,c=r._config.keyEq;;)switch(a.type){case 1:return c(n,a.key)?a.value:e;case 2:if(t===a.hash)for(var u=a.children,d=0,p=u.length;d<p;++d){var f=u[d];if(c(n,f.key))return f.value}return e;case 3:var h=o(l(i,t));if(a.mask&h){a=a.children[s(a.mask,h)],i+=5;break}return e;case 4:if(a=a.children[l(i,t)]){i+=5;break}return e;default:return e}};T.prototype.tryGetHash=function(e,t,n){return E(e,t,n,this)};var D=n.tryGet=function(e,t,n){return E(e,n._config.hash(t),t,n)};T.prototype.tryGet=function(e,t){return D(e,t,this)};var M=n.getHash=function(e,t,n){return E(void 0,e,t,n)};T.prototype.getHash=function(e,t){return M(e,t,this)},n.get=function(e,t){return E(void 0,t._config.hash(e),e,t)},T.prototype.get=function(e,t){return D(t,e,this)};var _=n.has=function(e,t,n){return E(r,e,t,n)!==r};T.prototype.hasHash=function(e,t){return _(e,t,this)};var A=n.has=function(e,t){return _(t._config.hash(e),e,t)};T.prototype.has=function(e){return A(e,this)};var L=function(e,t){return e===t};n.make=function(e){return new T(0,0,{keyEq:e&&e.keyEq||L,hash:e&&e.hash||i},p,0)},n.empty=n.make();var I=n.isEmpty=function(e){return e&&!!f(e._root)};T.prototype.isEmpty=function(){return I(this)};var P=n.modifyHash=function(e,t,n,r){var a={value:r._size},i=r._root._modify(r._editable?r._edit:NaN,r._config.keyEq,0,e,t,n,a);return r.setTree(i,a.value)};T.prototype.modifyHash=function(e,t,n){return P(n,e,t,this)};var O=n.modify=function(e,t,n){return P(e,n._config.hash(t),t,n)};T.prototype.modify=function(e,t){return O(t,e,this)};var R=n.setHash=function(e,t,n,r){return P(a(n),e,t,r)};T.prototype.setHash=function(e,t,n){return R(e,t,n,this)};var F=n.set=function(e,t,n){return R(n._config.hash(e),e,t,n)};T.prototype.set=function(e,t){return F(e,t,this)};var B=a(r),z=n.removeHash=function(e,t,n){return P(B,e,t,n)};T.prototype.removeHash=T.prototype.deleteHash=function(e,t){return z(e,t,this)};var Z=n.remove=function(e,t){return z(t._config.hash(e),e,t)};T.prototype.remove=T.prototype.delete=function(e){return Z(e,this)};var H=n.beginMutation=function(e){return new T(e._editable+1,e._edit+1,e._config,e._root,e._size)};T.prototype.beginMutation=function(){return H(this)};var U=n.endMutation=function(e){return e._editable=e._editable&&e._editable-1,e};T.prototype.endMutation=function(){return U(this)};var V=n.mutate=function(e,t){var n=H(t);return e(n),U(n)};T.prototype.mutate=function(e){return V(e,this)};var W=function(e){return e&&G(e[0],e[1],e[2],e[3],e[4])},G=function(e,t,n,r,a){for(;n<e;){var i=t[n++];if(i&&!f(i))return Y(i,r,[e,t,n,r,a])}return W(a)},Y=function(e,t,n){switch(e.type){case 1:return{value:t(e),rest:n};case 2:case 4:case 3:var r=e.children;return G(r.length,r,0,t,n);default:return W(n)}},q={done:!0};function K(e){this.v=e}K.prototype.next=function(){if(!this.v)return q;var e=this.v;return this.v=W(e.rest),e},K.prototype[Symbol.iterator]=function(){return this};var $=function(e,t){return new K(Y(e._root,t))},X=function(e){return[e.key,e.value]},J=n.entries=function(e){return $(e,X)};T.prototype.entries=T.prototype[Symbol.iterator]=function(){return J(this)};var Q=function(e){return e.key},ee=n.keys=function(e){return $(e,Q)};T.prototype.keys=function(){return ee(this)};var et=function(e){return e.value},en=n.values=T.prototype.values=function(e){return $(e,et)};T.prototype.values=function(){return en(this)};var er=n.fold=function(e,t,n){var r=n._root;if(1===r.type)return e(t,r.value,r.key);for(var a=[r.children],i=void 0;i=a.pop();)for(var l=0,o=i.length;l<o;){var s=i[l++];s&&s.type&&(1===s.type?t=e(t,s.value,s.key):a.push(s.children))}return t};T.prototype.fold=function(e,t){return er(e,t,this)};var ea=n.forEach=function(e,t){return er(function(n,r,a){return e(r,a,t)},null,t)};T.prototype.forEach=function(e){return ea(e,this)};var ei=n.count=function(e){return e._size};T.prototype.count=function(){return ei(this)},Object.defineProperty(T.prototype,"size",{get:T.prototype.count}),e.exports?e.exports=n:undefined.hamt=n}(a={exports:{}},a.exports),a.exports);class X{constructor(e){h(this,"_map",void 0),this._map=new Map(null==e?void 0:e.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(e){return this._map.get(e)}has(e){return this._map.has(e)}set(e,t){return this._map.set(e,t),this}delete(e){return this._map.delete(e),this}clone(){return Q(this)}toMap(){return new Map(this._map)}}class J{constructor(e){if(h(this,"_hamt",$.empty.beginMutation()),e instanceof J){let t=e._hamt.endMutation();e._hamt=t.beginMutation(),this._hamt=t.beginMutation()}else if(e)for(let[t,n]of e.entries())this._hamt.set(t,n)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(e){return this._hamt.get(e)}has(e){return this._hamt.has(e)}set(e,t){return this._hamt.set(e,t),this}delete(e){return this._hamt.delete(e),this}clone(){return Q(this)}toMap(){return new Map(this._hamt)}}function Q(e){return T("recoil_hamt_2020")?new J(e):new X(e)}var ee=Object.freeze({__proto__:null,persistentMap:{persistentMap:Q}.persistentMap}),et=function(e,...t){let n=new Set;t:for(let r of e){for(let e of t)if(e.has(r))continue t;n.add(r)}return n},en=function(e,t){let n=new Map;return e.forEach((e,r)=>{n.set(r,t(e,r))}),n};function er(e,t,n,r){let{nodeDeps:a,nodeToNodeSubscriptions:i}=n,l=a.get(e);if(!l||!r||l===r.nodeDeps.get(e)){for(let n of(a.set(e,t),null==l?t:et(t,l)))i.has(n)||i.set(n,new Set),f(i.get(n)).add(e);if(l)for(let n of et(l,t)){if(!i.has(n))return;let t=f(i.get(n));t.delete(e),0===t.size&&i.delete(n)}}}var ea={cloneGraph:function(e){return{nodeDeps:en(e.nodeDeps,e=>new Set(e)),nodeToNodeSubscriptions:en(e.nodeToNodeSubscriptions,e=>new Set(e))}},graph:function(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}},saveDepsToStore:function(e,t,n,r){var a,i,l,o,s;let c=n.getState();r===c.currentTree.version||r===(null===(a=c.nextTree)||void 0===a?void 0:a.version)||r===(null===(i=c.previousTree)||void 0===i?void 0:i.version)||E("Tried to save dependencies to a discarded tree");let u=n.getGraph(r);if(er(e,t,u),r===(null===(l=c.previousTree)||void 0===l?void 0:l.version)&&er(e,t,n.getGraph(c.currentTree.version),u),r===(null===(o=c.previousTree)||void 0===o?void 0:o.version)||r===c.currentTree.version){let r=null===(s=c.nextTree)||void 0===s?void 0:s.version;void 0!==r&&er(e,t,n.getGraph(r),u)}}};let ei=0,el=0,eo=0;var es={getNextTreeStateVersion:()=>ei++,getNextStoreID:()=>el++,getNextComponentID:()=>eo++};let{persistentMap:ec}=ee,{graph:eu}=ea,{getNextTreeStateVersion:ed}=es;function ep(){let e=ed();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:ec(),nonvalidatedAtoms:ec()}}var ef={makeEmptyTreeState:ep,makeEmptyStoreState:function(){let e=ep();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,eu()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}},getNextTreeStateVersion:ed};class eh{}var em={RetentionZone:eh,retentionZone:function(){return new eh}},ev={setByAddingToSet:function(e,t){let n=new Set(e);return n.add(t),n},setByDeletingFromSet:function(e,t){let n=new Set(e);return n.delete(t),n},mapBySettingInMap:function(e,t,n){let r=new Map(e);return r.set(t,n),r},mapByUpdatingInMap:function(e,t,n){let r=new Map(e);return r.set(t,n(r.get(t))),r},mapByDeletingFromMap:function(e,t){let n=new Map(e);return n.delete(t),n},mapByDeletingMultipleFromMap:function(e,t){let n=new Map(e);return t.forEach(e=>n.delete(e)),n}},eg=function*(e,t){let n=0;for(let r of e)t(r,n++)&&(yield r)},ex=function(e,t){return new Proxy(e,{get:(e,n)=>(!(n in e)&&n in t&&(e[n]=t[n]()),e[n]),ownKeys:e=>Object.keys(e)})};let{getNode:eb,getNodeMaybe:ey,recoilValuesForKeys:ew}=q,{RetentionZone:ek}=em,{setByAddingToSet:eS}=ev,ej=Object.freeze(new Set);class eC extends Error{}function eN(e,t,n,r){let a=e.getState();if(a.nodeCleanupFunctions.has(n))return;let i=eb(n),l=function(e,t,n){if(!T("recoil_memory_managament_2020"))return()=>void 0;let{nodesRetainedByZone:r}=e.getState().retention;function a(e){let n=r.get(e);n||r.set(e,n=new Set),n.add(t)}if(n instanceof ek)a(n);else if(Array.isArray(n))for(let e of n)a(e);return()=>{if(!T("recoil_memory_managament_2020"))return;let{retention:r}=e.getState();function a(e){let n=r.nodesRetainedByZone.get(e);null==n||n.delete(t),n&&0===n.size&&r.nodesRetainedByZone.delete(e)}if(n instanceof ek)a(n);else if(Array.isArray(n))for(let e of n)a(e)}}(e,n,i.retainedBy),o=i.init(e,t,r);a.nodeCleanupFunctions.set(n,()=>{o(),l()})}function eT(e,t,n){return eb(n).peek(e,t)}function eE(e,t,n){let r=new Set,a=Array.from(n),i=e.getGraph(t.version);for(let e=a.pop();e;e=a.pop()){var l;for(let t of(r.add(e),null!==(l=i.nodeToNodeSubscriptions.get(e))&&void 0!==l?l:ej))r.has(t)||a.push(t)}return r}var eD={getNodeLoadable:function(e,t,n){return eN(e,t,n,"get"),eb(n).get(e,t)},peekNodeLoadable:eT,setNodeValue:function(e,t,n,r){let a=eb(n);if(null==a.set)throw new eC(`Attempt to set read-only RecoilValue: ${n}`);let i=a.set;return eN(e,t,n,"set"),i(e,t,r)},initializeNode:function(e,t,n){eN(e,e.getState().currentTree,t,n)},cleanUpNode:function(e,t){var n;let r=e.getState();null===(n=r.nodeCleanupFunctions.get(t))||void 0===n||n(),r.nodeCleanupFunctions.delete(t)},setUnvalidatedAtomValue_DEPRECATED:function(e,t,n){var r;let a=ey(t);return null==a||null===(r=a.invalidate)||void 0===r||r.call(a,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:eS(e.dirtyAtoms,t)}},peekNodeInfo:function(e,t,n){let r=e.getState(),a=e.getGraph(t.version),i=eb(n).nodeType;return ex({type:i},{loadable:()=>eT(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>"selector"!==i&&t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var e;return ew(null!==(e=a.nodeDeps.get(n))&&void 0!==e?e:[])},subscribers:()=>{var a,i;return{nodes:ew(eg(eE(e,t,new Set([n])),e=>e!==n)),components:B(null!==(a=null===(i=r.nodeToComponentSubscriptions.get(n))||void 0===i?void 0:i.values())&&void 0!==a?a:[],([e])=>({name:e}))}}})},getDownstreamNodes:eE};let eM=null;var e_={setInvalidateMemoizedSnapshot:function(e){eM=e},invalidateMemoizedSnapshot:function(){var e;null===(e=eM)||void 0===e||e()}};let{getDownstreamNodes:eA,getNodeLoadable:eL,setNodeValue:eI}=eD,{getNextComponentID:eP}=es,{getNode:eO,getNodeMaybe:eR}=q,{DefaultValue:eF}=q,{reactMode:eB}=L,{AbstractRecoilValue:ez,RecoilState:eZ,RecoilValueReadOnly:eH,isRecoilValue:eU}=R,{invalidateMemoizedSnapshot:eV}=e_;function eW(e,t,n){"hasValue"===n.state&&n.contents instanceof eF?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function eG(e,t){e.replaceState(n=>{let r=eK(n);for(let n of t)!function(e,t,n){if("set"===n.type){let{recoilValue:r,valueOrUpdater:a}=n,i=function(e,t,{key:n},r){if("function"!=typeof r)return r;{let a=eL(e,t,n);if("loading"===a.state){let e=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw E(e),d(e)}if("hasError"===a.state)throw a.contents;return r(a.contents)}}(e,t,r,a);for(let[n,a]of eI(e,t,r.key,i).entries())eW(t,n,a)}else if("setLoadable"===n.type){let{recoilValue:{key:e},loadable:r}=n;eW(t,e,r)}else if("markModified"===n.type){let{recoilValue:{key:e}}=n;t.dirtyAtoms.add(e)}else if("setUnvalidated"===n.type){var r;let{recoilValue:{key:e},unvalidatedValue:a}=n,i=eR(e);null==i||null===(r=i.invalidate)||void 0===r||r.call(i,t),t.atomValues.delete(e),t.nonvalidatedAtoms.set(e,a),t.dirtyAtoms.add(e)}else E(`Unknown action ${n.type}`)}(e,r,n);return e$(e,r),eV(),r})}function eY(e,t){if(eq.length){let n=eq[eq.length-1],r=n.get(e);r||n.set(e,r=[]),r.push(t)}else eG(e,[t])}let eq=[];function eK(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function e$(e,t){for(let a of eA(e,t,t.dirtyAtoms)){var n,r;null===(n=eR(a))||void 0===n||null===(r=n.invalidate)||void 0===r||r.call(n,t)}}function eX(e,t,n){eY(e,{type:"set",recoilValue:t,valueOrUpdater:n})}var eJ={RecoilValueReadOnly:eH,AbstractRecoilValue:ez,RecoilState:eZ,getRecoilValueAsLoadable:function(e,{key:t},n=e.getState().currentTree){var r,a;let i=e.getState();n.version===i.currentTree.version||n.version===(null===(r=i.nextTree)||void 0===r?void 0:r.version)||n.version===(null===(a=i.previousTree)||void 0===a?void 0:a.version)||E("Tried to read from a discarded tree");let l=eL(e,n,t);return"loading"===l.state&&l.contents.catch(()=>{}),l},setRecoilValue:eX,setRecoilValueLoadable:function(e,t,n){if(n instanceof eF)return eX(e,t,n);eY(e,{type:"setLoadable",recoilValue:t,loadable:n})},markRecoilValueModified:function(e,t){eY(e,{type:"markModified",recoilValue:t})},setUnvalidatedRecoilValue:function(e,t,n){eY(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})},subscribeToRecoilValue:function(e,{key:t},n,r=null){let a=eP(),i=e.getState();i.nodeToComponentSubscriptions.has(t)||i.nodeToComponentSubscriptions.set(t,new Map),f(i.nodeToComponentSubscriptions.get(t)).set(a,[null!=r?r:"<not captured>",n]);let l=eB();if(l.early&&("LEGACY"===l.mode||"MUTABLE_SOURCE"===l.mode)){let r=e.getState().nextTree;r&&r.dirtyAtoms.has(t)&&n(r)}return{release:()=>{let n=e.getState(),r=n.nodeToComponentSubscriptions.get(t);if(void 0===r||!r.has(a)){E(`Subscription missing at release time for atom ${t}. This is a bug in Recoil.`);return}r.delete(a),0===r.size&&n.nodeToComponentSubscriptions.delete(t)}}},isRecoilValue:eU,applyAtomValueWrites:function(e,t){let n=e.clone();return t.forEach((e,t)=>{"hasValue"===e.state&&e.contents instanceof eF?n.delete(t):n.set(t,e)}),n},batchStart:function(){let e=new Map;return eq.push(e),()=>{for(let[t,n]of e)eG(t,n);eq.pop()!==e&&E("Incorrect order of batch popping")}},writeLoadableToTreeState:eW,invalidateDownstreams:e$,copyTreeState:eK,refreshRecoilValue:function(e,t){var n;let{currentTree:r}=e.getState(),a=eO(t.key);null===(n=a.clearCache)||void 0===n||n.call(a,e,r)}},eQ=function(e,t,n){let r=e.entries(),a=r.next();for(;!a.done;){let i=a.value;if(t.call(n,i[1],i[0],e))return!0;a=r.next()}return!1};let{cleanUpNode:e0}=eD,{deleteNodeConfigIfPossible:e1,getNode:e2}=q,{RetentionZone:e3}=em,e6=new Set;function e5(e,t){let n=e.getState(),r=n.currentTree;if(n.nextTree){E("releaseNodesNowOnCurrentTree should only be called at the end of a batch");return}let a=new Set;for(let e of t)if(e instanceof e3)for(let t of function(e,t){var n;return null!==(n=e.retention.nodesRetainedByZone.get(t))&&void 0!==n?n:e6}(n,e))a.add(t);else a.add(e);for(let t of function(e,t){let n=e.getState(),r=n.currentTree,a=e.getGraph(r.version),i=new Set,l=new Set;return function t(o){var s,c;let u=new Set;for(let t of function(e,t,n,r,a){let i=e.getGraph(t.version),l=[],o=new Set;for(;n.size>0;)(function e(t){if(r.has(t)||a.has(t)){n.delete(t);return}if(o.has(t))return;let s=i.nodeToNodeSubscriptions.get(t);if(s)for(let t of s)e(t);o.add(t),n.delete(t),l.push(t)})(f(n.values().next().value));return l}(e,r,o,i,l)){if("recoilRoot"===e2(t).retainedBy||(null!==(s=n.retention.referenceCounts.get(t))&&void 0!==s?s:0)>0||e4(t).some(e=>n.retention.referenceCounts.get(e))){l.add(t);continue}let e=a.nodeToNodeSubscriptions.get(t);if(e&&eQ(e,e=>l.has(e))){l.add(t);continue}i.add(t),u.add(t)}let d=new Set;for(let e of u)for(let t of null!==(c=a.nodeDeps.get(e))&&void 0!==c?c:e6)i.has(t)||d.add(t);d.size&&t(d)}(t),i}(e,a))!function(e,t,n){var r,a;if(!T("recoil_memory_managament_2020"))return;e0(e,n);let i=e.getState();for(let e of(i.knownAtoms.delete(n),i.knownSelectors.delete(n),i.nodeTransactionSubscriptions.delete(n),i.retention.referenceCounts.delete(n),e4(n)))null===(r=i.retention.nodesRetainedByZone.get(e))||void 0===r||r.delete(n);t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);let l=i.graphsByVersion.get(t.version);if(l){let e=l.nodeDeps.get(n);if(void 0!==e)for(let t of(l.nodeDeps.delete(n),e))null===(a=l.nodeToNodeSubscriptions.get(t))||void 0===a||a.delete(n);l.nodeToNodeSubscriptions.delete(n)}e1(n)}(e,r,t)}function e4(e){let t=e2(e).retainedBy;return void 0===t||"components"===t||"recoilRoot"===t?[]:t instanceof e3?[t]:t}function e8(e,t){T("recoil_memory_managament_2020")&&(e.getState().retention.referenceCounts.delete(t),function(e,t){let n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):e5(e,new Set([t]))}(e,t))}var e7={SUSPENSE_TIMEOUT_MS:12e4,updateRetainCount:function(e,t,n){var r;if(!T("recoil_memory_managament_2020"))return;let a=e.getState().retention.referenceCounts,i=(null!==(r=a.get(t))&&void 0!==r?r:0)+n;0===i?e8(e,t):a.set(t,i)},updateRetainCountToZero:e8,releaseScheduledRetainablesNow:function(e){if(!T("recoil_memory_managament_2020"))return;let t=e.getState();e5(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()},retainedByOptionWithDefault:function(e){return void 0===e?"recoilRoot":e}};let{unstable_batchedUpdates:e9}=c,{unstable_batchedUpdates:te}={unstable_batchedUpdates:e9},{batchStart:tt}=eJ,{unstable_batchedUpdates:tn}={unstable_batchedUpdates:te},tr=tn||(e=>e());var ta={getBatcher:()=>tr,setBatcher:e=>{tr=e},batchUpdates:e=>{tr(()=>{let t=()=>void 0;try{t=tt(),e()}finally{t()}})}},ti=function*(e){for(let t of e)for(let e of t)yield e};let tl="undefined"==typeof Window||"undefined"==typeof window;var to={isSSR:tl,isReactNative:"undefined"!=typeof navigator&&"ReactNative"===navigator.product,isWindow:e=>!tl&&(e===window||e instanceof Window)};let{batchUpdates:ts}=ta,{initializeNode:tc,peekNodeInfo:tu}=eD,{graph:td}=ea,{getNextStoreID:tp}=es,{DEFAULT_VALUE:tf,recoilValues:th,recoilValuesForKeys:tm}=q,{AbstractRecoilValue:tv,getRecoilValueAsLoadable:tg,setRecoilValue:tx,setUnvalidatedRecoilValue:tb}=eJ,{updateRetainCount:ty}=e7,{setInvalidateMemoizedSnapshot:tw}=e_,{getNextTreeStateVersion:tk,makeEmptyStoreState:tS}=ef,{isSSR:tj}=to,{memoizeOneWithArgsHashAndInvalidation:tC}={memoizeWithArgsHash:function(e,t){let n;return(...r)=>{n||(n={});let a=t(...r);return Object.hasOwnProperty.call(n,a)||(n[a]=e(...r)),n[a]}},memoizeOneWithArgsHash:function(e,t){let n,r;return(...a)=>{let i=t(...a);return n===i?r:(n=i,r=e(...a))}},memoizeOneWithArgsHashAndInvalidation:function(e,t){let n,r;return[(...a)=>{let i=t(...a);return n===i?r:(n=i,r=e(...a))},()=>{n=null}]}};class tN{constructor(e,t){for(let n of(h(this,"_store",void 0),h(this,"_refCount",1),h(this,"getLoadable",e=>(this.checkRefCount_INTERNAL(),tg(this._store,e))),h(this,"getPromise",e=>(this.checkRefCount_INTERNAL(),this.getLoadable(e).toPromise())),h(this,"getNodes_UNSTABLE",e=>{if(this.checkRefCount_INTERNAL(),(null==e?void 0:e.isModified)===!0)return(null==e?void 0:e.isInitialized)===!1?[]:tm(this._store.getState().currentTree.dirtyAtoms);let t=this._store.getState().knownAtoms,n=this._store.getState().knownSelectors;return(null==e?void 0:e.isInitialized)==null?th.values():!0===e.isInitialized?tm(ti([t,n])):eg(th.values(),({key:e})=>!t.has(e)&&!n.has(e))}),h(this,"getInfo_UNSTABLE",({key:e})=>(this.checkRefCount_INTERNAL(),tu(this._store,this._store.getState().currentTree,e))),h(this,"map",e=>{this.checkRefCount_INTERNAL();let t=new tM(this,ts);return e(t),t}),h(this,"asyncMap",async e=>{this.checkRefCount_INTERNAL();let t=new tM(this,ts);return t.retain(),await e(t),t.autoRelease_INTERNAL(),t}),this._store={storeID:tp(),parentStoreID:t,getState:()=>e,replaceState:t=>{e.currentTree=t(e.currentTree)},getGraph:t=>{let n=e.graphsByVersion;if(n.has(t))return f(n.get(t));let r=td();return n.set(t,r),r},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw d("Cannot subscribe to Snapshots")}},this._store.getState().knownAtoms))tc(this._store,n,"get"),ty(this._store,n,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0&&E("Attempt to retain() Snapshot that was already released."),this._refCount++;let e=!1;return()=>{e||(e=!0,this._release())}}autoRelease_INTERNAL(){tj||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,0===this._refCount){if(this._store.getState().nodeCleanupFunctions.forEach(e=>e()),this._store.getState().nodeCleanupFunctions.clear(),!T("recoil_memory_managament_2020"))return}else this._refCount}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){T("recoil_memory_managament_2020")&&this._refCount}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function tT(e,t,n=!1){let r=e.getState(),a=n?tk():t.version;return{currentTree:{version:n?a:t.version,stateID:n?a:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(a,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(B(r.nodeCleanupFunctions.entries(),([e])=>[e,()=>{}]))}}let[tE,tD]=tC((e,t)=>{var n;let r=e.getState();return new tN(tT(e,"latest"===t?null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree:f(r.previousTree)),e.storeID)},(e,t)=>{var n,r;return String(t)+String(e.storeID)+String(null===(n=e.getState().nextTree)||void 0===n?void 0:n.version)+String(e.getState().currentTree.version)+String(null===(r=e.getState().previousTree)||void 0===r?void 0:r.version)});tw(tD);class tM extends tN{constructor(e,t){super(tT(e.getStore_INTERNAL(),e.getStore_INTERNAL().getState().currentTree,!0),e.getStoreID()),h(this,"_batch",void 0),h(this,"set",(e,t)=>{this.checkRefCount_INTERNAL();let n=this.getStore_INTERNAL();this._batch(()=>{ty(n,e.key,1),tx(this.getStore_INTERNAL(),e,t)})}),h(this,"reset",e=>{this.checkRefCount_INTERNAL();let t=this.getStore_INTERNAL();this._batch(()=>{ty(t,e.key,1),tx(this.getStore_INTERNAL(),e,tf)})}),h(this,"setUnvalidatedAtomValues_DEPRECATED",e=>{this.checkRefCount_INTERNAL();let t=this.getStore_INTERNAL();ts(()=>{for(let[n,r]of e.entries())ty(t,n,1),tb(t,new tv(n),r)})}),this._batch=t}}var t_=Object.freeze({__proto__:null,Snapshot:tN,MutableSnapshot:tM,freshSnapshot:function(e){let t=new tN(tS());return null!=e?t.map(e):t},cloneSnapshot:function(e,t="latest"){let n=tE(e,t);return n.isRetained()?n:(tD(),tE(e,t))}}),tA=function(...e){let t=new Set;for(let n of e)for(let e of n)t.add(e);return t};let{useRef:tL}=s;var tI=function(e){let t=tL(e);return t.current===e&&"function"==typeof e&&(t.current=e()),t};let{getNextTreeStateVersion:tP,makeEmptyStoreState:tO}=ef,{cleanUpNode:tR,getDownstreamNodes:tF,initializeNode:tB,setNodeValue:tz,setUnvalidatedAtomValue_DEPRECATED:tZ}=eD,{graph:tH}=ea,{cloneGraph:tU}=ea,{getNextStoreID:tV}=es,{createMutableSource:tW,reactMode:tG}=L,{applyAtomValueWrites:tY}=eJ,{releaseScheduledRetainablesNow:tq}=e7,{freshSnapshot:tK}=t_,{useCallback:t$,useContext:tX,useEffect:tJ,useMemo:tQ,useRef:t0,useState:t1}=s;function t2(){throw d("This component must be used inside a <RecoilRoot> component.")}let t3=Object.freeze({storeID:tV(),getState:t2,replaceState:t2,getGraph:t2,subscribeToTransactions:t2,addTransactionMetadata:t2}),t6=!1;function t5(e){if(t6)throw d("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");let t=e.getState();if(null===t.nextTree){T("recoil_memory_managament_2020")&&T("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&tq(e);let n=t.currentTree.version,r=tP();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,tU(f(t.graphsByVersion.get(n))))}}let t4=s.createContext({current:t3}),t8=()=>tX(t4),t7=s.createContext(null);function t9(e,t,n){for(let r of tF(e,n,n.dirtyAtoms)){let e=t.nodeToComponentSubscriptions.get(r);if(e)for(let[t,[r,a]]of e)a(n)}}function ne(e){let t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(let[n,a]of t.nodeTransactionSubscriptions)if(r.has(n))for(let[t,n]of a)n(e);for(let[n,r]of t.transactionSubscriptions)r(e);(!tG().early||t.suspendedComponentResolvers.size>0)&&(t9(e,t,n),t.suspendedComponentResolvers.forEach(e=>e()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(e=>e(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function nt({setNotifyBatcherOfChange:e}){let t=t8(),[,n]=t1([]);return e(()=>n({})),tJ(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),tJ(()=>{K("Batcher",()=>{!function(e){let t=e.getState();t.commitDepth++;try{let{nextTree:n}=t;if(null==n)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,ne(e),null!=t.previousTree?t.graphsByVersion.delete(t.previousTree.version):E("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,T("recoil_memory_managament_2020")&&null==n&&tq(e)}finally{t.commitDepth--}}(t.current)})}),null}let nn=0;function nr({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let a;let i=e=>{let t=a.current.graphsByVersion;if(t.has(e))return f(t.get(e));let n=tH();return t.set(e,n),n},l=(e,t)=>{if(null==t){let{transactionSubscriptions:t}=p.current.getState(),n=nn++;return t.set(n,e),{release:()=>{t.delete(n)}}}{let{nodeTransactionSubscriptions:n}=p.current.getState();n.has(t)||n.set(t,new Map);let r=nn++;return f(n.get(t)).set(r,e),{release:()=>{let e=n.get(t);e&&(e.delete(r),0===e.size&&n.delete(t))}}}},o=e=>{for(let t of(t5(p.current),Object.keys(e)))f(p.current.getState().nextTree).transactionMetadata[t]=e[t]},c=e=>{let t;t5(p.current);let n=f(a.current.nextTree);try{t6=!0,t=e(n)}finally{t6=!1}t!==n&&(a.current.nextTree=t,tG().early&&t9(p.current,a.current,t),f(u.current)())},u=t0(null),d=t$(e=>{u.current=e},[u]),p=tI(()=>null!=n?n:{storeID:tV(),getState:()=>a.current,replaceState:c,getGraph:i,subscribeToTransactions:l,addTransactionMetadata:o});null!=n&&(p.current=n);let h=tQ(()=>null==tW?void 0:tW(a,()=>a.current.currentTree.version),[a=tI(()=>null!=e?function(e,t){let n=tO();return t({set:(t,r)=>{let a=n.currentTree,i=tz(e,a,t.key,r),l=new Set(i.keys()),o=a.nonvalidatedAtoms.clone();for(let e of l)o.delete(e);n.currentTree={...a,dirtyAtoms:tA(a.dirtyAtoms,l),atomValues:tY(a.atomValues,i),nonvalidatedAtoms:o}},setUnvalidatedAtomValues:e=>{e.forEach((e,t)=>{n.currentTree=tZ(n.currentTree,t,e)})}}),n}(p.current,e):null!=t?function(e){let t=tK(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(e=>e()),n.nodeCleanupFunctions.clear(),n}(t):tO())]);return tJ(()=>{let e=p.current;for(let t of new Set(e.getState().knownAtoms))tB(e,t,"get");return()=>{for(let t of e.getState().knownAtoms)tR(e,t)}},[p]),s.createElement(t4.Provider,{value:p},s.createElement(t7.Provider,{value:h},s.createElement(nt,{setNotifyBatcherOfChange:d}),r))}var na={RecoilRoot:function(e){let{override:t,...n}=e,r=t8();return!1===t&&r.current!==t3?e.children:s.createElement(nr,n)},useStoreRef:t8,useRecoilMutableSource:function(){let e=tX(t7);return null==e&&F("Attempted to use a Recoil hook outside of a <RecoilRoot>. <RecoilRoot> must be an ancestor of any component that uses Recoil hooks."),e},useRecoilStoreID:function(){return t8().current.storeID},notifyComponents_FOR_TESTING:t9,sendEndOfBatchNotifications_FOR_TESTING:ne},ni=function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0};let{useEffect:nl,useRef:no}=s;var ns=function(e){let t=no();return nl(()=>{t.current=e}),t.current};let{useStoreRef:nc}=na,{SUSPENSE_TIMEOUT_MS:nu}=e7,{updateRetainCount:nd}=e7,{RetentionZone:np}=em,{useEffect:nf,useRef:nh}=s,{isSSR:nm}=to;var nv=function(e){if(T("recoil_memory_managament_2020"))return function(e){let t=(Array.isArray(e)?e:[e]).map(e=>e instanceof np?e:e.key),n=nc();nf(()=>{if(!T("recoil_memory_managament_2020"))return;let e=n.current;if(r.current&&!nm)window.clearTimeout(r.current),r.current=null;else for(let n of t)nd(e,n,1);return()=>{for(let n of t)nd(e,n,-1)}},[n,...t]);let r=nh(),a=ns(t);if(!nm&&(void 0===a||!ni(a,t))){let e=n.current;for(let n of t)nd(e,n,1);if(a)for(let t of a)nd(e,t,-1);r.current&&window.clearTimeout(r.current),r.current=window.setTimeout(()=>{for(let n of(r.current=null,t))nd(e,n,-1)},nu)}}(e)},ng=function(){return"<component name not available>"};let{batchUpdates:nx}=ta,{DEFAULT_VALUE:nb}=q,{currentRendererSupportsUseSyncExternalStore:ny,reactMode:nw,useMutableSource:nk,useSyncExternalStore:nS}=L,{useRecoilMutableSource:nj,useStoreRef:nC}=na,{isRecoilValue:nN}=R,{AbstractRecoilValue:nT,getRecoilValueAsLoadable:nE,setRecoilValue:nD,setUnvalidatedRecoilValue:nM,subscribeToRecoilValue:n_}=eJ,{useCallback:nA,useEffect:nL,useMemo:nI,useRef:nP,useState:nO}=s,{setByAddingToSet:nR}=ev,{isSSR:nF}=to;function nB(e,t,n){if("hasValue"===e.state)return e.contents;if("loading"===e.state)throw new Promise(t=>{let r=n.current.getState().suspendedComponentResolvers;r.add(t),nF&&p(e.contents)&&e.contents.finally(()=>{r.delete(t)})});if("hasError"===e.state)throw e.contents;throw d(`Invalid value of loadable atom "${t.key}"`)}function nz(e){let t=nC(),n=ng(),r=nA(()=>{var n;let r=t.current,a=r.getState();return{loadable:nE(r,e,nw().early&&null!==(n=a.nextTree)&&void 0!==n?n:a.currentTree),key:e.key}},[t,e]),a=nA(e=>{let t;return()=>{var n,r;let a=e();return null!==(n=t)&&void 0!==n&&n.loadable.is(a.loadable)&&(null===(r=t)||void 0===r?void 0:r.key)===a.key?t:(t=a,a)}},[]),i=nI(()=>a(r),[r,a]);return nS(nA(r=>n_(t.current,e,r,n).release,[t,e,n]),i,i).loadable}function nZ(e){let t=nC(),n=nA(()=>{var n;let r=t.current,a=r.getState();return nE(r,e,nw().early&&null!==(n=a.nextTree)&&void 0!==n?n:a.currentTree)},[t,e]),r=nA(()=>n(),[n]),a=ng(),i=nA((r,i)=>n_(t.current,e,()=>{if(!T("recoil_suppress_rerender_in_callback"))return i();let e=n();s.current.is(e)||i(),s.current=e},a).release,[t,e,a,n]),l=nj();if(null==l)throw d("Recoil hooks must be used in components contained within a <RecoilRoot> component.");let o=nk(l,r,i),s=nP(o);return nL(()=>{s.current=o}),o}function nH(e){let t=nC(),n=ng(),r=nA(()=>{var n;let r=t.current,a=r.getState();return nE(r,e,nw().early&&null!==(n=a.nextTree)&&void 0!==n?n:a.currentTree)},[t,e]),a=nA(()=>({loadable:r(),key:e.key}),[r,e.key]),i=nA(e=>{let t=a();return e.loadable.is(t.loadable)&&e.key===t.key?e:t},[a]);nL(()=>{let r=n_(t.current,e,e=>{o(i)},n);return o(i),r.release},[n,e,t,i]);let[l,o]=nO(a);return l.key!==e.key?a().loadable:l.loadable}function nU(e){let t=nC(),[,n]=nO([]),r=ng(),a=nA(()=>{var n;let r=t.current,a=r.getState();return nE(r,e,nw().early&&null!==(n=a.nextTree)&&void 0!==n?n:a.currentTree)},[t,e]),i=a(),l=nP(i);return nL(()=>{l.current=i}),nL(()=>{let i=t.current,o=i.getState(),s=n_(i,e,e=>{var t;if(!T("recoil_suppress_rerender_in_callback"))return n([]);let r=a();null!==(t=l.current)&&void 0!==t&&t.is(r)||n(r),l.current=r},r);if(o.nextTree)i.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{l.current=null,n([])});else{var c;if(!T("recoil_suppress_rerender_in_callback"))return n([]);let e=a();null!==(c=l.current)&&void 0!==c&&c.is(e)||n(e),l.current=e}return s.release},[r,a,e,t]),i}function nV(e){return T("recoil_memory_managament_2020")&&nv(e),({TRANSITION_SUPPORT:nH,SYNC_EXTERNAL_STORE:ny()?nz:nH,MUTABLE_SOURCE:nZ,LEGACY:nU})[nw().mode](e)}function nW(e){let t=nC();return nB(nV(e),e,t)}function nG(e){let t=nC();return nA(n=>{nD(t.current,e,n)},[t,e])}function nY(e){return T("recoil_memory_managament_2020")&&nv(e),nH(e)}function nq(e){let t=nC();return nB(nY(e),e,t)}var nK=function(e,t){let n=new Map;for(let[r,a]of e)t(a,r)&&n.set(r,a);return n},n$=function(e,t){let n=new Set;for(let r of e)t(r)&&n.add(r);return n},nX=function(...e){let t=new Map;for(let n=0;n<e.length;n++){let r;let a=e[n].keys();for(;!(r=a.next()).done;)t.set(r.value,e[n].get(r.value))}return t};let{batchUpdates:nJ}=ta,{DEFAULT_VALUE:nQ,getNode:n0,nodes:n1}=q,{useStoreRef:n2}=na,{AbstractRecoilValue:n3,setRecoilValueLoadable:n6}=eJ,{SUSPENSE_TIMEOUT_MS:n5}=e7,{cloneSnapshot:n4}=t_,{useCallback:n8,useEffect:n7,useRef:n9,useState:re}=s,{isSSR:rt}=to;function rn(e){let t=n2();n7(()=>t.current.subscribeToTransactions(e).release,[e,t])}function rr(e){let t=en(nK(e.atomValues.toMap(),(e,t)=>{let n=n0(t).persistence_UNSTABLE;return null!=n&&"none"!==n.type&&"hasValue"===e.state}),e=>e.contents);return nX(e.nonvalidatedAtoms.toMap(),t)}function ra(e,t){var n;let r=e.getState(),a=null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree,i=t.getStore_INTERNAL().getState().currentTree;nJ(()=>{let n=new Set;for(let e of[a.atomValues.keys(),i.atomValues.keys()])for(let t of e){var r,l;(null===(r=a.atomValues.get(t))||void 0===r?void 0:r.contents)!==(null===(l=i.atomValues.get(t))||void 0===l?void 0:l.contents)&&n0(t).shouldRestoreFromSnapshots&&n.add(t)}n.forEach(t=>{n6(e,new n3(t),i.atomValues.has(t)?f(i.atomValues.get(t)):nQ)}),e.replaceState(e=>({...e,stateID:t.getID()}))})}var ri={useRecoilSnapshot:function(){let e=n2(),[t,n]=re(()=>n4(e.current)),r=ns(t),a=n9(),i=n9();if(rn(n8(e=>n(n4(e)),[])),n7(()=>{let e=t.retain();if(a.current&&!rt){var n;window.clearTimeout(a.current),a.current=null,null===(n=i.current)||void 0===n||n.call(i),i.current=null}return()=>{window.setTimeout(e,10)}},[t]),r!==t&&!rt){if(a.current){var l;window.clearTimeout(a.current),a.current=null,null===(l=i.current)||void 0===l||l.call(i),i.current=null}i.current=t.retain(),a.current=window.setTimeout(()=>{var e;a.current=null,null===(e=i.current)||void 0===e||e.call(i),i.current=null},n5)}return t},gotoSnapshot:ra,useGotoRecoilSnapshot:function(){let e=n2();return n8(t=>ra(e.current,t),[e])},useRecoilTransactionObserver:function(e){rn(n8(t=>{e({snapshot:n4(t,"latest"),previousSnapshot:n4(t,"previous")})},[e]))},useTransactionObservation_DEPRECATED:function(e){rn(n8(t=>{let n=t.getState().previousTree,r=t.getState().currentTree;n||(E("Transaction subscribers notified without a previous tree being present -- this is a bug in Recoil"),n=t.getState().currentTree);let a=rr(r),i=rr(n),l=en(n1,e=>{var t,n,r,a;return{persistence_UNSTABLE:{type:null!==(t=null===(n=e.persistence_UNSTABLE)||void 0===n?void 0:n.type)&&void 0!==t?t:"none",backButton:null!==(r=null===(a=e.persistence_UNSTABLE)||void 0===a?void 0:a.backButton)&&void 0!==r&&r}}}),o=n$(r.dirtyAtoms,e=>a.has(e)||i.has(e));e({atomValues:a,previousAtomValues:i,atomInfo:l,modifiedAtoms:o,transactionMetadata:{...r.transactionMetadata}})},[e]))},useTransactionSubscription_DEPRECATED:rn};let{peekNodeInfo:rl}=eD,{useStoreRef:ro}=na,{reactMode:rs}=L,{RecoilRoot:rc,useStoreRef:ru}=na,{useMemo:rd}=s,{loadableWithValue:rp}=C,{initializeNode:rf}=eD,{DEFAULT_VALUE:rh,getNode:rm}=q,{copyTreeState:rv,getRecoilValueAsLoadable:rg,invalidateDownstreams:rx,writeLoadableToTreeState:rb}=eJ;function ry(e){return"atom"===rm(e.key).nodeType}class rw{constructor(e,t){h(this,"_store",void 0),h(this,"_treeState",void 0),h(this,"_changes",void 0),h(this,"get",e=>{if(this._changes.has(e.key))return this._changes.get(e.key);if(!ry(e))throw d("Reading selectors within atomicUpdate is not supported");let t=rg(this._store,e,this._treeState);if("hasValue"===t.state)return t.contents;if("hasError"===t.state)throw t.contents;throw d(`Expected Recoil atom ${e.key} to have a value, but it is in a loading state.`)}),h(this,"set",(e,t)=>{if(!ry(e))throw d("Setting selectors within atomicUpdate is not supported");if("function"==typeof t){let n=this.get(e);this._changes.set(e.key,t(n))}else rf(this._store,e.key,"set"),this._changes.set(e.key,t)}),h(this,"reset",e=>{this.set(e,rh)}),this._store=e,this._treeState=t,this._changes=new Map}newTreeState_INTERNAL(){if(0===this._changes.size)return this._treeState;let e=rv(this._treeState);for(let[t,n]of this._changes)rb(e,t,rp(n));return rx(this._store,e),e}}var rk=Object.freeze({__proto__:null,atomicUpdater:function(e){return t=>{e.replaceState(n=>{let r=new rw(e,n);return t(r),r.newTreeState_INTERNAL()})}}}),rS=function(e,t){if(!e)throw Error(t)};let{atomicUpdater:rj}=rk,{batchUpdates:rC}=ta,{DEFAULT_VALUE:rN}=q,{useStoreRef:rT}=na,{refreshRecoilValue:rE,setRecoilValue:rD}=eJ,{cloneSnapshot:rM}=t_,{gotoSnapshot:r_}=ri,{useCallback:rA}=s;class rL{}let rI=new rL;function rP(e,t,n,r){let a,i=rI;if(rC(()=>{let l="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create.  Please see the docs at recoiljs.org for details.";if("function"!=typeof t)throw d(l);let o=t(ex({...null!=r?r:{},set:(t,n)=>rD(e,t,n),reset:t=>rD(e,t,rN),refresh:t=>rE(e,t),gotoSnapshot:t=>r_(e,t),transact_UNSTABLE:t=>rj(e)(t)},{snapshot:()=>{let t=rM(e);return a=t.retain(),t}}));if("function"!=typeof o)throw d(l);i=o(...n)}),i instanceof rL&&rS(!1),p(i))i=i.finally(()=>{var e;null===(e=a)||void 0===e||e()});else{var l;null===(l=a)||void 0===l||l()}return i}var rO={recoilCallback:rP,useRecoilCallback:function(e,t){let n=rT();return rA((...t)=>rP(n.current,e,t),null!=t?[...t,n]:void 0)}};let{useStoreRef:rR}=na,{refreshRecoilValue:rF}=eJ,{useCallback:rB}=s,{atomicUpdater:rz}=rk,{useStoreRef:rZ}=na,{useMemo:rH}=s;class rU{constructor(e){h(this,"value",void 0),this.value=e}}var rV=Object.freeze({__proto__:null,WrappedValue:{WrappedValue:rU}.WrappedValue});let{isFastRefreshEnabled:rW}=L;class rG extends Error{}class rY{constructor(e){var t,n,r;h(this,"_name",void 0),h(this,"_numLeafs",void 0),h(this,"_root",void 0),h(this,"_onHit",void 0),h(this,"_onSet",void 0),h(this,"_mapNodeValue",void 0),this._name=null==e?void 0:e.name,this._numLeafs=0,this._root=null,this._onHit=null!==(t=null==e?void 0:e.onHit)&&void 0!==t?t:()=>{},this._onSet=null!==(n=null==e?void 0:e.onSet)&&void 0!==n?n:()=>{},this._mapNodeValue=null!==(r=null==e?void 0:e.mapNodeValue)&&void 0!==r?r:e=>e}size(){return this._numLeafs}root(){return this._root}get(e,t){var n;return null===(n=this.getLeafNode(e,t))||void 0===n?void 0:n.value}getLeafNode(e,t){if(null==this._root)return;let n=this._root;for(;n;){if(null==t||t.onNodeVisit(n),"leaf"===n.type)return this._onHit(n),n;let r=this._mapNodeValue(e(n.nodeKey));n=n.branches.get(r)}}set(e,t,n){let r=()=>{var r,a,i,l,o,s,c;let u,d;for(let[t,r]of e){let e=this._root;if((null==e?void 0:e.type)==="leaf")throw this.invalidCacheError();let a=u;if("branch"!==(u=null!==(o=u=a?a.branches.get(d):e)&&void 0!==o?o:{type:"branch",nodeKey:t,parent:a,branches:new Map,branchKey:d}).type||u.nodeKey!==t)throw this.invalidCacheError();null==a||a.branches.set(d,u),null==n||null===(s=n.onNodeVisit)||void 0===s||s.call(n,u),d=this._mapNodeValue(r),this._root=null!==(c=this._root)&&void 0!==c?c:u}let p=u?null===(r=u)||void 0===r?void 0:r.branches.get(d):this._root;if(null!=p&&("leaf"!==p.type||p.branchKey!==d))throw this.invalidCacheError();let f={type:"leaf",value:t,parent:u,branchKey:d};null===(a=u)||void 0===a||a.branches.set(d,f),this._root=null!==(i=this._root)&&void 0!==i?i:f,this._numLeafs++,this._onSet(f),null==n||null===(l=n.onNodeVisit)||void 0===l||l.call(n,f)};try{r()}catch(e){if(e instanceof rG)this.clear(),r();else throw e}}delete(e){let t=this.root();if(!t)return!1;if(e===t)return this._root=null,this._numLeafs=0,!0;let n=e.parent,r=e.branchKey;for(;n;){var a;if(n.branches.delete(r),n===t)return 0===n.branches.size?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(n.branches.size>0)break;r=null===(a=n)||void 0===a?void 0:a.branchKey,n=n.parent}for(;n!==t;n=n.parent)if(null==n)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){throw E((rW()?"Possible Fast Refresh module reload detected.  This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values.  This happens when selectors do not return consistent values for the same input dependency values.  That may also be caused when using Fast Refresh to change a selector implementation.  Resetting cache.")+(null!=this._name?` - ${this._name}`:"")),new rG}}var rq=Object.freeze({__proto__:null,TreeCache:{TreeCache:rY}.TreeCache});class rK{constructor(e){var t;h(this,"_maxSize",void 0),h(this,"_size",void 0),h(this,"_head",void 0),h(this,"_tail",void 0),h(this,"_map",void 0),h(this,"_keyMapper",void 0),this._maxSize=e.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=null!==(t=e.mapKey)&&void 0!==t?t:e=>e}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(e){return this._map.has(this._keyMapper(e))}get(e){let t=this._keyMapper(e),n=this._map.get(t);if(n)return this.set(e,n.value),n.value}set(e,t){let n=this._keyMapper(e);this._map.get(n)&&this.delete(e);let r=this.head(),a={key:e,right:r,left:null,value:t};r?r.left=a:this._tail=a,this._map.set(n,a),this._head=a,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){let e=this.tail();e&&this.delete(e.key)}delete(e){let t=this._keyMapper(e);if(!this._size||!this._map.has(t))return;let n=f(this._map.get(t)),r=n.right,a=n.left;r&&(r.left=n.left),a&&(a.right=n.right),n===this.head()&&(this._head=r),n===this.tail()&&(this._tail=a),this._map.delete(t),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var r$=Object.freeze({__proto__:null,LRUCache:{LRUCache:rK}.LRUCache});let{LRUCache:rX}=r$,{TreeCache:rJ}=rq;var rQ=function({name:e,maxSize:t,mapNodeValue:n=e=>e}){let r=new rX({maxSize:t}),a=new rJ({name:e,mapNodeValue:n,onHit:e=>{r.set(e,!0)},onSet:e=>{let n=r.tail();r.set(e,!0),n&&a.size()>t&&a.delete(n.key)}});return a},r0=function(e,t={allowFunctions:!1}){return function e(t,n,r){if("string"==typeof t&&!t.includes('"')&&!t.includes("\\"))return`"${t}"`;switch(typeof t){case"undefined":return"";case"boolean":return t?"true":"false";case"number":case"symbol":return String(t);case"string":return JSON.stringify(t);case"function":if((null==n?void 0:n.allowFunctions)!==!0)throw d("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${t.name})__`}if(null===t)return"null";if("object"!=typeof t){var a;return null!==(a=JSON.stringify(t))&&void 0!==a?a:""}if(p(t))return"__PROMISE__";if(Array.isArray(t))return`[${t.map((t,r)=>e(t,n,r.toString()))}]`;if("function"==typeof t.toJSON)return e(t.toJSON(r),n,r);if(t instanceof Map){let a={};for(let[r,i]of t)a["string"==typeof r?r:e(r,n)]=i;return e(a,n,r)}return t instanceof Set?e(Array.from(t).sort((t,r)=>e(t,n).localeCompare(e(r,n))),n,r):void 0!==Symbol&&null!=t[Symbol.iterator]&&"function"==typeof t[Symbol.iterator]?e(Array.from(t),n,r):`{${Object.keys(t).filter(e=>void 0!==t[e]).sort().map(r=>`${e(r,n)}:${e(t[r],n,r)}`).join(",")}}`}(e,t)};let{TreeCache:r1}=rq,r2={equality:"reference",eviction:"keep-all",maxSize:1/0},{isReactNative:r3,isWindow:r6}=to,{isLoadable:r5,loadableWithError:r4,loadableWithPromise:r8,loadableWithValue:r7}=C,{WrappedValue:r9}=rV,{getNodeLoadable:ae,peekNodeLoadable:at,setNodeValue:an}=eD,{saveDepsToStore:ar}=ea,{DEFAULT_VALUE:aa,getConfigDeletionHandler:ai,getNode:al,registerNode:ao}=q,{isRecoilValue:as}=R,{markRecoilValueModified:ac}=eJ,{retainedByOptionWithDefault:au}=e7,{recoilCallback:ad}=rO,{startPerfBlock:ap}={startPerfBlock:function(e){return()=>null}};class af{}let ah=new af,am=[],av=new Map,ag=(r=0,()=>r++);function ax(e){let t=null,{key:n,get:r,cachePolicy_UNSTABLE:a}=e,i=null!=e.set?e.set:void 0,l=new Set,o=function({equality:e=r2.equality,eviction:t=r2.eviction,maxSize:n=r2.maxSize}=r2,r){return function(e,t,n,r){switch(e){case"keep-all":return new r1({name:r,mapNodeValue:n});case"lru":return rQ({name:r,maxSize:f(t),mapNodeValue:n});case"most-recent":return rQ({name:r,maxSize:1,mapNodeValue:n})}throw d(`Unrecognized eviction policy ${e}`)}(t,n,function(e){switch(e){case"reference":return e=>e;case"value":return e=>r0(e)}throw d(`Unrecognized equality policy ${e}`)}(e),r)}(null!=a?a:{equality:"reference",eviction:"keep-all"},n),s=au(e.retainedBy_UNSTABLE),c=new Map,u=0;function h(){return!T("recoil_memory_managament_2020")||u>0}function m(e){return e.getState().knownSelectors.add(n),u++,()=>{u--}}function v(){return void 0!==ai(n)&&!h()}function g(e,t){D(e,t)&&N(e),x(t,!0)}function x(e,n){let r=av.get(e);if(null!=r){for(let e of r)ac(e,f(t));n&&av.delete(e)}}function b(e,t){let n=av.get(t);null==n&&av.set(t,n=new Set),n.add(e)}function y(e,t,n,r,a,i){return t.then(r=>{if(!h())throw N(e),ah;null!=i.loadingDepKey&&i.loadingDepPromise===t?n.atomValues.set(i.loadingDepKey,r7(r)):e.getState().knownSelectors.forEach(e=>{n.atomValues.delete(e)});let l=S(e,n);if(l&&"loading"!==l.state){if((D(e,a)||null==C(e))&&g(e,a),"hasValue"===l.state)return l.contents;throw l.contents}if(!D(e,a)){let t=j(e,n);if(null!=t)return t.loadingLoadable.contents}let[o,s]=k(e,n,a);if("loading"!==o.state&&(M(n,o,s),g(e,a)),"hasError"===o.state)throw o.contents;return o.contents}).catch(t=>{if(t instanceof af)throw ah;if(!h())throw N(e),ah;throw M(n,r4(t),r),g(e,a),t})}function w(e,t,r,a){var i,o,s,c,u,d,p;for(let f of((D(e,a)||t.version===(null===(i=e.getState())||void 0===i?void 0:null===(o=i.currentTree)||void 0===o?void 0:o.version)||t.version===(null===(s=e.getState())||void 0===s?void 0:null===(c=s.nextTree)||void 0===c?void 0:c.version))&&ar(n,r,e,null!==(u=null===(d=e.getState())||void 0===d?void 0:null===(p=d.nextTree)||void 0===p?void 0:p.version)&&void 0!==u?u:e.getState().currentTree.version),r))l.add(f)}function k(e,a,i){let l,o;let s=ap(n),c=!0,u=!0,m=()=>{s(),u=!1},v=!1,b={loadingDepKey:null,loadingDepPromise:null},k=new Map;function S({key:t}){let n=ae(e,a,t);switch(k.set(t,n),!c&&(w(e,a,new Set(k.keys()),i),D(e,i)&&(f(C(e)).stateVersions.clear(),x(i,!1))),n.state){case"hasValue":return n.contents;case"hasError":throw n.contents;case"loading":throw b.loadingDepKey=t,b.loadingDepPromise=n.contents,n.contents}throw d("Invalid Loadable state")}try{(l=r({get:S,getCallback:n=>(...r)=>{if(u)throw d("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated.  It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return null!=t||rS(!1),ad(e,n,r,{node:t})}}),l=as(l)?S(l):l,r5(l)&&("hasError"===l.state&&(v=!0),l=l.contents),p(l))?l=l.then(t=>{if(!h())throw N(e),ah;let n=r7(t);return M(a,n,k),g(e,i),t}).catch(t=>{if(!h())throw N(e),ah;if(p(t))return y(e,t,a,k,i,b);let n=r4(t);throw M(a,n,k),g(e,i),t}).finally(m):m(),l=l instanceof r9?l.value:l}catch(t){p(l=t)?l=y(e,l,a,k,i,b).finally(m):(v=!0,m())}return o=v?r4(l):p(l)?r8(l):r7(l),c=!1,function(e,t,n){if(D(e,t)){let t=C(e);null!=t&&(t.depValuesDiscoveredSoFarDuringAsyncWork=n)}}(e,i,k),w(e,a,new Set(k.keys()),i),[o,k]}function S(e,t){let r=t.atomValues.get(n);if(null!=r)return r;let a=new Set;try{r=o.get(n=>("string"!=typeof n&&rS(!1),ae(e,t,n).contents),{onNodeVisit:e=>{"branch"===e.type&&e.nodeKey!==n&&a.add(e.nodeKey)}})}catch(e){throw d(`Problem with cache lookup for selector "${n}": ${e.message}`)}if(r){var i;t.atomValues.set(n,r),w(e,t,a,null===(i=C(e))||void 0===i?void 0:i.executionID)}return r}function j(e,t){for(let n of ti([c.has(e)?[f(c.get(e))]:[],B(eg(c,([t])=>t!==e),([,e])=>e)])){if(n.stateVersions.get(t.version)||!function(n){for(let[r,a]of n)if(!ae(e,t,r).is(a))return!0;return!1}(n.depValuesDiscoveredSoFarDuringAsyncWork))return n.stateVersions.set(t.version,!0),n;n.stateVersions.set(t.version,!1)}}function C(e){return c.get(e)}function N(e){c.delete(e)}function D(e,t){var n;return t===(null===(n=C(e))||void 0===n?void 0:n.executionID)}function M(e,t,r){e.atomValues.set(n,t);try{o.set(Array.from(r.entries()).map(([e,t])=>[e,t.contents]),t)}catch(e){throw d(`Problem with setting cache for selector "${n}": ${e.message}`)}}function _(e,t){let r=t.atomValues.get(n);return null!=r?r:o.get(n=>{var r;return"string"!=typeof n&&rS(!1),null===(r=at(e,t,n))||void 0===r?void 0:r.contents})}function A(e,t){return function(e){if(am.includes(n))return r4(d(`Recoil selector has circular dependencies: ${am.slice(am.indexOf(n)).join(" → ")}`));am.push(n);try{return e()}finally{am.pop()}}(()=>(function(e,t){var n;let r=S(e,t);if(null!=r)return N(e),r;let a=j(e,t);if(null!=a)return(null===(n=a.loadingLoadable)||void 0===n?void 0:n.state)==="loading"&&b(e,a.executionID),a.loadingLoadable;let i=ag(),[l,o]=k(e,t,i);return"loading"===l.state?(c.set(e,{depValuesDiscoveredSoFarDuringAsyncWork:o,executionID:i,loadingLoadable:l,stateVersions:new Map([[t.version,!0]])}),b(e,i)):(N(e),M(t,l,o)),l})(e,t))}function L(e){e.atomValues.delete(n)}function I(e,n){for(let a of(null!=t||rS(!1),l)){var r;let t=al(a);null===(r=t.clearCache)||void 0===r||r.call(t,e,n)}l.clear(),L(n),o.clear(),ac(e,t)}return t=null!=i?ao({key:n,nodeType:"selector",peek:_,get:A,set:(e,t,r)=>{let a=!1,l=new Map;function o({key:r}){if(a)throw d("Recoil: Async selector sets are not currently supported.");let i=ae(e,t,r);if("hasValue"===i.state)return i.contents;if("loading"===i.state){let e=`Getting value of asynchronous atom or selector "${r}" in a pending state while setting selector "${n}" is not yet supported.`;throw E(e),d(e)}throw i.contents}function s(n,r){if(a){let e="Recoil: Async selector sets are not currently supported.";throw E(e),d(e)}let i="function"==typeof r?r(o(n)):r;an(e,t,n.key,i).forEach((e,t)=>l.set(t,e))}let c=i({set:s,get:o,reset:function(e){s(e,aa)}},r);if(void 0!==c)throw p(c)?d("Recoil: Async selector sets are not currently supported."):d("Recoil: selector set should be a void function.");return a=!0,l},init:m,invalidate:L,clearCache:I,shouldDeleteConfigOnRelease:v,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:s}):ao({key:n,nodeType:"selector",peek:_,get:A,init:m,invalidate:L,clearCache:I,shouldDeleteConfigOnRelease:v,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:s})}ax.value=e=>new r9(e);let{isLoadable:ab,loadableWithError:ay,loadableWithPromise:aw,loadableWithValue:ak}=C,{WrappedValue:aS}=rV,{peekNodeInfo:aj}=eD,{DEFAULT_VALUE:aC,DefaultValue:aN,getConfigDeletionHandler:aT,registerNode:aE,setConfigDeletionHandler:aD}=q,{isRecoilValue:aM}=R,{getRecoilValueAsLoadable:a_,markRecoilValueModified:aA,setRecoilValue:aL,setRecoilValueLoadable:aI}=eJ,{retainedByOptionWithDefault:aP}=e7,aO=e=>e instanceof aS?e.value:e;function aR(e){let{...t}=e,n="default"in e?e.default:new Promise(()=>{});return aM(n)?function(e){let t=aR({...e,default:aC,persistence_UNSTABLE:void 0===e.persistence_UNSTABLE?void 0:{...e.persistence_UNSTABLE,validator:t=>t instanceof aN?t:f(e.persistence_UNSTABLE).validator(t,aC)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=ax({key:`${e.key}__withFallback`,get:({get:n})=>{let r=n(t);return r instanceof aN?e.default:r},set:({set:e},n)=>e(t,n),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return aD(n.key,aT(e.key)),n}({...t,default:n}):function(e){var t;let n;let{key:r,persistence_UNSTABLE:a}=e,i=aP(e.retainedBy_UNSTABLE),l=0;function o(e){return aw(e.then(e=>(s=ak(e),e)).catch(e=>{throw s=ay(e),e}))}let s=p(e.default)?o(e.default):ab(e.default)?"loading"===e.default.state?o(e.default.contents):e.default:ak(aO(e.default));s.contents;let c=new Map;function u(e,t){var a,i;return null!==(a=null!==(i=t.atomValues.get(r))&&void 0!==i?i:n)&&void 0!==a?a:s}let h=aE({key:r,nodeType:"atom",peek:u,get:function(e,t){if(t.atomValues.has(r))return f(t.atomValues.get(r));if(!t.nonvalidatedAtoms.has(r))return s;{if(null!=n)return n;if(null==a)return F(`Tried to restore a persisted value for atom ${r} but it has no persistence settings.`),s;let e=t.nonvalidatedAtoms.get(r),i=a.validator(e,aC);return n=i instanceof aN?s:ak(i)}},set:function(e,t,a){if(t.atomValues.has(r)){let e=f(t.atomValues.get(r));if("hasValue"===e.state&&a===e.contents)return new Map}else if(!t.nonvalidatedAtoms.has(r)&&a instanceof aN)return new Map;return n=void 0,new Map().set(r,ak(a))},init:function(t,n,a){var i,o,f;l++,t.getState().knownAtoms.add(r),"loading"===s.state&&s.contents.finally(()=>{var e;(null!==(e=t.getState().nextTree)&&void 0!==e?e:t.getState().currentTree).atomValues.has(r)||aA(t,h)});let m=null!==(i=e.effects)&&void 0!==i?i:e.effects_UNSTABLE;if(null!=m){let e=aC,i=!0,l=!1,b=null;function v(a){if(i&&a.key===r){let r=e;return r instanceof aN?u(t,n):p(r)?aw(r.then(e=>e instanceof aN?s.toPromise():e)):ak(r)}return a_(t,a)}function g(e){return v(e).toPromise()}function x(n){var a;let l=aj(t,null!==(a=t.getState().nextTree)&&void 0!==a?a:t.getState().currentTree,n.key);return!i||n.key!==r||e instanceof aN?l:{...l,isSet:!0,loadable:v(n)}}let y=n=>r=>{if(i){let t=v(h),a="hasValue"===t.state?t.contents:aC;p(e="function"==typeof r?r(a):r)&&(e=e.then(e=>(b={effect:n,value:e},e)))}else{if(p(r))throw d("Setting atoms to async values is not implemented.");"function"!=typeof r&&(b={effect:n,value:aO(r)}),aL(t,h,"function"==typeof r?e=>{let t=aO(r(e));return b={effect:n,value:t},t}:aO(r))}},w=e=>()=>y(e)(aC),k=e=>n=>{var a;let{release:i}=t.subscribeToTransactions(t=>{var a,i,l,o,c;let{currentTree:u,previousTree:d}=t.getState();d||(E("Transaction subscribers notified without a next tree being present -- this is a bug in Recoil"),d=u);let p=null!==(a=u.atomValues.get(r))&&void 0!==a?a:s;if("hasValue"===p.state){let t=p.contents,a=null!==(i=d.atomValues.get(r))&&void 0!==i?i:s,f="hasValue"===a.state?a.contents:aC;(null===(l=b)||void 0===l?void 0:l.effect)!==e||(null===(o=b)||void 0===o?void 0:o.value)!==t?n(t,f,!u.atomValues.has(r)):(null===(c=b)||void 0===c?void 0:c.effect)===e&&(b=null)}},r);c.set(t,[...null!==(a=c.get(t))&&void 0!==a?a:[],i])};for(let n of m)try{let e=n({node:h,storeID:t.storeID,parentStoreID_UNSTABLE:t.parentStoreID,trigger:a,setSelf:y(n),resetSelf:w(n),onSet:k(n),getPromise:g,getLoadable:v,getInfo_UNSTABLE:x});null!=e&&c.set(t,[...null!==(o=c.get(t))&&void 0!==o?o:[],e])}catch(t){e=t,l=!0}if(i=!1,!(e instanceof aN)){let a=l?ay(e):p(e)?aw(function(e,t){let n=t.then(t=>{var a,i;return(null===(i=(null!==(a=e.getState().nextTree)&&void 0!==a?a:e.getState().currentTree).atomValues.get(r))||void 0===i?void 0:i.contents)===n&&aL(e,h,t),t}).catch(t=>{var a,i;throw(null===(i=(null!==(a=e.getState().nextTree)&&void 0!==a?a:e.getState().currentTree).atomValues.get(r))||void 0===i?void 0:i.contents)===n&&aI(e,h,ay(t)),t});return n}(t,e)):ak(aO(e));a.contents,n.atomValues.set(r,a),null===(f=t.getState().nextTree)||void 0===f||f.atomValues.set(r,a)}}return()=>{var e;l--,null===(e=c.get(t))||void 0===e||e.forEach(e=>e()),c.delete(t)}},invalidate:function(){n=void 0},shouldDeleteConfigOnRelease:function(){return void 0!==aT(r)&&l<=0},dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:i});return h}({...t,default:n})}aR.value=e=>new aS(e);class aF{constructor(e){var t;h(this,"_map",void 0),h(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=null!==(t=null==e?void 0:e.mapKey)&&void 0!==t?t:e=>e}size(){return this._map.size}has(e){return this._map.has(this._keyMapper(e))}get(e){return this._map.get(this._keyMapper(e))}set(e,t){this._map.set(this._keyMapper(e),t)}delete(e){this._map.delete(this._keyMapper(e))}clear(){this._map.clear()}}var aB=Object.freeze({__proto__:null,MapCache:{MapCache:aF}.MapCache});let{LRUCache:az}=r$,{MapCache:aZ}=aB,aH={equality:"reference",eviction:"none",maxSize:1/0},{setConfigDeletionHandler:aU}=q,{setConfigDeletionHandler:aV}=q,aW=0;var aG=function(e){var t,n;let r=function({equality:e=aH.equality,eviction:t=aH.eviction,maxSize:n=aH.maxSize}=aH){return function(e,t,n){switch(e){case"keep-all":return new aZ({mapKey:n});case"lru":return new az({mapKey:n,maxSize:f(t)});case"most-recent":return new az({mapKey:n,maxSize:1})}throw d(`Unrecognized eviction policy ${e}`)}(t,n,function(e){switch(e){case"reference":return e=>e;case"value":return e=>r0(e)}throw d(`Unrecognized equality policy ${e}`)}(e))}({equality:null!==(t=null===(n=e.cachePolicyForParams_UNSTABLE)||void 0===n?void 0:n.equality)&&void 0!==t?t:"value",eviction:"keep-all"});return t=>{var n;let a,i;try{a=r.get(t)}catch(t){throw d(`Problem with cache lookup for selector ${e.key}: ${t.message}`)}if(null!=a)return a;let l=`${e.key}__selectorFamily/${null!==(n=r0(t,{allowFunctions:!0}))&&void 0!==n?n:"void"}/${aW++}`,o=n=>e.get(t)(n),s=e.cachePolicy_UNSTABLE,c="function"==typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE;if(null!=e.set){let n=e.set;i=ax({key:l,get:o,set:(e,r)=>n(t)(e,r),cachePolicy_UNSTABLE:s,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:c})}else i=ax({key:l,get:o,cachePolicy_UNSTABLE:s,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:c});return r.set(t,i),aV(i.key,()=>{r.delete(t)}),i}};aG({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}}),aG({key:"__error",get:e=>()=>{throw d(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});let{loadableWithError:aY,loadableWithPromise:aq,loadableWithValue:aK}=C;function a$(e,t){let n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(let[a,i]of t.entries())try{n[a]=e(i)}catch(e){r[a]=e}return[n,r]}function aX(e){return null!=e&&!p(e)}function aJ(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function aQ(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((e,n,r)=>({...e,[n]:t[r]}),{})}function a0(e,t,n){return aQ(e,n.map((e,n)=>null==e?aK(t[n]):p(e)?aq(e):aY(e)))}let a1=aG({key:"__waitForNone",get:e=>({get:t})=>{let[n,r]=a$(t,aJ(e));return a0(e,n,r)},dangerouslyAllowMutability:!0}),a2=aG({key:"__waitForAny",get:e=>({get:t})=>{let[n,r]=a$(t,aJ(e));return r.some(e=>!p(e))?a0(e,n,r):new Promise(t=>{for(let[a,i]of r.entries())p(i)&&i.then(i=>{n[a]=i,r[a]=void 0,t(a0(e,n,r))}).catch(i=>{r[a]=i,t(a0(e,n,r))})})},dangerouslyAllowMutability:!0}),a3=aG({key:"__waitForAll",get:e=>({get:t})=>{let[n,r]=a$(t,aJ(e));if(r.every(e=>null==e))return aQ(e,n);let a=r.find(aX);if(null!=a)throw a;return Promise.all(r).then(t=>aQ(e,t.map((e,t)=>void 0===e?n[t]:e)))},dangerouslyAllowMutability:!0}),a6=aG({key:"__waitForAllSettled",get:e=>({get:t})=>{let[n,r]=a$(t,aJ(e));return r.every(e=>!p(e))?a0(e,n,r):Promise.all(r.map((e,t)=>p(e)?e.then(e=>{n[t]=e,r[t]=void 0}).catch(e=>{n[t]=void 0,r[t]=e}):null)).then(()=>a0(e,n,r))},dangerouslyAllowMutability:!0}),a5=aG({key:"__noWait",get:e=>({get:t})=>{try{return ax.value(aK(t(e)))}catch(e){return ax.value(p(e)?aq(e):aY(e))}},dangerouslyAllowMutability:!0}),{RecoilLoadable:a4}=C,{DefaultValue:a8}=q,{RecoilRoot:a7,useRecoilStoreID:a9}=na,{isRecoilValue:ie}=R,{retentionZone:it}=em,{freshSnapshot:ir}=t_,{useRecoilState:ia,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:ii,useRecoilStateLoadable:il,useRecoilValue:io,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:is,useRecoilValueLoadable:ic,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:iu,useResetRecoilState:id,useSetRecoilState:ip}={recoilComponentGetRecoilValueCount_FOR_TESTING:{current:0},useRecoilInterface:function(){let e=ng(),t=nC(),[,n]=nO([]),r=nP(new Set);r.current=new Set;let a=nP(new Set),i=nP(new Map),l=nA(e=>{let t=i.current.get(e);t&&(t.release(),i.current.delete(e))},[i]),o=nA((e,t)=>{i.current.has(t)&&n([])},[]);return nL(()=>{let n=t.current;et(r.current,a.current).forEach(t=>{if(i.current.has(t)){F(`Double subscription to RecoilValue "${t}"`);return}let r=n_(n,new nT(t),e=>o(e,t),e);i.current.set(t,r),n.getState().nextTree?n.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{o(n.getState(),t)}):o(n.getState(),t)}),et(a.current,r.current).forEach(e=>{l(e)}),a.current=r.current}),nL(()=>{let n=i.current;return et(r.current,new Set(n.keys())).forEach(r=>{let a=n_(t.current,new nT(r),e=>o(e,r),e);n.set(r,a)}),()=>n.forEach((e,t)=>l(t))},[e,t,l,o]),nI(()=>{function e(e){return n=>{nD(t.current,e,n)}}function n(e){var n;r.current.has(e.key)||(r.current=nR(r.current,e.key));let a=t.current.getState();return nE(t.current,e,nw().early&&null!==(n=a.nextTree)&&void 0!==n?n:a.currentTree)}function a(e){return nB(n(e),e,t)}return{getRecoilValue:a,getRecoilValueLoadable:n,getRecoilState:function(t){return[a(t),e(t)]},getRecoilStateLoadable:function(t){return[n(t),e(t)]},getSetRecoilState:e,getResetRecoilState:function(e){return()=>nD(t.current,e,nb)}}},[r,t])},useRecoilState:function(e){return[nW(e),nG(e)]},useRecoilStateLoadable:function(e){return[nV(e),nG(e)]},useRecoilValue:nW,useRecoilValueLoadable:nV,useResetRecoilState:function(e){let t=nC();return nA(()=>{nD(t.current,e,nb)},[t,e])},useSetRecoilState:nG,useSetUnvalidatedAtomValues:function(){let e=nC();return(t,n={})=>{nx(()=>{e.current.addTransactionMetadata(n),t.forEach((t,n)=>nM(e.current,new nT(n),t))})}},useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:nY,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:nq,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:function(e){return[nq(e),nG(e)]}},{useGotoRecoilSnapshot:ih,useRecoilSnapshot:im,useRecoilTransactionObserver:iv}=ri,{useRecoilCallback:ig}=rO,{noWait:ix,waitForAll:ib,waitForAllSettled:iy,waitForAny:iw,waitForNone:ik}={waitForNone:a1,waitForAny:a2,waitForAll:a3,waitForAllSettled:a6,noWait:a5};var iS=a7,ij=aR,iC=ax,iN=io,iT=ia,iE=ip},1739:function(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},2473:function(e){"use strict";e.exports=function(){}},3878:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},7326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},5671:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},3144:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(3997);function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,(0,r.Z)(a.key),a)}}function i(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},4942:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(3997);function a(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},1120:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,{Z:function(){return r}})},136:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(9611);function a(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},5267:function(e,t,n){"use strict";function r(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},2963:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1002),a=n(7326);function i(e,t){if(t&&("object"==(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,a.Z)(e)}},9611:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})},3997:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(1002);function a(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=(0,r.Z)(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:t+""}},1002:function(e,t,n){"use strict";function r(e){return(r="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)}n.d(t,{Z:function(){return r}})},1563:function(e,t,n){"use strict";function r(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){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}n.d(t,{Z:function(){return a}})},5946:function(e,t,n){"use strict";n.d(t,{ZP:function(){return es},t:function(){return ec}});var r=n(1002),a=n(5671),i=n(3144),l=n(7326),o=n(136),s=n(2963),c=n(1120),u=n(4942),d=n(3878),p=n(1563),f=n(5267);function h(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){(0,u.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var v={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},g=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.Z)(this,e),this.init(t,n)}return(0,i.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||v,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,m(m({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),x=function(){function e(){(0,a.Z)(this,e),this.observers={}}return(0,i.Z)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function b(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.resolve=e,n.reject=t,n}function y(e){return null==e?"":""+e}function w(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function a(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(a())return{};var l=r(i.shift());!e[l]&&n&&(e[l]=new n),e=Object.prototype.hasOwnProperty.call(e,l)?e[l]:{}}return a()?{}:{obj:e,k:r(i.shift())}}function k(e,t,n){var r=w(e,t,Object);r.obj[r.k]=n}function S(e,t){var n=w(e,t),r=n.obj,a=n.k;if(r)return r[a]}function j(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var C={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function N(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return C[e]}):e}var T="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,E=[" ",",","?","!",";"];function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),a=e,i=0;i<r.length;++i){if(!a||"string"==typeof a[r[i]]&&i+1<r.length)return;if(void 0===a[r[i]]){for(var l=2,o=r.slice(i,i+l).join(n),s=a[o];void 0===s&&r.length>i+l;)l++,s=a[o=r.slice(i,i+l).join(n)];if(void 0===s)return;if(null===s)return null;if(t.endsWith(o)){if("string"==typeof s)return s;if(o&&"string"==typeof s[o])return s[o]}var c=r.slice(i+l).join(n);if(c)return D(s,c,n);return}a=a[r[i]]}return a}}function M(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 _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach(function(t){(0,u.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var A=function(e){(0,o.Z)(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,c.Z)(r);return e=t?Reflect.construct(n,arguments,(0,c.Z)(this).constructor):n.apply(this,arguments),(0,s.Z)(this,e)});function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,a.Z)(this,r),t=n.call(this),T&&x.call((0,l.Z)(t)),t.data=e||{},t.options=i,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return(0,i.Z)(r,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l=[e,t];n&&"string"!=typeof n&&(l=l.concat(n)),n&&"string"==typeof n&&(l=l.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(l=e.split("."));var o=S(this.data,l);return o||!i||"string"!=typeof n?o:D(this.data&&this.data[e]&&this.data[e][t],n,a)}},{key:"addResource",value:function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var l=[e,t];n&&(l=l.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(l=e.split("."),r=t,t=l[1]),this.addNamespaces(t),k(this.data,l,r),a.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var a in n)("string"==typeof n[a]||"[object Array]"===Object.prototype.toString.apply(n[a]))&&this.addResource(e,t,a,n[a],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},l=[e,t];e.indexOf(".")>-1&&(l=e.split("."),r=n,n=t,t=l[1]),this.addNamespaces(t);var o=S(this.data,l)||{};r?function e(t,n,r){for(var a in n)"__proto__"!==a&&"constructor"!==a&&(a in t?"string"==typeof t[a]||t[a]instanceof String||"string"==typeof n[a]||n[a]instanceof String?r&&(t[a]=n[a]):e(t[a],n[a],r):t[a]=n[a]);return t}(o,n,a):o=_(_({},o),n),k(this.data,l,o),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?_(_({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(x),L={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,a){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,a))}),t}};function I(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 P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach(function(t){(0,u.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var O={},R=function(e){(0,o.Z)(u,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,c.Z)(u);return e=t?Reflect.construct(n,arguments,(0,c.Z)(this).constructor):n.apply(this,arguments),(0,s.Z)(this,e)});function u(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,a.Z)(this,u),t=n.call(this),T&&x.call((0,l.Z)(t)),!function(e,t,n){e.forEach(function(e){t[e]&&(n[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,(0,l.Z)(t)),t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=g.create("translator"),t}return(0,i.Z)(u,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";var r=E.filter(function(e){return 0>t.indexOf(e)&&0>n.indexOf(e)});if(0===r.length)return!0;var a=new RegExp("(".concat(r.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),i=!a.test(e);if(!i){var l=e.indexOf(n);l>0&&!a.test(e.substring(0,l))&&(i=!0)}return i}(e,n,r);if(i&&!l){var o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:a};var s=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),e=s.join(r)}return"string"==typeof a&&(a=[a]),{key:e,namespaces:a}}},{key:"translate",value:function(e,t,n){var a=this;if("object"!==(0,r.Z)(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===(0,r.Z)(t)&&(t=P({},t)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,l=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=this.extractFromKey(e[e.length-1],t),s=o.key,c=o.namespaces,d=c[c.length-1],p=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&"cimode"===p.toLowerCase()){if(f){var h=t.nsSeparator||this.options.nsSeparator;return i?{res:"".concat(d).concat(h).concat(s),usedKey:s,exactUsedKey:s,usedLng:p,usedNS:d}:"".concat(d).concat(h).concat(s)}return i?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:d}:s}var m=this.resolve(e,t),v=m&&m.res,g=m&&m.usedKey||s,x=m&&m.exactUsedKey||s,b=Object.prototype.toString.apply(v),y=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,k="string"!=typeof v&&"boolean"!=typeof v&&"number"!=typeof v;if(w&&v&&k&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(b)&&!("string"==typeof y&&"[object Array]"===b)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,v,P(P({},t),{},{ns:c})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");return i?(m.res=S,m):S}if(l){var j="[object Array]"===b,C=j?[]:{},N=j?x:g;for(var T in v)if(Object.prototype.hasOwnProperty.call(v,T)){var E="".concat(N).concat(l).concat(T);C[T]=this.translate(E,P(P({},t),{joinArrays:!1,ns:c})),C[T]===E&&(C[T]=v[T])}v=C}}else if(w&&"string"==typeof y&&"[object Array]"===b)(v=v.join(y))&&(v=this.extendTranslation(v,e,t,n));else{var D=!1,M=!1,_=void 0!==t.count&&"string"!=typeof t.count,A=u.hasDefaultValue(t),L=_?this.pluralResolver.getSuffix(p,t.count,t):"",I=t["defaultValue".concat(L)]||t.defaultValue;!this.isValidLookup(v)&&A&&(D=!0,v=I),this.isValidLookup(v)||(M=!0,v=s);var O=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&M?void 0:v,R=A&&I!==v&&this.options.updateMissing;if(M||D||R){if(this.logger.log(R?"updateKey":"missingKey",p,d,s,R?I:v),l){var F=this.resolve(s,P(P({},t),{},{keySeparator:!1}));F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var B=[],z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&z&&z[0])for(var Z=0;Z<z.length;Z++)B.push(z[Z]);else"all"===this.options.saveMissingTo?B=this.languageUtils.toResolveHierarchy(t.lng||this.language):B.push(t.lng||this.language);var H=function(e,n,r){var i=A&&r!==v?r:O;a.options.missingKeyHandler?a.options.missingKeyHandler(e,d,n,i,R,t):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(e,d,n,i,R,t),a.emit("missingKey",e,d,n,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?B.forEach(function(e){a.pluralResolver.getSuffixes(e,t).forEach(function(n){H([e],s+n,t["defaultValue".concat(n)]||I)})}):H(B,s,I))}v=this.extendTranslation(v,e,t,m,n),M&&v===s&&this.options.appendNamespaceToMissingKey&&(v="".concat(d,":").concat(s)),(M||D)&&this.options.parseMissingKeyHandler&&(v="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(d,":").concat(s):s,D?v:void 0):this.options.parseMissingKeyHandler(v))}return i?(m.res=v,m):v}},{key:"extendTranslation",value:function(e,t,n,r,a){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,P(P({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(P(P({},n),{interpolation:P(P({},this.options.interpolation),n.interpolation)}));var l,o="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(o){var s=e.match(this.interpolator.nestingRegexp);l=s&&s.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=P(P({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),o){var u=e.match(this.interpolator.nestingRegexp);l<(u&&u.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=Array(e),l=0;l<e;l++)r[l]=arguments[l];return a&&a[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=L.handle(p,e,t,this.options&&this.options.postProcessPassResolved?P({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,a,i,l=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!l.isValidLookup(t)){var s=l.extractFromKey(e,o),c=s.key;n=c;var u=s.namespaces;l.options.fallbackNS&&(u=u.concat(l.options.fallbackNS));var d=void 0!==o.count&&"string"!=typeof o.count,p=d&&!o.ordinal&&0===o.count&&l.pluralResolver.shouldUseIntlApi(),f=void 0!==o.context&&("string"==typeof o.context||"number"==typeof o.context)&&""!==o.context,h=o.lngs?o.lngs:l.languageUtils.toResolveHierarchy(o.lng||l.language,o.fallbackLng);u.forEach(function(e){l.isValidLookup(t)||(i=e,!O["".concat(h[0],"-").concat(e)]&&l.utils&&l.utils.hasLoadedNamespace&&!l.utils.hasLoadedNamespace(i)&&(O["".concat(h[0],"-").concat(e)]=!0,l.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(function(n){if(!l.isValidLookup(t)){a=n;var i,s=[c];if(l.i18nFormat&&l.i18nFormat.addLookupKeys)l.i18nFormat.addLookupKeys(s,c,n,e,o);else{d&&(u=l.pluralResolver.getSuffix(n,o.count,o));var u,h="".concat(l.options.pluralSeparator,"zero");if(d&&(s.push(c+u),p&&s.push(c+h)),f){var m="".concat(c).concat(l.options.contextSeparator).concat(o.context);s.push(m),d&&(s.push(m+u),p&&s.push(m+h))}}for(;i=s.pop();)l.isValidLookup(t)||(r=i,t=l.getResource(n,e,i,o))}}))})}}),{res:t,usedKey:n,exactUsedKey:r,usedLng:a,usedNS:i}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),u}(x);function F(e){return e.charAt(0).toUpperCase()+e.slice(1)}var B=function(){function e(t){(0,a.Z)(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=g.create("languageUtils")}return(0,i.Z)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=F(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=F(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=F(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach(function(e){if(!t){var r=n.formatLanguageCode(e);(!n.options.supportedLngs||n.isSupportedCode(r))&&(t=r)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find(function(e){if(e===r||!(0>e.indexOf("-")&&0>r.indexOf("-"))&&0===e.indexOf(r))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),a=[],i=function(e){e&&(n.isSupportedCode(e)?a.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach(function(e){0>a.indexOf(e)&&i(n.formatLanguageCode(e))}),a}}]),e}(),z=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Z={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},H=["v1","v2","v3"],U={zero:0,one:1,two:2,few:3,many:4,other:5},V=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.Z)(this,e),this.languageUtils=t,this.options=r,this.logger=g.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},z.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:Z[e.fc]}})}),n)}return(0,i.Z)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(function(e,t){return U[e]-U[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):r.numbers.map(function(r){return t.getSuffix(e,r,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),a=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===a?a="plural":1===a&&(a=""));var i=function(){return n.options.prepend&&a.toString()?n.options.prepend+a.toString():a.toString()};return"v1"===this.options.compatibilityJSON?1===a?"":"number"==typeof a?"_plural_".concat(a.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!H.includes(this.options.compatibilityJSON)}}]),e}();function W(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 G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach(function(t){(0,u.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Y(e,t,n){var r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4)||void 0===arguments[4]||arguments[4],l=void 0!==(r=S(e,n))?r:S(t,n);return!l&&i&&"string"==typeof n&&void 0===(l=D(e,n,a))&&(l=D(t,n,a)),l}var q=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.Z)(this,e),this.logger=g.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,i.Z)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:N,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?j(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?j(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?j(t.nestingPrefix):t.nestingPrefixEscaped||j("$t("),this.nestingSuffix=t.nestingSuffix?j(t.nestingSuffix):t.nestingSuffixEscaped||j(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var a,i,l,o=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(0>e.indexOf(o.formatSeparator)){var a=Y(t,s,e,o.options.keySeparator,o.options.ignoreJSONStructure);return o.alwaysFormat?o.format(a,void 0,n,G(G(G({},r),t),{},{interpolationkey:e})):a}var i=e.split(o.formatSeparator),l=i.shift().trim(),c=i.join(o.formatSeparator).trim();return o.format(Y(t,s,l,o.options.keySeparator,o.options.ignoreJSONStructure),c,n,G(G(G({},r),t),{},{interpolationkey:l}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return o.escapeValue?c(o.escape(e)):c(e)}}].forEach(function(t){for(l=0;a=t.regex.exec(e);){var n=a[1].trim();if(void 0===(i=u(n))){if("function"==typeof d){var s=d(e,a,r);i="string"==typeof s?s:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else if(p){i=a[0];continue}else o.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),i=""}else"string"==typeof i||o.useRawValueToEscape||(i=y(i));var c=t.safeValue(i);if(e=e.replace(a[0],c),p?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,++l>=o.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,r,a,i=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function o(e,t){var n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0];var l=(i=this.interpolate(i,a)).match(/'/g),o=i.match(/"/g);(l&&l.length%2==0&&!o||o.length%2!=0)&&(i=i.replace(/'/g,'"'));try{a=JSON.parse(i),t&&(a=G(G({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(i)}return delete a.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){var s=[];(a=(a=G({},l)).replace&&"string"!=typeof a.replace?a.replace:a).applyPostProcessor=!1,delete a.defaultValue;var c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=u.shift(),s=u,c=!0}if((r=t(o.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=y(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=s.reduce(function(e,t){return i.format(e,t,l.lng,G(G({},l),{},{interpolationkey:n[1].trim()}))},r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function K(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 $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach(function(t){(0,u.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function X(e){var t={};return function(n,r,a){var i=r+JSON.stringify(a),l=t[i];return l||(l=e(r,a),t[i]=l),l(n)}}var J=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.Z)(this,e),this.logger=g.create("formatter"),this.options=t,this.formats={number:X(function(e,t){var n=new Intl.NumberFormat(e,$({},t));return function(e){return n.format(e)}}),currency:X(function(e,t){var n=new Intl.NumberFormat(e,$($({},t),{},{style:"currency"}));return function(e){return n.format(e)}}),datetime:X(function(e,t){var n=new Intl.DateTimeFormat(e,$({},t));return function(e){return n.format(e)}}),relativetime:X(function(e,t){var n=new Intl.RelativeTimeFormat(e,$({},t));return function(e){return n.format(e,t.range||"day")}}),list:X(function(e,t){var n=new Intl.ListFormat(e,$({},t));return function(e){return n.format(e)}})},this.init(t)}return(0,i.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=X(t)}},{key:"format",value:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(function(e,t){var i=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var a=r[1].substring(0,r[1].length-1);"currency"===t&&0>a.indexOf(":")?n.currency||(n.currency=a.trim()):"relativetime"===t&&0>a.indexOf(":")?n.range||(n.range=a.trim()):a.split(";").forEach(function(e){if(e){var t,r=(t=e.split(":"),(0,d.Z)(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||(0,p.Z)(t)||(0,f.Z)()),a=r[0],i=r.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[a.trim()]||(n[a.trim()]=i),"false"===i&&(n[a.trim()]=!1),"true"===i&&(n[a.trim()]=!0),isNaN(i)||(n[a.trim()]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}}(t),l=i.formatName,o=i.formatOptions;if(r.formats[l]){var s=e;try{var c=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},u=c.locale||c.lng||a.locale||a.lng||n;s=r.formats[l](e,u,$($($({},o),a),c))}catch(e){r.logger.warn(e)}return s}return r.logger.warn("there was no format function for ".concat(l)),e},e)}}]),e}();function Q(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 ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach(function(t){(0,u.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var et=function(e){(0,o.Z)(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,c.Z)(r);return e=t?Reflect.construct(n,arguments,(0,c.Z)(this).constructor):n.apply(this,arguments),(0,s.Z)(this,e)});function r(e,t,i){var o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,a.Z)(this,r),o=n.call(this),T&&x.call((0,l.Z)(o)),o.backend=e,o.store=t,o.services=i,o.languageUtils=i.languageUtils,o.options=s,o.logger=g.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=s.maxParallelReads||10,o.readingCalls=0,o.maxRetries=s.maxRetries>=0?s.maxRetries:5,o.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,s.backend,s),o}return(0,i.Z)(r,[{key:"queueLoad",value:function(e,t,n,r){var a=this,i={},l={},o={},s={};return e.forEach(function(e){var r=!0;t.forEach(function(t){var o="".concat(e,"|").concat(t);!n.reload&&a.store.hasResourceBundle(e,t)?a.state[o]=2:a.state[o]<0||(1===a.state[o]?void 0===l[o]&&(l[o]=!0):(a.state[o]=1,r=!1,void 0===l[o]&&(l[o]=!0),void 0===i[o]&&(i[o]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(l),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),a=r[0],i=r[1];t&&this.emit("failedLoading",a,i,t),n&&this.store.addResourceBundle(a,i,n),this.state[e]=t?-1:2;var l={};this.queue.forEach(function(n){var r,o,s,c;(s=(o=w(n.loaded,[a],Object)).obj)[c=o.k]=s[c]||[],r||s[c].push(i),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(e){l[e]||(l[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){void 0===l[e][t]&&(l[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,l=arguments.length>5?arguments[5]:void 0;if(!e.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:a,wait:i,callback:l});return}this.readingCalls++;var o=function(o,s){if(r.readingCalls--,r.waitingReads.length>0){var c=r.waitingReads.shift();r.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}if(o&&s&&a<r.maxRetries){setTimeout(function(){r.read.call(r,e,t,n,a+1,2*i,l)},i);return}l(o,s)},s=this.backend[n].bind(this.backend);if(2===s.length){try{var c=s(e,t);c&&"function"==typeof c.then?c.then(function(e){return o(null,e)}).catch(o):o(null,c)}catch(e){o(e)}return}return s(e,t,o)}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,a);if(!i.toLoad.length)return i.pending.length||a(),null;i.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),a=r[0],i=r[1];this.read(a,i,"read",void 0,void 0,function(r,l){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(a," failed"),r),!r&&l&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(a),l),t.loaded(e,r,l)})}},{key:"saveMissing",value:function(e,t,n,r,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=n&&""!==n){if(this.backend&&this.backend.create){var o,s=ee(ee({},i),{},{isUpdate:a}),c=this.backend.create.bind(this.backend);if(c.length<6)try{(o=5===c.length?c(e,t,n,r,s):c(e,t,n,r))&&"function"==typeof o.then?o.then(function(e){return l(null,e)}).catch(l):l(null,o)}catch(e){l(e)}else c(e,t,n,r,l,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}]),r}(x);function en(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,r.Z)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,r.Z)(e[2])||"object"===(0,r.Z)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function er(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ea(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 ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ea(Object(n),!0).forEach(function(t){(0,u.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ea(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function el(){}var eo=function(e){(0,o.Z)(u,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,c.Z)(u);return e=t?Reflect.construct(n,arguments,(0,c.Z)(this).constructor):n.apply(this,arguments),(0,s.Z)(this,e)});function u(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if((0,a.Z)(this,u),e=n.call(this),T&&x.call((0,l.Z)(e)),e.options=er(t),e.services={},e.logger=g,e.modules={external:[]},!function(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}((0,l.Z)(e)),r&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,r),(0,s.Z)(e,(0,l.Z)(e));setTimeout(function(){e.init(t,r)},0)}return e}return(0,i.Z)(u,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var r=en();function a(e){return e?"function"==typeof e?new e:e:null}if(this.options=ei(ei(ei({},r),this.options),er(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=ei(ei({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?g.init(a(this.modules.logger),this.options):g.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"undefined"!=typeof Intl&&(i=J);var i,l=new B(this.options);this.store=new A(this.options.resources,this.options);var o=this.services;o.logger=g,o.resourceStore=this.store,o.languageUtils=l,o.pluralResolver=new V(l,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(o.formatter=a(i),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new q(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new et(a(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];e.emit.apply(e,[t].concat(r))}),this.modules.languageDetector&&(o.languageDetector=a(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=a(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new R(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];e.emit.apply(e,[t].concat(r))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,n||(n=el),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var c=b(),u=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:el,r=n,a="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(a&&"cimode"===a.toLowerCase())return r();var i=[],l=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>i.indexOf(e)&&i.push(e)})};a?l(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return l(e)}),this.options.preload&&this.options.preload.forEach(function(e){return l(e)}),this.services.backendConnector.load(i,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)})}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=b();return e||(e=this.languages),t||(t=this.options.ns),n||(n=el),this.services.backendConnector.reload(e,t,function(e){r.resolve(),n(e)}),r}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&L.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=b();this.emit("languageChanging",e);var a=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},i=function(e,i){i?(a(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,r.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})},l=function(t){e||t||!n.services.languageDetector||(t=[]);var r="string"==typeof t?t:n.services.languageUtils.getBestMatchFromCodes(t);r&&(n.language||a(r),n.translator.language||n.translator.changeLanguage(r),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage&&n.services.languageDetector.cacheUserLanguage(r)),n.loadResources(r,function(e){i(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e):l(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var a=this,i=function e(t,i){if("object"!==(0,r.Z)(i)){for(var l,o,s=arguments.length,c=Array(s>2?s-2:0),u=2;u<s;u++)c[u-2]=arguments[u];l=a.options.overloadTranslationOptionHandler([t,i].concat(c))}else l=ei({},i);l.lng=l.lng||e.lng,l.lngs=l.lngs||e.lngs,l.ns=l.ns||e.ns,l.keyPrefix=l.keyPrefix||n||e.keyPrefix;var d=a.options.keySeparator||".";return o=l.keyPrefix&&Array.isArray(t)?t.map(function(e){return"".concat(l.keyPrefix).concat(d).concat(e)}):l.keyPrefix?"".concat(l.keyPrefix).concat(d).concat(t):t,a.t(o,l)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.resolvedLanguage||this.languages[0],a=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var l=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return -1===r||2===r};if(n.precheck){var o=n.precheck(this,l);if(void 0!==o)return o}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(r,e)&&(!a||l(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=b();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>n.options.ns.indexOf(e)&&n.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=b();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],a=e.filter(function(e){return 0>r.indexOf(e)});return a.length?(this.options.preload=r.concat(a),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new B(en())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:el,r=ei(ei(ei({},this.options),t),{isClone:!0}),a=new u(r);return(void 0!==t.debug||void 0!==t.prefix)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(function(t){a[t]=e[t]}),a.services=ei({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new R(a.services,a.options),a.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a.emit.apply(a,[e].concat(n))}),a.init(r,n),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),u}(x);(0,u.Z)(eo,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new eo(e,t)});var es=eo.createInstance();es.createInstance=eo.createInstance,es.createInstance,es.dir,es.init,es.loadResources,es.reloadResources,es.use,es.changeLanguage,es.getFixedT;var ec=es.t;es.exists,es.setDefaultNamespace,es.hasLoadedNamespace,es.loadNamespaces,es.loadLanguages},1955:function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}n.d(t,{Z:function(){return a}});var a=function e(t,n){function a(e,a,i){if("undefined"!=typeof document){"number"==typeof(i=r({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var o in i)i[o]&&(l+="; "+o,!0!==i[o]&&(l+="="+i[o].split(";")[0]));return document.cookie=e+"="+t.write(a,e)+l}}return Object.create({set:a,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},a=0;a<n.length;a++){var i=n[a].split("="),l=i.slice(1).join("=");try{var o=decodeURIComponent(i[0]);if(r[o]=t.read(l,o),e===o)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){a(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},6501:function(e,t,n){"use strict";let r,a;n.d(t,{x7:function(){return ed},ZP:function(){return ep}});var i,l=n(7294);let o={data:""},s=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||o,c=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,u=/\/\*[^]*?\*\/|  +/g,d=/\n+/g,p=(e,t)=>{let n="",r="",a="";for(let i in e){let l=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+l+";":r+="f"==i[1]?p(l,i):i+"{"+p(l,"k"==i[1]?"":t)+"}":"object"==typeof l?r+=p(l,t?t.replace(/([^,])+/g,e=>i.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=l&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),a+=p.p?p.p(i,l):i+":"+l+";")}return n+(t&&a?t+"{"+a+"}":a)+r},f={},h=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+h(e[n]);return t}return e},m=(e,t,n,r,a)=>{var i;let l=h(e),o=f[l]||(f[l]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(l));if(!f[o]){let t=l!==e?e:(e=>{let t,n,r=[{}];for(;t=c.exec(e.replace(u,""));)t[4]?r.shift():t[3]?(n=t[3].replace(d," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(d," ").trim();return r[0]})(e);f[o]=p(a?{["@keyframes "+o]:t}:t,n?"":"."+o)}let s=n&&f.g?f.g:null;return n&&(f.g=f[o]),i=f[o],s?t.data=t.data.replace(s,i):-1===t.data.indexOf(i)&&(t.data=r?i+t.data:t.data+i),o},v=(e,t,n)=>e.reduce((e,r,a)=>{let i=t[a];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":p(e,""):!1===e?"":e}return e+r+(null==i?"":i)},"");function g(e){let t=this||{},n=e.call?e(t.p):e;return m(n.unshift?n.raw?v(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,s(t.target),t.g,t.o,t.k)}g.bind({g:1});let x,b,y,w=g.bind({k:1});function k(e,t){let n=this||{};return function(){let r=arguments;function a(i,l){let o=Object.assign({},i),s=o.className||a.className;n.p=Object.assign({theme:b&&b()},o),n.o=/ *go\d+/.test(s),o.className=g.apply(n,r)+(s?" "+s:""),t&&(o.ref=l);let c=e;return e[0]&&(c=o.as||e,delete o.as),y&&c[0]&&y(o),x(c,o)}return t?t(a):a}}var S=e=>"function"==typeof e,j=(e,t)=>S(e)?e(t):e,C=(r=0,()=>(++r).toString()),N=()=>{if(void 0===a&&"u">typeof window){let e=matchMedia("(prefers-reduced-motion: reduce)");a=!e||e.matches}return a},T=new Map,E=e=>{if(T.has(e))return;let t=setTimeout(()=>{T.delete(e),L({type:4,toastId:e})},1e3);T.set(e,t)},D=e=>{let t=T.get(e);t&&clearTimeout(t)},M=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&D(t.toast.id),{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:n}=t;return e.toasts.find(e=>e.id===n.id)?M(e,{type:1,toast:n}):M(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?E(r):e.toasts.forEach(e=>{E(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+a}))}}},_=[],A={toasts:[],pausedAt:void 0},L=e=>{A=M(A,e),_.forEach(e=>{e(A)})},I={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},P=(e={})=>{let[t,n]=(0,l.useState)(A);(0,l.useEffect)(()=>(_.push(n),()=>{let e=_.indexOf(n);e>-1&&_.splice(e,1)}),[t]);let r=t.toasts.map(t=>{var n,r;return{...e,...e[t.type],...t,duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||I[t.type],style:{...e.style,...null==(r=e[t.type])?void 0:r.style,...t.style}}});return{...t,toasts:r}},O=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||C()}),R=e=>(t,n)=>{let r=O(t,e,n);return L({type:2,toast:r}),r.id},F=(e,t)=>R("blank")(e,t);F.error=R("error"),F.success=R("success"),F.loading=R("loading"),F.custom=R("custom"),F.dismiss=e=>{L({type:3,toastId:e})},F.remove=e=>L({type:4,toastId:e}),F.promise=(e,t,n)=>{let r=F.loading(t.loading,{...n,...null==n?void 0:n.loading});return e.then(e=>(F.success(j(t.success,e),{id:r,...n,...null==n?void 0:n.success}),e)).catch(e=>{F.error(j(t.error,e),{id:r,...n,...null==n?void 0:n.error})}),e};var B=(e,t)=>{L({type:1,toast:{id:e,height:t}})},z=()=>{L({type:5,time:Date.now()})},Z=e=>{let{toasts:t,pausedAt:n}=P(e);(0,l.useEffect)(()=>{if(n)return;let e=Date.now(),r=t.map(t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(n<0){t.visible&&F.dismiss(t.id);return}return setTimeout(()=>F.dismiss(t.id),n)});return()=>{r.forEach(e=>e&&clearTimeout(e))}},[t,n]);let r=(0,l.useCallback)(()=>{n&&L({type:6,time:Date.now()})},[n]),a=(0,l.useCallback)((e,n)=>{let{reverseOrder:r=!1,gutter:a=8,defaultPosition:i}=n||{},l=t.filter(t=>(t.position||i)===(e.position||i)&&t.height),o=l.findIndex(t=>t.id===e.id),s=l.filter((e,t)=>t<o&&e.visible).length;return l.filter(e=>e.visible).slice(...r?[s+1]:[0,s]).reduce((e,t)=>e+(t.height||0)+a,0)},[t]);return{toasts:t,handlers:{updateHeight:B,startPause:z,endPause:r,calculateOffset:a}}},H=w`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
 transform: scale(1) rotate(45deg);
  opacity: 1;
}`,U=w`
from {
  transform: scale(0);
  opacity: 0;
}
to {
  transform: scale(1);
  opacity: 1;
}`,V=w`
from {
  transform: scale(0) rotate(90deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(90deg);
	opacity: 1;
}`,W=k("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#ff4b4b"};
  position: relative;
  transform: rotate(45deg);

  animation: ${H} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;

  &:after,
  &:before {
    content: '';
    animation: ${U} 0.15s ease-out forwards;
    animation-delay: 150ms;
    position: absolute;
    border-radius: 3px;
    opacity: 0;
    background: ${e=>e.secondary||"#fff"};
    bottom: 9px;
    left: 4px;
    height: 2px;
    width: 12px;
  }

  &:before {
    animation: ${V} 0.15s ease-out forwards;
    animation-delay: 180ms;
    transform: rotate(90deg);
  }
`,G=w`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
`,Y=k("div")`
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 100%;
  border-color: ${e=>e.secondary||"#e0e0e0"};
  border-right-color: ${e=>e.primary||"#616161"};
  animation: ${G} 1s linear infinite;
`,q=w`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(45deg);
	opacity: 1;
}`,K=w`
0% {
	height: 0;
	width: 0;
	opacity: 0;
}
40% {
  height: 0;
	width: 6px;
	opacity: 1;
}
100% {
  opacity: 1;
  height: 10px;
}`,$=k("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#61d345"};
  position: relative;
  transform: rotate(45deg);

  animation: ${q} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;
  &:after {
    content: '';
    box-sizing: border-box;
    animation: ${K} 0.2s ease-out forwards;
    opacity: 0;
    animation-delay: 200ms;
    position: absolute;
    border-right: 2px solid;
    border-bottom: 2px solid;
    border-color: ${e=>e.secondary||"#fff"};
    bottom: 6px;
    left: 6px;
    height: 10px;
    width: 6px;
  }
`,X=k("div")`
  position: absolute;
`,J=k("div")`
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  min-height: 20px;
`,Q=w`
from {
  transform: scale(0.6);
  opacity: 0.4;
}
to {
  transform: scale(1);
  opacity: 1;
}`,ee=k("div")`
  position: relative;
  transform: scale(0.6);
  opacity: 0.4;
  min-width: 20px;
  animation: ${Q} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
`,et=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return void 0!==t?"string"==typeof t?l.createElement(ee,null,t):t:"blank"===n?null:l.createElement(J,null,l.createElement(Y,{...r}),"loading"!==n&&l.createElement(X,null,"error"===n?l.createElement(W,{...r}):l.createElement($,{...r})))},en=e=>`
0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
`,er=e=>`
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}
`,ea=k("div")`
  display: flex;
  align-items: center;
  background: #fff;
  color: #363636;
  line-height: 1.3;
  will-change: transform;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
  max-width: 350px;
  pointer-events: auto;
  padding: 8px 10px;
  border-radius: 8px;
`,ei=k("div")`
  display: flex;
  justify-content: center;
  margin: 4px 10px;
  color: inherit;
  flex: 1 1 auto;
  white-space: pre-line;
`,el=(e,t)=>{let n=e.includes("top")?1:-1,[r,a]=N()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[en(n),er(n)];return{animation:t?`${w(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${w(a)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},eo=l.memo(({toast:e,position:t,style:n,children:r})=>{let a=e.height?el(e.position||t||"top-center",e.visible):{opacity:0},i=l.createElement(et,{toast:e}),o=l.createElement(ei,{...e.ariaProps},j(e.message,e));return l.createElement(ea,{className:e.className,style:{...a,...n,...e.style}},"function"==typeof r?r({icon:i,message:o}):l.createElement(l.Fragment,null,i,o))});i=l.createElement,p.p=void 0,x=i,b=void 0,y=void 0;var es=({id:e,className:t,style:n,onHeightUpdate:r,children:a})=>{let i=l.useCallback(t=>{if(t){let n=()=>{r(e,t.getBoundingClientRect().height)};n(),new MutationObserver(n).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return l.createElement("div",{ref:i,className:t,style:n},a)},ec=(e,t)=>{let n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:N()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...n?{top:0}:{bottom:0},...r}},eu=g`
  z-index: 9999;
  > * {
    pointer-events: auto;
  }
`,ed=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:a,containerStyle:i,containerClassName:o})=>{let{toasts:s,handlers:c}=Z(n);return l.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...i},className:o,onMouseEnter:c.startPause,onMouseLeave:c.endPause},s.map(n=>{let i=n.position||t,o=ec(i,c.calculateOffset(n,{reverseOrder:e,gutter:r,defaultPosition:t}));return l.createElement(es,{id:n.id,key:n.id,onHeightUpdate:c.updateHeight,className:n.visible?eu:"",style:o},"custom"===n.type?j(n.message,n):a?a(n):l.createElement(eo,{toast:n,position:i}))}))},ep=F},2120:function(e,t,n){"use strict";n.d(t,{Db:function(){return x},$G:function(){return E}});var r,a=n(7294);function i(){if(console&&console.warn){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}n(1739),Object.create(null);var l={};function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&l[t[0]]||("string"==typeof t[0]&&(l[t[0]]=new Date),i.apply(void 0,t))}function s(e,t,n){e.loadNamespaces(t,function(){e.isInitialized?n():e.on("initialized",function t(){setTimeout(function(){e.off("initialized",t)},0),n()})})}var c=n(4942),u=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,d={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},p=function(e){return d[e]};function f(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 h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){(0,c.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var m={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(u,p)}},v=n(5671),g=n(3144),x={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m=h(h({},m),e)}(e.options.react),r=e}},b=(0,a.createContext)(),y=function(){function e(){(0,v.Z)(this,e),this.usedNamespaces={}}return(0,g.Z)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach(function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}(),w=n(3878),k=n(1563),S=n(5267),j=n(1002);function C(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 N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach(function(t){(0,c.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var T=function(e,t){var n=(0,a.useRef)();return(0,a.useEffect)(function(){n.current=t?n.current:e},[e,t]),n.current};function E(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.i18n,l=(0,a.useContext)(b)||{},c=l.i18n,u=l.defaultNS,d=i||c||r;if(d&&!d.reportNamespaces&&(d.reportNamespaces=new y),!d){o("You will need to pass in an i18next instance by using initReactI18next");var p=function(e,t){return"string"==typeof t?t:t&&"object"===(0,j.Z)(t)&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},f=[p,{},!1];return f.t=p,f.i18n={},f.ready=!1,f}d.options.react&&void 0!==d.options.react.wait&&o("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var h=N(N(N({},m),d.options.react),n),v=h.useSuspense,g=h.keyPrefix,x=e||u||d.options&&d.options.defaultNS;x="string"==typeof x?[x]:x||["translation"],d.reportNamespaces.addUsedNamespaces&&d.reportNamespaces.addUsedNamespaces(x);var C=(d.isInitialized||d.initializedStoreOnce)&&x.every(function(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],a=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var l=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return -1===r||2===r};return(!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1)||!t.services.backendConnector.backend||!t.isLanguageChangingTo||!!l(t.isLanguageChangingTo,e))&&!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||l(r,e)&&(!a||l(i,e)))}(e,t,n):(o("i18n.languages were undefined or empty",t.languages),!0)}(e,d,h)});function E(){return d.getFixedT(null,"fallback"===h.nsMode?x:x[0],g)}var D=(t=(0,a.useState)(E),(0,w.Z)(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,l,o=[],s=!0,c=!1;try{for(i=(n=n.call(e)).next;!(s=(r=i.call(n)).done)&&(o.push(r.value),2!==o.length);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw a}}return o}}(t,2)||(0,k.Z)(t,2)||(0,S.Z)()),M=D[0],_=D[1],A=x.join(),L=T(A),I=(0,a.useRef)(!0);(0,a.useEffect)(function(){var e=h.bindI18n,t=h.bindI18nStore;function n(){I.current&&_(E)}return I.current=!0,C||v||s(d,x,function(){I.current&&_(E)}),C&&L&&L!==A&&I.current&&_(E),e&&d&&d.on(e,n),t&&d&&d.store.on(t,n),function(){I.current=!1,e&&d&&e.split(" ").forEach(function(e){return d.off(e,n)}),t&&d&&t.split(" ").forEach(function(e){return d.store.off(e,n)})}},[d,A]);var P=(0,a.useRef)(!0);(0,a.useEffect)(function(){I.current&&!P.current&&_(E),P.current=!1},[d,g]);var O=[M,d,C];if(O.t=M,O.i18n=d,O.ready=C,C||!C&&!v)return O;throw new Promise(function(e){s(d,x,function(){e()})})}},2546:function(e,t,n){"use strict";n.d(t,{tq:function(){return b},o5:function(){return w},oc:function(){return g}});var r=n(7294),a=n(6523);function i(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function l(e,t){let n=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>0>n.indexOf(e)).forEach(n=>{void 0===e[n]?e[n]=t[n]:i(t[n])&&i(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:l(e[n],t[n]):e[n]=t[n]})}function o(e={}){return e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function s(e={}){return e.pagination&&void 0===e.pagination.el}function c(e={}){return e.scrollbar&&void 0===e.scrollbar.el}function u(e=""){let t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),n=[];return t.forEach(e=>{0>n.indexOf(e)&&n.push(e)}),n.join(" ")}let d=["modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control","injectStyles","injectStylesUrls"];function p(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}let f=e=>{e&&!e.destroyed&&e.params.virtual&&(!e.params.virtual||e.params.virtual.enabled)&&(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function h(e,t){return"undefined"==typeof window?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}let m=(0,r.createContext)(null),v=(0,r.createContext)(null),g=()=>(0,r.useContext)(v);function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let b=(0,r.forwardRef)(function(e,t){let{className:n,tag:m="div",wrapperTag:g="div",children:b,onSwiper:y,...w}=void 0===e?{}:e,k=!1,[S,j]=(0,r.useState)("swiper"),[C,N]=(0,r.useState)(null),[T,E]=(0,r.useState)(!1),D=(0,r.useRef)(!1),M=(0,r.useRef)(null),_=(0,r.useRef)(null),A=(0,r.useRef)(null),L=(0,r.useRef)(null),I=(0,r.useRef)(null),P=(0,r.useRef)(null),O=(0,r.useRef)(null),R=(0,r.useRef)(null),{params:F,passedParams:B,rest:z,events:Z}=function(e={},t=!0){let n={on:{}},r={},o={};l(n,a.ZP.defaults),l(n,a.ZP.extendedDefaults),n._emitClasses=!0,n.init=!1;let s={},c=d.map(e=>e.replace(/_/,""));return Object.keys(Object.assign({},e)).forEach(a=>{void 0!==e[a]&&(c.indexOf(a)>=0?i(e[a])?(n[a]={},o[a]={},l(n[a],e[a]),l(o[a],e[a])):(n[a]=e[a],o[a]=e[a]):0===a.search(/on[A-Z]/)&&"function"==typeof e[a]?t?r[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:n.on[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:s[a]=e[a])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===n[e]&&(n[e]={}),!1===n[e]&&delete n[e]}),{params:n,passedParams:o,rest:s,events:r}}(w),{slides:H,slots:U}=function(e){let t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return r.Children.toArray(e).forEach(e=>{if(p(e))t.push(e);else if(e.props&&e.props.slot&&n[e.props.slot])n[e.props.slot].push(e);else if(e.props&&e.props.children){let a=function e(t){let n=[];return r.Children.toArray(t).forEach(t=>{p(t)?n.push(t):t.props&&t.props.children&&e(t.props.children).forEach(e=>n.push(e))}),n}(e.props.children);a.length>0?a.forEach(e=>t.push(e)):n["container-end"].push(e)}else n["container-end"].push(e)}),{slides:t,slots:n}}(b),V=()=>{E(!T)};Object.assign(F.on,{_containerClasses(e,t){j(t)}});let W=()=>{Object.assign(F.on,Z),k=!0;let e={...F};if(delete e.wrapperClass,_.current=new a.ZP(e),_.current.virtual&&_.current.params.virtual.enabled){_.current.virtual.slides=H;let e={cache:!1,slides:H,renderExternal:N,renderExternalUpdate:!1};l(_.current.params.virtual,e),l(_.current.originalParams.virtual,e)}};M.current||W(),_.current&&_.current.on("_beforeBreakpoint",V);let G=()=>{!k&&Z&&_.current&&Object.keys(Z).forEach(e=>{_.current.on(e,Z[e])})},Y=()=>{Z&&_.current&&Object.keys(Z).forEach(e=>{_.current.off(e,Z[e])})};return(0,r.useEffect)(()=>()=>{_.current&&_.current.off("_beforeBreakpoint",V)}),(0,r.useEffect)(()=>{!D.current&&_.current&&(_.current.emitSlidesClasses(),D.current=!0)}),h(()=>{if(t&&(t.current=M.current),M.current)return _.current.destroyed&&W(),function({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:a,swiper:i},l){o(l)&&t&&n&&(i.params.navigation.nextEl=t,i.originalParams.navigation.nextEl=t,i.params.navigation.prevEl=n,i.originalParams.navigation.prevEl=n),s(l)&&r&&(i.params.pagination.el=r,i.originalParams.pagination.el=r),c(l)&&a&&(i.params.scrollbar.el=a,i.originalParams.scrollbar.el=a),i.init(e)}({el:M.current,nextEl:I.current,prevEl:P.current,paginationEl:O.current,scrollbarEl:R.current,swiper:_.current},F),y&&y(_.current),()=>{_.current&&!_.current.destroyed&&_.current.destroy(!0,!1)}},[]),h(()=>{G();let e=function(e,t,n,r,a){let l=[];if(!t)return l;let o=e=>{0>l.indexOf(e)&&l.push(e)};if(n&&r){let e=r.map(a),t=n.map(a);e.join("")!==t.join("")&&o("children"),r.length!==n.length&&o("children")}return d.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(n=>{if(n in e&&n in t){if(i(e[n])&&i(t[n])){let r=Object.keys(e[n]),a=Object.keys(t[n]);r.length!==a.length?o(n):(r.forEach(r=>{e[n][r]!==t[n][r]&&o(n)}),a.forEach(r=>{e[n][r]!==t[n][r]&&o(n)}))}else e[n]!==t[n]&&o(n)}}),l}(B,A.current,H,L.current,e=>e.key);return A.current=B,L.current=H,e.length&&_.current&&!_.current.destroyed&&function({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:a,prevEl:o,scrollbarEl:s,paginationEl:c}){let u,d,p,f,h,m,v,g;let x=r.filter(e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e),{params:b,pagination:y,navigation:w,scrollbar:k,virtual:S,thumbs:j}=e;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&b.thumbs&&!b.thumbs.swiper&&(u=!0),r.includes("controller")&&n.controller&&n.controller.control&&b.controller&&!b.controller.control&&(d=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||c)&&(b.pagination||!1===b.pagination)&&y&&!y.el&&(p=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||s)&&(b.scrollbar||!1===b.scrollbar)&&k&&!k.el&&(f=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||o)&&(n.navigation.nextEl||a)&&(b.navigation||!1===b.navigation)&&w&&!w.prevEl&&!w.nextEl&&(h=!0);let C=t=>{e[t]&&(e[t].destroy(),"navigation"===t?(e.isElement&&(e[t].prevEl.remove(),e[t].nextEl.remove()),b[t].prevEl=void 0,b[t].nextEl=void 0,e[t].prevEl=void 0,e[t].nextEl=void 0):(e.isElement&&e[t].el.remove(),b[t].el=void 0,e[t].el=void 0))};r.includes("loop")&&e.isElement&&(b.loop&&!n.loop?m=!0:!b.loop&&n.loop?v=!0:g=!0),x.forEach(e=>{if(i(b[e])&&i(n[e]))l(b[e],n[e]);else{let t=n[e];(!0===t||!1===t)&&("navigation"===e||"pagination"===e||"scrollbar"===e)?!1===t&&C(e):b[e]=n[e]}}),x.includes("controller")&&!d&&e.controller&&e.controller.control&&b.controller&&b.controller.control&&(e.controller.control=b.controller.control),r.includes("children")&&t&&S&&b.virtual.enabled&&(S.slides=t,S.update(!0)),r.includes("children")&&t&&b.loop&&(g=!0),u&&j.init()&&j.update(!0),d&&(e.controller.control=b.controller.control),p&&(e.isElement&&(!c||"string"==typeof c)&&((c=document.createElement("div")).classList.add("swiper-pagination"),e.el.shadowEl.appendChild(c)),c&&(b.pagination.el=c),y.init(),y.render(),y.update()),f&&(e.isElement&&(!s||"string"==typeof s)&&((s=document.createElement("div")).classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(s)),s&&(b.scrollbar.el=s),k.init(),k.updateSize(),k.setTranslate()),h&&(e.isElement&&(a&&"string"!=typeof a||((a=document.createElement("div")).classList.add("swiper-button-next"),e.el.shadowEl.appendChild(a)),o&&"string"!=typeof o||((o=document.createElement("div")).classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(o))),a&&(b.navigation.nextEl=a),o&&(b.navigation.prevEl=o),w.init(),w.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(m||g)&&e.loopDestroy(),(v||g)&&e.loopCreate(),e.update()}({swiper:_.current,slides:H,passedParams:B,changedParams:e,nextEl:I.current,prevEl:P.current,scrollbarEl:R.current,paginationEl:O.current}),()=>{Y()}}),h(()=>{f(_.current)},[C]),r.createElement(m,x({ref:M,className:u(`${S}${n?` ${n}`:""}`)},z),r.createElement(v.Provider,{value:_.current},U["container-start"],r.createElement(g,{className:function(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}(F.wrapperClass)},U["wrapper-start"],F.virtual?function(e,t,n){if(!n)return null;let a=e=>{let n=e;return e<0?n=t.length+e:n>=t.length&&(n-=t.length),n},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:l,to:o}=n,s=e.params.loop?-t.length:0,c=e.params.loop?2*t.length:t.length,u=[];for(let e=s;e<c;e+=1)e>=l&&e<=o&&u.push(t[a(e)]);return u.map(t=>r.cloneElement(t,{swiper:e,style:i}))}(_.current,H,C):H.map((e,t)=>r.cloneElement(e,{swiper:_.current,swiperSlideIndex:t})),U["wrapper-end"]),o(F)&&r.createElement(r.Fragment,null,r.createElement("div",{ref:P,className:"swiper-button-prev"}),r.createElement("div",{ref:I,className:"swiper-button-next"})),c(F)&&r.createElement("div",{ref:R,className:"swiper-scrollbar"}),s(F)&&r.createElement("div",{ref:O,className:"swiper-pagination"}),U["container-end"]))});function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}b.displayName="Swiper";let w=(0,r.forwardRef)(function(e,t){let{tag:n="div",children:a,className:i="",swiper:l,zoom:o,lazy:s,virtualIndex:c,swiperSlideIndex:d,...p}=void 0===e?{}:e,f=(0,r.useRef)(null),[v,g]=(0,r.useState)("swiper-slide"),[x,b]=(0,r.useState)(!1);function w(e,t,n){t===f.current&&g(n)}h(()=>{if(void 0!==d&&(f.current.swiperSlideIndex=d),t&&(t.current=f.current),f.current&&l){if(l.destroyed){"swiper-slide"!==v&&g("swiper-slide");return}return l.on("_slideClass",w),()=>{l&&l.off("_slideClass",w)}}}),h(()=>{l&&f.current&&!l.destroyed&&g(l.getSlideClasses(f.current))},[l]);let k={isActive:v.indexOf("swiper-slide-active")>=0,isVisible:v.indexOf("swiper-slide-visible")>=0,isPrev:v.indexOf("swiper-slide-prev")>=0,isNext:v.indexOf("swiper-slide-next")>=0},S=()=>"function"==typeof a?a(k):a;return r.createElement(n,y({ref:f,className:u(`${v}${i?` ${i}`:""}`),"data-swiper-slide-index":c,onLoad:()=>{b(!0)}},p),o&&r.createElement(m.Provider,{value:k},r.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof o?o:void 0},S(),s&&!x&&r.createElement("div",{className:"swiper-lazy-preloader"}))),!o&&r.createElement(m.Provider,{value:k},S(),s&&!x&&r.createElement("div",{className:"swiper-lazy-preloader"})))});w.displayName="SwiperSlide"},6523:function(e,t,n){"use strict";let r,a,i,l;function o(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function s(e={},t={}){Object.keys(t).forEach(n=>{void 0===e[n]?e[n]=t[n]:o(t[n])&&o(e[n])&&Object.keys(t[n]).length>0&&s(e[n],t[n])})}n.d(t,{pt:function(){return X},Rv:function(){return J},N1:function(){return W},Gk:function(){return G},W_:function(){return q},tl:function(){return $},ZP:function(){return V}});let c={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function u(){let e="undefined"!=typeof document?document:{};return s(e,c),e}let d={document:c,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function p(){let e="undefined"!=typeof window?window:{};return s(e,d),e}function f(e,t=0){return setTimeout(e,t)}function h(){return Date.now()}function m(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function v(...e){let t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){let a=e[r];if(null!=a&&("undefined"!=typeof window&&void 0!==window.HTMLElement?!(a instanceof HTMLElement):!a||1!==a.nodeType&&11!==a.nodeType)){let e=Object.keys(Object(a)).filter(e=>0>n.indexOf(e));for(let n=0,r=e.length;n<r;n+=1){let r=e[n],i=Object.getOwnPropertyDescriptor(a,r);void 0!==i&&i.enumerable&&(m(t[r])&&m(a[r])?a[r].__swiper__?t[r]=a[r]:v(t[r],a[r]):!m(t[r])&&m(a[r])?(t[r]={},a[r].__swiper__?t[r]=a[r]:v(t[r],a[r])):t[r]=a[r])}}}return t}function g(e,t,n){e.style.setProperty(t,n)}function x({swiper:e,targetPosition:t,side:n}){let r;let a=p(),i=-e.translate,l=null,o=e.params.speed;e.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(e.cssModeFrameID);let s=t>i?"next":"prev",c=(e,t)=>"next"===s&&e>=t||"prev"===s&&e<=t,u=()=>{r=new Date().getTime(),null===l&&(l=r);let s=i+(.5-Math.cos(Math.max(Math.min((r-l)/o,1),0)*Math.PI)/2)*(t-i);if(c(s,t)&&(s=t),e.wrapperEl.scrollTo({[n]:s}),c(s,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:s})}),a.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=a.requestAnimationFrame(u)};u()}function b(e,t=""){return[...e.children].filter(e=>e.matches(t))}function y(e,t=[]){let n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function w(e,t){return p().getComputedStyle(e,null).getPropertyValue(t)}function k(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function S(e,t){let n=[],r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function j(e,t){t&&e.addEventListener("transitionend",function n(r){r.target===e&&(t.call(e,r),e.removeEventListener("transitionend",n))})}function C(e,t,n){let r=p();return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function N(){return r||(r=function(){let e=p(),t=u();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),r}function T({swiper:e,runCallbacks:t,direction:n,step:r}){let{activeIndex:a,previousIndex:i}=e,l=n;if(l||(l=a>i?"next":a<i?"prev":"reset"),e.emit(`transition${r}`),t&&a!==i){if("reset"===l){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),"next"===l?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function E(e){let t=u(),n=p(),r=this.touchEventsData;r.evCache.push(e);let{params:a,touches:i,enabled:l}=this;if(!l||!a.simulateTouch&&"mouse"===e.pointerType||this.animating&&a.preventInteractionOnTransition)return;!this.animating&&a.cssMode&&a.loop&&this.loopFix();let o=e;o.originalEvent&&(o=o.originalEvent);let s=o.target;if("wrapper"===a.touchEventsTarget&&!this.wrapperEl.contains(s)||"which"in o&&3===o.which||"button"in o&&o.button>0||r.isTouched&&r.isMoved)return;let c=!!a.noSwipingClass&&""!==a.noSwipingClass,d=e.composedPath?e.composedPath():e.path;c&&o.target&&o.target.shadowRoot&&d&&(s=d[0]);let f=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,m=!!(o.target&&o.target.shadowRoot);if(a.noSwiping&&(m?function(e,t=this){return function t(n){if(!n||n===u()||n===p())return null;n.assignedSlot&&(n=n.assignedSlot);let r=n.closest(e);return r||n.getRootNode?r||t(n.getRootNode().host):null}(t)}(f,s):s.closest(f))){this.allowClick=!0;return}if(a.swipeHandler&&!s.closest(a.swipeHandler))return;i.currentX=o.pageX,i.currentY=o.pageY;let v=i.currentX,g=i.currentY,x=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,b=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(x&&(v<=b||v>=n.innerWidth-b)){if("prevent"!==x)return;e.preventDefault()}Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=v,i.startY=g,r.touchStartTime=h(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,a.threshold>0&&(r.allowThresholdMove=!1);let y=!0;s.matches(r.focusableElements)&&(y=!1,"SELECT"===s.nodeName&&(r.isTouched=!1)),t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==s&&t.activeElement.blur();let w=y&&this.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||w)&&!s.isContentEditable&&o.preventDefault(),this.params.freeMode&&this.params.freeMode.enabled&&this.freeMode&&this.animating&&!a.cssMode&&this.freeMode.onTouchStart(),this.emit("touchStart",o)}function D(e){let t;let n=u(),r=this.touchEventsData,{params:a,touches:i,rtlTranslate:l,enabled:o}=this;if(!o||!a.simulateTouch&&"mouse"===e.pointerType)return;let s=e;if(s.originalEvent&&(s=s.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&this.emit("touchMoveOpposite",s);return}let c=r.evCache.findIndex(e=>e.pointerId===s.pointerId);c>=0&&(r.evCache[c]=s);let d=r.evCache.length>1?r.evCache[0]:s,p=d.pageX,f=d.pageY;if(s.preventedByNestedSwiper){i.startX=p,i.startY=f;return}if(!this.allowTouchMove){s.target.matches(r.focusableElements)||(this.allowClick=!1),r.isTouched&&(Object.assign(i,{startX:p,startY:f,prevX:this.touches.currentX,prevY:this.touches.currentY,currentX:p,currentY:f}),r.touchStartTime=h());return}if(a.touchReleaseOnEdges&&!a.loop){if(this.isVertical()){if(f<i.startY&&this.translate<=this.maxTranslate()||f>i.startY&&this.translate>=this.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(p<i.startX&&this.translate<=this.maxTranslate()||p>i.startX&&this.translate>=this.minTranslate())return}if(n.activeElement&&s.target===n.activeElement&&s.target.matches(r.focusableElements)){r.isMoved=!0,this.allowClick=!1;return}if(r.allowTouchCallbacks&&this.emit("touchMove",s),s.targetTouches&&s.targetTouches.length>1)return;i.currentX=p,i.currentY=f;let m=i.currentX-i.startX,v=i.currentY-i.startY;if(this.params.threshold&&Math.sqrt(m**2+v**2)<this.params.threshold)return;if(void 0===r.isScrolling){let e;this.isHorizontal()&&i.currentY===i.startY||this.isVertical()&&i.currentX===i.startX?r.isScrolling=!1:m*m+v*v>=25&&(e=180*Math.atan2(Math.abs(v),Math.abs(m))/Math.PI,r.isScrolling=this.isHorizontal()?e>a.touchAngle:90-e>a.touchAngle)}if(r.isScrolling&&this.emit("touchMoveOpposite",s),void 0===r.startMoving&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(r.startMoving=!0),r.isScrolling||this.zoom&&this.params.zoom&&this.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;this.allowClick=!1,!a.cssMode&&s.cancelable&&s.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&s.stopPropagation();let g=this.isHorizontal()?m:v,x=this.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;a.oneWayMovement&&(g=Math.abs(g)*(l?1:-1),x=Math.abs(x)*(l?1:-1)),i.diff=g,g*=a.touchRatio,l&&(g=-g,x=-x);let b=this.touchesDirection;this.swipeDirection=g>0?"prev":"next",this.touchesDirection=x>0?"prev":"next";let y=this.params.loop&&!a.cssMode;if(!r.isMoved){if(y&&this.loopFix({direction:this.swipeDirection}),r.startTranslate=this.getTranslate(),this.setTransition(0),this.animating){let e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});this.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,a.grabCursor&&(!0===this.allowSlideNext||!0===this.allowSlidePrev)&&this.setGrabCursor(!0),this.emit("sliderFirstMove",s)}r.isMoved&&b!==this.touchesDirection&&y&&Math.abs(g)>=1&&(this.loopFix({direction:this.swipeDirection,setTranslate:!0}),t=!0),this.emit("sliderMove",s),r.isMoved=!0,r.currentTranslate=g+r.startTranslate;let w=!0,k=a.resistanceRatio;if(a.touchReleaseOnEdges&&(k=0),g>0?(y&&!t&&r.currentTranslate>(a.centeredSlides?this.minTranslate()-this.size/2:this.minTranslate())&&this.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>this.minTranslate()&&(w=!1,a.resistance&&(r.currentTranslate=this.minTranslate()-1+(-this.minTranslate()+r.startTranslate+g)**k))):g<0&&(y&&!t&&r.currentTranslate<(a.centeredSlides?this.maxTranslate()+this.size/2:this.maxTranslate())&&this.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:this.slides.length-("auto"===a.slidesPerView?this.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),r.currentTranslate<this.maxTranslate()&&(w=!1,a.resistance&&(r.currentTranslate=this.maxTranslate()+1-(this.maxTranslate()-r.startTranslate-g)**k))),w&&(s.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),this.allowSlidePrev||this.allowSlideNext||(r.currentTranslate=r.startTranslate),a.threshold>0){if(Math.abs(g)>a.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,r.currentTranslate=r.startTranslate,i.diff=this.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{r.currentTranslate=r.startTranslate;return}}a.followFinger&&!a.cssMode&&((a.freeMode&&a.freeMode.enabled&&this.freeMode||a.watchSlidesProgress)&&(this.updateActiveIndex(),this.updateSlidesClasses()),this.params.freeMode&&a.freeMode.enabled&&this.freeMode&&this.freeMode.onTouchMove(),this.updateProgress(r.currentTranslate),this.setTranslate(r.currentTranslate))}function M(e){let t;let n=this,r=n.touchEventsData,a=r.evCache.findIndex(t=>t.pointerId===e.pointerId);if(a>=0&&r.evCache.splice(a,1),["pointercancel","pointerout","pointerleave"].includes(e.type))return;let{params:i,touches:l,rtlTranslate:o,slidesGrid:s,enabled:c}=n;if(!c||!i.simulateTouch&&"mouse"===e.pointerType)return;let u=e;if(u.originalEvent&&(u=u.originalEvent),r.allowTouchCallbacks&&n.emit("touchEnd",u),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&i.grabCursor&&n.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}i.grabCursor&&r.isMoved&&r.isTouched&&(!0===n.allowSlideNext||!0===n.allowSlidePrev)&&n.setGrabCursor(!1);let d=h(),p=d-r.touchStartTime;if(n.allowClick){let e=u.path||u.composedPath&&u.composedPath();n.updateClickedSlide(e&&e[0]||u.target),n.emit("tap click",u),p<300&&d-r.lastClickTime<300&&n.emit("doubleTap doubleClick",u)}if(r.lastClickTime=h(),f(()=>{n.destroyed||(n.allowClick=!0)}),!r.isTouched||!r.isMoved||!n.swipeDirection||0===l.diff||r.currentTranslate===r.startTranslate){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}if(r.isTouched=!1,r.isMoved=!1,r.startMoving=!1,t=i.followFinger?o?n.translate:-n.translate:-r.currentTranslate,i.cssMode)return;if(n.params.freeMode&&i.freeMode.enabled){n.freeMode.onTouchEnd({currentPos:t});return}let m=0,v=n.slidesSizesGrid[0];for(let e=0;e<s.length;e+=e<i.slidesPerGroupSkip?1:i.slidesPerGroup){let n=e<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;void 0!==s[e+n]?t>=s[e]&&t<s[e+n]&&(m=e,v=s[e+n]-s[e]):t>=s[e]&&(m=e,v=s[s.length-1]-s[s.length-2])}let g=null,x=null;i.rewind&&(n.isBeginning?x=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1:n.isEnd&&(g=0));let b=(t-s[m])/v,y=m<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(p>i.longSwipesMs){if(!i.longSwipes){n.slideTo(n.activeIndex);return}"next"===n.swipeDirection&&(b>=i.longSwipesRatio?n.slideTo(i.rewind&&n.isEnd?g:m+y):n.slideTo(m)),"prev"===n.swipeDirection&&(b>1-i.longSwipesRatio?n.slideTo(m+y):null!==x&&b<0&&Math.abs(b)>i.longSwipesRatio?n.slideTo(x):n.slideTo(m))}else{if(!i.shortSwipes){n.slideTo(n.activeIndex);return}n.navigation&&(u.target===n.navigation.nextEl||u.target===n.navigation.prevEl)?u.target===n.navigation.nextEl?n.slideTo(m+y):n.slideTo(m):("next"===n.swipeDirection&&n.slideTo(null!==g?g:m+y),"prev"===n.swipeDirection&&n.slideTo(null!==x?x:m))}}function _(){let e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:r,allowSlidePrev:a,snapGrid:i}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();let s=o&&t.loop;"auto"!==t.slidesPerView&&!(t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||s?e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(l),l=setTimeout(()=>{e.autoplay.resume()},500)),e.allowSlidePrev=a,e.allowSlideNext=r,e.params.watchOverflow&&i!==e.snapGrid&&e.checkOverflow()}function A(e){this.enabled&&!this.allowClick&&(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function L(){let{wrapperEl:e,rtlTranslate:t,enabled:n}=this;if(!n)return;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=-e.scrollLeft:this.translate=-e.scrollTop,0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();let r=this.maxTranslate()-this.minTranslate();(0===r?0:(this.translate-this.minTranslate())/r)!==this.progress&&this.updateProgress(t?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)}let I=(e,t)=>{if(!e||e.destroyed||!e.params)return;let n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);t&&t.remove()}};function P(e){I(this,e.target),this.update()}let O=!1;function R(){}let F=(e,t)=>{let n=u(),{params:r,el:a,wrapperEl:i,device:l}=e,o=!!r.nested,s="on"===t?"addEventListener":"removeEventListener";a[s]("pointerdown",e.onTouchStart,{passive:!1}),n[s]("pointermove",e.onTouchMove,{passive:!1,capture:o}),n[s]("pointerup",e.onTouchEnd,{passive:!0}),n[s]("pointercancel",e.onTouchEnd,{passive:!0}),n[s]("pointerout",e.onTouchEnd,{passive:!0}),n[s]("pointerleave",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&a[s]("click",e.onClick,!0),r.cssMode&&i[s]("scroll",e.onScroll),r.updateOnWindowResize?e[t](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",_,!0):e[t]("observerUpdate",_,!0),a[s]("load",e.onLoad,{capture:!0})},B=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var z={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",runCallbacksOnInit:!0,_emitClasses:!1};let Z={eventsEmitter:{on(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||"function"!=typeof t)return r;let a=n?"unshift":"push";return e.split(" ").forEach(e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][a](t)}),r},once(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||"function"!=typeof t)return r;function a(...n){r.off(e,a),a.__emitterProxy&&delete a.__emitterProxy,t.apply(r,n)}return a.__emitterProxy=t,r.on(e,a,n)},onAny(e,t){return!this.eventsListeners||this.destroyed||"function"!=typeof e||0>this.eventsAnyListeners.indexOf(e)&&this.eventsAnyListeners[t?"unshift":"push"](e),this},offAny(e){if(!this.eventsListeners||this.destroyed||!this.eventsAnyListeners)return this;let t=this.eventsAnyListeners.indexOf(e);return t>=0&&this.eventsAnyListeners.splice(t,1),this},off(e,t){let n=this;return n.eventsListeners&&!n.destroyed&&n.eventsListeners&&e.split(" ").forEach(e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((r,a)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(a,1)})}),n},emit(...e){let t,n,r;let a=this;return a.eventsListeners&&!a.destroyed&&a.eventsListeners&&("string"==typeof e[0]||Array.isArray(e[0])?(t=e[0],n=e.slice(1,e.length),r=a):(t=e[0].events,n=e[0].data,r=e[0].context||a),n.unshift(r),(Array.isArray(t)?t:t.split(" ")).forEach(e=>{a.eventsAnyListeners&&a.eventsAnyListeners.length&&a.eventsAnyListeners.forEach(t=>{t.apply(r,[e,...n])}),a.eventsListeners&&a.eventsListeners[e]&&a.eventsListeners[e].forEach(e=>{e.apply(r,n)})})),a}},update:{updateSize:function(){let e,t;let n=this.el;e=void 0!==this.params.width&&null!==this.params.width?this.params.width:n.clientWidth,t=void 0!==this.params.height&&null!==this.params.height?this.params.height:n.clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(w(n,"padding-left")||0,10)-parseInt(w(n,"padding-right")||0,10),t=t-parseInt(w(n,"padding-top")||0,10)-parseInt(w(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){let e;let t=this;function n(e){return t.isHorizontal()?e:({width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"})[e]}function r(e,t){return parseFloat(e.getPropertyValue(n(t))||0)}let a=t.params,{wrapperEl:i,slidesEl:l,size:o,rtlTranslate:s,wrongRTL:c}=t,u=t.virtual&&a.virtual.enabled,d=u?t.virtual.slides.length:t.slides.length,p=b(l,`.${t.params.slideClass}, swiper-slide`),f=u?t.virtual.slides.length:p.length,h=[],m=[],v=[],x=a.slidesOffsetBefore;"function"==typeof x&&(x=a.slidesOffsetBefore.call(t));let y=a.slidesOffsetAfter;"function"==typeof y&&(y=a.slidesOffsetAfter.call(t));let k=t.snapGrid.length,S=t.slidesGrid.length,j=a.spaceBetween,N=-x,T=0,E=0;if(void 0===o)return;"string"==typeof j&&j.indexOf("%")>=0&&(j=parseFloat(j.replace("%",""))/100*o),t.virtualSize=-j,p.forEach(e=>{s?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),a.centeredSlides&&a.cssMode&&(g(i,"--swiper-centered-offset-before",""),g(i,"--swiper-centered-offset-after",""));let D=a.grid&&a.grid.rows>1&&t.grid;D&&t.grid.initSlides(f);let M="auto"===a.slidesPerView&&a.breakpoints&&Object.keys(a.breakpoints).filter(e=>void 0!==a.breakpoints[e].slidesPerView).length>0;for(let i=0;i<f;i+=1){let l;if(e=0,p[i]&&(l=p[i]),D&&t.grid.updateSlide(i,l,f,n),!p[i]||"none"!==w(l,"display")){if("auto"===a.slidesPerView){M&&(p[i].style[n("width")]="");let o=getComputedStyle(l),s=l.style.transform,c=l.style.webkitTransform;if(s&&(l.style.transform="none"),c&&(l.style.webkitTransform="none"),a.roundLengths)e=t.isHorizontal()?C(l,"width",!0):C(l,"height",!0);else{let t=r(o,"width"),n=r(o,"padding-left"),a=r(o,"padding-right"),i=r(o,"margin-left"),s=r(o,"margin-right"),c=o.getPropertyValue("box-sizing");if(c&&"border-box"===c)e=t+i+s;else{let{clientWidth:r,offsetWidth:o}=l;e=t+n+a+i+s+(o-r)}}s&&(l.style.transform=s),c&&(l.style.webkitTransform=c),a.roundLengths&&(e=Math.floor(e))}else e=(o-(a.slidesPerView-1)*j)/a.slidesPerView,a.roundLengths&&(e=Math.floor(e)),p[i]&&(p[i].style[n("width")]=`${e}px`);p[i]&&(p[i].swiperSlideSize=e),v.push(e),a.centeredSlides?(N=N+e/2+T/2+j,0===T&&0!==i&&(N=N-o/2-j),0===i&&(N=N-o/2-j),.001>Math.abs(N)&&(N=0),a.roundLengths&&(N=Math.floor(N)),E%a.slidesPerGroup==0&&h.push(N),m.push(N)):(a.roundLengths&&(N=Math.floor(N)),(E-Math.min(t.params.slidesPerGroupSkip,E))%t.params.slidesPerGroup==0&&h.push(N),m.push(N),N=N+e+j),t.virtualSize+=e+j,T=e,E+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+y,s&&c&&("slide"===a.effect||"coverflow"===a.effect)&&(i.style.width=`${t.virtualSize+a.spaceBetween}px`),a.setWrapperSize&&(i.style[n("width")]=`${t.virtualSize+a.spaceBetween}px`),D&&t.grid.updateWrapperSize(e,h,n),!a.centeredSlides){let e=[];for(let n=0;n<h.length;n+=1){let r=h[n];a.roundLengths&&(r=Math.floor(r)),h[n]<=t.virtualSize-o&&e.push(r)}h=e,Math.floor(t.virtualSize-o)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-o)}if(u&&a.loop){let e=v[0]+j;if(a.slidesPerGroup>1){let n=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/a.slidesPerGroup),r=e*a.slidesPerGroup;for(let e=0;e<n;e+=1)h.push(h[h.length-1]+r)}for(let n=0;n<t.virtual.slidesBefore+t.virtual.slidesAfter;n+=1)1===a.slidesPerGroup&&h.push(h[h.length-1]+e),m.push(m[m.length-1]+e),t.virtualSize+=e}if(0===h.length&&(h=[0]),0!==a.spaceBetween){let e=t.isHorizontal()&&s?"marginLeft":n("marginRight");p.filter((e,t)=>!a.cssMode||!!a.loop||t!==p.length-1).forEach(t=>{t.style[e]=`${j}px`})}if(a.centeredSlides&&a.centeredSlidesBounds){let e=0;v.forEach(t=>{e+=t+(a.spaceBetween?a.spaceBetween:0)});let t=(e-=a.spaceBetween)-o;h=h.map(e=>e<0?-x:e>t?t+y:e)}if(a.centerInsufficientSlides){let e=0;if(v.forEach(t=>{e+=t+(a.spaceBetween?a.spaceBetween:0)}),(e-=a.spaceBetween)<o){let t=(o-e)/2;h.forEach((e,n)=>{h[n]=e-t}),m.forEach((e,n)=>{m[n]=e+t})}}if(Object.assign(t,{slides:p,snapGrid:h,slidesGrid:m,slidesSizesGrid:v}),a.centeredSlides&&a.cssMode&&!a.centeredSlidesBounds){g(i,"--swiper-centered-offset-before",`${-h[0]}px`),g(i,"--swiper-centered-offset-after",`${t.size/2-v[v.length-1]/2}px`);let e=-t.snapGrid[0],n=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(t=>t+e),t.slidesGrid=t.slidesGrid.map(e=>e+n)}if(f!==d&&t.emit("slidesLengthChange"),h.length!==k&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),m.length!==S&&t.emit("slidesGridLengthChange"),a.watchSlidesProgress&&t.updateSlidesOffset(),!u&&!a.cssMode&&("slide"===a.effect||"fade"===a.effect)){let e=`${a.containerModifierClass}backface-hidden`,n=t.el.classList.contains(e);f<=a.maxBackfaceHiddenSlides?n||t.el.classList.add(e):n&&t.el.classList.remove(e)}},updateAutoHeight:function(e){let t;let n=this,r=[],a=n.virtual&&n.params.virtual.enabled,i=0;"number"==typeof e?n.setTransition(e):!0===e&&n.setTransition(n.params.speed);let l=e=>a?n.slides.filter(t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e)[0]:n.slides[e];if("auto"!==n.params.slidesPerView&&n.params.slidesPerView>1){if(n.params.centeredSlides)(n.visibleSlides||[]).forEach(e=>{r.push(e)});else for(t=0;t<Math.ceil(n.params.slidesPerView);t+=1){let e=n.activeIndex+t;if(e>n.slides.length&&!a)break;r.push(l(e))}}else r.push(l(n.activeIndex));for(t=0;t<r.length;t+=1)if(void 0!==r[t]){let e=r[t].offsetHeight;i=e>i?e:i}(i||0===i)&&(n.wrapperEl.style.height=`${i}px`)},updateSlidesOffset:function(){let e=this.slides,t=this.isElement?this.isHorizontal()?this.wrapperEl.offsetLeft:this.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(this.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-t},updateSlidesProgress:function(e=this&&this.translate||0){let t=this.params,{slides:n,rtlTranslate:r,snapGrid:a}=this;if(0===n.length)return;void 0===n[0].swiperSlideOffset&&this.updateSlidesOffset();let i=-e;r&&(i=e),n.forEach(e=>{e.classList.remove(t.slideVisibleClass)}),this.visibleSlidesIndexes=[],this.visibleSlides=[];for(let e=0;e<n.length;e+=1){let l=n[e],o=l.swiperSlideOffset;t.cssMode&&t.centeredSlides&&(o-=n[0].swiperSlideOffset);let s=(i+(t.centeredSlides?this.minTranslate():0)-o)/(l.swiperSlideSize+t.spaceBetween),c=(i-a[0]+(t.centeredSlides?this.minTranslate():0)-o)/(l.swiperSlideSize+t.spaceBetween),u=-(i-o),d=u+this.slidesSizesGrid[e];(u>=0&&u<this.size-1||d>1&&d<=this.size||u<=0&&d>=this.size)&&(this.visibleSlides.push(l),this.visibleSlidesIndexes.push(e),n[e].classList.add(t.slideVisibleClass)),l.progress=r?-s:s,l.originalProgress=r?-c:c}},updateProgress:function(e){let t=this;if(void 0===e){let n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}let n=t.params,r=t.maxTranslate()-t.minTranslate(),{progress:a,isBeginning:i,isEnd:l,progressLoop:o}=t,s=i,c=l;if(0===r)a=0,i=!0,l=!0;else{a=(e-t.minTranslate())/r;let n=1>Math.abs(e-t.minTranslate()),o=1>Math.abs(e-t.maxTranslate());i=n||a<=0,l=o||a>=1,n&&(a=0),o&&(a=1)}if(n.loop){let n=k(t.slides.filter(e=>"0"===e.getAttribute("data-swiper-slide-index"))[0]),r=k(t.slides.filter(e=>1*e.getAttribute("data-swiper-slide-index")==t.slides.length-1)[0]),a=t.slidesGrid[n],i=t.slidesGrid[r],l=t.slidesGrid[t.slidesGrid.length-1],s=Math.abs(e);(o=s>=a?(s-a)/l:(s+l-i)/l)>1&&(o-=1)}Object.assign(t,{progress:a,progressLoop:o,isBeginning:i,isEnd:l}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),i&&!s&&t.emit("reachBeginning toEdge"),l&&!c&&t.emit("reachEnd toEdge"),(s&&!i||c&&!l)&&t.emit("fromEdge"),t.emit("progress",a)},updateSlidesClasses:function(){let e;let{slides:t,params:n,slidesEl:r,activeIndex:a}=this,i=this.virtual&&n.virtual.enabled,l=e=>b(r,`.${n.slideClass}${e}, swiper-slide${e}`)[0];if(t.forEach(e=>{e.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)}),i){if(n.loop){let t=a-this.virtual.slidesBefore;t<0&&(t=this.virtual.slides.length+t),t>=this.virtual.slides.length&&(t-=this.virtual.slides.length),e=l(`[data-swiper-slide-index="${t}"]`)}else e=l(`[data-swiper-slide-index="${a}"]`)}else e=t[a];if(e){e.classList.add(n.slideActiveClass);let r=function(e,t){let n=[];for(;e.nextElementSibling;){let r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(e,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!r&&(r=t[0]),r&&r.classList.add(n.slideNextClass);let a=function(e,t){let n=[];for(;e.previousElementSibling;){let r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(e,`.${n.slideClass}, swiper-slide`)[0];n.loop,a&&a.classList.add(n.slidePrevClass)}this.emitSlidesClasses()},updateActiveIndex:function(e){let t,n;let r=this,a=r.rtlTranslate?r.translate:-r.translate,{snapGrid:i,params:l,activeIndex:o,realIndex:s,snapIndex:c}=r,u=e,d=e=>{let t=e-r.virtual.slidesBefore;return t<0&&(t=r.virtual.slides.length+t),t>=r.virtual.slides.length&&(t-=r.virtual.slides.length),t};if(void 0===u&&(u=function(e){let t;let{slidesGrid:n,params:r}=e,a=e.rtlTranslate?e.translate:-e.translate;for(let e=0;e<n.length;e+=1)void 0!==n[e+1]?a>=n[e]&&a<n[e+1]-(n[e+1]-n[e])/2?t=e:a>=n[e]&&a<n[e+1]&&(t=e+1):a>=n[e]&&(t=e);return r.normalizeSlideIndex&&(t<0||void 0===t)&&(t=0),t}(r)),i.indexOf(a)>=0)t=i.indexOf(a);else{let e=Math.min(l.slidesPerGroupSkip,u);t=e+Math.floor((u-e)/l.slidesPerGroup)}if(t>=i.length&&(t=i.length-1),u===o){t!==c&&(r.snapIndex=t,r.emit("snapIndexChange")),r.params.loop&&r.virtual&&r.params.virtual.enabled&&(r.realIndex=d(u));return}n=r.virtual&&l.virtual.enabled&&l.loop?d(u):r.slides[u]?parseInt(r.slides[u].getAttribute("data-swiper-slide-index")||u,10):u,Object.assign(r,{snapIndex:t,realIndex:n,previousIndex:o,activeIndex:u}),r.emit("activeIndexChange"),r.emit("snapIndexChange"),s!==n&&r.emit("realIndexChange"),(r.initialized||r.params.runCallbacksOnInit)&&r.emit("slideChange")},updateClickedSlide:function(e){let t;let n=this.params,r=e.closest(`.${n.slideClass}, swiper-slide`),a=!1;if(r){for(let e=0;e<this.slides.length;e+=1)if(this.slides[e]===r){a=!0,t=e;break}}if(r&&a)this.clickedSlide=r,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):this.clickedIndex=t;else{this.clickedSlide=void 0,this.clickedIndex=void 0;return}n.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}},translate:{getTranslate:function(e=this.isHorizontal()?"x":"y"){let{params:t,rtlTranslate:n,translate:r,wrapperEl:a}=this;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;let i=function(e,t="x"){let n,r,a;let i=p(),l=function(e){let t;let n=p();return n.getComputedStyle&&(t=n.getComputedStyle(e,null)),!t&&e.currentStyle&&(t=e.currentStyle),t||(t=e.style),t}(e,null);return i.WebKitCSSMatrix?((r=l.transform||l.webkitTransform).split(",").length>6&&(r=r.split(", ").map(e=>e.replace(",",".")).join(", ")),a=new i.WebKitCSSMatrix("none"===r?"":r)):n=(a=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(r=i.WebKitCSSMatrix?a.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(r=i.WebKitCSSMatrix?a.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0}(a,e);return n&&(i=-i),i||0},setTranslate:function(e,t){let{rtlTranslate:n,params:r,wrapperEl:a,progress:i}=this,l=0,o=0;this.isHorizontal()?l=n?-e:e:o=e,r.roundLengths&&(l=Math.floor(l),o=Math.floor(o)),r.cssMode?a[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-l:-o:r.virtualTranslate||(a.style.transform=`translate3d(${l}px, ${o}px, 0px)`),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?l:o;let s=this.maxTranslate()-this.minTranslate();(0===s?0:(e-this.minTranslate())/s)!==i&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,n=!0,r=!0,a){let i;let l=this,{params:o,wrapperEl:s}=l;if(l.animating&&o.preventInteractionOnTransition)return!1;let c=l.minTranslate(),u=l.maxTranslate();if(i=r&&e>c?c:r&&e<u?u:e,l.updateProgress(i),o.cssMode){let e=l.isHorizontal();if(0===t)s[e?"scrollLeft":"scrollTop"]=-i;else{if(!l.support.smoothScroll)return x({swiper:l,targetPosition:-i,side:e?"left":"top"}),!0;s.scrollTo({[e?"left":"top"]:-i,behavior:"smooth"})}return!0}return 0===t?(l.setTransition(0),l.setTranslate(i),n&&(l.emit("beforeTransitionStart",t,a),l.emit("transitionEnd"))):(l.setTransition(t),l.setTranslate(i),n&&(l.emit("beforeTransitionStart",t,a),l.emit("transitionStart")),l.animating||(l.animating=!0,l.onTranslateToWrapperTransitionEnd||(l.onTranslateToWrapperTransitionEnd=function(e){l&&!l.destroyed&&e.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onTranslateToWrapperTransitionEnd),l.onTranslateToWrapperTransitionEnd=null,delete l.onTranslateToWrapperTransitionEnd,n&&l.emit("transitionEnd"))}),l.wrapperEl.addEventListener("transitionend",l.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){this.params.cssMode||(this.wrapperEl.style.transitionDuration=`${e}ms`),this.emit("setTransition",e,t)},transitionStart:function(e=!0,t){let{params:n}=this;n.cssMode||(n.autoHeight&&this.updateAutoHeight(),T({swiper:this,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){let{params:n}=this;this.animating=!1,n.cssMode||(this.setTransition(0),T({swiper:this,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e=0,t=this.params.speed,n=!0,r,a){let i;"string"==typeof e&&(e=parseInt(e,10));let l=this,o=e;o<0&&(o=0);let{params:s,snapGrid:c,slidesGrid:u,previousIndex:d,activeIndex:p,rtlTranslate:f,wrapperEl:h,enabled:m}=l;if(l.animating&&s.preventInteractionOnTransition||!m&&!r&&!a)return!1;let v=Math.min(l.params.slidesPerGroupSkip,o),g=v+Math.floor((o-v)/l.params.slidesPerGroup);g>=c.length&&(g=c.length-1);let b=-c[g];if(s.normalizeSlideIndex)for(let e=0;e<u.length;e+=1){let t=-Math.floor(100*b),n=Math.floor(100*u[e]),r=Math.floor(100*u[e+1]);void 0!==u[e+1]?t>=n&&t<r-(r-n)/2?o=e:t>=n&&t<r&&(o=e+1):t>=n&&(o=e)}if(l.initialized&&o!==p&&(!l.allowSlideNext&&b<l.translate&&b<l.minTranslate()||!l.allowSlidePrev&&b>l.translate&&b>l.maxTranslate()&&(p||0)!==o))return!1;if(o!==(d||0)&&n&&l.emit("beforeSlideChangeStart"),l.updateProgress(b),i=o>p?"next":o<p?"prev":"reset",f&&-b===l.translate||!f&&b===l.translate)return l.updateActiveIndex(o),s.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),"slide"!==s.effect&&l.setTranslate(b),"reset"!==i&&(l.transitionStart(n,i),l.transitionEnd(n,i)),!1;if(s.cssMode){let e=l.isHorizontal(),n=f?b:-b;if(0===t){let t=l.virtual&&l.params.virtual.enabled;t&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),t&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[e?"scrollLeft":"scrollTop"]=n})):h[e?"scrollLeft":"scrollTop"]=n,t&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1})}else{if(!l.support.smoothScroll)return x({swiper:l,targetPosition:n,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}return l.setTransition(t),l.setTranslate(b),l.updateActiveIndex(o),l.updateSlidesClasses(),l.emit("beforeTransitionStart",t,r),l.transitionStart(n,i),0===t?l.transitionEnd(n,i):l.animating||(l.animating=!0,l.onSlideToWrapperTransitionEnd||(l.onSlideToWrapperTransitionEnd=function(e){l&&!l.destroyed&&e.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onSlideToWrapperTransitionEnd),l.onSlideToWrapperTransitionEnd=null,delete l.onSlideToWrapperTransitionEnd,l.transitionEnd(n,i))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t=this.params.speed,n=!0,r){"string"==typeof e&&(e=parseInt(e,10));let a=e;return this.params.loop&&(this.virtual&&this.params.virtual.enabled?a+=this.virtual.slidesBefore:a=k(this.slides.filter(e=>1*e.getAttribute("data-swiper-slide-index")===a)[0])),this.slideTo(a,t,n,r)},slideNext:function(e=this.params.speed,t=!0,n){let{enabled:r,params:a,animating:i}=this;if(!r)return this;let l=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(l=Math.max(this.slidesPerViewDynamic("current",!0),1));let o=this.activeIndex<a.slidesPerGroupSkip?1:l,s=this.virtual&&a.virtual.enabled;if(a.loop){if(i&&!s&&a.loopPreventsSliding)return!1;this.loopFix({direction:"next"}),this._clientLeft=this.wrapperEl.clientLeft}return a.rewind&&this.isEnd?this.slideTo(0,e,t,n):this.slideTo(this.activeIndex+o,e,t,n)},slidePrev:function(e=this.params.speed,t=!0,n){let{params:r,snapGrid:a,slidesGrid:i,rtlTranslate:l,enabled:o,animating:s}=this;if(!o)return this;let c=this.virtual&&r.virtual.enabled;if(r.loop){if(s&&!c&&r.loopPreventsSliding)return!1;this.loopFix({direction:"prev"}),this._clientLeft=this.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let d=u(l?this.translate:-this.translate),p=a.map(e=>u(e)),f=a[p.indexOf(d)-1];if(void 0===f&&r.cssMode){let e;a.forEach((t,n)=>{d>=t&&(e=n)}),void 0!==e&&(f=a[e>0?e-1:e])}let h=0;if(void 0!==f&&((h=i.indexOf(f))<0&&(h=this.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(h=Math.max(h=h-this.slidesPerViewDynamic("previous",!0)+1,0))),r.rewind&&this.isBeginning){let r=this.params.virtual&&this.params.virtual.enabled&&this.virtual?this.virtual.slides.length-1:this.slides.length-1;return this.slideTo(r,e,t,n)}return this.slideTo(h,e,t,n)},slideReset:function(e=this.params.speed,t=!0,n){return this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e=this.params.speed,t=!0,n,r=.5){let a=this.activeIndex,i=Math.min(this.params.slidesPerGroupSkip,a),l=i+Math.floor((a-i)/this.params.slidesPerGroup),o=this.rtlTranslate?this.translate:-this.translate;if(o>=this.snapGrid[l]){let e=this.snapGrid[l];o-e>(this.snapGrid[l+1]-e)*r&&(a+=this.params.slidesPerGroup)}else{let e=this.snapGrid[l-1];o-e<=(this.snapGrid[l]-e)*r&&(a-=this.params.slidesPerGroup)}return a=Math.min(a=Math.max(a,0),this.slidesGrid.length-1),this.slideTo(a,e,t,n)},slideToClickedSlide:function(){let e;let t=this,{params:n,slidesEl:r}=t,a="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,i=t.clickedIndex,l=t.isElement?"swiper-slide":`.${n.slideClass}`;if(n.loop){if(t.animating)return;e=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),n.centeredSlides?i<t.loopedSlides-a/2||i>t.slides.length-t.loopedSlides+a/2?(t.loopFix(),i=k(b(r,`${l}[data-swiper-slide-index="${e}"]`)[0]),f(()=>{t.slideTo(i)})):t.slideTo(i):i>t.slides.length-a?(t.loopFix(),i=k(b(r,`${l}[data-swiper-slide-index="${e}"]`)[0]),f(()=>{t.slideTo(i)})):t.slideTo(i)}else t.slideTo(i)}},loop:{loopCreate:function(e){let{params:t,slidesEl:n}=this;!t.loop||this.virtual&&this.params.virtual.enabled||(b(n,`.${t.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}),this.loopFix({slideRealIndex:e,direction:t.centeredSlides?void 0:"next"}))},loopFix:function({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:a,byController:i,byMousewheel:l}={}){let o=this;if(!o.params.loop)return;o.emit("beforeLoopFix");let{slides:s,allowSlidePrev:c,allowSlideNext:u,slidesEl:d,params:p}=o;if(o.allowSlidePrev=!0,o.allowSlideNext=!0,o.virtual&&p.virtual.enabled){t&&(p.centeredSlides||0!==o.snapIndex?p.centeredSlides&&o.snapIndex<p.slidesPerView?o.slideTo(o.virtual.slides.length+o.snapIndex,0,!1,!0):o.snapIndex===o.snapGrid.length-1&&o.slideTo(o.virtual.slidesBefore,0,!1,!0):o.slideTo(o.virtual.slides.length,0,!1,!0)),o.allowSlidePrev=c,o.allowSlideNext=u,o.emit("loopFix");return}let f="auto"===p.slidesPerView?o.slidesPerViewDynamic():Math.ceil(parseFloat(p.slidesPerView,10)),h=p.loopedSlides||f;h%p.slidesPerGroup!=0&&(h+=p.slidesPerGroup-h%p.slidesPerGroup),o.loopedSlides=h;let m=[],v=[],g=o.activeIndex;void 0===a?a=k(o.slides.filter(e=>e.classList.contains("swiper-slide-active"))[0]):g=a;let x="next"===n||!n,b="prev"===n||!n,y=0,w=0;if(a<h){y=h-a;for(let e=0;e<h-a;e+=1){let t=e-Math.floor(e/s.length)*s.length;m.push(s.length-t-1)}}else if(a>o.slides.length-2*h){w=a-(o.slides.length-2*h);for(let e=0;e<w;e+=1){let t=e-Math.floor(e/s.length)*s.length;v.push(t)}}if(b&&m.forEach(e=>{d.prepend(o.slides[e])}),x&&v.forEach(e=>{d.append(o.slides[e])}),o.recalcSlides(),p.watchSlidesProgress&&o.updateSlidesOffset(),t){if(m.length>0&&b){if(void 0===e){let e=o.slidesGrid[g],t=o.slidesGrid[g+y]-e;l?o.setTranslate(o.translate-t):(o.slideTo(g+y,0,!1,!0),r&&(o.touches[o.isHorizontal()?"startX":"startY"]+=t))}else r&&o.slideToLoop(e,0,!1,!0)}else if(v.length>0&&x){if(void 0===e){let e=o.slidesGrid[g],t=o.slidesGrid[g-w]-e;l?o.setTranslate(o.translate-t):(o.slideTo(g-w,0,!1,!0),r&&(o.touches[o.isHorizontal()?"startX":"startY"]+=t))}else o.slideToLoop(e,0,!1,!0)}}if(o.allowSlidePrev=c,o.allowSlideNext=u,o.controller&&o.controller.control&&!i){let t={slideRealIndex:e,slideTo:!1,direction:n,setTranslate:r,activeSlideIndex:a,byController:!0};Array.isArray(o.controller.control)?o.controller.control.forEach(e=>{e.params.loop&&e.loopFix(t)}):o.controller.control instanceof o.constructor&&o.controller.control.params.loop&&o.controller.control.loopFix(t)}o.emit("loopFix")},loopDestroy:function(){let{slides:e,params:t,slidesEl:n}=this;if(!t.loop||this.virtual&&this.params.virtual.enabled)return;this.recalcSlides();let r=[];e.forEach(e=>{r[void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex]=e}),e.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),r.forEach(e=>{n.append(e)}),this.recalcSlides(),this.slideTo(this.realIndex,0)}},grabCursor:{setGrabCursor:function(e){if(!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked||this.params.cssMode)return;let t="container"===this.params.touchEventsTarget?this.el:this.wrapperEl;t.style.cursor="move",t.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this["container"===this.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:{attachEvents:function(){let e=u(),{params:t}=this;this.onTouchStart=E.bind(this),this.onTouchMove=D.bind(this),this.onTouchEnd=M.bind(this),t.cssMode&&(this.onScroll=L.bind(this)),this.onClick=A.bind(this),this.onLoad=P.bind(this),O||(e.addEventListener("touchstart",R),O=!0),F(this,"on")},detachEvents:function(){F(this,"off")}},breakpoints:{setBreakpoint:function(){let e=this,{realIndex:t,initialized:n,params:r,el:a}=e,i=r.breakpoints;if(!i||i&&0===Object.keys(i).length)return;let l=e.getBreakpoint(i,e.params.breakpointsBase,e.el);if(!l||e.currentBreakpoint===l)return;let o=(l in i?i[l]:void 0)||e.originalParams,s=B(e,r),c=B(e,o),u=r.enabled;s&&!c?(a.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!s&&c&&(a.classList.add(`${r.containerModifierClass}grid`),(o.grid.fill&&"column"===o.grid.fill||!o.grid.fill&&"column"===r.grid.fill)&&a.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(t=>{let n=r[t]&&r[t].enabled,a=o[t]&&o[t].enabled;n&&!a&&e[t].disable(),!n&&a&&e[t].enable()});let d=o.direction&&o.direction!==r.direction,p=r.loop&&(o.slidesPerView!==r.slidesPerView||d);d&&n&&e.changeDirection(),v(e.params,o);let f=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),u&&!f?e.disable():!u&&f&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",o),p&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",o)},getBreakpoint:function(e,t="window",n){if(!e||"container"===t&&!n)return;let r=!1,a=p(),i="window"===t?a.innerHeight:n.clientHeight,l=Object.keys(e).map(e=>"string"==typeof e&&0===e.indexOf("@")?{value:i*parseFloat(e.substr(1)),point:e}:{value:e,point:e});l.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<l.length;e+=1){let{point:i,value:o}=l[e];"window"===t?a.matchMedia(`(min-width: ${o}px)`).matches&&(r=i):o<=n.clientWidth&&(r=i)}return r||"max"}},checkOverflow:{checkOverflow:function(){let{isLocked:e,params:t}=this,{slidesOffsetBefore:n}=t;if(n){let e=this.slides.length-1,t=this.slidesGrid[e]+this.slidesSizesGrid[e]+2*n;this.isLocked=this.size>t}else this.isLocked=1===this.snapGrid.length;!0===t.allowSlideNext&&(this.allowSlideNext=!this.isLocked),!0===t.allowSlidePrev&&(this.allowSlidePrev=!this.isLocked),e&&e!==this.isLocked&&(this.isEnd=!1),e!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock")}},classes:{addClasses:function(){let{classNames:e,params:t,rtl:n,el:r,device:a}=this,i=function(e,t){let n=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(r=>{e[r]&&n.push(t+r)}):"string"==typeof e&&n.push(t+e)}),n}(["initialized",t.direction,{"free-mode":this.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:n},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&"column"===t.grid.fill},{android:a.android},{ios:a.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...i),r.classList.add(...e),this.emitContainerClasses()},removeClasses:function(){let{el:e,classNames:t}=this;e.classList.remove(...t),this.emitContainerClasses()}}},H={};class U{constructor(...e){let t,n;1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?n=e[0]:[t,n]=e,n||(n={}),n=v({},n),t&&!n.el&&(n.el=t);let r=u();if(n.el&&"string"==typeof n.el&&r.querySelectorAll(n.el).length>1){let e=[];return r.querySelectorAll(n.el).forEach(t=>{let r=v({},n,{el:t});e.push(new U(r))}),e}let l=this;l.__swiper__=!0,l.support=N(),l.device=function(e={}){return a||(a=function({userAgent:e}={}){let t=N(),n=p(),r=n.navigator.platform,a=e||n.navigator.userAgent,i={ios:!1,android:!1},l=n.screen.width,o=n.screen.height,s=a.match(/(Android);?[\s\/]+([\d.]+)?/),c=a.match(/(iPad).*OS\s([\d_]+)/),u=a.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="MacIntel"===r;return!c&&f&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${l}x${o}`)>=0&&((c=a.match(/(Version)\/([\d.]+)/))||(c=[0,1,"13_0_0"]),f=!1),s&&"Win32"!==r&&(i.os="android",i.android=!0),(c||d||u)&&(i.os="ios",i.ios=!0),i}(e)),a}({userAgent:n.userAgent}),l.browser=(i||(i=function(){let e=p(),t=!1;function n(){let t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&0>t.indexOf("chrome")&&0>t.indexOf("android")}if(n()){let n=String(e.navigator.userAgent);if(n.includes("Version/")){let[e,r]=n.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));t=e<16||16===e&&r<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),i),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],n.modules&&Array.isArray(n.modules)&&l.modules.push(...n.modules);let o={};l.modules.forEach(e=>{var t;e({params:n,swiper:l,extendParams:(t=n,function(e={}){let n=Object.keys(e)[0],r=e[n];if("object"!=typeof r||null===r||(["navigation","pagination","scrollbar"].indexOf(n)>=0&&!0===t[n]&&(t[n]={auto:!0}),!(n in t&&"enabled"in r))){v(o,e);return}!0===t[n]&&(t[n]={enabled:!0}),"object"!=typeof t[n]||"enabled"in t[n]||(t[n].enabled=!0),t[n]||(t[n]={enabled:!1}),v(o,e)}),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});let s=v({},z,o);return l.params=v({},s,H,n),l.originalParams=v({},l.params),l.passedParams=v({},n),l.params&&l.params.on&&Object.keys(l.params.on).forEach(e=>{l.on(e,l.params.on[e])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===l.params.direction,isVertical:()=>"vertical"===l.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:h(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}recalcSlides(){let{slidesEl:e,params:t}=this;this.slides=b(e,`.${t.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);let n=this.minTranslate(),r=(this.maxTranslate()-n)*e+n;this.translateTo(r,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){let t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=[];e.slides.forEach(n=>{let r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){let{params:n,slides:r,slidesGrid:a,slidesSizesGrid:i,size:l,activeIndex:o}=this,s=1;if(n.centeredSlides){let e,t=r[o].swiperSlideSize;for(let n=o+1;n<r.length;n+=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,s+=1,t>l&&(e=!0));for(let n=o-1;n>=0;n-=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,s+=1,t>l&&(e=!0))}else if("current"===e)for(let e=o+1;e<r.length;e+=1)(t?a[e]+i[e]-a[o]<l:a[e]-a[o]<l)&&(s+=1);else for(let e=o-1;e>=0;e-=1)a[o]-a[e]<l&&(s+=1);return s}update(){let e=this;if(!e||e.destroyed)return;let{snapGrid:t,params:n}=e;function r(){let t=Math.min(Math.max(e.rtlTranslate?-1*e.translate:e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(t),e.updateActiveIndex(),e.updateSlidesClasses()}n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&I(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode&&e.params.freeMode.enabled?(r(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||r(),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){let n=this.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e||(this.el.classList.remove(`${this.params.containerModifierClass}${n}`),this.el.classList.add(`${this.params.containerModifierClass}${e}`),this.emitContainerClasses(),this.params.direction=e,this.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),this.emit("changeDirection"),t&&this.update()),this}changeLanguageDirection(e){(!this.rtl||"rtl"!==e)&&(this.rtl||"ltr"!==e)&&(this.rtl="rtl"===e,this.rtlTranslate="horizontal"===this.params.direction&&this.rtl,this.rtl?(this.el.classList.add(`${this.params.containerModifierClass}rtl`),this.el.dir="rtl"):(this.el.classList.remove(`${this.params.containerModifierClass}rtl`),this.el.dir="ltr"),this.update())}mount(e){let t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.shadowEl&&(t.isElement=!0);let r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`,a=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(r()):b(n,r())[0];return!a&&t.params.createElements&&(a=y("div",t.params.wrapperClass),n.append(a),b(n,`.${t.params.slideClass}`).forEach(e=>{a.append(e)})),Object.assign(t,{el:n,wrapperEl:a,slidesEl:t.isElement?n:a,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===w(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===w(n,"direction")),wrongRTL:"-webkit-box"===w(a,"display")}),!0}init(e){let t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(e=>{e.complete?I(t,e):e.addEventListener("load",e=>{I(t,e.target)})}),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e=!0,t=!0){let n=this,{params:r,el:a,wrapperEl:i,slides:l}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),a.removeAttribute("style"),i.removeAttribute("style"),l&&l.length&&l.forEach(e=>{e.classList.remove(r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.el.swiper=null,function(e){Object.keys(e).forEach(t=>{try{e[t]=null}catch(e){}try{delete e[t]}catch(e){}})}(n)),n.destroyed=!0),null}static extendDefaults(e){v(H,e)}static get extendedDefaults(){return H}static get defaults(){return z}static installModule(e){U.prototype.__modules__||(U.prototype.__modules__=[]);let t=U.prototype.__modules__;"function"==typeof e&&0>t.indexOf(e)&&t.push(e)}static use(e){return Array.isArray(e)?e.forEach(e=>U.installModule(e)):U.installModule(e),U}}Object.keys(Z).forEach(e=>{Object.keys(Z[e]).forEach(t=>{U.prototype[t]=Z[e][t]})}),U.use([function({swiper:e,on:t,emit:n}){let r=p(),a=null,i=null,l=()=>{e&&!e.destroyed&&e.initialized&&(n("beforeResize"),n("resize"))},o=()=>{e&&!e.destroyed&&e.initialized&&(a=new ResizeObserver(t=>{i=r.requestAnimationFrame(()=>{let{width:n,height:r}=e,a=n,i=r;t.forEach(({contentBoxSize:t,contentRect:n,target:r})=>{r&&r!==e.el||(a=n?n.width:(t[0]||t).inlineSize,i=n?n.height:(t[0]||t).blockSize)}),(a!==n||i!==r)&&l()})})).observe(e.el)},s=()=>{i&&r.cancelAnimationFrame(i),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null)},c=()=>{e&&!e.destroyed&&e.initialized&&n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&void 0!==r.ResizeObserver){o();return}r.addEventListener("resize",l),r.addEventListener("orientationchange",c)}),t("destroy",()=>{s(),r.removeEventListener("resize",l),r.removeEventListener("orientationchange",c)})},function({swiper:e,extendParams:t,on:n,emit:r}){let a=[],i=p(),l=(e,t={})=>{let n=new(i.MutationObserver||i.WebkitMutationObserver)(e=>{if(1===e.length){r("observerUpdate",e[0]);return}let t=function(){r("observerUpdate",e[0])};i.requestAnimationFrame?i.requestAnimationFrame(t):i.setTimeout(t,0)});n.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),a.push(n)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(e.params.observer){if(e.params.observeParents){let t=S(e.el);for(let e=0;e<t.length;e+=1)l(t[e])}l(e.el,{childList:e.params.observeSlideChildren}),l(e.wrapperEl,{attributes:!1})}}),n("destroy",()=>{a.forEach(e=>{e.disconnect()}),a.splice(0,a.length)})}]);var V=U;function W({swiper:e,extendParams:t,on:n,emit:r}){let a=u(),i=p();function l(t){if(!e.enabled)return;let{rtlTranslate:n}=e,l=t;l.originalEvent&&(l=l.originalEvent);let o=l.keyCode||l.charCode,s=e.params.keyboard.pageUpDown,c=s&&33===o,d=s&&34===o,f=37===o,h=39===o,m=38===o,v=40===o;if(!e.allowSlideNext&&(e.isHorizontal()&&h||e.isVertical()&&v||d)||!e.allowSlidePrev&&(e.isHorizontal()&&f||e.isVertical()&&m||c))return!1;if(!l.shiftKey&&!l.altKey&&!l.ctrlKey&&!l.metaKey&&(!a.activeElement||!a.activeElement.nodeName||"input"!==a.activeElement.nodeName.toLowerCase()&&"textarea"!==a.activeElement.nodeName.toLowerCase())){if(e.params.keyboard.onlyInViewport&&(c||d||f||h||m||v)){let t=!1;if(S(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&0===S(e.el,`.${e.params.slideActiveClass}`).length)return;let r=e.el,a=r.clientWidth,l=r.clientHeight,o=i.innerWidth,s=i.innerHeight,c=function(e){let t=p(),n=u(),r=e.getBoundingClientRect(),a=n.body,i=e.clientTop||a.clientTop||0,l=e.clientLeft||a.clientLeft||0,o=e===t?t.scrollY:e.scrollTop,s=e===t?t.scrollX:e.scrollLeft;return{top:r.top+o-i,left:r.left+s-l}}(r);n&&(c.left-=r.scrollLeft);let d=[[c.left,c.top],[c.left+a,c.top],[c.left,c.top+l],[c.left+a,c.top+l]];for(let e=0;e<d.length;e+=1){let n=d[e];if(n[0]>=0&&n[0]<=o&&n[1]>=0&&n[1]<=s){if(0===n[0]&&0===n[1])continue;t=!0}}if(!t)return}e.isHorizontal()?((c||d||f||h)&&(l.preventDefault?l.preventDefault():l.returnValue=!1),((d||h)&&!n||(c||f)&&n)&&e.slideNext(),((c||f)&&!n||(d||h)&&n)&&e.slidePrev()):((c||d||m||v)&&(l.preventDefault?l.preventDefault():l.returnValue=!1),(d||v)&&e.slideNext(),(c||m)&&e.slidePrev()),r("keyPress",o)}}function o(){e.keyboard.enabled||(a.addEventListener("keydown",l),e.keyboard.enabled=!0)}function s(){e.keyboard.enabled&&(a.removeEventListener("keydown",l),e.keyboard.enabled=!1)}e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),n("init",()=>{e.params.keyboard.enabled&&o()}),n("destroy",()=>{e.keyboard.enabled&&s()}),Object.assign(e.keyboard,{enable:o,disable:s})}function G({swiper:e,extendParams:t,on:n,emit:r}){let a,i;let l=p();t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}}),e.mousewheel={enabled:!1};let o=h(),s=[];function c(){e.enabled&&(e.mouseEntered=!0)}function u(){e.enabled&&(e.mouseEntered=!1)}function d(t){return!(e.params.mousewheel.thresholdDelta&&t.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&h()-o<e.params.mousewheel.thresholdTime)&&(!!(t.delta>=6&&h()-o<60)||(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),r("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),r("scroll",t.raw)),o=new l.Date().getTime(),!1))}function m(t){var n;let l,o,c,u,p=t;if(!e.enabled)return;let m=e.params.mousewheel;e.params.cssMode&&p.preventDefault();let v=e.el;"container"!==e.params.mousewheel.eventsTarget&&(v=document.querySelector(e.params.mousewheel.eventsTarget));let g=v&&v.contains(p.target);if(!e.mouseEntered&&!g&&!m.releaseOnEdges)return!0;p.originalEvent&&(p=p.originalEvent);let x=0,b=e.rtlTranslate?-1:1,y=(l=0,o=0,c=0,u=0,"detail"in(n=p)&&(o=n.detail),"wheelDelta"in n&&(o=-n.wheelDelta/120),"wheelDeltaY"in n&&(o=-n.wheelDeltaY/120),"wheelDeltaX"in n&&(l=-n.wheelDeltaX/120),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(l=o,o=0),c=10*l,u=10*o,"deltaY"in n&&(u=n.deltaY),"deltaX"in n&&(c=n.deltaX),n.shiftKey&&!c&&(c=u,u=0),(c||u)&&n.deltaMode&&(1===n.deltaMode?(c*=40,u*=40):(c*=800,u*=800)),c&&!l&&(l=c<1?-1:1),u&&!o&&(o=u<1?-1:1),{spinX:l,spinY:o,pixelX:c,pixelY:u});if(m.forceToAxis){if(e.isHorizontal()){if(!(Math.abs(y.pixelX)>Math.abs(y.pixelY)))return!0;x=-y.pixelX*b}else{if(!(Math.abs(y.pixelY)>Math.abs(y.pixelX)))return!0;x=-y.pixelY}}else x=Math.abs(y.pixelX)>Math.abs(y.pixelY)?-y.pixelX*b:-y.pixelY;if(0===x)return!0;m.invert&&(x=-x);let w=e.getTranslate()+x*m.sensitivity;if(w>=e.minTranslate()&&(w=e.minTranslate()),w<=e.maxTranslate()&&(w=e.maxTranslate()),(e.params.loop||w!==e.minTranslate()&&w!==e.maxTranslate())&&e.params.nested&&p.stopPropagation(),e.params.freeMode&&e.params.freeMode.enabled){let t={time:h(),delta:Math.abs(x),direction:Math.sign(x)},n=i&&t.time<i.time+500&&t.delta<=i.delta&&t.direction===i.direction;if(!n){i=void 0;let l=e.getTranslate()+x*m.sensitivity,o=e.isBeginning,c=e.isEnd;if(l>=e.minTranslate()&&(l=e.minTranslate()),l<=e.maxTranslate()&&(l=e.maxTranslate()),e.setTransition(0),e.setTranslate(l),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!o&&e.isBeginning||!c&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:t.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(a),a=void 0,s.length>=15&&s.shift();let n=s.length?s[s.length-1]:void 0,r=s[0];if(s.push(t),n&&(t.delta>n.delta||t.direction!==n.direction))s.splice(0);else if(s.length>=15&&t.time-r.time<500&&r.delta-t.delta>=1&&t.delta<=6){let n=x>0?.8:.2;i=t,s.splice(0),a=f(()=>{e.slideToClosest(e.params.speed,!0,void 0,n)},0)}a||(a=f(()=>{i=t,s.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(n||r("scroll",p),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),l===e.minTranslate()||l===e.maxTranslate())return!0}}else{let n={time:h(),delta:Math.abs(x),direction:Math.sign(x),raw:t};s.length>=2&&s.shift();let r=s.length?s[s.length-1]:void 0;if(s.push(n),r?(n.direction!==r.direction||n.delta>r.delta||n.time>r.time+150)&&d(n):d(n),function(t){let n=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&n.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&n.releaseOnEdges)return!0;return!1}(n))return!0}return p.preventDefault?p.preventDefault():p.returnValue=!1,!1}function v(t){let n=e.el;"container"!==e.params.mousewheel.eventsTarget&&(n=document.querySelector(e.params.mousewheel.eventsTarget)),n[t]("mouseenter",c),n[t]("mouseleave",u),n[t]("wheel",m)}function g(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",m),!0):!e.mousewheel.enabled&&(v("addEventListener"),e.mousewheel.enabled=!0,!0)}function x(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,m),!0):!!e.mousewheel.enabled&&(v("removeEventListener"),e.mousewheel.enabled=!1,!0)}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&x(),e.params.mousewheel.enabled&&g()}),n("destroy",()=>{e.params.cssMode&&g(),e.mousewheel.enabled&&x()}),Object.assign(e.mousewheel,{enable:g,disable:x})}function Y(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(a=>{if(!n[a]&&!0===n.auto){let i=b(e.el,`.${r[a]}`)[0];i||((i=y("div",r[a])).className=r[a],e.el.append(i)),n[a]=i,t[a]=i}}),n}function q({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};let a=e=>(Array.isArray(e)||(e=[e].filter(e=>!!e)),e);function i(t){let n;return t&&"string"==typeof t&&e.isElement&&(n=e.el.shadowRoot.querySelector(t))?n:(t&&("string"==typeof t&&(n=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&n.length>1&&1===e.el.querySelectorAll(t).length&&(n=e.el.querySelector(t))),t&&!n)?t:n}function l(t,n){let r=e.params.navigation;(t=a(t)).forEach(t=>{t&&(t.classList[n?"add":"remove"](...r.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=n),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](r.lockClass))})}function o(){let{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop){l(n,!1),l(t,!1);return}l(n,e.isBeginning&&!e.params.rewind),l(t,e.isEnd&&!e.params.rewind)}function s(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function c(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function u(){let t=e.params.navigation;if(e.params.navigation=Y(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(t.nextEl||t.prevEl))return;let n=i(t.nextEl),r=i(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:r}),n=a(n),r=a(r);let l=(n,r)=>{n&&n.addEventListener("click","next"===r?c:s),!e.enabled&&n&&n.classList.add(...t.lockClass.split(" "))};n.forEach(e=>l(e,"next")),r.forEach(e=>l(e,"prev"))}function d(){let{nextEl:t,prevEl:n}=e.navigation;t=a(t),n=a(n);let r=(t,n)=>{t.removeEventListener("click","next"===n?c:s),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(e=>r(e,"next")),n.forEach(e=>r(e,"prev"))}n("init",()=>{!1===e.params.navigation.enabled?p():(u(),o())}),n("toEdge fromEdge lock unlock",()=>{o()}),n("destroy",()=>{d()}),n("enable disable",()=>{let{nextEl:t,prevEl:n}=e.navigation;[...t=a(t),...n=a(n)].filter(e=>!!e).forEach(t=>t.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),n("click",(t,n)=>{let{nextEl:i,prevEl:l}=e.navigation;i=a(i),l=a(l);let o=n.target;if(e.params.navigation.hideOnClick&&!l.includes(o)&&!i.includes(o)){let t;if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===o||e.pagination.el.contains(o)))return;i.length?t=i[0].classList.contains(e.params.navigation.hiddenClass):l.length&&(t=l[0].classList.contains(e.params.navigation.hiddenClass)),!0===t?r("navigationShow"):r("navigationHide"),[...i,...l].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});let p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),u(),o()},disable:p,update:o,init:u,destroy:d})}function K(e=""){return`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function $({swiper:e,extendParams:t,on:n,emit:r}){let a;let i="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let l=0,o=e=>(Array.isArray(e)||(e=[e].filter(e=>!!e)),e);function s(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function c(t,n){let{bulletActiveClass:r}=e.params.pagination;t&&(t=t[`${"prev"===n?"previous":"next"}ElementSibling`])&&(t.classList.add(`${r}-${n}`),(t=t[`${"prev"===n?"previous":"next"}ElementSibling`])&&t.classList.add(`${r}-${n}-${n}`))}function u(t){let n=t.target.closest(K(e.params.pagination.bulletClass));if(!n)return;t.preventDefault();let r=k(n)*e.params.slidesPerGroup;e.params.loop?e.slideToLoop(r):e.slideTo(r)}function d(){let t;let n=e.rtl,i=e.params.pagination;if(s())return;let u=e.pagination.el;u=o(u);let d=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,p=e.params.loop?Math.ceil(d/e.params.slidesPerGroup):e.snapGrid.length;if(t=e.params.loop?e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex:void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===i.type&&e.pagination.bullets&&e.pagination.bullets.length>0){let r,o,s;let d=e.pagination.bullets;if(i.dynamicBullets&&(a=C(d[0],e.isHorizontal()?"width":"height",!0),u.forEach(t=>{t.style[e.isHorizontal()?"width":"height"]=`${a*(i.dynamicMainBullets+4)}px`}),i.dynamicMainBullets>1&&void 0!==e.previousIndex&&((l+=t-(e.previousIndex||0))>i.dynamicMainBullets-1?l=i.dynamicMainBullets-1:l<0&&(l=0)),s=((o=(r=Math.max(t-l,0))+(Math.min(d.length,i.dynamicMainBullets)-1))+r)/2),d.forEach(e=>{e.classList.remove(...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${i.bulletActiveClass}${e}`))}),u.length>1)d.forEach(e=>{let n=k(e);n===t&&e.classList.add(i.bulletActiveClass),i.dynamicBullets&&(n>=r&&n<=o&&e.classList.add(`${i.bulletActiveClass}-main`),n===r&&c(e,"prev"),n===o&&c(e,"next"))});else{let e=d[t];if(e&&e.classList.add(i.bulletActiveClass),i.dynamicBullets){let e=d[r],t=d[o];for(let e=r;e<=o;e+=1)d[e].classList.add(`${i.bulletActiveClass}-main`);c(e,"prev"),c(t,"next")}}if(i.dynamicBullets){let t=Math.min(d.length,i.dynamicMainBullets+4),r=(a*t-a)/2-s*a,l=n?"right":"left";d.forEach(t=>{t.style[e.isHorizontal()?l:"top"]=`${r}px`})}}u.forEach((n,a)=>{if("fraction"===i.type&&(n.querySelectorAll(K(i.currentClass)).forEach(e=>{e.textContent=i.formatFractionCurrent(t+1)}),n.querySelectorAll(K(i.totalClass)).forEach(e=>{e.textContent=i.formatFractionTotal(p)})),"progressbar"===i.type){let r;r=i.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";let a=(t+1)/p,l=1,o=1;"horizontal"===r?l=a:o=a,n.querySelectorAll(K(i.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${l}) scaleY(${o})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===i.type&&i.renderCustom?(n.innerHTML=i.renderCustom(e,t+1,p),0===a&&r("paginationRender",n)):(0===a&&r("paginationRender",n),r("paginationUpdate",n)),e.params.watchOverflow&&e.enabled&&n.classList[e.isLocked?"add":"remove"](i.lockClass)})}function p(){let t=e.params.pagination;if(s())return;let n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,a=e.pagination.el;a=o(a);let i="";if("bullets"===t.type){let r=e.params.loop?Math.ceil(n/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&r>n&&(r=n);for(let n=0;n<r;n+=1)t.renderBullet?i+=t.renderBullet.call(e,n,t.bulletClass):i+=`<${t.bulletElement} class="${t.bulletClass}"></${t.bulletElement}>`}"fraction"===t.type&&(i=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),"progressbar"===t.type&&(i=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),a.forEach(n=>{"custom"!==t.type&&(n.innerHTML=i||""),"bullets"===t.type&&(e.pagination.bullets=[...n.querySelectorAll(K(t.bulletClass))])}),"custom"!==t.type&&r("paginationRender",a[0])}function f(){let t;e.params.pagination=Y(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});let n=e.params.pagination;n.el&&("string"==typeof n.el&&e.isElement&&(t=e.el.shadowRoot.querySelector(n.el)),t||"string"!=typeof n.el||(t=[...document.querySelectorAll(n.el)]),t||(t=n.el),t&&0!==t.length&&(e.params.uniqueNavElements&&"string"==typeof n.el&&Array.isArray(t)&&t.length>1&&(t=[...e.el.querySelectorAll(n.el)]).length>1&&(t=t.filter(t=>S(t,".swiper")[0]===e.el)[0]),Array.isArray(t)&&1===t.length&&(t=t[0]),Object.assign(e.pagination,{el:t}),(t=o(t)).forEach(t=>{"bullets"===n.type&&n.clickable&&t.classList.add(n.clickableClass),t.classList.add(n.modifierClass+n.type),t.classList.add(e.isHorizontal()?n.horizontalClass:n.verticalClass),"bullets"===n.type&&n.dynamicBullets&&(t.classList.add(`${n.modifierClass}${n.type}-dynamic`),l=0,n.dynamicMainBullets<1&&(n.dynamicMainBullets=1)),"progressbar"===n.type&&n.progressbarOpposite&&t.classList.add(n.progressbarOppositeClass),n.clickable&&t.addEventListener("click",u),e.enabled||t.classList.add(n.lockClass)})))}function h(){let t=e.params.pagination;if(s())return;let n=e.pagination.el;n&&(n=o(n)).forEach(n=>{n.classList.remove(t.hiddenClass),n.classList.remove(t.modifierClass+t.type),n.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&n.removeEventListener("click",u)}),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(t.bulletActiveClass))}n("init",()=>{!1===e.params.pagination.enabled?m():(f(),p(),d())}),n("activeIndexChange",()=>{void 0===e.snapIndex&&d()}),n("snapIndexChange",()=>{d()}),n("snapGridLengthChange",()=>{p(),d()}),n("destroy",()=>{h()}),n("enable disable",()=>{let{el:t}=e.pagination;t&&(t=o(t)).forEach(t=>t.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass))}),n("lock unlock",()=>{d()}),n("click",(t,n)=>{let a=n.target,{el:i}=e.pagination;if(Array.isArray(i)||(i=[i].filter(e=>!!e)),e.params.pagination.el&&e.params.pagination.hideOnClick&&i&&i.length>0&&!a.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&a===e.navigation.nextEl||e.navigation.prevEl&&a===e.navigation.prevEl))return;!0===i[0].classList.contains(e.params.pagination.hiddenClass)?r("paginationShow"):r("paginationHide"),i.forEach(t=>t.classList.toggle(e.params.pagination.hiddenClass))}});let m=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=o(t)).forEach(t=>t.classList.add(e.params.pagination.paginationDisabledClass)),h()};Object.assign(e.pagination,{enable:()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=o(t)).forEach(t=>t.classList.remove(e.params.pagination.paginationDisabledClass)),f(),p(),d()},disable:m,render:p,update:d,init:f,destroy:h})}function X({swiper:e,extendParams:t,on:n,emit:r,params:a}){let i,l,o,s,c,d,p,f,h;e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let m=a&&a.autoplay?a.autoplay.delay:3e3,v=a&&a.autoplay?a.autoplay.delay:3e3,g=new Date().getTime;function x(t){e&&!e.destroyed&&e.wrapperEl&&t.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",x),C())}let b=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?s=!0:s&&(v=o,s=!1);let t=e.autoplay.paused?o:g+v-new Date().getTime();e.autoplay.timeLeft=t,r("autoplayTimeLeft",t,t/m),l=requestAnimationFrame(()=>{b()})},y=()=>{let t;if(t=e.virtual&&e.params.virtual.enabled?e.slides.filter(e=>e.classList.contains("swiper-slide-active"))[0]:e.slides[e.activeIndex])return parseInt(t.getAttribute("data-swiper-autoplay"),10)},w=t=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(l),b();let n=void 0===t?e.params.autoplay.delay:t;m=e.params.autoplay.delay,v=e.params.autoplay.delay;let a=y();!Number.isNaN(a)&&a>0&&void 0===t&&(n=a,m=a,v=a),o=n;let s=e.params.speed,c=()=>{e&&!e.destroyed&&(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(s,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,s,!0,!0),r("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(s,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,s,!0,!0),r("autoplay")),e.params.cssMode&&(g=new Date().getTime(),requestAnimationFrame(()=>{w()})))};return n>0?(clearTimeout(i),i=setTimeout(()=>{c()},n)):requestAnimationFrame(()=>{c()}),n},k=()=>{e.autoplay.running=!0,w(),r("autoplayStart")},S=()=>{e.autoplay.running=!1,clearTimeout(i),cancelAnimationFrame(l),r("autoplayStop")},j=(t,n)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(i),t||(h=!0);let a=()=>{r("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",x):C()};if(e.autoplay.paused=!0,n){f&&(o=e.params.autoplay.delay),f=!1,a();return}o=(o||e.params.autoplay.delay)-(new Date().getTime()-g),e.isEnd&&o<0&&!e.params.loop||(o<0&&(o=0),a())},C=()=>{e.isEnd&&o<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(g=new Date().getTime(),h?(h=!1,w(o)):w(),e.autoplay.paused=!1,r("autoplayResume"))},N=()=>{if(e.destroyed||!e.autoplay.running)return;let t=u();"hidden"===t.visibilityState&&(h=!0,j(!0)),"visible"===t.visibilityState&&C()},T=e=>{"mouse"===e.pointerType&&(h=!0,j(!0))},E=t=>{"mouse"===t.pointerType&&e.autoplay.paused&&C()},D=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",T),e.el.addEventListener("pointerleave",E))},M=()=>{e.el.removeEventListener("pointerenter",T),e.el.removeEventListener("pointerleave",E)},_=()=>{u().addEventListener("visibilitychange",N)},A=()=>{u().removeEventListener("visibilitychange",N)};n("init",()=>{e.params.autoplay.enabled&&(D(),_(),g=new Date().getTime(),k())}),n("destroy",()=>{M(),A(),e.autoplay.running&&S()}),n("beforeTransitionStart",(t,n,r)=>{!e.destroyed&&e.autoplay.running&&(r||!e.params.autoplay.disableOnInteraction?j(!0,!0):S())}),n("sliderFirstMove",()=>{if(!e.destroyed&&e.autoplay.running){if(e.params.autoplay.disableOnInteraction){S();return}c=!0,d=!1,h=!1,p=setTimeout(()=>{h=!0,d=!0,j(!0)},200)}}),n("touchEnd",()=>{if(!e.destroyed&&e.autoplay.running&&c){if(clearTimeout(p),clearTimeout(i),e.params.autoplay.disableOnInteraction){d=!1,c=!1;return}d&&e.params.cssMode&&C(),d=!1,c=!1}}),n("slideChange",()=>{!e.destroyed&&e.autoplay.running&&(f=!0)}),Object.assign(e.autoplay,{start:k,stop:S,pause:j,resume:C})}function J({swiper:e,extendParams:t,emit:n,once:r}){t({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(e,{freeMode:{onTouchStart:function(){let t=e.getTranslate();e.setTranslate(t),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})},onTouchMove:function(){let{touchEventsData:t,touches:n}=e;0===t.velocities.length&&t.velocities.push({position:n[e.isHorizontal()?"startX":"startY"],time:t.touchStartTime}),t.velocities.push({position:n[e.isHorizontal()?"currentX":"currentY"],time:h()})},onTouchEnd:function({currentPos:t}){let{params:a,wrapperEl:i,rtlTranslate:l,snapGrid:o,touchEventsData:s}=e,c=h()-s.touchStartTime;if(t<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(t>-e.maxTranslate()){e.slides.length<o.length?e.slideTo(o.length-1):e.slideTo(e.slides.length-1);return}if(a.freeMode.momentum){let t,c;if(s.velocities.length>1){let t=s.velocities.pop(),n=s.velocities.pop(),r=t.position-n.position,i=t.time-n.time;e.velocity=r/i,e.velocity/=2,Math.abs(e.velocity)<a.freeMode.minimumVelocity&&(e.velocity=0),(i>150||h()-t.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=a.freeMode.momentumVelocityRatio,s.velocities.length=0;let u=1e3*a.freeMode.momentumRatio,d=e.velocity*u,p=e.translate+d;l&&(p=-p);let f=!1,m=20*Math.abs(e.velocity)*a.freeMode.momentumBounceRatio;if(p<e.maxTranslate())a.freeMode.momentumBounce?(p+e.maxTranslate()<-m&&(p=e.maxTranslate()-m),t=e.maxTranslate(),f=!0,s.allowMomentumBounce=!0):p=e.maxTranslate(),a.loop&&a.centeredSlides&&(c=!0);else if(p>e.minTranslate())a.freeMode.momentumBounce?(p-e.minTranslate()>m&&(p=e.minTranslate()+m),t=e.minTranslate(),f=!0,s.allowMomentumBounce=!0):p=e.minTranslate(),a.loop&&a.centeredSlides&&(c=!0);else if(a.freeMode.sticky){let t;for(let e=0;e<o.length;e+=1)if(o[e]>-p){t=e;break}p=-(p=Math.abs(o[t]-p)<Math.abs(o[t-1]-p)||"next"===e.swipeDirection?o[t]:o[t-1])}if(c&&r("transitionEnd",()=>{e.loopFix()}),0!==e.velocity){if(u=l?Math.abs((-p-e.translate)/e.velocity):Math.abs((p-e.translate)/e.velocity),a.freeMode.sticky){let t=Math.abs((l?-p:p)-e.translate),n=e.slidesSizesGrid[e.activeIndex];u=t<n?a.speed:t<2*n?1.5*a.speed:2.5*a.speed}}else if(a.freeMode.sticky){e.slideToClosest();return}a.freeMode.momentumBounce&&f?(e.updateProgress(t),e.setTransition(u),e.setTranslate(p),e.transitionStart(!0,e.swipeDirection),e.animating=!0,j(i,()=>{e&&!e.destroyed&&s.allowMomentumBounce&&(n("momentumBounce"),e.setTransition(a.speed),setTimeout(()=>{e.setTranslate(t),j(i,()=>{e&&!e.destroyed&&e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(p),e.setTransition(u),e.setTranslate(p),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,j(i,()=>{e&&!e.destroyed&&e.transitionEnd()}))):e.updateProgress(p),e.updateActiveIndex(),e.updateSlidesClasses()}else if(a.freeMode.sticky){e.slideToClosest();return}else a.freeMode&&n("_freeModeNoMomentumRelease");(!a.freeMode.momentum||c>=a.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}}})}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(6840),t(3079)}),_N_E=e.O()}]);
//# sourceMappingURL=_app-d701f3e3f092db1e.js.map