!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="be5b9540-9f16-437a-836d-0fac00695d2d",e._sentryDebugIdIdentifier="sentry-dbid-be5b9540-9f16-437a-836d-0fac00695d2d")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[57746],{3002:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/faq",function(){return n(56169)}])},56169:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return em},default:function(){return ef}});var r,i,l,o=n(85893),a=n(41025),s=n(9759),u=n(94184),d=n.n(u),c=n(22715),f=n.n(c),m=n(63078),h=n(77493),p=n(44326),v=n(96835),x=e=>{let{mail:t,className:n}=e,[r]=(0,v.Fs)("md");return(0,o.jsx)("div",{className:n,children:(0,o.jsxs)(m.jD,{border:!0,borderCls:"bg-xwhite/10",cutSize:r?"4rem":"xl",className:"bg-xwhite/5 w-full md:px-[200px] px-7 md:py-16 py-10 md:mt-16 mt-10 ",children:[(0,o.jsxs)(h.Ht,{className:"items-center font-termina",children:[(0,o.jsx)("h1",{className:d()("font-bold text-xwhite md:text-x-9 text-x-xl !leading-x",f().title),children:"Still Have Questions?"}),(0,o.jsx)("div",{className:"font-medium text-center text-xwhite/40 md:text-x-base text-x-sm !leading-[1.6] md:mt-6 mt-4",children:"If you cannot find answer to your question in our FAQ, you can always contact us.We will answer to you shortly!"}),(0,o.jsx)(p.z,{className:"uppercase md:mt-8 mt-6 md:!text-x-xl !text-x-base",size:"max",width:r?238:177,onClick:e=>{window.location.href="mailto:".concat(t),e.preventDefault()},children:"1:1 Inquiry"})]}),(0,o.jsx)("img",{alt:"",className:"block md:w-[320px] md:h-[240px] w-[210px] h-[158px] absolute pointer-events-none top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",src:"/images/faq/faq-mail.png"})]})})},g=n(67294),b=n(92218),y=n(13166),w="blockquote",k="block",N="code",j="heading",E="inlineItem",I="itemLink",S="link",T="listItem",C="list",M="paragraph",_="root",A="span",O="thematicBreak";function R(e){return e.type===j}function F(e){return e.type===A}function L(e){return e.type===_}function W(e){return e.type===M}function $(e){return e.type===C}function V(e){return e.type===T}function P(e){return e.type===w}function q(e){return e.type===k}function H(e){return e.type===N}function D(e){return e.type===S}function B(e){return e.type===I}function z(e){return e.type===E}function U(e){return e.type===O}function Q(e){return e&&"value"in e&&X(e.value)}function X(e){return e&&"schema"in e&&"document"in e}(i={})[w]=[M],i[k]=[],i[N]=[],i[j]="inlineNodes",i[E]=[],i[I]="inlineNodes",i[S]="inlineNodes",i[T]=[M,C],i[C]=[T],i[M]="inlineNodes",i[_]=[w,N,C,M,j,k,O],i[A]=[],i[O]=[],(l={})[w]=["children","attribution"],l[k]=["item"],l[N]=["language","highlight","code"],l[j]=["level","children","style"],l[E]=["item"],l[I]=["item","children","meta"],l[S]=["url","children","meta"],l[T]=["children"],l[C]=["style","children"],l[M]=["children","style"],l[_]=["children"],l[A]=["value","marks"],l[O]=[];var Y=(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),G=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var l=arguments[t],o=0,a=l.length;o<a;o++,i++)r[i]=l[o];return r},J=function(e){function t(n,r){var i=e.call(this,n)||this;return i.node=r,Object.setPrototypeOf(i,t.prototype),i}return Y(t,e),t}(Error),K=function(e,t){return{appliable:e,apply:function(e){return t(e)}}},Z=function(){return(Z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},ee=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var l=arguments[t],o=0,a=l.length;o<a;o++,i++)r[i]=l[o];return r},et=function(e){var t=e.meta,n={};return t.forEach(function(e){["target","title","rel"].includes(e.id)&&(n[e.id]=e.value)}),n},en=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,l=t.length;i<l;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},er={renderNode:g.createElement,renderFragment:function(e,t){return g.createElement(g.Fragment,{key:t},e)},renderText:function(e,t){return e}};function ei(e,t){return(0,g.isValidElement)(e)&&null===e.key?(0,g.cloneElement)(e,{key:t}):e}function el(e){var t,n,r,i,l,o,a=e.data,s=e.renderInlineRecord,u=e.renderLinkToRecord,d=e.renderBlock,c=e.renderText,f=e.renderNode,m=e.renderFragment,h=e.customMarkRules,p=e.customRules,v=e.customNodeRules,x=e.metaTransformer,b=(t=a,o=(n={adapter:{renderText:c||er.renderText,renderNode:f||er.renderNode,renderFragment:m||er.renderFragment},metaTransformer:x,customMarkRules:h,customNodeRules:en([K(z,function(e){var t=e.node,n=e.key;if(!s)throw new J("The Structured Text document contains an 'inlineItem' node, but no 'renderInlineRecord' prop is specified!",t);if(!(Q(a)&&a.links))throw new J("The document contains an 'itemLink' node, but the passed data prop is not a Structured Text GraphQL response, or data.links is not present!",t);var r=a.links.find(function(e){return e.id===t.item});if(!r)throw new J("The Structured Text document contains an 'inlineItem' node, but cannot find a record with ID ".concat(t.item," inside data.links!"),t);return ei(s({record:r}),n)}),K(B,function(e){var t=e.node,n=e.key,r=e.children;if(!u)throw new J("The Structured Text document contains an 'itemLink' node, but no 'renderLinkToRecord' prop is specified!",t);if(!(Q(a)&&a.links))throw new J("The document contains an 'itemLink' node, but the passed data prop is not a Structured Text GraphQL response, or data.links is not present!",t);var i=a.links.find(function(e){return e.id===t.item});if(!i)throw new J("The Structured Text document contains an 'itemLink' node, but cannot find a record with ID ".concat(t.item," inside data.links!"),t);return ei(u({record:i,children:r,transformedMeta:t.meta?(x||et)({node:t,meta:t.meta}):null}),n)}),K(q,function(e){var t=e.node,n=e.key;if(!d)throw new J("The Structured Text document contains a 'block' node, but no 'renderBlock' prop is specified!",t);if(!(Q(a)&&a.blocks))throw new J("The document contains an 'block' node, but the passed data prop is not a Structured Text GraphQL response, or data.blocks is not present!",t);var r=a.blocks.find(function(e){return e.id===t.item});if(!r)throw new J("The Structured Text document contains a 'block' node, but cannot find a record with ID ".concat(t.item," inside data.blocks!"),t);return ei(d({record:r}),n)})],v||p||[],!0)}).metaTransformer||et,i=n.adapter,l=ee(n.customNodeRules||[],[K(L,function(e){var t=e.adapter.renderFragment,n=e.key;return t(e.children,n)}),K(W,function(e){return(0,e.adapter.renderNode)("p",{key:e.key},e.children)}),K($,function(e){var t=e.adapter.renderNode,n=e.node,r=e.key,i=e.children;return t("bulleted"===n.style?"ul":"ol",{key:r},i)}),K(V,function(e){return(0,e.adapter.renderNode)("li",{key:e.key},e.children)}),K(P,function(e){var t=e.adapter.renderNode,n=e.key,r=e.node,i=e.children,l=r.attribution?ee(i||[],[t("footer",{key:"footer"},r.attribution)]):i;return t("blockquote",{key:n},l)}),K(H,function(e){var t=e.adapter,n=t.renderNode,r=t.renderText,i=e.key,l=e.node;return n("pre",{key:i,"data-language":l.language},n("code",null,r(l.code)))}),K(D,function(e){var t=e.adapter.renderNode,n=e.key,r=e.children,i=e.node,l=i.meta?o({node:i,meta:i.meta}):{};return t("a",Z(Z({},l||{}),{key:n,href:i.url}),r)}),K(U,function(e){return(0,e.adapter.renderNode)("hr",{key:e.key})}),K(R,function(e){var t=e.node,n=e.adapter.renderNode,r=e.children,i=e.key;return n("h"+t.level,{key:i},r)}),(r=({customMarkRules:n.customMarkRules||[]}).customMarkRules,K(F,function(e){var t,n,i,l,o,a,s,u=e.adapter,d=e.key;return(e.node.marks||[]).reduce(function(e,t){if(e){var n=r.find(function(e){return e.appliable(t)});return n?n.apply({adapter:u,key:d,mark:t,children:e}):u.renderNode(function(e){switch(e){case"emphasis":return"em";case"underline":return"u";case"strikethrough":return"del";case"highlight":return"mark";default:return e}}(t),{key:d},e)}},(t=e.node,n=e.key,l=(i=e.adapter).renderNode,o=i.renderText,a=i.renderFragment,0===(s=t.value.split(/\n/)).length?o(t.value,n):a(s.slice(1).reduce(function(e,t,r){return e.concat([l("br",{key:n+"-br-"+r}),o(t,n+"-line-"+r)])},[o(s[0],n+"-line-first")]),n)))}))]),t?function e(t,n,r,i,l){var o,a="children"in n?(function e(t,n){for(var r=0;r<t.length;r++){var i=t[r];Array.isArray(i)?e(i,n):n.push(i)}}(n.children.map(function(r,o){return e(t,r,"t-"+o,G([n],i),l)}).filter(function(e){return!!e}),o=[]),o):void 0,s=l.find(function(e){return e.appliable(n)});if(s)return s.apply({adapter:t,node:n,children:a,key:r,ancestors:i});throw new J("Don't know how to render a node with type \""+n.type+'". Please specify a custom renderRule for it!',n)}(i,Q(t)?t.value.document:X(t)?t.document:t,"t-0",[],l):null);return"string"==typeof b?g.createElement(g.Fragment,null,b):b||null}var eo=n(1699),ea=n(11116);let es=e=>{let{activeTabIdx:t,data:n,classNames:r}=e;return(0,o.jsx)(h.Ht,{className:r,children:null==n?void 0:n.map((e,n)=>(0,o.jsx)(eu,{title:e.title,description:e.description},"".concat(t," + ").concat(n)))})};function eu(e){let{title:t,description:n}=e,[r,i]=(0,g.useState)(!1);return(0,o.jsxs)("div",{className:"font-termina flex-shrink-0 border-b border-xwhite/10 w-full md:py-10 py-6 cursor-pointer",onClick:()=>{i(!r)},children:[(0,o.jsxs)(h.gq,{className:"items-center md:leading-[72px] md:text-x-lg text-xsnug-sm md:h-6",children:[(0,o.jsx)(h.Mk,{className:"md:text-x-xl text-xsnug-lg font-bold text-xwhite",children:(0,o.jsx)(eo.k,{children:t})}),(0,o.jsx)(ea.XNI,{className:"".concat(r?"rotate-180":""," duration-300 text-xwhite/40 md:ml-14 ml-10")})]}),(0,o.jsx)("div",{onClick:e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},className:"".concat(r?"":"hidden"," mt-6 md:mr-14 md:text-xloose-base text-xloose-sm font-medium text-xwhite/40 my-structured-text"),children:(0,o.jsx)(el,{data:n.value})})]})}let ed=e=>{let{index:t,active:n,text:r,eleRef:i,onClick:l,isLast:a}=e,s=(0,g.useContext)(b.VisibilityContext);return(0,o.jsx)("button",{ref:i,onClick:()=>l(s),className:"flex font-termina items-center justify-center rounded-full \n      md:px-10 px-6 md:h-16 h-10 md:mx-4 mx-[6px] \n      md:text-x-xl text-x-sm whitespace-nowrap ".concat(n?"font-xbold text-xdarkblue bg-xwhite":"font-medium bg-xwhite/5 text-xwhite/40 md:hover:bg-xwhite/10"," ").concat(0===t?"md:ml-0 h5:!ml-4":""," ").concat(a?"h5:!mr-4":""),children:r})},ec=e=>{var t;let{tabs:n}=e,r=(0,g.useMemo)(()=>{if(!(n=n.filter(e=>{let{data:t}=e;return t&&t.length>0}))||0===n.length)return[];let e=[];return n.sort((e,t)=>e.order-t.order).map(t=>{t.data&&t.data.length>0&&(e=[...e,...t.data])}),[{name:"ALL",data:e},...n]},[n]),i=(0,g.useMemo)(()=>r&&r.length>0,[r]),[l,a]=(0,g.useState)(0),s=(0,g.useMemo)(()=>Array(r.length).fill(0).map(()=>(0,g.createRef)()),[r.length]),u=e=>t=>{let{getItemById:n,scrollToItem:r}=t;if(m)return!1;a(Number(e)),r(n(String(e)),"smooth","center","nearest")},{dragStart:d,dragStop:c,dragMove:f,dragging:m}=(0,y.c0)();return i?(0,o.jsxs)("div",{className:"font-poppins text-xsnug-sm",children:[(0,o.jsx)("div",{className:"md:pt-16 pt-6 md:w-[1200px] md:mx-auto",children:(0,o.jsxs)("nav",{onMouseLeave:c,className:"relative md:pb-8 pb-4 text-base font-bold text-xwhite-op60",children:[(0,o.jsx)(b.ScrollMenu,{onMouseDown:()=>d,onMouseUp:e=>{let{getItemById:t,scrollToItem:n,visibleItems:r}=e;return()=>{c();let{center:e}=(0,b.getItemsPos)(r);n(t(e),"smooth","center")}},options:{throttle:0},onMouseMove:e=>{let{scrollContainer:t}=e;return e=>f(e,e=>{t.current&&(t.current.scrollLeft+=e)})},onUpdate:e=>{let{}=e},children:Array.from(r.entries()).map((e,t)=>{let[n,{name:i}]=e;return(0,o.jsx)(ed,{index:t,eleRef:s[t],active:t===l,text:i.toUpperCase(),onClick:u(t),isLast:t===r.length-1},n)})}),(0,o.jsx)("span",{className:"absolute bottom-0 h5:px-4 bg-xwhite-op10 bg-clip-content h-[1px] w-full"})]})}),(0,o.jsx)(es,{activeTabIdx:l,data:null===(t=r[l])||void 0===t?void 0:t.data,classNames:"md:w-[1200px] md:mx-auto h5:px-4"})]}):(0,o.jsx)(o.Fragment,{})};function ef(e){let{faq:t}=e;return(0,o.jsx)(s.b,{children:(0,o.jsxs)("div",{className:"relative font-termina text-xwhite",children:[(0,o.jsxs)(a.ph,{children:[(0,o.jsx)("img",{alt:"",className:"block w-full h-[300px] absolute pointer-events-none object-cover object-[center_bottom]",src:"/images/faq/faq-policy-mask.png"}),(0,o.jsxs)("div",{className:"relative w-full h-[300px] flex flex-col justify-center px-[10px] mx-auto",children:[(0,o.jsxs)("div",{className:"z-10",children:[(0,o.jsx)("div",{className:"font-medium text-x-12 text-center text-xwhite",children:"Frequently Asked Questions"}),(0,o.jsx)("div",{className:"font-termina font-xextralight text-center text-xwhite/60 text-x-lg mt-6",children:"WE'VE GOT ANSWERS TO ALL QUESTIONS YOU MIGHT HAVE"})]}),(0,o.jsx)("img",{alt:"",className:"block opacity-60 w-[707px] h-[232px] absolute pointer-events-none top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",src:"/images/faq/faq_web.png"})]})]}),(0,o.jsxs)(a.H5,{children:[(0,o.jsx)("img",{alt:"",className:"block w-full h-[180px] absolute pointer-events-none object-cover object-[center_bottom]",src:"/images/faq/faq-policy-mask-h5.png"}),(0,o.jsxs)("div",{className:"relative h-[180px] flex flex-col justify-center mx-4 py-[20px]",children:[(0,o.jsxs)("div",{className:"z-10 mx-8",children:[(0,o.jsxs)("div",{className:"w-full font-medium text-xtight-6 text-center text-xwhite",children:["Frequently Asked",(0,o.jsx)("br",{}),"Questions"]}),(0,o.jsx)("div",{className:"w-full font-xextralight text-center text-xwhite/60 text-x-xs !leading-[1.6] mt-3",children:"WE'VE GOT ANSWERS TO ALL QUESTIONS YOU MIGHT HAVE"})]}),(0,o.jsx)("img",{alt:"",className:"block opacity-60 w-[328px] h-[108px] absolute pointer-events-none top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",src:"/images/faq/faq_h5.png"})]})]}),(0,o.jsx)(ec,{tabs:t}),(0,o.jsx)(x,{mail:"support@xter.io",className:"md:w-[1200px] md:mx-auto md:mb-30 mb-20 h5:mx-4 font-poppins text-xsnug-sm"})]})})}var em=!0},1699:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},k:function(){return l}});var r=n(85893),i=n(67294);function l(e){let{children:t}=e;if(!t)return(0,r.jsx)(r.Fragment,{});let n=(Array.isArray(t)?t.filter(e=>void 0!==e).join(""):t).split(" ");return(0,r.jsx)(r.Fragment,{children:n.map((e,t,n)=>{let l=n.length-1===t;return e?(0,r.jsx)(i.Fragment,{children:e.split("").map((e,n,o)=>o.length-1===n&&l?(0,r.jsx)(i.Fragment,{children:e},"".concat(t,"-").concat(n)):(0,r.jsxs)(i.Fragment,{children:[e,(0,r.jsx)("wbr",{})]},"".concat(t,"-").concat(n)))},t):(0,r.jsx)(i.Fragment,{children:e},t)}).map((e,t,n)=>n.length-1===t?(0,r.jsx)(i.Fragment,{children:e},t):(0,r.jsxs)(i.Fragment,{children:[e," "]},t))})}function o(e){let{children:t}=e;if(!t)return(0,r.jsx)(r.Fragment,{});let n=(Array.isArray(t)?t.filter(e=>void 0!==e).join(""):t).split(" ");return(0,r.jsx)(r.Fragment,{children:n.map((e,t,n)=>{let l=n.length-1===t;return e?(0,r.jsx)(i.Fragment,{children:e.split("").map((e,n,o)=>o.length-1===n&&l?(0,r.jsx)(i.Fragment,{children:e},"".concat(t,"-").concat(n)):(0,r.jsxs)(i.Fragment,{children:[e,"\xad"]},"".concat(t,"-").concat(n)))},t):(0,r.jsx)(i.Fragment,{children:e},t)}).map((e,t,n)=>n.length-1===t?(0,r.jsx)(i.Fragment,{children:e},t):(0,r.jsxs)(i.Fragment,{children:[e," "]},t))})}},22715:function(e){e.exports={title:"faqPolicy_title__gNM_z"}},92218:function(e,t,n){(function(e,t){"use strict";var n=t&&"object"==typeof t&&"default"in t?t:{default:t};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".react-horizontal-scrolling-menu--scroll-container {\n  display: flex;\n  height: max-content;\n  overflow-y: hidden;\n  position: relative;\n  width: 100%;\n}\n\n.react-horizontal-scrolling-menu--scroll-container.rtl {\n  direction: rtl;\n}\n\n.react-horizontal-scrolling-menu--inner-wrapper {\n  display: flex;\n  overflow-y: hidden;\n}\n\n.react-horizontal-scrolling-menu--wrapper {\n  display: flex;\n  flex-direction: column;\n}\n\n.react-horizontal-scrolling-menu--header,\n.react-horizontal-scrolling-menu--footer {\n  width: 100%;\n}\n\n.react-horizontal-scrolling-menu--arrow-left,\n.react-horizontal-scrolling-menu--arrow-right {\n  display: flex;\n}\n");let r="react-horizontal-scrolling-menu",i="-separator",l=`${r}-${i}`,o=`${r}--item`,a=`${r}--scroll-container`,s=`${r}--wrapper`,u=`${r}--inner-wrapper`,d=`${r}--header`,c=`${r}--arrow-left`,f=`${r}--arrow-right`,m=`${r}--footer`,h="itemId",p="data-key",v="data-index";var x=Object.freeze({__proto__:null,rootClassName:r,separatorString:i,separatorClassName:l,itemClassName:o,scrollContainerClassName:a,wrapperClassName:s,innerWrapperClassName:u,headerClassName:d,arrowLeftClassName:c,arrowRightClassName:f,footerClassName:m,id:h,dataKeyAttribute:p,dataIndexAttribute:v});function g({className:e="",children:t,onScroll:r=()=>{},scrollRef:i}){let l=n.default.useMemo(()=>`${a} ${e}`,[e]);return n.default.createElement("div",{className:l,onScroll:r,ref:i},t)}var b=n.default.memo(function({className:e,id:t,index:r,refs:i}){let l=n.default.useRef(null);return i[r]=l,n.default.createElement("div",Object.assign({className:e},{[p]:t,[v]:r},{ref:l}))}),y=n.default.memo(function({children:e,className:t,id:r,index:i,refs:l}){let o=n.default.useRef(null);return l[String(i)]=o,n.default.createElement("div",Object.assign({className:t},{[p]:r,[v]:i},{ref:o}),e)});function w(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function k(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function N(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n,r=getComputedStyle(e,null);return k(r.overflowY,t)||k(r.overflowX,t)||!!(n=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e))&&(n.clientHeight<e.scrollHeight||n.clientWidth<e.scrollWidth)}return!1}function j(e,t,n,r,i,l,o,a){return l<e&&o>t||l>e&&o<t?0:l<=e&&a<=n||o>=t&&a>=n?l-e-r:o>t&&a<n||l<e&&a>n?o-t+i:0}var E,I=function(e,t){var n=window,r=t.scrollMode,i=t.block,l=t.inline,o=t.boundary,a=t.skipOverflowHiddenElements,s="function"==typeof o?o:function(e){return e!==o};if(!w(e))throw TypeError("Invalid target");for(var u,d,c=document.scrollingElement||document.documentElement,f=[],m=e;w(m)&&s(m);){if((m=null==(d=(u=m).parentElement)?u.getRootNode().host||null:d)===c){f.push(m);break}null!=m&&m===document.body&&N(m)&&!N(document.documentElement)||null!=m&&N(m,a)&&f.push(m)}for(var h=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,x=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),b=g.height,y=g.width,k=g.top,E=g.right,I=g.bottom,S=g.left,T="start"===i||"nearest"===i?k:"end"===i?I:k+b/2,C="center"===l?S+y/2:"end"===l?E:S,M=[],_=0;_<f.length;_++){var A=f[_],O=A.getBoundingClientRect(),R=O.height,F=O.width,L=O.top,W=O.right,$=O.bottom,V=O.left;if("if-needed"===r&&k>=0&&S>=0&&I<=p&&E<=h&&k>=L&&I<=$&&S>=V&&E<=W)break;var P=getComputedStyle(A),q=parseInt(P.borderLeftWidth,10),H=parseInt(P.borderTopWidth,10),D=parseInt(P.borderRightWidth,10),B=parseInt(P.borderBottomWidth,10),z=0,U=0,Q="offsetWidth"in A?A.offsetWidth-A.clientWidth-q-D:0,X="offsetHeight"in A?A.offsetHeight-A.clientHeight-H-B:0,Y="offsetWidth"in A?0===A.offsetWidth?0:F/A.offsetWidth:0,G="offsetHeight"in A?0===A.offsetHeight?0:R/A.offsetHeight:0;if(c===A)z="start"===i?T:"end"===i?T-p:"nearest"===i?j(x,x+p,p,H,B,x+T,x+T+b,b):T-p/2,U="start"===l?C:"center"===l?C-h/2:"end"===l?C-h:j(v,v+h,h,q,D,v+C,v+C+y,y),z=Math.max(0,z+x),U=Math.max(0,U+v);else{z="start"===i?T-L-H:"end"===i?T-$+B+X:"nearest"===i?j(L,$,R,H,B+X,T,T+b,b):T-(L+R/2)+X/2,U="start"===l?C-V-q:"center"===l?C-(V+F/2)+Q/2:"end"===l?C-W+D+Q:j(V,W,F,q,D+Q,C,C+y,y);var J=A.scrollLeft,K=A.scrollTop;T+=K-(z=Math.max(0,Math.min(K+z/G,A.scrollHeight-R/G+X))),C+=J-(U=Math.max(0,Math.min(J+U/Y,A.scrollWidth-F/Y+Q)))}M.push({el:A,top:z,left:U})}return M};function S(e){return e===Object(e)&&0!==Object.keys(e).length}function T(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(S(t)&&"function"==typeof t.behavior)return t.behavior(n?I(e,t):[]);if(n){var r=!1===t?{block:"end",inline:"nearest"}:S(t)?t:{block:"start",inline:"nearest"};return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(e){var r=e.el,i=e.top,l=e.left;r.scroll&&n?r.scroll({top:i,left:l,behavior:t}):(r.scrollTop=i,r.scrollLeft=l)})}(I(e,r),r.behavior)}}var C=function(){return E||(E="performance"in window?performance.now.bind(performance):Date.now),E()},M=function(e,t){var n=t||{};return n&&!n.behavior||"smooth"===n.behavior?T(e,{block:n.block,inline:n.inline,scrollMode:n.scrollMode,boundary:n.boundary,behavior:function(e){return Promise.all(e.reduce(function(e,t){var r=t.el,i=t.left,l=t.top,o=r.scrollLeft,a=r.scrollTop;return o===i&&a===l?e:[].concat(e,[new Promise(function(e){var t,s,u,d,c,f;return t=n.duration,s=n.ease,u=function(){return e({el:r,left:[o,i],top:[a,l]})},void(void 0===t&&(t=600),void 0===s&&(s=function(e){return 1+--e*e*e*e*e}),d=r.scrollLeft,c=r.scrollTop,f=function(e,t){r.scrollLeft=Math.ceil(e),r.scrollTop=Math.ceil(t)},function e(t){var n=Math.min((C()-t.startTime)/t.duration,1),r=t.ease(n),i=t.startX+(t.x-t.startX)*r,l=t.startY+(t.y-t.startY)*r;t.method(i,l),i!==t.x||l!==t.y?requestAnimationFrame(function(){return e(t)}):t.cb()}({scrollable:r,method:f,startTime:C(),startX:d,startY:c,x:i,y:l,duration:t,ease:s,cb:u}))})])},[]))}}):Promise.resolve(T(e,t))};let _=e=>Object.values(e).map(e=>e.current).filter(Boolean);function A(e,t,n,r,i,l){var o;let a=(null===(o=null==e?void 0:e.entry)||void 0===o?void 0:o.target)||e,s=t||"smooth";if(a)return l?null==a?void 0:a.scrollIntoView({behavior:s,inline:n||"end",block:r||"nearest"}):M(a,Object.assign({behavior:s,inline:n||"end",block:r||"nearest",duration:500},i))}let O=e=>document.querySelector(`[${p}='${e}']`),R=e=>document.querySelector(`[${v}='${e}']`);function F(e){return n.default.isValidElement(e)&&e||"function"==typeof e&&n.default.createElement(e,null)||null}let L=e=>e.filter(e=>!RegExp(`.*${i}$`).test(e)),W=e=>{var t;return String((null===(t=null==e?void 0:e.props)||void 0===t?void 0:t[h])||String((null==e?void 0:e.key)||"").replace(/^\.\$/,""))};function $({children:e,itemClassName:t="",refs:r,separatorClassName:a=""}){let s=n.default.Children.toArray(e).filter(Boolean),u=s.length,d=n.default.useMemo(()=>`${o} ${t}`,[t]),c=n.default.useMemo(()=>`${l} ${a}`,[a]);return n.default.createElement(n.default.Fragment,null,s.map((e,t)=>{let l=W(e),o=l+i,a=t+1===u;return[n.default.createElement(y,{className:d,id:l,key:"menuItem__"+l,refs:r,index:t},e),!a&&n.default.createElement(b,{className:c,id:o,refs:r,key:o,index:t+.1})]}))}let V="undefined"!=typeof window?n.default.useLayoutEffect:n.default.useEffect,P=e=>n.default.Children.toArray(e).map(W).filter(Boolean);class q extends Map{toArr(){return this.sort([...this])}toItems(){return this.toArr().map(([e])=>e)}toItemsWithoutSeparators(){return L(this.toItems())}toItemsKeys(){return this.toItems()}sort(e){return e.sort(([,e],[,t])=>+e.index-+t.index)}set(e,t){return Array.isArray(e)?this.sort(e).forEach(([e,t])=>{super.set(String(e),t)}):super.set(String(e),t),this}first(){var e;return null===(e=this.toArr()[0])||void 0===e?void 0:e[1]}last(){var e,t;return null===(t=null===(e=this.toArr().slice(-1))||void 0===e?void 0:e[0])||void 0===t?void 0:t[1]}filter(e){return this.toArr().filter(e)}find(e){return this.toArr().find(e)}findIndex(e){return this.toArr().findIndex(e)}getCurrentPos(e,t){let n=this.toArr().filter(e=>{var n;return t?!(null===(n=null==e?void 0:e[0])||void 0===n?void 0:n.includes(i)):e}),r=n.findIndex(([t,n])=>t===e||n===e);return[n,r]}prev(e,t){var n;let[r,i]=this.getCurrentPos(e,!!t);return -1!==i?null===(n=r[i-1])||void 0===n?void 0:n[1]:void 0}next(e,t){var n;let[r,i]=this.getCurrentPos(e,!!t);return -1!==i?null===(n=r[i+1])||void 0===n?void 0:n[1]:void 0}getVisible(){return this.filter(e=>e[1].visible)}getVisibleElements(){return this.filter(e=>!e[0].includes(i)&&e[1].visible)}}let H={ratio:.9,rootMargin:"5px",threshold:[.05,.5,.75,.95],throttle:100},D=n.default.createContext({}),B=e=>e.reduce((e,t)=>e.concat(t).concat(`${t}${i}`),[]).slice(0,-1);e.ScrollMenu=function({LeftArrow:e,RightArrow:t,children:r,Header:l,Footer:o,transitionDuration:a=500,transitionEase:h,transitionBehavior:p,onInit:v=()=>{},onUpdate:x=()=>{},onMouseDown:b,onMouseUp:y,onMouseMove:w,onScroll:k=()=>{},onWheel:N=()=>{},options:j=H,scrollContainerClassName:E="",itemClassName:I="",separatorClassName:S="",wrapperClassName:T="",apiRef:C={current:{}},RTL:M,noPolyfill:W}){let B=F(e),z=F(t),U=F(l),Q=F(o),X=n.default.useRef(null),[Y]=n.default.useState({}),G=n.default.useMemo(()=>Object.assign(Object.assign(Object.assign({},H),j),{root:X.current}),[j,X.current]),J=n.default.useRef(new q).current,K=function(e,t){let[r,l]=n.default.useState(""),o=n.default.useMemo(()=>P(e),[e]);return n.default.useEffect(()=>{let e=o.filter(Boolean).join("");t.toItemsWithoutSeparators().filter(e=>!o.includes(e)).forEach(e=>{var n,r;let l=(null===(n=t.last())||void 0===n?void 0:n.key)===e&&(null===(r=t.prev(e))||void 0===r?void 0:r.key)||"";t.delete(l),t.delete(`${e}${i}`),t.delete(e)}),l(e)},[o,t]),r}(r,J),{visibleElementsWithSeparators:Z}=function({items:e,itemsChanged:t,refs:r,options:i}){let l=n.default.useRef(),[o,a]=n.default.useState([]),s=n.default.useRef(+setTimeout(()=>{},0)),u=n.default.useCallback(t=>{e.set([...t].map(e=>{var t,n,r,l;let o=e.target,a=String(null!==(n=null===(t=null==o?void 0:o.dataset)||void 0===t?void 0:t.key)&&void 0!==n?n:"");return[a,{index:String(null!==(l=null===(r=null==o?void 0:o.dataset)||void 0===r?void 0:r.index)&&void 0!==l?l:""),key:a,entry:e,visible:e.intersectionRatio>=i.ratio}]})),clearTimeout(s.current),s.current=+setTimeout(()=>requestAnimationFrame(()=>{a(t=>{let n=e.getVisible().map(e=>e[1].key);return JSON.stringify(t)!==JSON.stringify(n)?n:t})}),i.throttle)},[e,i]);return V(()=>{let e=_(r),t=l.current||new IntersectionObserver(u,i);return l.current=t,e.forEach(e=>t.observe(e)),()=>{clearTimeout(s.current),t.disconnect(),l.current=void 0}},[u,t,i,r]),{visibleElementsWithSeparators:o}}({items:J,itemsChanged:K,options:G,refs:Y}),ee=!!Z.length,et=n.default.useMemo(()=>(function(e,t=[],n,r,i,l){var o,a;let s=L(t),u=!!(null===(o=e.first())||void 0===o?void 0:o.visible),d=!!(null===(a=e.last())||void 0===a?void 0:a.visible),c=t=>{var n;return null===(n=e.find(e=>e[1].key===String(t)))||void 0===n?void 0:n[1]},f=()=>{var t,n;return e.prev(null===(n=null===(t=e.getVisible())||void 0===t?void 0:t[0])||void 0===n?void 0:n[1])},m=()=>{var t,n,r,i;return e.next(null===(i=null===(r=null===(n=null===(t=e.getVisible())||void 0===t?void 0:t.slice)||void 0===n?void 0:n.call(t,-1))||void 0===r?void 0:r[0])||void 0===i?void 0:i[1])};return{getItemById:c,getItemElementById:O,getItemByIndex:t=>{var n;return null===(n=e.find(e=>String(e[1].index)===String(t)))||void 0===n?void 0:n[1]},getItemElementByIndex:R,getNextItem:m,getNextElement:()=>{var t,n,r,i;return e.next(null===(i=null===(r=null===(n=null===(t=e.getVisibleElements())||void 0===t?void 0:t.slice)||void 0===n?void 0:n.call(t,-1))||void 0===r?void 0:r[0])||void 0===i?void 0:i[1],!0)},getPrevItem:f,getPrevElement:()=>{var t,n;return e.prev(null===(n=null===(t=e.getVisibleElements())||void 0===t?void 0:t[0])||void 0===n?void 0:n[1],!0)},isFirstItemVisible:u,isItemVisible:e=>s.includes(String(e)),isLastItem:t=>e.last()===c(t),isLastItemVisible:d,scrollNext:(e,t,o,{duration:a,ease:s,boundary:u=null==n?void 0:n.current}={})=>{let d=null!=e?e:null==r?void 0:r.behavior;return A(m(),d,t||"start",o||"nearest",{boundary:u,duration:null!=a?a:null==r?void 0:r.duration,ease:null!=s?s:null==r?void 0:r.ease},i||l)},scrollPrev:(e,t,o,{duration:a,ease:s,boundary:u=null==n?void 0:n.current}={})=>{let d=null!=e?e:null==r?void 0:r.behavior;return A(f(),d,t||"end",o||"nearest",{boundary:u,duration:null!=a?a:null==r?void 0:r.duration,ease:null!=s?s:null==r?void 0:r.ease},i||l)},scrollToItem:(e,t,i,l,o)=>{var a,s;return A(e,null!=t?t:null==r?void 0:r.behavior,i,l,Object.assign(Object.assign({boundary:null==n?void 0:n.current},o),{duration:null!==(a=null==o?void 0:o.duration)&&void 0!==a?a:null==r?void 0:r.duration,ease:null!==(s=null==o?void 0:o.ease)&&void 0!==s?s:null==r?void 0:r.ease}))},visibleElements:s,visibleElementsWithSeparators:t,visibleItems:t,visibleItemsWithoutSeparators:s}})(J,Z,X,{duration:a,ease:h,behavior:p},M,W),[J,Z,K,M,W]),en=n.default.useCallback(()=>Object.assign(Object.assign({},et),{initComplete:ee,items:J,visibleElementsWithSeparators:Z,scrollContainer:X}),[et,ee,J,Z,X]),[er,ei]=n.default.useState(en);(function({cb:e=()=>{},condition:t,hash:r}){n.default.useEffect(()=>{t&&e()},[r,t])})({cb:()=>x(er),condition:function({cb:e,condition:t}){let[r,i]=n.default.useState(!1);return n.default.useEffect(()=>{t&&!r&&(i(!0),e())},[t,r]),r}({cb:()=>v(er),condition:ee}),hash:JSON.stringify(Z.concat(String(null==er?void 0:er.isFirstItemVisible)).concat(String(null==er?void 0:er.isLastItemVisible)))}),n.default.useEffect(()=>ei(en()),[en]),C.current=er;let el=n.default.useCallback(e=>k(er,e),[k,er]),eo=n.default.useCallback(e=>N(er,e),[N,er]),ea=n.default.useMemo(()=>`${s} ${T}`,[T]),es=n.default.useMemo(()=>`${E}${M?" rtl":""}`,[M,E]);return n.default.createElement("div",{className:ea,onWheel:eo,onMouseDown:null==b?void 0:b(er),onMouseUp:null==y?void 0:y(er),onMouseMove:null==w?void 0:w(er)},n.default.createElement(D.Provider,{value:er},n.default.createElement("div",{className:d},U),n.default.createElement("div",{className:u},n.default.createElement("div",{className:c},B),n.default.createElement(g,{className:es,onScroll:el,scrollRef:X},n.default.createElement($,{refs:Y,itemClassName:I,separatorClassName:S},r)),n.default.createElement("div",{className:f},z)),n.default.createElement("div",{className:m},Q)))},e.VisibilityContext=D,e.constants=x,e.getItemsPos=e=>{var t;let n=e.filter((e,t,n)=>{let r=t===n.length-1,l=new RegExp(i).test(e);return!((0===t||r)&&l)}),r=n[Math.floor(n.length/2)];return{first:null==n?void 0:n[0],center:r,last:null===(t=n.slice(-1))||void 0===t?void 0:t[0]}},e.slidingWindow=function(e,t){let n=L(e),r=L(t);return{prev:()=>B(function(e,t){let n=e.findIndex(e=>e===(null==t?void 0:t[0])),r=t.length,i=n-r,l=i<0,o=e.slice(l?0:i,l?r:n);return o.length===r?o:e.slice(n,r)}(n,r)),next:()=>B(function(e,t){let n=e.findIndex(e=>{var n;return e===(null===(n=t.slice(-1))||void 0===n?void 0:n[0])}),r=t.length,i=n+r+1,l=i>e.length-1,o=l?e.length-1:i,a=e.slice(l?o-r+1:n+1,o);return a.length===r?a:e.slice(e.length-r,e.length+r)}(n,r))}},Object.defineProperty(e,"__esModule",{value:!0})})(t,n(67294))}},function(e){e.O(0,[49774,92888,40179],function(){return e(e.s=3002)}),_N_E=e.O()}]);