(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{88541:function(e,t){var r,n,i;/** @license * eventsource.js * Available under MIT License (MIT) * https://github.com/Yaffle/EventSource/ */!function(o){"use strict";var s=o.setTimeout,a=o.clearTimeout,l=o.XMLHttpRequest,u=o.XDomainRequest,c=o.ActiveXObject,d=o.EventSource,f=o.document,p=o.Promise,h=o.fetch,m=o.Response,v=o.TextDecoder,g=o.TextEncoder,y=o.AbortController;if("undefined"==typeof window||void 0===f||"readyState"in f||null!=f.body||(f.readyState="loading",window.addEventListener("load",function(e){f.readyState="complete"},!1)),null==l&&null!=c&&(l=function(){return new c("Microsoft.XMLHTTP")}),void 0==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return new Date().getTime()}),void 0==y){var b=h;h=function(e,t){var r=t.signal;return b(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return r._reader=t,r._aborted&&r._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},y=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function w(){this.bitsNeeded=0,this.codePoint=0}w.prototype.decode=function(e){function t(e,t,r){if(1===r)return e>=128>>t&&e<=2048>>t&&e<=57344>>t&&e<=65536>>t&&e<>6>15?3:t>31?2:1;if(12===e)return t>15?3:2;if(18===e)return 3;throw Error()}for(var n="",i=this.bitsNeeded,o=this.codePoint,s=0;s191||!t(o<<6|63&a,i-6,r(i,o)))&&(i=0,n+=String.fromCharCode(o=65533)),0===i?(a>=0&&a<=127?(i=0,o=a):a>=192&&a<=223?(i=6,o=31&a):a>=224&&a<=239?(i=12,o=15&a):a>=240&&a<=247?(i=18,o=7&a):(i=0,o=65533),0===i||t(o,i,r(i,o))||(i=0,o=65533)):(i-=6,o=o<<6|63&a),0===i&&(o<=65535?n+=String.fromCharCode(o):n+=String.fromCharCode(55296+(o-65535-1>>10))+String.fromCharCode(56320+(o-65535-1&1023)))}return this.bitsNeeded=i,this.codePoint=o,n},(void 0==v||void 0==g||!function(){try{return"test"===new v().decode(new g().encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}())&&(v=w);var x=function(){};function E(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=x,this.onload=x,this.onerror=x,this.onreadystatechange=x,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=x}function S(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function _(e){for(var t=Object.create(null),r=e.split("\r\n"),n=0;n0&&void 0!==arguments[0]?arguments[0]:"nextauth.message";return{receive:function(t){var r=function(r){if(r.key===e){var n,i=JSON.parse(null!==(n=r.newValue)&&void 0!==n?n:"{}");(null==i?void 0:i.event)==="session"&&null!=i&&i.data&&t(i)}};return window.addEventListener("storage",r),function(){return window.removeEventListener("storage",r)}},post:function(t){if("undefined"!=typeof window)try{localStorage.setItem(e,JSON.stringify(l(l({},t),{},{timestamp:d()})))}catch(e){}}}},t.apiBaseUrl=c,t.fetchData=function(e,t,r){return u.apply(this,arguments)},t.now=d;var i=n(r(64687)),o=n(r(38416)),s=n(r(17156));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t3&&void 0!==v[3]?v[3]:{}).ctx,u=void 0===(a=o.req)?null==s?void 0:s.req:a,d="".concat(c(r),"/").concat(t),e.prev=2,p={headers:l({"Content-Type":"application/json"},null!=u&&null!==(f=u.headers)&&void 0!==f&&f.cookie?{cookie:u.headers.cookie}:{})},null!=u&&u.body&&(p.body=JSON.stringify(u.body),p.method="POST"),e.next=7,fetch(d,p);case 7:return h=e.sent,e.next=10,h.json();case 10:if(m=e.sent,h.ok){e.next=13;break}throw m;case 13:return e.abrupt("return",Object.keys(m).length>0?m:null);case 16:return e.prev=16,e.t0=e.catch(2),n.error("CLIENT_FETCH_ERROR",{error:e.t0,url:d}),e.abrupt("return",null);case 20:case"end":return e.stop()}},e,null,[[2,16]])}))).apply(this,arguments)}function c(e){return"undefined"==typeof window?"".concat(e.baseUrlServer).concat(e.basePathServer):e.basePath}function d(){return Math.floor(Date.now()/1e3)}},36925:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedStrategy=t.UnknownError=t.OAuthCallbackError=t.MissingSecret=t.MissingAuthorize=t.MissingAdapterMethods=t.MissingAdapter=t.MissingAPIRoute=t.InvalidCallbackUrl=t.AccountNotLinkedError=void 0,t.adapterErrorHandler=function(e,t){if(e)return Object.keys(e).reduce(function(r,n){return r[n]=(0,o.default)(i.default.mark(function r(){var o,s,a,l,u,c=arguments;return i.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:for(r.prev=0,s=Array(o=c.length),a=0;a0&&void 0!==n[0]?n[0]:{}).event,e.prev=1,!((r="storage"===t)||void 0===C._session)){e.next=10;break}return C._lastSync=(0,b.now)(),e.next=7,O({broadcast:!r});case 7:return C._session=e.sent,x(C._session),e.abrupt("return");case 10:if(!(!t||null===C._session||(0,b.now)()0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;try{if("undefined"==typeof window)return e;var r={},n=function(e){r[e]=function(r,n){l[e](r,n),"error"===e&&(n=a(n)),n.client=!0;var o="".concat(t,"/_log"),u=new URLSearchParams(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;t||(l.debug=function(){}),e.error&&(l.error=e.error),e.warn&&(l.warn=e.warn),e.debug&&(l.debug=e.debug)};var i=n(r(38416)),o=r(36925);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){var t;return e instanceof Error&&!(e instanceof o.UnknownError)?{message:e.message,stack:e.stack,name:e.name}:(null!=e&&e.error&&(e.error=a(e.error),e.message=null!==(t=e.message)&&void 0!==t?t:e.error.message),e)}var l={error:function(e,t){t=a(t),console.error("[next-auth][error][".concat(e,"]"),"\nhttps://next-auth.js.org/errors#".concat(e.toLowerCase()),t.message,t)},warn:function(e){console.warn("[next-auth][warn][".concat(e,"]"),"\nhttps://next-auth.js.org/warnings#".concat(e.toLowerCase()))},debug:function(e,t){console.log("[next-auth][debug][".concat(e,"]"),t)}};t.default=l},30762:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;let r=new URL("http://localhost:3000/api/auth");e&&!e.startsWith("http")&&(e=`https://${e}`);let n=new URL(null!==(t=e)&&void 0!==t?t:r),i=("/"===n.pathname?r.pathname:n.pathname).replace(/\/$/,""),o=`${n.origin}${i}`;return{origin:n.origin,host:n.host,path:i,base:o,toString:()=>o}}},83454:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(77663)},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(40048)}])},40048:function(e,t,r){"use strict";let n,i,o,s,a,l,u,c,d,f,p,h,m;r.r(t),r.d(t,{default:function(){return i$},fonts:function(){return iV}});var v,g,y=r(85893);r(82877);var b=r(76733),w=r(54792),x=r(32433),E=r(67294);r(73935);let S=E.createContext(null);function _(e){let{children:t}=e,r=(0,E.useContext)(S),[n,i]=(0,E.useState)(0),o=(0,E.useMemo)(()=>({parent:r,modalCount:n,addModal(){i(e=>e+1),r&&r.addModal()},removeModal(){i(e=>e-1),r&&r.removeModal()}}),[r,n]);return E.createElement(S.Provider,{value:o},t)}function T(e){let t;let{modalProviderProps:r}={modalProviderProps:{"aria-hidden":!!(t=(0,E.useContext)(S))&&t.modalCount>0||null}};return E.createElement("div",{"data-overlay-container":!0,...e,...r})}function C(e){return E.createElement(_,null,E.createElement(T,e))}var k=r(31602),P=r(22081),M=({children:e,navigate:t,disableAnimation:r=!1,disableRipple:n=!1,skipFramerMotionAnimations:i=r,validationBehavior:o="aria",locale:s="en-US",defaultDates:a={minDate:new k.aw(1900,1,1),maxDate:new k.aw(2099,12,31)},createCalendar:l,...u})=>{let c=e;t&&(c=(0,y.jsx)(x.pG,{navigate:t,children:c}));let d=(0,E.useMemo)(()=>(r&&i&&(P.c.skipAnimations=!0),{createCalendar:l,defaultDates:a,disableAnimation:r,disableRipple:n,validationBehavior:o}),[l,null==a?void 0:a.maxDate,null==a?void 0:a.minDate,r,n,o]);return(0,y.jsx)(b.a,{value:d,children:(0,y.jsx)(w.b,{locale:s,children:(0,y.jsx)(C,{...u,children:c})})})},O=r(33299),A=r(42163),I=r.n(A),L=r(32872),D=r.n(L),R=r(55678);r(22130);var N=r(12301);let j=["light","dark"],$="(prefers-color-scheme: dark)",V="undefined"==typeof window,z=(0,E.createContext)(void 0),F=e=>(0,E.useContext)(z)?E.createElement(E.Fragment,null,e.children):E.createElement(H,e),B=["light","dark"],H=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:i="theme",themes:o=B,defaultTheme:s=r?"system":"light",attribute:a="data-theme",value:l,children:u,nonce:c})=>{let[d,f]=(0,E.useState)(()=>U(i,s)),[p,h]=(0,E.useState)(()=>U(i)),m=l?Object.values(l):o,v=(0,E.useCallback)(e=>{let i=e;if(!i)return;"system"===e&&r&&(i=q());let o=l?l[i]:i,u=t?W():null,c=document.documentElement;if("class"===a?(c.classList.remove(...m),o&&c.classList.add(o)):o?c.setAttribute(a,o):c.removeAttribute(a),n){let e=j.includes(s)?s:null,t=j.includes(i)?i:e;c.style.colorScheme=t}null==u||u()},[]),g=(0,E.useCallback)(e=>{f(e);try{localStorage.setItem(i,e)}catch(e){}},[e]),y=(0,E.useCallback)(t=>{h(q(t)),"system"===d&&r&&!e&&v("system")},[d,e]);(0,E.useEffect)(()=>{let e=window.matchMedia($);return e.addListener(y),y(e),()=>e.removeListener(y)},[y]),(0,E.useEffect)(()=>{let e=e=>{e.key===i&&g(e.newValue||s)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[g]),(0,E.useEffect)(()=>{v(null!=e?e:d)},[e,d]);let b=(0,E.useMemo)(()=>({theme:d,setTheme:g,forcedTheme:e,resolvedTheme:"system"===d?p:d,themes:r?[...o,"system"]:o,systemTheme:r?p:void 0}),[d,g,e,p,r,o]);return E.createElement(z.Provider,{value:b},E.createElement(G,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:r,enableColorScheme:n,storageKey:i,themes:o,defaultTheme:s,attribute:a,value:l,children:u,attrs:m,nonce:c}),u)},G=(0,E.memo)(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:i,defaultTheme:o,value:s,attrs:a,nonce:l})=>{let u="system"===o,c="class"===r?`var d=document.documentElement,c=d.classList;c.remove(${a.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,d=i?j.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(e,t=!1,n=!0)=>{let o=s?s[e]:e,a=t?e+"|| ''":`'${o}'`,l="";return i&&n&&!t&&j.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===r?l+=t||o?`c.add(${a})`:"null":o&&(l+=`d[s](n,${a})`),l},p=e?`!function(){${c}${f(e)}}()`:n?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${$}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${f(s?"x[e]":"e",!0)}}${u?"":"else{"+f(o,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${f(s?"x[e]":"e",!0)}}else{${f(o,!1,!1)};}${d}}catch(t){}}();`;return E.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})},()=>!0),U=(e,t)=>{let r;if(!V){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},W=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},q=e=>(e||(e=window.matchMedia($)),e.matches?"dark":"light"),K="8.21.0",Y=globalThis;function X(e,t,r){let n=r||Y,i=n.__SENTRY__=n.__SENTRY__||{},o=i[K]=i[K]||{};return o[e]||(o[e]=t())}let J="production";function Z(){return Q(Y),Y}function Q(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||K,t[K]=t[K]||{}}let ee=Object.prototype.toString;function et(e){switch(ee.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return ed(e,Error)}}function er(e,t){return ee.call(e)===`[object ${t}]`}function en(e){return er(e,"ErrorEvent")}function ei(e){return er(e,"DOMError")}function eo(e){return er(e,"String")}function es(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function ea(e){return null===e||es(e)||"object"!=typeof e&&"function"!=typeof e}function el(e){return er(e,"Object")}function eu(e){return"undefined"!=typeof Event&&ed(e,Event)}function ec(e){return!!(e&&e.then&&"function"==typeof e.then)}function ed(e,t){try{return e instanceof t}catch(e){return!1}}function ef(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}function ep(e,t={}){if(!e)return"";try{let r,n=e,i=[],o=0,s=0,a=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&o++<5&&(r=function(e,t){let r=[];if(!e||!e.tagName)return"";if(Y.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}r.push(e.tagName.toLowerCase());let n=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(n&&n.length)n.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&r.push(`#${e.id}`);let t=e.className;if(t&&eo(t))for(let e of t.split(/\s+/))r.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let n=e.getAttribute(t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}(n,a),"html"!==r&&(!(o>1)||!(s+3*i.length+r.length>=l)));)i.push(r),s+=r.length,n=n.parentNode;return i.reverse().join(" > ")}catch(e){return""}}function eh(e){if(!Y.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}let em="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ev=["debug","info","warn","error","log","assert","trace"],eg={};function ey(e){if(!("console"in Y))return e();let t=Y.console,r={},n=Object.keys(eg);n.forEach(e=>{let n=eg[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}let eb=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return em?ev.forEach(r=>{t[r]=(...t)=>{e&&ey(()=>{Y.console[r](`Sentry Logger [${r}]:`,...t)})}}):ev.forEach(e=>{t[e]=()=>void 0}),t}();function ew(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function ex(e,t){if(!Array.isArray(e))return"";let r=[];for(let t=0;t(function(e,t,r=!1){return!!eo(e)&&(er(t,"RegExp")?t.test(e):!!eo(t)&&(r?e===t:e.includes(t)))})(e,t,r))}function eS(e,t,r){if(!(t in e))return;let n=e[t],i=r(n);"function"==typeof i&&eT(i,n),e[t]=i}function e_(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(r){em&&eb.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function eT(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,e_(e,"__sentry_original__",t)}catch(e){}}function eC(e){return e.__sentry_original__}function ek(e){if(et(e))return{message:e.message,name:e.name,stack:e.stack,...eM(e)};if(!eu(e))return e;{let t={type:e.type,target:eP(e.target),currentTarget:eP(e.currentTarget),...eM(e)};return"undefined"!=typeof CustomEvent&&ed(e,CustomEvent)&&(t.detail=e.detail),t}}function eP(e){try{return"undefined"!=typeof Element&&ed(e,Element)?ep(e):Object.prototype.toString.call(e)}catch(e){return""}}function eM(e){if("object"!=typeof e||null===e)return{};{let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}}function eO(e){return function e(t,r){if(function(e){if(!el(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){let n=r.get(t);if(void 0!==n)return n;let i={};for(let n of(r.set(t,i),Object.keys(t)))void 0!==t[n]&&(i[n]=e(t[n],r));return i}if(Array.isArray(t)){let n=r.get(t);if(void 0!==n)return n;let i=[];return r.set(t,i),t.forEach(t=>{i.push(e(t,r))}),i}return t}(e,new Map)}function eA(){let e=Y.crypto||Y.msCrypto,t=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(t=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&t())>>e/4).toString(16))}function eI(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function eL(e){let{message:t,event_id:r}=e;if(t)return t;let n=eI(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function eD(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=r||"Error")}function eR(e,t){let r=eI(e);if(!r)return;let n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){let e={...n&&n.data,...t.data};r.mechanism.data=e}}function eN(e){if(e&&e.__sentry_captured__)return!0;try{e_(e,"__sentry_captured__",!0)}catch(e){}return!1}function ej(e){return Array.isArray(e)?e:[e]}function e$(){return{traceId:eA(),spanId:eA().substring(16)}}function eV(){return Date.now()/1e3}let ez=function(){let{performance:e}=Y;if(!e||!e.now)return eV;let t=Date.now()-e.now(),r=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(r+e.now())/1e3}(),eF=(()=>{let{performance:e}=Y;if(!e||!e.now)return;let t=e.now(),r=Date.now(),n=e.timeOrigin?Math.abs(e.timeOrigin+t-r):36e5,i=e.timing&&e.timing.navigationStart,o="number"==typeof i?Math.abs(i+t-r):36e5;return n<36e5||o<36e5?n<=o?e.timeOrigin:i:r})();function eB(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||ez(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:eA()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}let eH="_sentrySpan";function eG(e,t){t?e_(e,eH,t):delete e[eH]}class eU{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=e$()}clone(){let e=new eU;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,eG(e,this[eH]),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&eB(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,[r,n]=t instanceof eW?[t.getScopeData(),t.getRequestSession()]:el(t)?[e,e.requestSession]:[],{tags:i,extra:o,user:s,contexts:a,level:l,fingerprint:u=[],propagationContext:c}=r||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},s&&Object.keys(s).length&&(this._user=s),l&&(this._level=l),u.length&&(this._fingerprint=u),c&&(this._propagationContext=c),n&&(this._requestSession=n),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,eG(this,void 0),this._attachments=[],this._propagationContext=e$(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:100;if(r<=0)return this;let n={timestamp:eV(),...e},i=this._breadcrumbs;return i.push(n),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:this[eH]}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let r=t&&t.event_id?t.event_id:eA();if(!this._client)return eb.warn("No client configured on scope - will not capture exception!"),r;let n=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){let n=r&&r.event_id?r.event_id:eA();if(!this._client)return eb.warn("No client configured on scope - will not capture message!"),n;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...r,event_id:n},this),n}captureEvent(e,t){let r=t&&t.event_id?t.event_id:eA();return this._client?this._client.captureEvent(e,{...t,event_id:r},this):eb.warn("No client configured on scope - will not capture event!"),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}let eW=eU;class eq{constructor(e,t){let r,n;r=e||new eW,n=t||new eW,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){let t;let r=this._pushScope();try{t=e(r)}catch(e){throw this._popScope(),e}return ec(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function eK(){let e=Q(Z());return e.stack=e.stack||new eq(X("defaultCurrentScope",()=>new eW),X("defaultIsolationScope",()=>new eW))}function eY(e){return eK().withScope(e)}function eX(e,t){let r=eK();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function eJ(e){return eK().withScope(()=>e(eK().getIsolationScope()))}function eZ(e){let t=Q(e);return t.acs?t.acs:{withIsolationScope:eJ,withScope:eY,withSetScope:eX,withSetIsolationScope:(e,t)=>eJ(t),getCurrentScope:()=>eK().getScope(),getIsolationScope:()=>eK().getIsolationScope()}}function eQ(){return eZ(Z()).getCurrentScope()}function e0(){return eZ(Z()).getIsolationScope()}function e1(...e){let t=eZ(Z());if(2===e.length){let[r,n]=e;return r?t.withSetScope(r,n):t.withScope(n)}return t.withScope(e[0])}function e2(){return eQ().getClient()}let e5=/\(error: (.*)\)/,e3=/captureMessage|captureException/;function e4(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,r=0,n=0)=>{let i=[],o=e.split("\n");for(let e=r;e1024)continue;let s=e5.test(r)?r.replace(e5,"$1"):r;if(!s.match(/\S*Error: /)){for(let e of t){let t=e(s);if(t){i.push(t);break}}if(i.length>=50+n)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(e6(t).function||"")&&t.pop(),t.reverse(),e3.test(e6(t).function||"")&&(t.pop(),e3.test(e6(t).function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||e6(t).filename,function:e.function||"?"}))}(i.slice(n))}}function e6(e){return e[e.length-1]||{}}let e8="";function e9(e){try{if(!e||"function"!=typeof e)return e8;return e.name||e8}catch(e){return e8}}function e7(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch(e){}}}function te(e,t=100,r=Infinity){try{return function e(t,r,n=Infinity,i=Infinity,o=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(r){if(e)return!!t.has(r)||(t.add(r),!1);for(let e=0;e=i){c[t]="[MaxProperties ~]";break}let r=f[t];c[t]=e(t,r,u-1,i,o),d++}return a(r),c}("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function tt(e){return new tn(t=>{t(e)})}function tr(e){return new tn((t,r)=>{r(e)})}(v=g||(g={}))[v.PENDING=0]="PENDING",v[v.RESOLVED=1]="RESOLVED",v[v.REJECTED=2]="REJECTED";class tn{constructor(e){tn.prototype.__init.call(this),tn.prototype.__init2.call(this),tn.prototype.__init3.call(this),tn.prototype.__init4.call(this),this._state=g.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new tn((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new tn((t,r)=>{let n,i;return this.then(t=>{i=!1,n=t,e&&e()},t=>{i=!0,n=t,e&&e()}).then(()=>{if(i){r(n);return}t(n)})})}__init(){this._resolve=e=>{this._setResult(g.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(g.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===g.PENDING){if(ec(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===g.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===g.RESOLVED&&e[1](this._value),this._state===g.REJECTED&&e[2](this._value),e[0]=!0)})}}}let ti="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,to="baggage",ts="sentry-",ta=/^sentry-/;function tl(e){let t=e&&(eo(e)||Array.isArray(e))?Array.isArray(e)?e.reduce((e,t)=>(Object.entries(tc(t)).forEach(([t,r])=>{e[t]=r}),e),{}):tc(e):void 0;if(!t)return;let r=Object.entries(t).reduce((e,[t,r])=>(t.match(ta)&&(e[t.slice(ts.length)]=r),e),{});return Object.keys(r).length>0?r:void 0}function tu(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,r],n)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,o=0===n?i:`${e},${i}`;return o.length>8192?(em&&eb.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):o},"")}(Object.entries(e).reduce((e,[t,r])=>(r&&(e[`${ts}${t}`]=r),e),{}))}function tc(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}let td="sentry.source",tf="sentry.sample_rate",tp="sentry.op",th="sentry.origin",tm="sentry.idle_span_finish_reason",tv="sentry.measurement_unit",tg="sentry.measurement_value",ty="sentry.exclusive_time",tb=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function tw(e=eA(),t=eA().substring(16),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}function tx(e){let t=e._sentryMetrics;if(!t)return;let r={};for(let[,[e,n]]of t)(r[e]||(r[e]=[])).push(eO(n));return r}function tE(e,t){e.setAttribute("http.response.status_code",t);let r=function(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"unknown_error"}}(t);"unknown_error"!==r.message&&e.setStatus(r)}function tS(e){let{traceId:t,spanId:r}=e.spanContext();return tw(t,r,tk(e))}function t_(e){return"number"==typeof e?tT(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?tT(e.getTime()):ez()}function tT(e){return e>9999999999?e/1e3:e}function tC(e){if("function"==typeof e.getSpanJSON)return e.getSpanJSON();try{let{spanId:t,traceId:r}=e.spanContext();if(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status){let{attributes:n,startTime:i,name:o,endTime:s,parentSpanId:a,status:l}=e;return eO({span_id:t,trace_id:r,data:n,description:o,parent_span_id:a,start_timestamp:t_(i),timestamp:t_(s)||void 0,status:tP(l),op:n[tp],origin:n[th],_metrics_summary:tx(e)})}return{span_id:t,trace_id:r}}catch(e){return{}}}function tk(e){let{traceFlags:t}=e.spanContext();return 1===t}function tP(e){return e&&0!==e.code?1===e.code?"ok":e.message||"unknown_error":void 0}let tM="_sentryChildSpans",tO="_sentryRootSpan";function tA(e,t){let r=e[tO]||e;e_(t,tO,r),e[tM]?e[tM].add(t):e_(e,tM,new Set([t]))}function tI(e){let t=new Set;return!function e(r){if(!t.has(r)&&tk(r))for(let n of(t.add(r),r[tM]?Array.from(r[tM]):[]))e(n)}(e),Array.from(t)}function tL(e){return e[tO]||e}function tD(){let e=eZ(Z());return e.getActiveSpan?e.getActiveSpan():eQ()[eH]}let tR="_frozenDsc";function tN(e,t){let r=t.getOptions(),{publicKey:n}=t.getDsn()||{},i=eO({environment:r.environment||J,release:r.release,public_key:n,trace_id:e});return t.emit("createDsc",i),i}function tj(e){let t=e2();if(!t)return{};let r=tN(tC(e).trace_id||"",t),n=tL(e),i=n[tR];if(i)return i;let o=n.spanContext().traceState,s=o&&o.get("sentry.dsc"),a=s&&tl(s);if(a)return a;let l=tC(n),u=l.data||{},c=u[tf];null!=c&&(r.sample_rate=`${c}`);let d=u[td],f=l.description;return"url"!==d&&f&&(r.transaction=f),r.sampled=String(tk(n)),t.emit("createDsc",r,n),r}function t$(e,t){let{extra:r,tags:n,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:l,fingerprint:u,eventProcessors:c,attachments:d,propagationContext:f,transactionName:p,span:h}=t;tV(e,"extra",r),tV(e,"tags",n),tV(e,"user",i),tV(e,"contexts",o),tV(e,"sdkProcessingMetadata",a),s&&(e.level=s),p&&(e.transactionName=p),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function tV(e,t,r){if(r&&Object.keys(r).length)for(let n in e[t]={...e[t]},r)Object.prototype.hasOwnProperty.call(r,n)&&(e[t][n]=r[n])}let tz=new WeakMap;function tF(e,t){return eQ().captureEvent(e,t)}function tB(e){let t=e2(),r=e0(),n=eQ(),{release:i,environment:o=J}=t&&t.getOptions()||{},{userAgent:s}=Y.navigator||{},a=function(e){let t=ez(),r={sid:eA(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>eO({sid:`${r.sid}`,init:r.init,started:new Date(1e3*r.started).toISOString(),timestamp:new Date(1e3*r.timestamp).toISOString(),status:r.status,errors:r.errors,did:"number"==typeof r.did||"string"==typeof r.did?`${r.did}`:void 0,duration:r.duration,abnormal_mechanism:r.abnormal_mechanism,attrs:{release:r.release,environment:r.environment,ip_address:r.ipAddress,user_agent:r.userAgent}})};return e&&eB(r,e),r}({release:i,environment:o,user:n.getUser()||r.getUser(),...s&&{userAgent:s},...e}),l=r.getSession();return l&&"ok"===l.status&&eB(l,{status:"exited"}),tH(),r.setSession(a),n.setSession(a),a}function tH(){let e=e0(),t=eQ(),r=t.getSession()||e.getSession();if(r){let e;e={},"ok"===r.status&&(e={status:"exited"}),eB(r,e)}tG(),e.setSession(),t.setSession()}function tG(){let e=e0(),t=eQ(),r=e2(),n=t.getSession()||e.getSession();n&&r&&r.captureSession(n)}function tU(e=!1){if(e){tH();return}tG()}let tW=[];function tq(e,t){for(let r of t)r&&r.afterAllSetup&&r.afterAllSetup(e)}function tK(e,t,r){if(r[t.name]){ti&&eb.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,-1===tW.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),tW.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}ti&&eb.log(`Integration installed: ${t.name}`)}let tY=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],tX=(e={})=>({name:"InboundFilters",processEvent:(t,r,n)=>{var i,o;return((i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:tY],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,n.getOptions())).ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(t)?(ti&&eb.warn(`Event dropped due to being internal Sentry Error. Event: ${eL(t)}`),0):(o=i.ignoreErrors,!t.type&&o&&o.length&&(function(e){let t;let r=[];e.message&&r.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(r.push(t.value),t.type&&r.push(`${t.type}: ${t.value}`)),r})(t).some(e=>eE(e,o)))?(ti&&eb.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${eL(t)}`),0):t.type||!t.exception||!t.exception.values||0===t.exception.values.length||t.message||t.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)?!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let r=e.transaction;return!!r&&eE(r,t)}(t,i.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let r=tJ(e);return!!r&&eE(r,t)}(t,i.denyUrls)?function(e,t){if(!t||!t.length)return!0;let r=tJ(e);return!r||eE(r,t)}(t,i.allowUrls)||(ti&&eb.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${eL(t)}. Url: ${tJ(t)}`),0):(ti&&eb.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${eL(t)}. Url: ${tJ(t)}`),0):(ti&&eb.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${eL(t)}`),0):(ti&&eb.warn(`Event dropped due to not having an error message, error type or stacktrace. Event: ${eL(t)}`),0))?t:null}});function tJ(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&""!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(t):null}catch(t){return ti&&eb.error(`Cannot extract url for event ${eL(e)}`),null}}let tZ=new WeakMap,tQ=()=>({name:"FunctionToString",setupOnce(){n=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=eC(this),r=tZ.has(e2())&&void 0!==t?t:this;return n.apply(r,e)}}catch(e){}},setup(e){tZ.set(e,!0)}}),t0=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var r;if((r=e)&&(function(e,t){let r=e.message,n=t.message;return!!((r||n)&&(!r||n)&&(r||!n)&&r===n&&t2(e,t)&&t1(e,t))}(t,r)||function(e,t){let r=t5(t),n=t5(e);return!!(r&&n&&r.type===n.type&&r.value===n.value&&t2(e,t)&&t1(e,t))}(t,r)))return ti&&eb.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function t1(e,t){let r=e7(e),n=e7(t);if(!r&&!n)return!0;if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e2?t[2]:void 0;if(r){let e=i,t=String(r);i=t,re("history",{from:e,to:t})}return e.apply(this,t)}}Y.onpopstate=function(...t){let r=Y.location.href,n=i;if(i=r,re("history",{from:n,to:r}),e)try{return e.apply(this,t)}catch(e){}},eS(Y.history,"pushState",t),eS(Y.history,"replaceState",t)}let rn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ri(e,t=!1){let{host:r,path:n,pass:i,port:o,projectId:s,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&i?`:${i}`:""}@${r}${o?`:${o}`:""}/${n?`${n}/`:n}${s}`}function ro(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function rs(e,t=[]){return[e,t]}function ra(e,t){for(let r of e[1]){let e=r[0].type;if(t(r,e))return!0}return!1}function rl(e){return Y.__SENTRY__&&Y.__SENTRY__.encodePolyfill?Y.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}let ru={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function rc(e){if(!e||!e.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}}class rd extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function rf(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if("number"!=typeof t||isNaN(t)||t<0||t>1){ti&&eb.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}let rp="Not capturing exception because it's already been captured.";class rh{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){let t="string"==typeof e?function(e){let t=rn.exec(e);if(!t){ey(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[r,n,i="",o="",s="",a=""]=t.slice(1),l="",u=a,c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return ro({host:o,pass:i,path:l,projectId:u,port:s,protocol:r,publicKey:n})}(e):ro(e);if(t&&function(e){if(!em)return!0;let{port:t,projectId:r,protocol:n}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(eb.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(r.match(/^\d+$/)?"http"===n||"https"===n?!(t&&isNaN(parseInt(t,10)))||(eb.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(eb.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(eb.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1))}(t))return t}(e.dsn):ti&&eb.warn("No DSN provided, client will not send events."),this._dsn){var t,r,n,i;let o=(t=this._dsn,r=e.tunnel,n=e._metadata?e._metadata.sdk:void 0,r||`${function(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}(t)}${t.projectId}/envelope/?${Object.keys(i={sentry_key:t.publicKey,sentry_version:"7",...n&&{sentry_client:`${n.name}/${n.version}`}}).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(i[e])}`).join("&")}`);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:o})}}captureException(e,t,r){let n=eA();if(eN(e))return ti&&eb.log(rp),n;let i={event_id:n,...t};return this._process(this.eventFromException(e,i).then(e=>this._captureEvent(e,i,r))),i.event_id}captureMessage(e,t,r,n){let i={event_id:eA(),...r},o=es(e)?e:String(e),s=ea(e)?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(s.then(e=>this._captureEvent(e,i,n))),i.event_id}captureEvent(e,t,r){let n=eA();if(t&&t.originalException&&eN(t.originalException))return ti&&eb.log(rp),n;let i={event_id:n,...t},o=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,o||r)),i.event_id}captureSession(e){"string"!=typeof e.release?ti&&eb.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),eB(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(r=>t.flush(e).then(e=>r&&e))):tt(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];tK(this,e,this._integrations),t||tq(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=function(e,t,r,n){var i;let o=rc(r),s=e.type&&"replay_event"!==e.type?e.type:"event";(i=r&&r.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||i.name,e.sdk.version=e.sdk.version||i.version,e.sdk.integrations=[...e.sdk.integrations||[],...i.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...i.packages||[]]);let a=function(e,t,r,n){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:ri(n)},...i&&{trace:eO({...i})}}}(e,o,n,t);return delete e.sdkProcessingMetadata,rs(a,[[{type:s},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=function(e,t){let[r,n]=e;return[r,[...n,t]]}(r,function(e){let t="string"==typeof e.data?rl(e.data):e.data;return[eO({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}(e));let n=this.sendEnvelope(r);n&&n.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=function(e,t,r,n){let i=rc(r);return rs({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:ri(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,r){if(this._options.sendClientReports){let n="number"==typeof r?r:1,i=`${e}:${t}`;ti&&eb.log(`Recording outcome: "${i}"${n>1?` (${n} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+n}}on(e,t){let r=this._hooks[e]=this._hooks[e]||[];return r.push(t),()=>{let e=r.indexOf(t);e>-1&&r.splice(e,1)}}emit(e,...t){let r=this._hooks[e];r&&r.forEach(e=>e(...t))}sendEnvelope(e){return(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)?this._transport.send(e).then(null,e=>(ti&&eb.error("Error while sending event:",e),e)):(ti&&eb.error("Transport disabled"),tt({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=function(e,t){let r={};return t.forEach(t=>{t&&tK(e,t,r)}),r}(this,e),tq(this,e)}_updateSessionFromEvent(e,t){let r=!1,n=!1,i=t.exception&&t.exception.values;if(i)for(let e of(n=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){r=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&r)&&(eB(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new tn(t=>{let r=0,n=setInterval(()=>{0==this._numProcessing?(clearInterval(n),t(!0)):(r+=1,e&&r>=e&&(clearInterval(n),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n=e0()){let i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(function(e,t,r,n,i,o){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,l={...t,event_id:t.event_id||r.event_id||eA(),timestamp:t.timestamp||eV()},u=r.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:r,release:n,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?r:J),void 0===e.release&&void 0!==n&&(e.release=n),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=ew(e.message,o));let s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=ew(s.value,o));let a=e.request;a&&a.url&&(a.url=ew(a.url,o))})(l,e),u.length>0&&(l.sdk=l.sdk||{},l.sdk.integrations=[...l.sdk.integrations||[],...u]),i&&i.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let r;let n=Y._sentryDebugIds;if(!n)return;let i=tz.get(t);i?r=i:(r=new Map,tz.set(t,r));let o=Object.entries(n).reduce((e,[n,i])=>{let o;let s=r.get(n);s?o=s:(o=t(n),r.set(n,o));for(let t=o.length-1;t>=0;t--){let r=o[t];if(r.filename){e[r.filename]=i;break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=o[e.filename])})})}catch(e){}}(l,e.stackParser);let c=function(e,t){if(!t)return e;let r=e?e.clone():new eW;return r.update(t),r}(n,r.captureContext);r.mechanism&&eR(l,r.mechanism);let d=i?i.getEventProcessors():[],f=X("globalScope",()=>new eW).getScopeData();o&&t$(f,o.getScopeData()),c&&t$(f,c.getScopeData());let p=[...r.attachments||[],...f.attachments];return p.length&&(r.attachments=p),function(e,t){let{fingerprint:r,span:n,breadcrumbs:i,sdkProcessingMetadata:o}=t;(function(e,t){let{extra:r,tags:n,user:i,contexts:o,level:s,transactionName:a}=t,l=eO(r);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});let u=eO(n);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});let c=eO(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});let d=eO(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),s&&(e.level=s),a&&"transaction"!==e.type&&(e.transaction=a)})(e,t),n&&function(e,t){e.contexts={trace:function(e){let{spanId:t,traceId:r}=e.spanContext(),{parent_span_id:n}=tC(e);return eO({parent_span_id:n,span_id:t,trace_id:r})}(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:tj(t),...e.sdkProcessingMetadata};let r=tC(tL(t)).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,n),e.fingerprint=e.fingerprint?ej(e.fingerprint):[],r&&(e.fingerprint=e.fingerprint.concat(r)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint,function(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(e,i),e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...o}}(l,f),(function e(t,r,n,i=0){return new tn((o,s)=>{let a=t[i];if(null===r||"function"!=typeof a)o(r);else{let l=a({...r},n);ti&&a.id&&null===l&&eb.log(`Event processor "${a.id}" dropped event`),ec(l)?l.then(r=>e(t,r,n,i+1).then(o)).then(null,s):e(t,l,n,i+1).then(o).then(null,s)}})})([...d,...f.eventProcessors],l,r).then(e=>(e&&function(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof s&&s>0)?function(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:te(e.data,t,r)}}))},...e.user&&{user:te(e.user,t,r)},...e.contexts&&{contexts:te(e.contexts,t,r)},...e.extra&&{extra:te(e.extra,t,r)}};return e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=te(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:te(e.data,t,r)}}))),n}(e,s,a):e)})(i,e,t,r,this,n).then(e=>{if(null===e)return e;let t={...n.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){let{traceId:r,spanId:n,parentSpanId:i,dsc:o}=t;e.contexts={trace:eO({trace_id:r,span_id:n,parent_span_id:i}),...e.contexts};let s=o||tN(r,this);e.sdkProcessingMetadata={dynamicSamplingContext:s,...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},r){return this._processEvent(e,t,r).then(e=>e.event_id,e=>{ti&&("log"===e.logLevel?eb.log(e.message):eb.warn(e))})}_processEvent(e,t,r){let n=this.getOptions(),{sampleRate:i}=n,o=rv(e),s=rm(e),a=e.type||"error",l=`before send for type \`${a}\``,u=void 0===i?void 0:rf(i);if(s&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",e),tr(new rd(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let c="replay_event"===a?"replay":a,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,r,d).then(r=>{if(null===r)throw this.recordDroppedEvent("event_processor",c,e),new rd("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?r:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if(ec(e))return e.then(e=>{if(!el(e)&&null!==e)throw new rd(r);return e},e=>{throw new rd(`${t} rejected with ${e}`)});if(!el(e)&&null!==e)throw new rd(r);return e}(function(e,t,r,n){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s}=t;if(rm(r)&&i)return i(r,n);if(rv(r)){if(r.spans&&s){let t=[];for(let n of r.spans){let r=s(n);r?t.push(r):e.recordDroppedEvent("before_send","span")}r.spans=t}if(o){if(r.spans){let e=r.spans.length;r.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(r,n)}}return r}(this,n,r,t),l)}).then(n=>{if(null===n){if(this.recordDroppedEvent("before_send",c,e),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new rd(`${l} returned \`null\`, will not send event.`,"log")}let i=r&&r.getSession();if(!o&&i&&this._updateSessionFromEvent(i,n),o){let e=(n.sdkProcessingMetadata&&n.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(n.spans?n.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let s=n.transaction_info;return o&&s&&n.transaction!==e.transaction&&(n.transaction_info={...s,source:"custom"}),this.sendEvent(n,t),n}).then(null,e=>{if(e instanceof rd)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new rd(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){var e;ti&&eb.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){ti&&eb.log("No outcomes to send");return}if(!this._dsn){ti&&eb.log("No dsn provided, will not send outcomes");return}ti&&eb.log("Sending outcomes:",t);let r=rs((e=this._options.tunnel&&ri(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:eV(),discarded_events:t}]]);this.sendEnvelope(r)}}function rm(e){return void 0===e.type}function rv(e){return"transaction"===e.type}function rg(e,t,r=[t],n="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:r.map(e=>({name:`${n}:@sentry/${e}`,version:K})),version:K}),e._metadata=i}let ry="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function rb(e,t){let r=rx(e,t),n={type:t&&t.name,value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function rw(e,t){return{exception:{values:[rb(e,t)]}}}function rx(e,t){let r=t.stacktrace||t.stack||"",n=t&&rE.test(t.message)?1:0,i="number"==typeof t.framesToPop?t.framesToPop:0;try{return e(r,n,i)}catch(e){}return[]}let rE=/Minified React error #\d+;/i;function rS(e,t,r,n,i){let o;if(en(t)&&t.error)return rw(e,t.error);if(ei(t)||er(t,"DOMException")){if("stack"in t)o=rw(e,t);else{let i=t.name||(ei(t)?"DOMError":"DOMException"),s=t.message?`${i}: ${t.message}`:i;eD(o=r_(e,s,r,n),s)}return"code"in t&&(o.tags={...o.tags,"DOMException.code":`${t.code}`}),o}return et(t)?rw(e,t):(el(t)||eu(t)?eR(o=function(e,t,r,n){let i=e2(),o=i&&i.getOptions().normalizeDepth,s=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];if(r instanceof Error)return r}}(t),a={__serialized__:function e(t,r=3,n=102400){let i=te(t,r);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>n?e(t,r-1,n):i}(t,o)};if(s)return{exception:{values:[rb(e,s)]},extra:a};let l={exception:{values:[{type:eu(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=function(e,t=40){let r=Object.keys(ek(e));r.sort();let n=r[0];if(!n)return"[object has no keys]";if(n.length>=t)return ew(n,t);for(let e=r.length;e>0;e--){let n=r.slice(0,e).join(", ");if(!(n.length>t)){if(e===r.length)return n;return ew(n,t)}}return""}(e),n=t?"promise rejection":"exception";if(en(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if(eu(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}(t,{isUnhandledRejection:n})}]},extra:a};if(r){let t=rx(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,r,i),{synthetic:!0}):(eD(o=r_(e,t,r,n),`${t}`,void 0),eR(o,{synthetic:!0})),o)}function r_(e,t,r,n){let i={};if(n&&r){let n=rx(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]})}if(es(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}let rT=0;function rC(e,t={},r){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)return t;if(eC(e))return e}catch(t){return e}let n=function(){let n=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);let i=n.map(e=>rC(e,t));return e.apply(this,i)}catch(e){throw rT++,setTimeout(()=>{rT--}),e1(r=>{r.addEventProcessor(e=>(t.mechanism&&(eD(e,void 0,void 0),eR(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),eQ().captureException(e,void 0)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch(e){}eT(n,e),e_(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch(e){}return n}class rk extends rh{constructor(e){let t={parentSpanIsAlwaysRootSpan:!0,...e};rg(t,"browser",["browser"],Y.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&Y.document&&Y.document.addEventListener("visibilitychange",()=>{"hidden"===Y.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,r,n){let i=rS(e,t,r&&r.syntheticException||void 0,n);return eR(i),i.level="error",r&&r.event_id&&(i.event_id=r.event_id),tt(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return function(e,t,r="info",n,i){let o=r_(e,t,n&&n.syntheticException||void 0,i);return o.level=r,n&&n.event_id&&(o.event_id=n.event_id),tt(o)}(this._options.stackParser,e,t,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){ry&&eb.warn("SDK not enabled, will not capture user feedback.");return}let t=function(e,{metadata:t,tunnel:r,dsn:n}){return rs({event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!r&&!!n&&{dsn:ri(n)}},[[{type:"user_report"},e]])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r)}}function rP(){if(!Y.document)return;let e=re.bind(null,"dom"),t=rM(e,!0);Y.document.addEventListener("click",t,!1),Y.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=Y[t]&&Y[t].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(eS(r,"addEventListener",function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=n[r]=n[r]||{refCount:0};if(!o.handler){let n=rM(e);o.handler=n,t.call(this,r,n,i)}o.refCount++}catch(e){}return t.call(this,r,n,i)}}),eS(r,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},i=r[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,r,n)}}))})}function rM(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;let n=function(e){try{return e.target}catch(e){return null}}(r);if("keypress"===r.type&&(!n||!n.tagName||"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&!n.isContentEditable))return;e_(r,"_sentryCaptured",!0),n&&!n._sentryId&&e_(n,"_sentryId",eA());let i="keypress"===r.type?"input":r.type;!function(e){if(e.type!==s)return!1;try{if(!e.target||e.target._sentryId!==a)return!1}catch(e){}return!0}(r)&&(e({event:r,name:i,global:t}),s=r.type,a=n?n._sentryId:void 0),clearTimeout(o),o=Y.setTimeout(()=>{a=void 0,s=void 0},1e3)}}let rO="__sentry_xhr_v3__";function rA(e){t9("xhr",e),t7("xhr",rI)}function rI(){if(!Y.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;eS(e,"open",function(e){return function(...t){let r=1e3*ez(),n=eo(t[0])?t[0].toUpperCase():void 0,i=function(e){if(eo(e))return e;try{return e.toString()}catch(e){}}(t[1]);if(!n||!i)return e.apply(this,t);this[rO]={method:n,url:i,request_headers:{}},"POST"===n&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let o=()=>{let e=this[rO];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}re("xhr",{endTimestamp:1e3*ez(),startTimestamp:r,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?eS(this,"onreadystatechange",function(e){return function(...t){return o(),e.apply(this,t)}}):this.addEventListener("readystatechange",o),eS(this,"setRequestHeader",function(e){return function(...t){let[r,n]=t,i=this[rO];return i&&eo(r)&&eo(n)&&(i.request_headers[r.toLowerCase()]=n),e.apply(this,t)}}),e.apply(this,t)}}),eS(e,"send",function(e){return function(...t){let r=this[rO];return r&&(void 0!==t[0]&&(r.body=t[0]),re("xhr",{startTimestamp:1e3*ez(),xhr:this})),e.apply(this,t)}})}function rL(e,t){let r=e2(),n=e0();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=r.getOptions();if(o<=0)return;let s={timestamp:eV(),...e},a=i?ey(()=>i(s,t)):s;null!==a&&(r.emit&&r.emit("beforeAddBreadcrumb",a,t),n.addBreadcrumb(a,o))}function rD(){"console"in Y&&ev.forEach(function(e){e in Y.console&&eS(Y.console,e,function(t){return eg[e]=t,function(...t){re("console",{args:t,level:e});let r=eg[e];r&&r.apply(Y.console,t)}})})}function rR(e,t){let r="fetch";t9(r,e),t7(r,()=>rN(void 0,t))}function rN(e,t=!1){(!t||function(){if("string"==typeof EdgeRuntime)return!0;if(!t3())return!1;if(t4(Y.fetch))return!0;let e=!1,t=Y.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=t4(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){em&&eb.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&eS(Y,"fetch",function(t){return function(...r){let{method:n,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:rV(t),method:r$(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:rV(t),method:r$(t,"method")?String(t.method).toUpperCase():"GET"}}(r),o={args:r,fetchData:{method:n,url:i},startTimestamp:1e3*ez()};e||re("fetch",{...o});let s=Error().stack;return t.apply(Y,r).then(async t=>(e?e(t):re("fetch",{...o,endTimestamp:1e3*ez(),response:t}),t),t=>{if(!e)throw re("fetch",{...o,endTimestamp:1e3*ez(),error:t}),et(t)&&void 0===t.stack&&(t.stack=s,e_(t,"framesToPop",1)),t})}})}async function rj(e){let t;try{t=e.clone()}catch(e){}await function(e,t){if(e&&e.body){let n=e.body.getReader();async function r({done:e}){if(e)return Promise.resolve();try{let e=await Promise.race([n.read(),new Promise(e=>{setTimeout(()=>{e({done:!0})},5e3)})]);await r(e)}catch(e){}}n.read().then(r).then(()=>{t()}).catch(()=>{})}}(t,()=>{re("fetch-body-resolved",{endTimestamp:1e3*ez(),response:e})})}function r$(e,t){return!!e&&"object"==typeof e&&!!e[t]}function rV(e){return"string"==typeof e?e:e?r$(e,"url")?e.url:e.toString?e.toString():"":""}let rz=["fatal","error","warning","log","info","debug"];function rF(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}let rB=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var r;t.console&&function(e){let t="console";t9(t,e),t7(t,rD)}(function(t){var r;if(e2()!==e)return;let n={category:"console",data:{arguments:t.args,logger:"console"},level:"warn"===(r=t.level)?"warning":rz.includes(r)?r:"log",message:ex(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${ex(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}rL(n,{input:t.args,level:t.level})}),t.dom&&(t9("dom",(r=t.dom,function(t){let n,i;if(e2()!==e)return;let o="object"==typeof r?r.serializeAttribute:void 0,s="object"==typeof r&&"number"==typeof r.maxStringLength?r.maxStringLength:void 0;s&&s>1024&&(ry&&eb.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof o&&(o=[o]);try{let e=t.event,r=e&&e.target?e.target:e;n=ep(r,{keyAttrs:o,maxStringLength:s}),i=eh(r)}catch(e){n=""}if(0===n.length)return;let a={category:`ui.${t.name}`,message:n};i&&(a.data={"ui.component_name":i}),rL(a,{event:t.event,name:t.name,global:t.global})})),t7("dom",rP)),t.xhr&&rA(function(t){if(e2()!==e)return;let{startTimestamp:r,endTimestamp:n}=t,i=t.xhr[rO];if(!r||!n||!i)return;let{method:o,url:s,status_code:a,body:l}=i;rL({category:"xhr",data:{method:o,url:s,status_code:a},type:"http"},{xhr:t.xhr,input:l,startTimestamp:r,endTimestamp:n})}),t.fetch&&rR(function(t){if(e2()!==e)return;let{startTimestamp:r,endTimestamp:n}=t;if(!(!n||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.error)rL({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:r,endTimestamp:n});else{let e=t.response;rL({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:r,endTimestamp:n})}}}),t.history&&rt(function(t){if(e2()!==e)return;let r=t.from,n=t.to,i=rF(Y.location.href),o=r?rF(r):void 0,s=rF(n);o&&o.path||(o=i),i.protocol===s.protocol&&i.host===s.host&&(n=s.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),rL({category:"navigation",data:{from:r,to:n}})}),t.sentry&&e.on("beforeSendEvent",function(t){e2()===e&&rL({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:eL(t)},{event:t})})}}},rH=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],rG=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&eS(Y,"setTimeout",rU),t.setInterval&&eS(Y,"setInterval",rU),t.requestAnimationFrame&&eS(Y,"requestAnimationFrame",rW),t.XMLHttpRequest&&"XMLHttpRequest"in Y&&eS(XMLHttpRequest.prototype,"send",rq);let e=t.eventTarget;e&&(Array.isArray(e)?e:rH).forEach(rK)}}};function rU(e){return function(...t){let r=t[0];return t[0]=rC(r,{mechanism:{data:{function:e9(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function rW(e){return function(t){return e.apply(this,[rC(t,{mechanism:{data:{function:"requestAnimationFrame",handler:e9(e)},handled:!1,type:"instrument"}})])}}function rq(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&eS(r,e,function(t){let r={mechanism:{data:{function:e,handler:e9(t)},handled:!1,type:"instrument"}},n=eC(t);return n&&(r.mechanism.data.handler=e9(n)),rC(t,r)})}),e.apply(this,t)}}function rK(e){let t=Y[e]&&Y[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(eS(t,"addEventListener",function(t){return function(r,n,i){try{"function"==typeof n.handleEvent&&(n.handleEvent=rC(n.handleEvent,{mechanism:{data:{function:"handleEvent",handler:e9(n),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[r,rC(n,{mechanism:{data:{function:"addEventListener",handler:e9(n),target:e},handled:!1,type:"instrument"}}),i])}}),eS(t,"removeEventListener",function(e){return function(t,r,n){try{let i=r&&r.__sentry_wrapped__;i&&e.call(this,t,i,n)}catch(e){}return e.call(this,t,r,n)}}))}let rY=null;function rX(e){let t="error";t9(t,e),t7(t,rJ)}function rJ(){rY=Y.onerror,Y.onerror=function(e,t,r,n,i){return re("error",{column:n,error:i,line:r,msg:e,url:t}),!!rY&&!rY.__SENTRY_LOADER__&&rY.apply(this,arguments)},Y.onerror.__SENTRY_INSTRUMENTED__=!0}let rZ=null;function rQ(e){let t="unhandledrejection";t9(t,e),t7(t,r0)}function r0(){rZ=Y.onunhandledrejection,Y.onunhandledrejection=function(e){return re("unhandledrejection",e),!rZ||!!rZ.__SENTRY_LOADER__||rZ.apply(this,arguments)},Y.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let r1=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(rX(t=>{let{stackParser:r,attachStacktrace:n}=r5();if(e2()!==e||rT>0)return;let{msg:i,url:o,line:s,column:a,error:l}=t,u=function(e,t,r,n){let i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],u=isNaN(parseInt(n,10))?void 0:n,c=isNaN(parseInt(r,10))?void 0:r,d=eo(t)&&t.length>0?t:function(){try{return Y.document.location.href}catch(e){return""}}();return 0===l.length&&l.push({colno:u,filename:d,function:"?",in_app:!0,lineno:c}),e}(rS(r,l||i,void 0,n,!1),o,s,a);u.level="error",tF(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})}),r2("onerror")),t.onunhandledrejection&&(rQ(t=>{let{stackParser:r,attachStacktrace:n}=r5();if(e2()!==e||rT>0)return;let i=function(e){if(ea(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),o=ea(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:rS(r,i,void 0,n,!0);o.level="error",tF(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}),r2("onunhandledrejection"))}}};function r2(e){ry&&eb.log(`Global Handler attached: ${e}`)}function r5(){let e=e2();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let r3=()=>({name:"HttpContext",preprocessEvent(e){if(!Y.navigator&&!Y.location&&!Y.document)return;let t=e.request&&e.request.url||Y.location&&Y.location.href,{referrer:r}=Y.document||{},{userAgent:n}=Y.navigator||{},i={...e.request&&e.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},o={...e.request,...t&&{url:t},headers:i};e.request=o}});function r4(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function r6(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}let r8=(e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,i){let o=i.getOptions();!function(e,t,r=250,n,i,o,s){if(!o.exception||!o.exception.values||!s||!ed(s.originalException,Error))return;let a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=(function e(t,r,n,i,o,s,a,l){if(s.length>=n+1)return s;let u=[...s];if(ed(i[o],Error)){r4(a,l);let s=t(r,i[o]),c=u.length;r6(s,o,c,l),u=e(t,r,n,i[o],o,[s,...u],s,c)}return Array.isArray(i.errors)&&i.errors.forEach((i,s)=>{if(ed(i,Error)){r4(a,l);let c=t(r,i),d=u.length;r6(c,`errors[${s}]`,d,l),u=e(t,r,n,i,o,[c,...u],c,d)}}),u})(e,t,i,s.originalException,n,o.exception.values,a,0).map(e=>(e.value&&(e.value=ew(e.value,r)),e)))}(rb,o.stackParser,o.maxValueLength,r,t,e,n)}}};function r9(e,t,r,n){let i={filename:e,function:""===t?"?":t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}let r7=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ne=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,nt=/\((\S*)(?::(\d+))(?::(\d+))\)/,nr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,nn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ni=e4([30,e=>{let t=r7.exec(e);if(t){let[,e,r,n]=t;return r9(e,"?",+r,+n)}let r=ne.exec(e);if(r){if(r[2]&&0===r[2].indexOf("eval")){let e=nt.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=no(r[1]||"?",r[2]);return r9(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],[50,e=>{let t=nr.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=nn.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||"?";return[r,e]=no(r,e),r9(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),no=(e,t)=>{let r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:"?",r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},ns="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,na={};function nl(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function nu(e,t=function(e){let t=na[e];if(t)return t;let r=Y[e];if(t4(r))return na[e]=r.bind(Y);let n=Y.document;if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(t){ns&&eb.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?na[e]=r.bind(Y):r}("fetch")){let r=0,n=0;return function(e,t,r=function(e){let t=[];function r(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(n){if(!(void 0===e||t.lengthr(i)).then(null,()=>r(i).then(null,()=>{})),i},drain:function(e){return new tn((r,n)=>{let i=t.length;if(!i)return r(!0);let o=setTimeout(()=>{e&&e>0&&r(!1)},e);t.forEach(e=>{tt(e).then(()=>{--i||(clearTimeout(o),r(!0))},n)})})}}}(e.bufferSize||64)){let n={};return{send:function(i){let o=[];if(ra(i,(t,r)=>{let i=ru[r];if(function(e,t,r=Date.now()){return(e[t]||e.all||0)>r}(n,i)){let n=nl(t,r);e.recordDroppedEvent("ratelimit_backoff",i,n)}else o.push(t)}),0===o.length)return tt({});let s=rs(i[0],o),a=t=>{ra(s,(r,n)=>{let i=nl(r,n);e.recordDroppedEvent(t,ru[n],i)})};return r.add(()=>t({body:function(e){let[t,r]=e,n=JSON.stringify(t);function i(e){"string"==typeof n?n="string"==typeof e?n+e:[rl(n),e]:n.push("string"==typeof e?rl(e):e)}for(let e of r){let[t,r]=e;if(i(` ${JSON.stringify(t)} `),"string"==typeof r||r instanceof Uint8Array)i(r);else{let e;try{e=JSON.stringify(r)}catch(t){e=JSON.stringify(te(r))}i(e)}}return"string"==typeof n?n:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}(n)}(s)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&ti&&eb.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=function(e,{statusCode:t,headers:r},n=Date.now()){let i={...e},o=r&&r["x-sentry-rate-limits"],s=r&&r["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,r,,,o]=e.split(":",5),s=parseInt(t,10),a=(isNaN(s)?60:s)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(i[e]=n+a):i[e]=n+a;else i.all=n+a}else s?i.all=n+function(e,t=Date.now()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}(s,n):429===t&&(i.all=n+6e4);return i}(n,e),e),e=>{throw a("network_error"),e})).then(e=>e,e=>{if(e instanceof rd)return ti&&eb.error("Skipped sending event because buffer is full."),a("queue_overflow"),tt({});throw e})},flush:e=>r.drain(e)}}(e,function(i){let o=i.body.length;r+=o,n++;let s={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};if(!t)return na.fetch=void 0,tr("No fetch implementation available");try{return t(e.url,s).then(e=>(r-=o,n--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return na.fetch=void 0,r-=o,n--,tr(e)}})}function nc(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||function(){let e=e2();return e&&e.getOptions()}();return!!t&&(t.enableTracing||"tracesSampleRate"in t||"tracesSampler"in t)}class nd{constructor(e={}){this._traceId=e.traceId||eA(),this._spanId=e.spanId||eA().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}function nf(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let r=e.attributes||{},n=r[tv],i=r[tg];"string"==typeof n&&"number"==typeof i&&(t[e.name]={value:i,unit:n})}),t}let np="_sentryScope",nh="_sentryIsolationScope";function nm(e){return{scope:e[np],isolationScope:e[nh]}}class nv{constructor(e={}){this._traceId=e.traceId||eA(),this._spanId=e.spanId||eA().substring(16),this._startTime=e.startTimestamp||ez(),this._attributes={},this.setAttributes({[th]:"manual",[tp]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this}addLinks(e){return this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?1:0}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=t_(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=t_(e),function(e){if(!ti)return;let{description:t="< unknown name >",op:r="< unknown op >"}=tC(e),{spanId:n}=e.spanContext(),i=tL(e)===e,o=`[Tracing] Finishing "${r}" ${i?"root ":""}span "${t}" with ID ${n}`;eb.log(o)}(this),this._onSpanEnded())}getSpanJSON(){return eO({data:this._attributes,description:this._name,op:this._attributes[tp],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:tP(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[th],_metrics_summary:tx(this),profile_id:this._attributes["sentry.profile_id"],exclusive_time:this._attributes[ty],measurements:nf(this._events),is_segment:this._isStandaloneSpan&&tL(this)===this||void 0,segment_id:this._isStandaloneSpan?tL(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){ti&&eb.log("[Tracing] Adding an event to span:",e);let n=ng(t)?t:r||ez(),i=ng(t)?{}:t||{},o={name:e,time:t_(n),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=e2();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===tL(this)))return;if(this._isStandaloneSpan){this._sampled?function(e){let t=e2();if(!t)return;let r=e[1];if(!r||0===r.length){t.recordDroppedEvent("before_send","span");return}let n=t.getTransport();n&&n.send(e).then(null,e=>{ti&&eb.error("Error while sending span:",e)})}(function(e,t){let r=tj(e[0]),n=t&&t.getDsn(),i=t&&t.getOptions().tunnel,o={sent_at:new Date().toISOString(),...!!r.trace_id&&!!r.public_key&&{trace:r},...!!i&&n&&{dsn:ri(n)}},s=t&&t.getOptions().beforeSendSpan,a=s?e=>s(tC(e)):e=>tC(e),l=[];for(let t of e){let e=a(t);e&&l.push([{type:"span"},e])}return rs(o,l)}([this],e)):(ti&&eb.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}let t=this._convertSpanToTransaction();t&&(nm(this).scope||eQ()).captureEvent(t)}_convertSpanToTransaction(){if(!ny(tC(this)))return;this._name||(ti&&eb.warn("Transaction has no name, falling back to ``."),this._name="");let{scope:e,isolationScope:t}=nm(this),r=(e||eQ()).getClient()||e2();if(!0!==this._sampled){ti&&eb.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),r&&r.recordDroppedEvent("sample_rate","transaction");return}let n=tI(this).filter(e=>e!==this&&!(e instanceof nv&&e.isStandaloneSpan())).map(e=>tC(e)).filter(ny),i=this._attributes[td],o={contexts:{trace:function(e){let{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:o,status:s,origin:a}=tC(e);return eO({parent_span_id:o,span_id:t,trace_id:r,data:n,op:i,status:s,origin:a})}(this)},spans:n.length>1e3?n.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):n,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...eO({dynamicSamplingContext:tj(this)})},_metrics_summary:tx(this),...i&&{transaction_info:{source:i}}},s=nf(this._events);return s&&Object.keys(s).length&&(ti&&eb.log("[Measurements] Adding measurements to transaction event",JSON.stringify(s,void 0,2)),o.measurements=s),o}}function ng(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function ny(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}let nb="__SENTRY_SUPPRESS_TRACING__";function nw(e){let t=eZ(Z());if(t.startInactiveSpan)return t.startInactiveSpan(e);let r=function(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let r={...t};return r.startTimestamp=t_(e.startTime),delete r.startTime,r}return t}(e),{forceTransaction:n,parentSpan:i}=e;return(e.scope?t=>e1(e.scope,t):void 0!==i?e=>nx(i,e):e=>e())(()=>{let t=eQ(),i=function(e){let t=e[eH];if(!t)return;let r=e2();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?tL(t):t}(t);return e.onlyIfParent&&!i?new nd:function({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){var i;let o;if(!nc())return new nd;let s=e0();if(e&&!r)o=function(e,t,r){let{spanId:n,traceId:i}=e.spanContext(),o=!t.getScopeData().sdkProcessingMetadata[nb]&&tk(e),s=o?new nv({...r,parentSpanId:n,traceId:i,sampled:o}):new nd({traceId:i});tA(e,s);let a=e2();return a&&(a.emit("spanStart",s),r.endTimestamp&&a.emit("spanEnd",s)),s}(e,n,t),tA(e,o);else if(e){let r=tj(e),{traceId:i,spanId:s}=e.spanContext(),a=tk(e);e_(o=nE({traceId:i,parentSpanId:s,...t},n,a),tR,r)}else{let{traceId:e,dsc:r,parentSpanId:i,sampled:a}={...s.getPropagationContext(),...n.getPropagationContext()};o=nE({traceId:e,parentSpanId:i,...t},n,a),r&&e_(o,tR,r)}return!function(e){if(!ti)return;let{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:n}=tC(e),{spanId:i}=e.spanContext(),o=tk(e),s=tL(e),a=s===e,l=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${r}`,`name: ${t}`,`ID: ${i}`];if(n&&u.push(`parent ID: ${n}`),!a){let{op:e,description:t}=tC(s);u.push(`root ID: ${s.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}eb.log(`${l} ${u.join("\n ")}`)}(o),(i=o)&&(e_(i,nh,s),e_(i,np,n)),o}({parentSpan:i,spanArguments:r,forceTransaction:n,scope:t})})}function nx(e,t){let r=eZ(Z());return r.withActiveSpan?r.withActiveSpan(e,t):e1(r=>(eG(r,e||void 0),t(r)))}function nE(e,t,r){let n=e2(),i=n&&n.getOptions()||{},{name:o="",attributes:s}=e,[a,l]=t.getScopeData().sdkProcessingMetadata[nb]?[!1]:function(e,t){let r;if(!nc(e))return[!1];let n=rf(r="function"==typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1);return void 0===n?(ti&&eb.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):n?Math.random()e>t[1]?"poor":e>t[0]?"needs-improvement":"good",n_=(e,t,r,n)=>{let i,o;return s=>{t.value>=0&&(s||n)&&((o=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=o,t.rating=nS(t.value,r),e(t))}},nT=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,nC=()=>Y.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],nk=()=>{let e=nC();return e&&e.activationStart||0},nP=(e,t)=>{let r=nC(),n="navigate";return r&&(Y.document&&Y.document.prerendering||nk()>0?n="prerender":Y.document&&Y.document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:nT(),navigationType:n}},nM=(e,t,r)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}},nO=e=>{let t=t=>{("pagehide"===t.type||Y.document&&"hidden"===Y.document.visibilityState)&&e(t)};Y.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},nA=e=>{let t=!1;return r=>{t||(e(r),t=!0)}},nI=-1,nL=()=>{nI="hidden"!==Y.document.visibilityState||Y.document.prerendering?1/0:0},nD=e=>{"hidden"===Y.document.visibilityState&&nI>-1&&(nI="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",nD,!0),removeEventListener("prerenderingchange",nD,!0))},nR=()=>{addEventListener("visibilitychange",nD,!0),addEventListener("prerenderingchange",nD,!0)},nN=()=>(Y.document&&nI<0&&(nL(),nR()),{get firstHiddenTime(){return nI}}),nj=e=>{Y.document&&Y.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},n$=[1800,3e3],nV=(e,t={})=>{nj(()=>{let r;let n=nN(),i=nP("FCP"),o=nM("paint",e=>{e.forEach(e=>{"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime{nV(nA(()=>{let r;let n=nP("CLS",0),i=0,o=[],s=e=>{e.forEach(e=>{if(!e.hadRecentInput){let t=o[0],r=o[o.length-1];i&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,o.push(e)):(i=e.value,o=[e])}}),i>n.value&&(n.value=i,n.entries=o,r())},a=nM("layout-shift",s);a&&(r=n_(e,n,nz,t.reportAllChanges),nO(()=>{s(a.takeRecords()),r(!0)}),setTimeout(r,0))}))},nB=[100,300],nH=(e,t={})=>{nj(()=>{let r;let n=nN(),i=nP("FID"),o=e=>{e.startTime{e.forEach(o)},a=nM("first-input",s);r=n_(e,i,nB,t.reportAllChanges),a&&nO(nA(()=>{s(a.takeRecords()),a.disconnect()}))})},nG=0,nU=1/0,nW=0,nq=e=>{e.forEach(e=>{e.interactionId&&(nU=Math.min(nU,e.interactionId),nG=(nW=Math.max(nW,e.interactionId))?(nW-nU)/7+1:0)})},nK=()=>l?nG:performance.interactionCount||0,nY=()=>{"interactionCount"in performance||l||(l=nM("event",nq,{type:"event",buffered:!0,durationThreshold:0}))},nX=[200,500],nJ=()=>nK()-0,nZ=[],nQ={},n0=e=>{let t=nZ[nZ.length-1],r=nQ[e.interactionId];if(r||nZ.length<10||t&&e.duration>t.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{let t={id:e.interactionId,latency:e.duration,entries:[e]};nQ[t.id]=t,nZ.push(t)}nZ.sort((e,t)=>t.latency-e.latency),nZ.splice(10).forEach(e=>{delete nQ[e.id]})}},n1=()=>{let e=Math.min(nZ.length-1,Math.floor(nJ()/50));return nZ[e]},n2=(e,t={})=>{nj(()=>{let r;nY();let n=nP("INP"),i=e=>{e.forEach(e=>{e.interactionId&&n0(e),"first-input"!==e.entryType||nZ.some(t=>t.entries.some(t=>e.duration===t.duration&&e.startTime===t.startTime))||n0(e)});let t=n1();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())},o=nM("event",i,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=n_(e,n,nX,t.reportAllChanges),o&&("PerformanceEventTiming"in Y&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),nO(()=>{i(o.takeRecords()),n.value<0&&nJ()>0&&(n.value=0,n.entries=[]),r(!0)}))})},n5=[2500,4e3],n3={},n4=(e,t={})=>{nj(()=>{let r;let n=nN(),i=nP("LCP"),o=e=>{let t=e[e.length-1];t&&t.startTime{n3[i.id]||(o(s.takeRecords()),s.disconnect(),n3[i.id]=!0,r(!0))});["keydown","click"].forEach(e=>{Y.document&&addEventListener(e,()=>setTimeout(n,0),!0)}),nO(n)}})},n6=[800,1800],n8=e=>{Y.document&&Y.document.prerendering?nj(()=>n8(e)):Y.document&&"complete"!==Y.document.readyState?addEventListener("load",()=>n8(e),!0):setTimeout(e,0)},n9=(e,t={})=>{let r=nP("TTFB"),n=n_(e,r,n6,t.reportAllChanges);n8(()=>{let e=nC();if(e){let t=e.responseStart;if(t<=0||t>performance.now())return;r.value=Math.max(t-nk(),0),r.entries=[e],n(!0)}})},n7={},ie={};function it(e,t){return ic(e,t),ie[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),nM(e,t=>{ir(e,{entries:t})},t)}(e),ie[e]=!0),id(e,t)}function ir(e,t){let r=n7[e];if(r&&r.length)for(let n of r)try{n(t)}catch(t){ns&&eb.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${e9(n)} Error:`,t)}}function ii(){return nF(e=>{ir("cls",{metric:e}),u=e},{reportAllChanges:!0})}function io(){return nH(e=>{ir("fid",{metric:e}),c=e})}function is(){return n4(e=>{ir("lcp",{metric:e}),d=e},{reportAllChanges:!0})}function ia(){return n9(e=>{ir("ttfb",{metric:e}),f=e})}function il(){return n2(e=>{ir("inp",{metric:e}),p=e})}function iu(e,t,r,n,i=!1){let o;return ic(e,t),ie[e]||(o=r(),ie[e]=!0),n&&t({metric:n}),id(e,t,i?o:void 0)}function ic(e,t){n7[e]=n7[e]||[],n7[e].push(t)}function id(e,t,r){return()=>{r&&r();let n=n7[e];if(!n)return;let i=n.indexOf(t);-1!==i&&n.splice(i,1)}}function ip(e){return"number"==typeof e&&isFinite(e)}function ih(e,t,r,{...n}){let i=tC(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),nx(e,()=>{let e=nw({startTime:t,...n});return e&&e.end(r),e})}function im(){return Y&&Y.addEventListener&&Y.performance}function iv(e){return e/1e3}let ig=0,iy={};function ib(e,t,r,n,i,o){let s=o?t[o]:t[`${r}End`],a=t[`${r}Start`];a&&s&&ih(e,n+iv(a),n+iv(s),{op:"browser",name:i||r,attributes:{[th]:"auto.ui.browser.metrics"}})}function iw(e,t,r,n){let i=t[r];null!=i&&i<2147483647&&(e[n]=i)}let ix=[],iE=new Map,iS={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"},i_={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function iT(e,t={}){let r;let n=new Map,i=!1,o="externalFinish",s=!t.disableAutoFinish,a=[],{idleTimeout:l=i_.idleTimeout,finalTimeout:u=i_.finalTimeout,childSpanTimeout:c=i_.childSpanTimeout,beforeSpanEnd:d}=t,f=e2();if(!f||!nc())return new nd;let p=eQ(),h=tD(),m=function(e){let t=nw(e);return eG(eQ(),t),ti&&eb.log("[Tracing] Started span is an idle span"),t}(e);function v(){r&&(clearTimeout(r),r=void 0)}function g(e){v(),r=setTimeout(()=>{!i&&0===n.size&&s&&(o="idleTimeout",m.end(e))},l)}function y(e){r=setTimeout(()=>{!i&&s&&(o="heartbeatFailed",m.end(e))},c)}function b(e){i=!0,n.clear(),a.forEach(e=>e()),eG(p,h);let t=tC(m),{start_timestamp:r}=t;if(!r)return;(t.data||{})[tm]||m.setAttribute(tm,o),eb.log(`[Tracing] Idle span "${t.op}" finished`);let s=tI(m).filter(e=>e!==m),c=0;s.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:"cancelled"}),t.end(e),ti&&eb.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:r=0,start_timestamp:n=0}=tC(t),i=n<=e,o=r-n<=(u+l)/1e3;if(ti){let e=JSON.stringify(t,void 0,2);i?o||eb.log("[Tracing] Discarding span since it finished after idle span final timeout",e):eb.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!o||!i)&&(m[tM]&&m[tM].delete(t),c++)}),c>0&&m.setAttribute("sentry.idle_span_discarded_spans",c)}return m.end=new Proxy(m.end,{apply(e,t,r){d&&d(m);let[n,...i]=r,o=t_(n||ez()),s=tI(m).filter(e=>e!==m);if(!s.length)return b(o),Reflect.apply(e,t,[o,...i]);let a=s.map(e=>tC(e).timestamp).filter(e=>!!e),l=a.length?Math.max(...a):void 0,c=tC(m).start_timestamp,f=Math.min(c?c+u/1e3:1/0,Math.max(c||-1/0,Math.min(o,l||1/0)));return b(f),Reflect.apply(e,t,[f,...i])}}),a.push(f.on("spanStart",e=>{if(!i&&e!==m&&!tC(e).timestamp&&tI(m).includes(e)){var t;t=e.spanContext().spanId,v(),n.set(t,!0),y(ez()+c/1e3)}})),a.push(f.on("spanEnd",e=>{var t;i||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&g(ez()+l/1e3))})),a.push(f.on("idleSpanEnableAutoFinish",e=>{e===m&&(s=!0,g(),n.size&&y())})),t.disableAutoFinish||g(),setTimeout(()=>{i||(m.setStatus({code:2,message:"deadline_exceeded"}),o="finalTimeout",m.end())},u),m}let iC=!1;function ik(){let e=tD(),t=e&&tL(e);if(t){let e="internal_error";ti&&eb.log(`[Tracing] Root span: ${e} -> Global error occured`),t.setStatus({code:2,message:e})}}ik.tag="sentry_tracingErrorCallback";let iP=new WeakMap,iM=new Map,iO={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function iA(e){let{url:t}=tC(e).data||{};if(!t||"string"!=typeof t)return;let r=it("resource",({entries:n})=>{n.forEach(n=>{"resource"===n.entryType&&"initiatorType"in n&&"string"==typeof n.nextHopProtocol&&("fetch"===n.initiatorType||"xmlhttprequest"===n.initiatorType)&&n.name.endsWith(t)&&((function(e){let{name:t,version:r}=function(e){let t="unknown",r="unknown",n="";for(let i of e){if("/"===i){[t,r]=e.split("/");break}if(!isNaN(Number(i))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=i}return n===e&&(t=n),{name:t,version:r}}(e.nextHopProtocol),n=[];return(n.push(["network.protocol.version",r],["network.protocol.name",t]),eF)?[...n,["http.request.redirect_start",iI(e.redirectStart)],["http.request.fetch_start",iI(e.fetchStart)],["http.request.domain_lookup_start",iI(e.domainLookupStart)],["http.request.domain_lookup_end",iI(e.domainLookupEnd)],["http.request.connect_start",iI(e.connectStart)],["http.request.secure_connection_start",iI(e.secureConnectionStart)],["http.request.connection_end",iI(e.connectEnd)],["http.request.request_start",iI(e.requestStart)],["http.request.response_start",iI(e.responseStart)],["http.request.response_end",iI(e.responseEnd)]]:n})(n).forEach(t=>e.setAttribute(...t)),setTimeout(r))})})}function iI(e=0){return((eF||performance.timeOrigin)+e)/1e3}function iL(e){try{return new URL(e,Y.location.origin).href}catch(e){return}}let iD={...i_,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!1,enableInp:!0,_experiments:{},...iO},iR=(e={})=>{iC||(iC=!0,rX(ik),rQ(ik));let{enableInp:t,enableLongTask:r,enableLongAnimationFrame:n,_experiments:{enableInteractions:i},beforeStartSpan:o,idleTimeout:s,finalTimeout:a,childSpanTimeout:l,markBackgroundSpan:v,traceFetch:g,traceXHR:y,shouldCreateSpanForRequest:b,enableHTTPTimings:w,instrumentPageLoad:x,instrumentNavigation:E}={...iD,...e},S=function(){let e=im();if(e&&eF){e.mark&&Y.performance.mark("sentry-tracing-init");let t=iu("fid",({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let r=iv(eF),n=iv(t.startTime);ns&&eb.log("[Measurements] Adding FID"),iy.fid={value:e.value,unit:"millisecond"},iy["mark.fid"]={value:r+n,unit:"second"}},io,c),r=function(e,t=!1){return iu("cls",e,ii,u,t)}(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(ns&&eb.log("[Measurements] Adding CLS"),iy.cls={value:e.value,unit:""},m=t)},!0),n=function(e,t=!1){return iu("lcp",e,is,d,t)}(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(ns&&eb.log("[Measurements] Adding LCP"),iy.lcp={value:e.value,unit:"millisecond"},h=t)},!0),i=iu("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(ns&&eb.log("[Measurements] Adding TTFB"),iy.ttfb={value:e.value,unit:"millisecond"})},ia,f);return()=>{t(),r(),n(),i()}}return()=>void 0}();t&&function(){if(im()&&eF){let e=iu("inp",({metric:e})=>{let t;let r=e2();if(!r||void 0==e.value)return;let n=e.entries.find(t=>t.duration===e.value&&iS[t.name]);if(!n)return;let{interactionId:i}=n,o=iS[n.name],s=r.getOptions(),a=iv(eF+n.startTime),l=iv(e.value),u=eQ(),c=tD(),d=c?tL(c):void 0,f=(null!=i?iE.get(i):void 0)||d,p=f?tC(f).description:u.getScopeData().transactionName,h=u.getUser(),m=r.getIntegrationByName("Replay"),v=m&&m.getReplayId(),g=void 0!==h?h.email||h.id||h.ip_address:void 0;try{t=u.getScopeData().contexts.profile.profile_id}catch(e){}let y=nw({name:ep(n.target),op:`ui.interaction.${o}`,attributes:eO({release:s.release,environment:s.environment,transaction:p,[ty]:e.value,[th]:"auto.http.browser.inp",user:g||void 0,profile_id:t||void 0,replay_id:v||void 0,"user_agent.original":Y.navigator&&Y.navigator.userAgent}),startTime:a,experimental:{standalone:!0}});y.addEvent("inp",{[tv]:"millisecond",[tg]:e.value}),y.end(a+l)},il,p)}}(),n&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(e=>{for(let t of e.getEntries()){if(!tD()||!t.scripts[0])return;let e=iv(eF+t.startTime),r=iv(t.duration),n={[th]:"auto.ui.browser.metrics"},i=t.scripts[0];if(i){let{invoker:e,invokerType:t,sourceURL:r,sourceFunctionName:o,sourceCharPosition:s}=i;n["browser.script.invoker"]=e,n["browser.script.invoker_type"]=t,r&&(n["code.filepath"]=r),o&&(n["code.function"]=o),-1!==s&&(n["browser.script.source_char_position"]=s)}let o=nw({name:"Main UI thread blocked",op:"ui.long-animation-frame",startTime:e,attributes:n});o&&o.end(e+r)}}).observe({type:"long-animation-frame",buffered:!0}):r&&it("longtask",({entries:e})=>{for(let t of e){if(!tD())return;let e=iv(eF+t.startTime),r=iv(t.duration),n=nw({name:"Main UI thread blocked",op:"ui.long-task",startTime:e,attributes:{[th]:"auto.ui.browser.metrics"}});n&&n.end(e+r)}}),i&&it("event",({entries:e})=>{for(let t of e){if(!tD())return;if("click"===t.name){let e=iv(eF+t.startTime),r=iv(t.duration),n={name:ep(t.target),op:`ui.interaction.${t.name}`,startTime:e,attributes:{[th]:"auto.ui.browser.metrics"}},i=eh(t.target);i&&(n.attributes["ui.component_name"]=i);let o=nw(n);o&&o.end(e+r)}}});let _={name:void 0,source:void 0};function T(e,t){let r="pageload"===t.op,n=o?o(t):t,i=n.attributes||{};t.name!==n.name&&(i[td]="custom",n.attributes=i),_.name=n.name,_.source=i[td];let u=iT(n,{idleTimeout:s,finalTimeout:a,childSpanTimeout:l,disableAutoFinish:r,beforeSpanEnd:e=>{S(),function(e){let t=im();if(!t||!Y.performance.getEntries||!eF)return;ns&&eb.log("[Tracing] Adding & adjusting spans using Performance API");let r=iv(eF),n=t.getEntries(),{op:i,start_timestamp:o}=tC(e);if(n.slice(ig).forEach(t=>{let n=iv(t.startTime),s=iv(Math.max(0,t.duration));if("navigation"!==i||!o||!(r+n{ib(e,t,n,r)}),ib(e,t,"secureConnection",r,"TLS/SSL","connectEnd"),ib(e,t,"fetch",r,"cache","domainLookupStart"),ib(e,t,"domainLookup",r,"DNS"),function(e,t,r){let n=r+iv(t.requestStart),i=r+iv(t.responseEnd),o=r+iv(t.responseStart);t.responseEnd&&(ih(e,n,i,{op:"browser",name:"request",attributes:{[th]:"auto.ui.browser.metrics"}}),ih(e,o,i,{op:"browser",name:"response",attributes:{[th]:"auto.ui.browser.metrics"}}))}(e,t,r);break;case"mark":case"paint":case"measure":{(function(e,t,r,n,i){let o=nC(),s=i+Math.max(r,iv(o?o.requestStart:0)),a=i+r,l={[th]:"auto.resource.browser.metrics"};s!==a&&(l["sentry.browser.measure_happened_before_request"]=!0,l["sentry.browser.measure_start_time"]=s),ih(e,s,a+n,{name:t.name,op:t.entryType,attributes:l})})(e,t,n,s,r);let i=nN(),o=t.startTime{let t=iy[e];if(!t||!o||r>=o)return;let n=t.value,i=Math.abs((r+iv(n)-o)*1e3),s=i-n;ns&&eb.log(`[Measurements] Normalized ${e} from ${n} to ${i} (${s})`),t.value=i});let t=iy["mark.fid"];t&&iy.fid&&(ih(e,t.value,t.value+iv(iy.fid.value),{name:"first input delay",op:"ui.action",attributes:{[th]:"auto.ui.browser.metrics"}}),delete iy["mark.fid"]),"fcp"in iy||delete iy.cls,Object.entries(iy).forEach(([e,t])=>{!function(e,t,r){let n=tD(),i=n&&tL(n);i&&i.addEvent(e,{[tg]:t,[tv]:r})}(e,t.value,t.unit)}),h&&(ns&&eb.log("[Measurements] Adding LCP Data"),h.element&&e.setAttribute("lcp.element",ep(h.element)),h.id&&e.setAttribute("lcp.id",h.id),h.url&&e.setAttribute("lcp.url",h.url.trim().slice(0,200)),e.setAttribute("lcp.size",h.size)),m&&m.sources&&(ns&&eb.log("[Measurements] Adding CLS Data"),m.sources.forEach((t,r)=>e.setAttribute(`cls.source.${r+1}`,ep(t.node))))}h=void 0,m=void 0,iy={}}(e)}});function c(){["interactive","complete"].includes(Y.document.readyState)&&e.emit("idleSpanEnableAutoFinish",u)}return r&&Y.document&&(Y.document.addEventListener("readystatechange",()=>{c()}),c()),u}return{name:"BrowserTracing",afterAllSetup(e){let r,n;let o=Y.location&&Y.location.href;e.on("startNavigationSpan",t=>{e2()===e&&(r&&!tC(r).timestamp&&(ry&&eb.log(`[Tracing] Finishing current root span with op: ${tC(r).op}`),r.end()),r=T(e,{op:"navigation",...t}))}),e.on("startPageLoadSpan",(t,n={})=>{if(e2()!==e)return;r&&!tC(r).timestamp&&(ry&&eb.log(`[Tracing] Finishing current root span with op: ${tC(r).op}`),r.end());let i=function(e,t){let r=function(e){let t;if(!e)return;let r=e.match(tb);if(r)return"1"===r[3]?t=!0:"0"===r[3]&&(t=!1),{traceId:r[1],parentSampled:t,parentSpanId:r[2]}}(e),n=tl(t),{traceId:i,parentSpanId:o,parentSampled:s}=r||{};return r?{traceId:i||eA(),parentSpanId:o||eA().substring(16),spanId:eA().substring(16),sampled:s,dsc:n||{}}:{traceId:i||eA(),spanId:eA().substring(16)}}(n.sentryTrace||iN("sentry-trace"),n.baggage||iN("baggage"));eQ().setPropagationContext(i),r=T(e,{op:"pageload",...t})}),e.on("spanEnd",e=>{let t=tC(e).op;if(e!==tL(e)||"navigation"!==t&&"pageload"!==t)return;let r=eQ(),n=r.getPropagationContext();r.setPropagationContext({...n,sampled:void 0!==n.sampled?n.sampled:tk(e),dsc:n.dsc||tj(e)})}),Y.location&&(x&&function(e,t,r){e.emit("startPageLoadSpan",t,void 0),eQ().setTransactionName(t.name);let n=tD();n&&tC(n).op}(e,{name:Y.location.pathname,startTime:eF?eF/1e3:void 0,attributes:{[td]:"url",[th]:"auto.pageload.browser"}}),E&&rt(({to:t,from:r})=>{if(void 0===r&&o&&-1!==o.indexOf(t)){o=void 0;return}r!==t&&(o=void 0,function(e,t){e0().setPropagationContext(e$()),eQ().setPropagationContext(e$()),e.emit("startNavigationSpan",t),eQ().setTransactionName(t.name);let r=tD();r&&tC(r).op}(e,{name:Y.location.pathname,attributes:{[td]:"url",[th]:"auto.navigation.browser"}}))})),v&&(Y&&Y.document?Y.document.addEventListener("visibilitychange",()=>{let e=tD();if(!e)return;let t=tL(e);if(Y.document.hidden&&t){let e="cancelled",{op:r,status:n}=tC(t);ry&&eb.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),n||t.setStatus({code:2,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):ry&&eb.warn("[Tracing] Could not set up background tab detection due to lack of global document")),i&&Y.document&&addEventListener("click",()=>{let e="ui.action.click",t=tD(),r=t&&tL(t);if(r&&["navigation","pageload"].includes(tC(r).op)){ry&&eb.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(n&&(n.setAttribute(tm,"interactionInterrupted"),n.end(),n=void 0),!_.name){ry&&eb.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}n=iT({name:_.name,op:e,attributes:{[td]:_.source||"url"}},{idleTimeout:s,finalTimeout:a,childSpanTimeout:l})},{once:!1,capture:!0}),t&&function(){let e=({entries:e})=>{let t=tD(),r=t&&tL(t);e.forEach(e=>{if(!("duration"in e)||!r)return;let t=e.interactionId;if(!(null==t||iE.has(t))){if(ix.length>10){let e=ix.shift();iE.delete(e)}ix.push(t),iE.set(t,r)}})};it("event",e),it("first-input",e)}(),function(e,t){let{traceFetch:r,traceXHR:n,shouldCreateSpanForRequest:i,enableHTTPTimings:o,tracePropagationTargets:s}={traceFetch:iO.traceFetch,traceXHR:iO.traceXHR,...t},a="function"==typeof i?i:e=>!0,l=e=>(function(e,t){let r=Y.location&&Y.location.href;if(r){let n,i;try{n=new URL(e,r),i=new URL(r).origin}catch(e){return!1}let o=n.origin===i;return t?eE(n.toString(),t)||o&&eE(n.pathname,t):o}{let r=!!e.match(/^\/(?!\/)/);return t?eE(e,t):r}})(e,s),u={};r&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=iM.get(e.span_id);t&&(e.timestamp=t/1e3,iM.delete(e.span_id))}}),e)),function(e){let t="fetch-body-resolved";t9(t,e),t7(t,()=>rN(rj))}(e=>{if(e.response){let t=iP.get(e.response);t&&e.endTimestamp&&iM.set(t,e.endTimestamp)}}),rR(e=>{let t=function(e,t,r,n,i="auto.http.browser"){if(!e.fetchData)return;let o=nc()&&t(e.fetchData.url);if(e.endTimestamp&&o){let t=e.fetchData.__span;if(!t)return;let r=n[t];r&&(function(e,t){if(t.response){tE(e,t.response.status);let r=t.response&&t.response.headers&&t.response.headers.get("content-length");if(r){let t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}(r,e),delete n[t]);return}let s=eQ(),a=e2(),{method:l,url:u}=e.fetchData,c=function(e){try{return new URL(e).href}catch(e){return}}(u),d=c?rF(c).host:void 0,f=!!tD(),p=o&&f?nw({name:`${l} ${u}`,attributes:{url:u,type:"fetch","http.method":l,"http.url":c,"server.address":d,[th]:i,[tp]:"http.client"}}):new nd;if(e.fetchData.__span=p.spanContext().spanId,n[p.spanContext().spanId]=p,r(e.fetchData.url)&&a){let t=e.args[0];e.args[1]=e.args[1]||{};let r=e.args[1];r.headers=function(e,t,r,n,i){let{traceId:o,spanId:s,sampled:a,dsc:l}={...e0().getPropagationContext(),...r.getPropagationContext()},u=i?tS(i):tw(o,s,a),c=tu(l||(i?tj(i):tN(o,t))),d=n.headers||("undefined"!=typeof Request&&ed(e,Request)?e.headers:void 0);if(!d)return{"sentry-trace":u,baggage:c};if("undefined"!=typeof Headers&&ed(d,Headers)){let e=new Headers(d);return e.append("sentry-trace",u),c&&e.append(to,c),e}if(Array.isArray(d)){let e=[...d,["sentry-trace",u]];return c&&e.push([to,c]),e}{let e="baggage"in d?d.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),c&&t.push(c),{...d,"sentry-trace":u,baggage:t.length>0?t.join(","):void 0}}}(t,a,s,r,nc()&&f?p:void 0)}return p}(e,a,l,u);if(e.response&&e.fetchData.__span&&iP.set(e.response,e.fetchData.__span),t){let r=iL(e.fetchData.url),n=r?rF(r).host:void 0;t.setAttributes({"http.url":r,"server.address":n})}o&&t&&iA(t)})),n&&rA(e=>{let t=function(e,t,r,n){let i=e.xhr,o=i&&i[rO];if(!i||i.__sentry_own_request__||!o)return;let s=nc()&&t(o.url);if(e.endTimestamp&&s){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=n[e];t&&void 0!==o.status_code&&(tE(t,o.status_code),t.end(),delete n[e]);return}let a=iL(o.url),l=a?rF(a).host:void 0,u=!!tD(),c=s&&u?nw({name:`${o.method} ${o.url}`,attributes:{type:"xhr","http.method":o.method,"http.url":a,url:o.url,"server.address":l,[th]:"auto.http.browser",[tp]:"http.client"}}):new nd;i.__sentry_xhr_span_id__=c.spanContext().spanId,n[i.__sentry_xhr_span_id__]=c;let d=e2();return i.setRequestHeader&&r(o.url)&&d&&function(e,t,r){let n=eQ(),{traceId:i,spanId:o,sampled:s,dsc:a}={...e0().getPropagationContext(),...n.getPropagationContext()};(function(e,t,r){try{e.setRequestHeader("sentry-trace",t),r&&e.setRequestHeader(to,r)}catch(e){}})(e,r&&nc()?tS(r):tw(i,o,s),tu(a||(r?tj(r):tN(i,t))))}(i,d,nc()&&u?c:void 0),c}(e,a,l,u);o&&t&&iA(t)})}(e,{traceFetch:g,traceXHR:y,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:b,enableHTTPTimings:w})}}};function iN(e){var t;let r=(t=`meta[name=${e}]`,Y.document&&Y.document.querySelector?Y.document.querySelector(t):null);return r?r.getAttribute("content"):void 0}var ij=r(54275);function i$(e){var t;let{Component:r,pageProps:n}=e;!function(e){var t,r;let n={...e};rg(n,"react"),t="react",r={version:E.version},e0().setContext(t,r),function(e={}){var t;let r=function(e={}){return{defaultIntegrations:[tX(),tQ(),rG(),rB(),r1(),r8(),t0(),r3()],release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Y.SENTRY_RELEASE&&Y.SENTRY_RELEASE.id?Y.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0,...e}}(e);if(function(){let e=Y.chrome?"chrome":"browser",t=Y[e],r=t&&t.runtime&&t.runtime.id,n=Y.location&&Y.location.href||"",i=!!r&&Y===Y.top&&["chrome-extension:","moz-extension:","ms-browser-extension:"].some(e=>n.startsWith(`${e}//`)),o=void 0!==Y.nw;return!!r&&!i&&!o}()){ey(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}ry&&!t3()&&eb.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."),function(e,t){!0===t.debug&&(ti?eb.enable():ey(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),eQ().update(t.initialScope);let r=new e(t);eQ().setClient(r),r.init()}(rk,{...r,stackParser:Array.isArray(t=r.stackParser||ni)?e4(...t):t,integrations:function(e){let t=e.defaultIntegrations||[],r=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let n=function(e){let t={};return e.forEach(e=>{let{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)}),Object.values(t)}(Array.isArray(r)?[...t,...r]:"function"==typeof r?ej(r(t)):t),i=n.findIndex(e=>"Debug"===e.name);if(i>-1){let[e]=n.splice(i,1);n.push(e)}return n}(r),transport:r.transport||nu}),r.autoSessionTracking&&function(){if(void 0===Y.document){ry&&eb.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}tB({ignoreDuration:!0}),tU(),rt(({from:e,to:t})=>{void 0!==e&&e!==t&&(tB({ignoreDuration:!0}),tU())})}()}(n)}({dsn:"https://76c2f53e9cde0c401657c98619d6af69@o4507487091621888.ingest.us.sentry.io/4507664119955456",integrations:[iR()],tracesSampleRate:1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,tracePropagationTargets:["https://prod-api.ribus.io/api"]});let i=null!==(t=r.getLayout)&&void 0!==t?t:e=>e;return(0,y.jsx)(M,{className:"dm-sans bg-[#F3F4F5]",children:(0,y.jsxs)(F,{attribute:"class",defaultTheme:"light",children:[(0,y.jsx)(R.Ix,{stacked:!0,position:"bottom-center",closeButton:!1,hideProgressBar:!0}),(0,y.jsx)(O.SessionProvider,{session:n.session,children:(0,y.jsx)(ij.i,{children:(0,y.jsx)(N.Y,{children:i((0,y.jsx)(r,{...n}))})})})]})})}let iV={sans:I().style.fontFamily,mono:D().style.fontFamily}},72439:function(e,t,r){"use strict";r.d(t,{_:function(){return n}});let n="https://prod-api.ribus.io/api"},54275:function(e,t,r){"use strict";r.d(t,{i:function(){return w},N:function(){return x}});var n=r(85893),i=r(31955),o=r(67294),s=r(49559),a=r(47873),l=r(21974),u=r(34863),c=r(86946),d=r(87362),f=r(90512),p=r(18644),h=r(2261),m=r(98918);r(30889),r(46169),r(21306),r(81810);var v=r(65890),g=e=>{let{progressValue:t}=e;return(0,n.jsx)("div",{className:"w-full max-w-[600px] max-md:max-w-[350px] max-sm:max-w-[300px] bg-neutral-dark-7 min-h-[5px] rounded-b-full",children:(0,n.jsx)("div",{className:(0,f.Z)("h-full bg-primary rounded-b-full transition-[width] ease-in-out duration-200"),style:{width:"".concat(100/7*t,"%")}})})},y=e=>{var t,r;let y,{images:b,isOpened:w,onClose:x}=e,E=(0,o.useRef)(null),[S,_]=(0,o.useState)(0),T=(0,o.useRef)(0);return(0,o.useEffect)(()=>(w&&(null==b?void 0:b.medias)?(_(()=>0),T.current=0,clearInterval(y),y=setInterval(()=>{if(T.current>6.9){var e,t,r,n;E.current&&(null==b?void 0:b.medias)&&(null===(t=E.current)||void 0===t?void 0:null===(e=t.swiper)||void 0===e?void 0:e.activeIndex)===(null==b?void 0:b.medias.length)-1?(null===(r=E.current)||void 0===r||r.swiper.slideTo(0),_(()=>0),T.current=0):(_(()=>0),T.current=0,null===(n=E.current)||void 0===n||n.swiper.slideNext())}else _(e=>e+.1),T.current+=.1},100)):clearInterval(y),()=>clearInterval(y)),[w,null==E?void 0:null===(r=E.current)||void 0===r?void 0:null===(t=r.swiper)||void 0===t?void 0:t.activeIndex,b]),(0,n.jsx)(s.R,{isOpen:w,onClose:x,isDismissable:!1,hideCloseButton:!0,size:"full",children:(0,n.jsx)(a.A,{className:(0,f.Z)("mx-auto max-w-[1024px] max-h-[820px] flex-grow pt-8 p-4 bg-transparent border-0","max-lg:w-[1024px]","max-md:w-[640px] ","max-sm:w-[340px] "),children:(0,n.jsx)(l.I,{className:"p-0",children:(0,n.jsxs)("div",{className:(0,f.Z)("flex flex-col bg-neutral-dark-4 rounded-[18px]","max-md:pb-4"),children:[(0,n.jsxs)("div",{className:"flex gap-2 p-2 py-3 justify-between border-b-neutral-dark-7 border-b-2",children:[(0,n.jsx)("p",{className:"text-[24px] semibold text-white max-md:medium max-sm:medium",children:"Novidades"}),(0,n.jsx)("div",{className:"bg-neutral-dark-7 w-[32px] h-[32px] rounded-full flex items-center justify-center hover:bg-neutral-dark-9",onClick:x,children:(0,n.jsx)(p.bjh,{size:20,className:"text-neutral-dark-11"})})]}),(0,n.jsxs)("div",{className:"flex h-full w-full max-md:flex-col",children:[(0,n.jsx)("div",{className:(0,f.Z)("min-w-[140px] ml-1 mt-0 border-r-2 border-neutral-dark-7","max-md:border-r-0 max-md:border-b-2 max-md:ml-0 max-md:h-[118px] p-2",""),children:(0,n.jsx)(h.tq,{modules:[m.o3],spaceBetween:0,slidesPerView:"auto",breakpoints:{300:{direction:"horizontal"},640:{direction:"horizontal"},768:{direction:"vertical"}},children:(0,n.jsx)("div",{children:null==b?void 0:b.medias.map((e,t)=>{var r,i;return(0,n.jsx)(h.o5,{className:"max-w-fit rounded-[14px] p-2",children:(0,n.jsx)("img",{onClick:()=>{var e;return null===(e=E.current)||void 0===e?void 0:e.swiper.slideTo(t)},alt:"",loading:"eager",className:(0,f.Z)((null===(i=E.current)||void 0===i?void 0:null===(r=i.swiper)||void 0===r?void 0:r.activeIndex)===t&&"ring-1","rounded-[14px] h-[110px] transition ease-in-out hover:scale-105 duration-300 ring-primary hover:ring-1","max-md:h-[90px] max-md:w-[90px] max-sm:h-[90px] max-sm:w-[90px]"),src:e.url_image,style:{objectFit:"cover"}})},t)})})})}),(0,n.jsxs)("div",{className:"p-0 flex flex-col items-center w-full",children:[(0,n.jsx)(g,{progressValue:S}),(0,n.jsx)("div",{className:"p-4",children:(null==b?void 0:b.medias)?(0,n.jsx)(h.tq,{ref:E,modules:[m.o3],slidesPerView:"auto",spaceBetween:10,children:null==b?void 0:b.medias.map((e,t)=>(0,n.jsx)(h.o5,{children:(0,n.jsx)("img",{alt:"",loading:"eager",className:"rounded-[14px] w-full flex-grow",src:e.url_image,style:{objectFit:"cover"}})},t))}):(0,n.jsx)("div",{className:"flex h-[600px] max-md:h-[420px] max-sm:h-[330px]",children:(0,n.jsx)(u.c,{})})}),(0,n.jsx)(()=>(0,n.jsx)("div",{className:"w-full flex gap-2 justify-center mb-4",children:null==b?void 0:b.medias.map((e,t)=>{var r,i;return(0,n.jsx)("div",{className:(0,f.Z)("h-[6px] rounded-full transition-[width] ease-soft-spring duration-800",(null===(i=E.current)||void 0===i?void 0:null===(r=i.swiper)||void 0===r?void 0:r.activeIndex)===t?"bg-primary w-[30px]":"bg-neutral-dark-10 w-[14px]")})})}),{}),(0,n.jsxs)("div",{className:(0,f.Z)("flex p-4 items-center justify-between border-t-2 border-neutral-dark-7 w-full h-full","max-md:p-0 max-md:w-full",""),children:[(0,n.jsxs)("div",{className:(0,f.Z)("flex gap-2","max-md:hidden",""),children:[(0,n.jsx)("div",{className:"bg-neutral-dark-7 w-[32px] h-[32px] rounded-full flex items-center justify-center hover:bg-neutral-dark-9",onClick:()=>{var e;return null===(e=E.current)||void 0===e?void 0:e.swiper.slidePrev()},children:(0,n.jsx)(v.pjk,{size:12,className:"text-neutral-dark-11"})}),(0,n.jsx)("div",{className:"bg-neutral-dark-7 w-[32px] h-[32px] rounded-full flex items-center justify-center hover:bg-neutral-dark-9",onClick:()=>{var e;return null===(e=E.current)||void 0===e?void 0:e.swiper.slideNext()},children:(0,n.jsx)(v.fmn,{size:12,className:"text-neutral-dark-11"})})]}),(0,n.jsxs)("div",{className:(0,f.Z)("flex gap-4","max-md:justify-center pt-4","max-sm:flex-col-reverse max-sm:items-center gap-0 max-md:w-full max-sm:w-full"),children:[(0,n.jsx)(c.K,{onChange:e=>{e.currentTarget.checked?i.Z.set("@isAdsViewed","true",{expires:1}):i.Z.remove("@isAdsViewed")},children:(0,n.jsx)("p",{className:"text-neutral-dark-12 inter text-[16px]",children:"Desativar an\xfancio"})}),(0,n.jsx)(d.A,{className:"bg-primary-dark-10 bold text-white text-[20px] inter h-[48px] rounded-[8px] px-6",onClick:function(){var e;let t=(null==E?void 0:null===(e=E.current)||void 0===e?void 0:e.swiper.activeIndex)||0;(null==b?void 0:b.medias)&&b.medias[t].link&&(b.medias[t].link.includes("https://")?window.open(b.medias[t].link):window.open("https://ribusdb.s3.amazonaws.com/politicas/protocolo-ribus-wineskin-v2.01.pdf"))},children:"Conhecer mais sobre"})]})]})]})]})]})})})})};let b=(0,o.createContext)({}),w=e=>{let{children:t}=e,[r,s]=(0,o.useState)(!1),[a,l]=(0,o.useState)(),u=()=>s(!1);return(0,n.jsxs)(b.Provider,{value:{onCloseAds:u,onShowAds:e=>{e&&l(()=>e),s(!0)},checkAdsView:function(){return!!i.Z.get("@isAdsViewed")}},children:[t,(0,n.jsx)(y,{isOpened:r,onClose:u,images:a})]})},x=()=>(0,o.useContext)(b)},12301:function(e,t,r){"use strict";r.d(t,{Y:function(){return u},h:function(){return c}});var n=r(85893),i=r(67294),o=r(88541),s=r(33299);r(61202);var a=r(72439);r(55678);let l=(0,i.createContext)({}),u=e=>{let{children:t}=e,{data:r,status:u,update:c}=(0,s.useSession)(),[d,f]=(0,i.useState)(!1),[p,h]=(0,i.useState)({});return(0,i.useEffect)(()=>{"authenticated"===u&&h(()=>({balance:r.userData.balance,external_daily_transactions:r.userData.last_transactions.external_daily_transactions,transactions_limit:r.userData.transactions_limit}))},[u]),(0,i.useEffect)(()=>{if("authenticated"===u&&!d){let e=new o.EventSourcePolyfill("".concat(a._.replace("/api",""),"/events"),{headers:{Authorization:"Bearer ".concat(null==r?void 0:r.token)}});e.onerror=e=>{},e.onmessage=e=>{let t=JSON.parse(e.data);(null==t?void 0:t.identifier)==="balance"?h(()=>t.message):(null==t?void 0:t.identifier)==="pix"?h(e=>({...e,booking_checkout_pix:!0,pix_paid:!0,mint_checkout_pix:!0})):h(e=>({...e,booking_checkout_pix:!1,pix_paid:!1,mint_checkout_pix:!1}))},f(!0)}},[d,u]),(0,n.jsx)(l.Provider,{value:p,children:t})},c=()=>(0,i.useContext)(l)},22130:function(){},46169:function(){},21306:function(){},81810:function(){},30889:function(){},82877:function(){},42163:function(e){e.exports={style:{fontFamily:"'__DM_Sans_05e5f9', '__DM_Sans_Fallback_05e5f9'",fontStyle:"normal"},className:"__className_05e5f9",variable:"__variable_05e5f9"}},32872:function(e){e.exports={style:{fontFamily:"'__Fira_Code_74c79e', '__Fira_Code_Fallback_74c79e'",fontStyle:"normal"},className:"__className_74c79e",variable:"__variable_74c79e"}},77663:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=a(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c1)for(var r=1;re.length)&&(t=e.length);for(var r=0,n=Array(t);r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=s.call(o,"catchLoc"),u=s.call(o,"finallyLoc");if(l&&u){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),M(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;M(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},r}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},27424:function(e,t,r){var n=r(85372),i=r(68872),o=r(86116),s=r(12218);e.exports=function(e,t){return n(e)||i(e,t)||o(e,t)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},95036:function(e,t,r){var n=r(18698).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},64062:function(e,t,r){var n=r(18698).default,i=r(95036);e.exports=function(e){var t=i(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},18698:function(e){function t(r){return e.exports=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},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},86116:function(e,t,r){var n=r(73897);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},33496:function(e,t,r){var n=r(73808),i=r(6015),o=r(46035),s=r(3515);function a(t){var r="function"==typeof Map?new Map:void 0;return e.exports=a=function(e){if(null===e||!o(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return s(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,a(t)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},64687:function(e,t,r){var n=r(17061)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},31602:function(e,t,r){"use strict";r.d(t,{AQ:function(){return m},aw:function(){return d},oz:function(){return p}});var n=r(55575),i=r(13282),o=r(55919),s=r(49210),a=r(8438),l=r(7321);function u(e){let t,r="object"==typeof e[0]?e.shift():new s.IQ;if("string"==typeof e[0])t=e.shift();else{let e=r.getEras();t=e[e.length-1]}return[r,t,e.shift(),e.shift(),e.shift()]}var c=new WeakMap;class d{copy(){return this.era?new d(this.calendar,this.era,this.year,this.month,this.day):new d(this.calendar,this.year,this.month,this.day)}add(e){return(0,n.IH)(this,e)}subtract(e){return(0,n.$X)(this,e)}set(e){return(0,n.t8)(this,e)}cycle(e,t,r){return(0,n.GK)(this,e,t,r)}toDate(e){return(0,a.ZU)(this,e)}toString(){return(0,o.UW)(this)}compare(e){return(0,i.rm)(this,e)}constructor(...e){(0,l._)(this,c,{writable:!0,value:void 0});let[t,r,i,o,s]=u(e);this.calendar=t,this.era=r,this.year=i,this.month=o,this.day=s,(0,n.jH)(this)}}var f=new WeakMap;class p{copy(){return this.era?new p(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new p(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,n.IH)(this,e)}subtract(e){return(0,n.$X)(this,e)}set(e){return(0,n.t8)((0,n.q_)(this,e),e)}cycle(e,t,r){switch(e){case"era":case"year":case"month":case"day":return(0,n.GK)(this,e,t,r);default:return(0,n.xC)(this,e,t,r)}}toDate(e,t){return(0,a.ZU)(this,e,t)}toString(){return(0,o.LM)(this)}compare(e){let t=(0,i.rm)(this,e);return 0===t?(0,i.Xi)(this,(0,a.IO)(e)):t}constructor(...e){(0,l._)(this,f,{writable:!0,value:void 0});let[t,r,i,o,s]=u(e);this.calendar=t,this.era=r,this.year=i,this.month=o,this.day=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,(0,n.jH)(this)}}var h=new WeakMap;class m{copy(){return this.era?new m(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new m(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return(0,n.cW)(this,e)}subtract(e){return(0,n.Co)(this,e)}set(e,t){return(0,n.wC)(this,e,t)}cycle(e,t,r){return(0,n.qr)(this,e,t,r)}toDate(){return(0,a.fk)(this)}toString(){return(0,o.Rf)(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-(0,a.fW)(e,this.timeZone).toDate().getTime()}constructor(...e){(0,l._)(this,h,{writable:!0,value:void 0});let[t,r,i,o,s]=u(e),a=e.shift(),c=e.shift();this.calendar=t,this.era=r,this.year=i,this.month=o,this.day=s,this.timeZone=a,this.offset=c,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,(0,n.jH)(this)}}},49210:function(e,t,r){"use strict";r.d(t,{Eg:function(){return s},IQ:function(){return c},J4:function(){return a},JD:function(){return l},g_:function(){return o}});var n=r(31602),i=r(82439);function o(e,t,r,n){let i=(t=a(e,t))-1,o=-2;return r<=2?o=0:s(t)&&(o=-1),1721425+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*r-362)/12+o+n)}function s(e){return e%4==0&&(e%100!=0||e%400==0)}function a(e,t){return"BC"===e?1-t:t}function l(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}let u={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class c{fromJulianDay(e){let t=e-1721426,r=Math.floor(t/146097),a=(0,i.wQ)(t,146097),u=Math.floor(a/36524),c=(0,i.wQ)(a,36524),d=Math.floor(c/1461),f=Math.floor((0,i.wQ)(c,1461)/365),[p,h]=l(400*r+100*u+4*d+f+(4!==u&&4!==f?1:0)),m=e-o(p,h,1,1),v=2;e0&&t===(0,s.iT)())return -6e4*new Date(e).getTimezoneOffset();let{year:r,month:n,day:i,hour:o,minute:a,second:u}=d(e,t);return l(r,n,i,o,a,u,0)-1e3*Math.floor(e/1e3)}let c=new Map;function d(e,t){let r=c.get(t);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),c.set(t,r));let n=r.formatToParts(new Date(e)),i={};for(let e of n)"literal"!==e.type&&(i[e.type]=e.value);return{year:"BC"===i.era||"B"===i.era?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:"24"===i.hour?0:+i.hour,minute:+i.minute,second:+i.second}}function f(e,t,r="compatible"){var n,i,l;let c=v(e);if("UTC"===t)return a(c);if(t===(0,s.iT)()&&"compatible"===r){c=g(c,new o.IQ);let e=new Date,t=(0,o.J4)(c.era,c.year);return e.setFullYear(t,c.month-1,c.day),e.setHours(c.hour,c.minute,c.second,c.millisecond),e.getTime()}let f=a(c),p=u(f-864e5,t),h=u(f+864e5,t),m=(n=c,((i=f-p)==(l=f-h)?[i]:[i,l]).filter(e=>{let r;return r=d(e,t),n.year===r.year&&n.month===r.month&&n.day===r.day&&n.hour===r.hour&&n.minute===r.minute&&n.second===r.second}));if(1===m.length)return m[0];if(m.length>1)switch(r){case"compatible":case"earlier":return m[0];case"later":return m[m.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(f-p,f-h);case"compatible":case"later":return Math.max(f-p,f-h);case"reject":throw RangeError("No such absolute time found")}}function p(e,t,r="compatible"){return new Date(f(e,t,r))}function h(e,t){let r=u(e,t),i=new Date(e+r),o=i.getUTCFullYear(),s=i.getUTCMonth()+1,a=i.getUTCDate(),l=i.getUTCHours(),c=i.getUTCMinutes(),d=i.getUTCSeconds(),f=i.getUTCMilliseconds();return new n.AQ(o,s,a,t,r,l,c,d,f)}function m(e){return new n.aw(e.calendar,e.era,e.year,e.month,e.day)}function v(e,t){let r=0,i=0,o=0,s=0;if("timeZone"in e)({hour:r,minute:i,second:o,millisecond:s}=e);else if("hour"in e&&!t)return e;return t&&({hour:r,minute:i,second:o,millisecond:s}=t),new n.oz(e.calendar,e.era,e.year,e.month,e.day,r,i,o,s)}function g(e,t){if(e.calendar.identifier===t.identifier)return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),n=e.copy();return n.calendar=t,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,(0,i.jH)(n),n}function y(e,t,r){if(e instanceof n.AQ)return e.timeZone===t?e:g(h(a(e)-e.offset,t),e.calendar);return h(f(e,t,r),t)}function b(e){return new Date(a(e)-e.offset)}},55575:function(e,t,r){"use strict";r.d(t,{$X:function(){return d},Co:function(){return b},GK:function(){return m},IH:function(){return o},cW:function(){return y},jH:function(){return u},q_:function(){return p},qr:function(){return w},t8:function(){return f},wC:function(){return x},xC:function(){return v}});var n=r(8438),i=r(49210);function o(e,t){var r,n,i,o;let u;let c=e.copy(),d="hour"in c?(r=c,n=t,r.hour+=n.hours||0,r.minute+=n.minutes||0,r.second+=n.seconds||0,r.millisecond+=n.milliseconds||0,r.second+=Math.floor(r.millisecond/1e3),r.millisecond=h(r.millisecond,1e3),r.minute+=Math.floor(r.second/60),r.second=h(r.second,60),r.hour+=Math.floor(r.minute/60),r.minute=h(r.minute,60),u=Math.floor(r.hour/24),r.hour=h(r.hour,24),u):0;s(c,t.years||0),c.calendar.balanceYearMonth&&c.calendar.balanceYearMonth(c,e),c.month+=t.months||0,a(c),l(c),c.day+=7*(t.weeks||0),c.day+=t.days||0,c.day+=d,function(e){for(;e.day<1;)e.month--,a(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,a(e)}(c),c.calendar.balanceDate&&c.calendar.balanceDate(c),c.year<1&&(c.year=1,c.month=1,c.day=1);let f=c.calendar.getYearsInEra(c);if(c.year>f){let e=null===(i=(o=c.calendar).isInverseEra)||void 0===i?void 0:i.call(o,c);c.year=f,c.month=e?1:c.calendar.getMonthsInYear(c),c.day=e?1:c.calendar.getDaysInMonth(c)}c.month<1&&(c.month=1,c.day=1);let p=c.calendar.getMonthsInYear(c);return c.month>p&&(c.month=p,c.day=c.calendar.getDaysInMonth(c)),c.day=Math.max(1,Math.min(c.calendar.getDaysInMonth(c),c.day)),c}function s(e,t){var r,n;(null===(r=(n=e.calendar).isInverseEra)||void 0===r?void 0:r.call(n,e))&&(t=-t),e.year+=t}function a(e){for(;e.month<1;)s(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,s(e,1)}function l(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function u(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),l(e)}function c(e){let t={};for(let r in e)"number"==typeof e[r]&&(t[r]=-e[r]);return t}function d(e,t){return o(e,c(t))}function f(e,t){let r=e.copy();return null!=t.era&&(r.era=t.era),null!=t.year&&(r.year=t.year),null!=t.month&&(r.month=t.month),null!=t.day&&(r.day=t.day),u(r),r}function p(e,t){let r=e.copy();return null!=t.hour&&(r.hour=t.hour),null!=t.minute&&(r.minute=t.minute),null!=t.second&&(r.second=t.second),null!=t.millisecond&&(r.millisecond=t.millisecond),r.millisecond=Math.max(0,Math.min(r.millisecond,1e3)),r.second=Math.max(0,Math.min(r.second,59)),r.minute=Math.max(0,Math.min(r.minute,59)),r.hour=Math.max(0,Math.min(r.hour,23)),r}function h(e,t){let r=e%t;return r<0&&(r+=t),r}function m(e,t,r,n){let i=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),o=t.indexOf(e.era);if(o<0)throw Error("Invalid era: "+e.era);o=g(o,r,0,t.length-1,null==n?void 0:n.round),i.era=t[o],u(i);break}case"year":var o,s;(null===(o=(s=i.calendar).isInverseEra)||void 0===o?void 0:o.call(s,i))&&(r=-r),i.year=g(e.year,r,-1/0,9999,null==n?void 0:n.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=g(e.month,r,1,e.calendar.getMonthsInYear(e),null==n?void 0:n.round);break;case"day":i.day=g(e.day,r,1,e.calendar.getDaysInMonth(e),null==n?void 0:n.round);break;default:throw Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),u(i),i}function v(e,t,r,n){let i=e.copy();switch(t){case"hour":{let t=e.hour,o=0,s=23;if((null==n?void 0:n.hourCycle)===12){let e=t>=12;o=e?12:0,s=e?23:11}i.hour=g(t,r,o,s,null==n?void 0:n.round);break}case"minute":i.minute=g(e.minute,r,0,59,null==n?void 0:n.round);break;case"second":i.second=g(e.second,r,0,59,null==n?void 0:n.round);break;case"millisecond":i.millisecond=g(e.millisecond,r,0,999,null==n?void 0:n.round);break;default:throw Error("Unsupported field "+t)}return i}function g(e,t,r,n,i=!1){if(i){(e+=Math.sign(t))0?Math.ceil(e/i)*i:Math.floor(e/i)*i)>n&&(e=r)}else(e+=t)n&&(e=r+(e-n-1));return e}function y(e,t){let r;if(null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days){let i=o((0,n.IO)(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});r=(0,n.xA)(i,e.timeZone)}else r=(0,n.ZI)(e)-e.offset;r+=(t.milliseconds||0)+1e3*(t.seconds||0)+6e4*(t.minutes||0)+36e5*(t.hours||0);let i=(0,n.FD)(r,e.timeZone);return(0,n.Mw)(i,e.calendar)}function b(e,t){return y(e,c(t))}function w(e,t,r,o){switch(t){case"hour":{let t=0,s=23;if((null==o?void 0:o.hourCycle)===12){let r=e.hour>=12;t=r?12:0,s=r?23:11}let a=(0,n.IO)(e),l=(0,n.Mw)(p(a,{hour:t}),new i.IQ),u=[(0,n.xA)(l,e.timeZone,"earlier"),(0,n.xA)(l,e.timeZone,"later")].filter(t=>(0,n.FD)(t,e.timeZone).day===l.day)[0],c=(0,n.Mw)(p(a,{hour:s}),new i.IQ),d=[(0,n.xA)(c,e.timeZone,"earlier"),(0,n.xA)(c,e.timeZone,"later")].filter(t=>(0,n.FD)(t,e.timeZone).day===c.day).pop(),f=(0,n.ZI)(e)-e.offset,h=Math.floor(f/36e5),m=f%36e5;return f=36e5*g(h,r,Math.floor(u/36e5),Math.floor(d/36e5),null==o?void 0:o.round)+m,(0,n.Mw)((0,n.FD)(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return v(e,t,r,o);case"era":case"year":case"month":case"day":{let i=m((0,n.IO)(e),t,r,o),s=(0,n.xA)(i,e.timeZone);return(0,n.Mw)((0,n.FD)(s,e.timeZone),e.calendar)}default:throw Error("Unsupported field "+t)}}function x(e,t,r){let i=(0,n.IO)(e),o=p(f(i,t),t);if(0===o.compare(i))return e;let s=(0,n.xA)(o,e.timeZone,r);return(0,n.Mw)((0,n.FD)(s,e.timeZone),e.calendar)}},13282:function(e,t,r){"use strict";r.d(t,{rm:function(){return d},Xi:function(){return f},Vf:function(){return g},vV:function(){return w},ji:function(){return u},iT:function(){return m},Rn:function(){return E},N9:function(){return a},KC:function(){return o},xj:function(){return s},zk:function(){return l},l7:function(){return _},Mb:function(){return S},Nm:function(){return v},zJ:function(){return b},em:function(){return y},Lg:function(){return c}});var n=r(8438);let i={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function o(e,t){return t=(0,n.Mw)(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function s(e,t){return t=(0,n.Mw)(t,e.calendar),e=v(e),t=v(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function a(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function l(e,t){return o(e,c(t))}function u(e,t){let r;let n=Math.ceil(e.calendar.toJulianDay(e)+1-((r=function(e){if(Intl.Locale){let t=x.get(e);return!t&&(t=new Intl.Locale(e).maximize().region)&&x.set(e,t),t}let t=e.split("-")[1];return"u"===t?void 0:t}(t))&&i[r]||0))%7;return n<0&&(n+=7),n}function c(e){return(0,n.WG)((0,n.FD)(Date.now(),e))}function d(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function f(e,t){return p(e)-p(t)}function p(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let h=null;function m(){return null==h&&(h=new Intl.DateTimeFormat().resolvedOptions().timeZone),h}function v(e){return e.subtract({days:e.day-1})}function g(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function y(e){return v(e.subtract({months:e.month-1}))}function b(e,t){let r=u(e,t);return e.subtract({days:r})}function w(e,t){return b(e,t).add({days:6})}let x=new Map;function E(e,t){let r=e.calendar.getDaysInMonth(e);return Math.ceil((u(v(e),t)+r)/7)}function S(e,t){return e&&t?0>=e.compare(t)?e:t:e||t}function _(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}},55919:function(e,t,r){"use strict";r.d(t,{LM:function(){return c},Rf:function(){return d},UW:function(){return u},sG:function(){return a}});var n=r(31602),i=r(8438),o=r(49210);let s=/^(\d{4})-(\d{2})-(\d{2})$/;function a(e){let t=e.match(s);if(!t)throw Error("Invalid ISO 8601 date string: "+e);let r=new n.aw(l(t[1],0,9999),l(t[2],1,12),1);return r.day=l(t[3],0,r.calendar.getDaysInMonth(r)),r}function l(e,t,r){let n=Number(e);if(nr)throw RangeError(`Value out of range: ${t} <= ${n} <= ${r}`);return n}function u(e){let t=(0,i.Mw)(e,new o.IQ);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function c(e){return`${u(e)}T${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function d(e){var t;let r,n,i;return`${c(e)}${r=0>Math.sign(t=e.offset)?"-":"+",n=Math.floor((t=Math.abs(t))/36e5),i=t%36e5/6e4,`${r}${String(n).padStart(2,"0")}:${String(i).padStart(2,"0")}`}[${e.timeZone}]`}},82439:function(e,t,r){"use strict";function n(e,t){return e-t*Math.floor(e/t)}r.d(t,{wQ:function(){return n}})},87362:function(e,t,r){"use strict";r.d(t,{A:function(){return E}});var[n,i]=(0,r(46347).k)({name:"ButtonGroupContext",strict:!1}),o=r(76733),s=r(50262),a=r(67294),l=r(2459),u=r(11086),c=r(28349),d=r(33295),f=r(27963),p=r(35653),h=r(27316),m=r(18419),v=r(10918),g=r(34863),y=r(14890),b=r(15607),w=r(85893),x=(0,b.Gp)((e,t)=>{let{Component:r,domRef:n,children:b,styles:x,spinnerSize:E,spinner:S=(0,w.jsx)(g.c,{color:"current",size:E}),spinnerPlacement:_,startContent:T,endContent:C,isLoading:k,disableRipple:P,getButtonProps:M,getRippleProps:O,isIconOnly:A}=function(e){var t,r,n,g,y,b,w,x,E;let S=i(),_=(0,o.w)(),T=!!S,{ref:C,as:k,children:P,startContent:M,endContent:O,autoFocus:A,className:I,spinner:L,isLoading:D=!1,disableRipple:R=!1,fullWidth:N=null!=(t=null==S?void 0:S.fullWidth)&&t,radius:j=null==S?void 0:S.radius,size:$=null!=(r=null==S?void 0:S.size)?r:"md",color:V=null!=(n=null==S?void 0:S.color)?n:"default",variant:z=null!=(g=null==S?void 0:S.variant)?g:"solid",disableAnimation:F=null!=(b=null!=(y=null==S?void 0:S.disableAnimation)?y:null==_?void 0:_.disableAnimation)&&b,isDisabled:B=null!=(w=null==S?void 0:S.isDisabled)&&w,isIconOnly:H=null!=(x=null==S?void 0:S.isIconOnly)&&x,spinnerPlacement:G="start",onPress:U,onClick:W,...q}=e,K=k||"button",Y="string"==typeof K,X=(0,d.gy)(C),J=null!=(E=R||(null==_?void 0:_.disableRipple))?E:F,{isFocusVisible:Z,isFocused:Q,focusProps:ee}=(0,l.F)({autoFocus:A}),et=B||D,er=(0,a.useMemo)(()=>(0,p.L)({size:$,color:V,variant:z,radius:j,fullWidth:N,isDisabled:et,isInGroup:T,disableAnimation:F,isIconOnly:H,className:I}),[$,V,z,j,N,et,T,H,F,I]),{onClick:en,onClear:ei,ripples:eo}=(0,v.i)(),es=(0,a.useCallback)(e=>{J||et||F||!X.current||en(e)},[J,et,F,X,en]),{buttonProps:ea,isPressed:el}=(0,h.j)({elementType:k,isDisabled:et,onPress:U,onClick:(0,u.t)(W,es),...q},X),{isHovered:eu,hoverProps:ec}=(0,m.X)({isDisabled:et}),ed=(0,a.useCallback)((e={})=>({"data-disabled":(0,s.PB)(et),"data-focus":(0,s.PB)(Q),"data-pressed":(0,s.PB)(el),"data-focus-visible":(0,s.PB)(Z),"data-hover":(0,s.PB)(eu),"data-loading":(0,s.PB)(D),...(0,c.d)(ea,ee,ec,(0,f.z)(q,{enabled:Y}),(0,f.z)(e))}),[D,et,Q,el,Y,Z,eu,ea,ee,ec,q]),ef=e=>(0,a.isValidElement)(e)?(0,a.cloneElement)(e,{"aria-hidden":!0,focusable:!1,tabIndex:-1}):null,ep=ef(M);return{Component:K,children:P,domRef:X,spinner:L,styles:er,startContent:ep,endContent:ef(O),isLoading:D,spinnerPlacement:G,spinnerSize:(0,a.useMemo)(()=>({sm:"sm",md:"sm",lg:"md"})[$],[$]),disableRipple:J,getButtonProps:ed,getRippleProps:(0,a.useCallback)(()=>({ripples:eo,onClear:ei}),[eo,ei]),isIconOnly:H}}({...e,ref:t});return(0,w.jsxs)(r,{ref:n,className:x,...M(),children:[T,k&&"start"===_&&S,k&&A?null:b,k&&"end"===_&&S,C,!P&&(0,w.jsx)(y.L,{...O()})]})});x.displayName="NextUI.Button";var E=x},86946:function(e,t,r){"use strict";r.d(t,{K:function(){return R}});var n=r(85893);function i(e){let{isSelected:t,disableAnimation:r,...i}=e;return(0,n.jsx)("svg",{"aria-hidden":"true",role:"presentation",viewBox:"0 0 17 18",...i,children:(0,n.jsx)("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!r&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{}})})}function o(e){let{isSelected:t,disableAnimation:r,...i}=e;return(0,n.jsx)("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...i,children:(0,n.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function s(e){let{isIndeterminate:t,...r}=e;return(0,n.jsx)(t?o:i,{...r})}var[a,l]=(0,r(46347).k)({name:"CheckboxGroupContext",strict:!1}),u=r(76733),c=r(67294),d=r(74619),f=r(59488),p=r(65512),h=(0,f.tv)({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2",wrapper:["relative","inline-flex","items-center","justify-center","flex-shrink-0","overflow-hidden","before:content-['']","before:absolute","before:inset-0","before:border-solid","before:border-2","before:box-border","before:border-default","after:content-['']","after:absolute","after:inset-0","after:scale-50","after:opacity-0","after:origin-center","group-data-[selected=true]:after:scale-100","group-data-[selected=true]:after:opacity-100","group-data-[hover=true]:before:bg-default-100",...p.ID],icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:"after:bg-default after:text-default-foreground text-default-foreground"},primary:{wrapper:"after:bg-primary after:text-primary-foreground text-primary-foreground"},secondary:{wrapper:"after:bg-secondary after:text-secondary-foreground text-secondary-foreground"},success:{wrapper:"after:bg-success after:text-success-foreground text-success-foreground"},warning:{wrapper:"after:bg-warning after:text-warning-foreground text-warning-foreground"},danger:{wrapper:"after:bg-danger after:text-danger-foreground text-danger-foreground"}},size:{sm:{wrapper:["w-4 h-4 mr-2 rtl:ml-2 rtl:mr-[unset]","rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 mr-2 rtl:ml-2 rtl:mr-[unset]","rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 mr-2 rtl:ml-2 rtl:mr-[unset]","rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"],label:"text-large",icon:"w-5 h-4"}},radius:{none:{wrapper:"rounded-none before:rounded-none after:rounded-none"},sm:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.5)]","before:rounded-[calc(theme(borderRadius.medium)*0.5)]","after:rounded-[calc(theme(borderRadius.medium)*0.5)]"]},md:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.6)]","before:rounded-[calc(theme(borderRadius.medium)*0.6)]","after:rounded-[calc(theme(borderRadius.medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(theme(borderRadius.medium)*0.7)]","before:rounded-[calc(theme(borderRadius.medium)*0.7)]","after:rounded-[calc(theme(borderRadius.medium)*0.7)]"]},full:{wrapper:"rounded-full before:rounded-full after:rounded-full"}},lineThrough:{true:{label:["inline-flex","items-center","justify-center","before:content-['']","before:absolute","before:bg-foreground","before:w-0","before:h-0.5","group-data-[selected=true]:opacity-60","group-data-[selected=true]:before:w-full"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{wrapper:"before:border-danger",label:"text-danger"}},disableAnimation:{true:{wrapper:"transition-none",icon:"transition-none",label:"transition-none"},false:{wrapper:["before:transition-colors","group-data-[pressed=true]:scale-95","transition-transform","after:transition-transform-opacity","after:!ease-linear","after:!duration-200","motion-reduce:transition-none"],icon:"transition-opacity motion-reduce:transition-none",label:"transition-colors-opacity before:transition-width motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,lineThrough:!1}});(0,f.tv)({slots:{base:"relative flex flex-col gap-2",label:"relative text-medium text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-small text-foreground-400",errorMessage:"text-small text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1}});var m=r(27794),v=r(69935),g=r(18419),y=r(2459),b=r(11086),w=r(28349),x=r(50262),E=r(52046),S=r(54720),_=r(49869),T=r(14868),C=r(48750),k=r(31801);function P(e,t,r){let n=(0,C.Q3)({...e,value:t.isSelected}),{isInvalid:i,validationErrors:o,validationDetails:s}=n.displayValidation,{labelProps:a,inputProps:l,isSelected:u,isPressed:d,isDisabled:f,isReadOnly:p}=(0,k.O)({...e,isInvalid:i},t,r);(0,T.Q)(e,n,r);let{isIndeterminate:h,isRequired:m,validationBehavior:v="aria"}=e;return(0,c.useEffect)(()=>{r.current&&(r.current.indeterminate=!!h)}),{labelProps:a,inputProps:{...l,checked:u,"aria-required":m&&"aria"===v||void 0,required:m&&"native"===v},isSelected:u,isPressed:d,isDisabled:f,isReadOnly:p,isInvalid:i,validationErrors:o,validationDetails:s}}let M=new WeakMap;var O=r(93387),A=r(48255),I=r(15607),L=r(73699),D=(0,I.Gp)((e,t)=>{let{Component:r,children:i,icon:o=(0,n.jsx)(s,{}),getBaseProps:a,getWrapperProps:f,getInputProps:p,getIconProps:T,getLabelProps:k}=function(e={}){var t,r,n,i,o,s,a,f;let p=(0,u.w)(),T=l(),k=!!T,{as:I,ref:L,value:D="",children:R,icon:N,name:j,isRequired:$,isReadOnly:V=!1,autoFocus:z=!1,isSelected:F,size:B=null!=(t=null==T?void 0:T.size)?t:"md",color:H=null!=(r=null==T?void 0:T.color)?r:"primary",radius:G=null==T?void 0:T.radius,lineThrough:U=null!=(n=null==T?void 0:T.lineThrough)&&n,isDisabled:W=null!=(i=null==T?void 0:T.isDisabled)&&i,disableAnimation:q=null!=(s=null!=(o=null==T?void 0:T.disableAnimation)?o:null==p?void 0:p.disableAnimation)&&s,validationState:K,isInvalid:Y=K?"invalid"===K:null!=(a=null==T?void 0:T.isInvalid)&&a,isIndeterminate:X=!1,validationBehavior:J=null!=(f=null==T?void 0:T.validationBehavior)?f:"aria",defaultSelected:Z,classNames:Q,className:ee,onValueChange:et,...er}=e;T&&x.Ts&&(F&&(0,E.Z)("The Checkbox.Group is being used, `isSelected` will be ignored. Use the `value` of the Checkbox.Group instead.","Checkbox"),Z&&(0,E.Z)("The Checkbox.Group is being used, `defaultSelected` will be ignored. Use the `defaultValue` of the Checkbox.Group instead.","Checkbox"));let en=(0,c.useRef)(null),ei=(0,c.useRef)(null),eo=e.onChange;k&&(eo=(0,b.t)(()=>{T.groupState.resetValidation()},eo));let es=(0,c.useId)(),ea=(0,c.useMemo)(()=>({name:j,value:D,children:R,autoFocus:z,defaultSelected:Z,validationBehavior:J,isIndeterminate:X,isRequired:$,isInvalid:Y,isSelected:F,isDisabled:W,isReadOnly:V,"aria-label":(0,S.x)(er["aria-label"],R),"aria-labelledby":er["aria-labelledby"]||es,onChange:et}),[D,j,es,R,z,Y,X,W,V,F,Z,J,er["aria-label"],er["aria-labelledby"],et]),el=(0,d.l)(ea),{inputProps:eu,isSelected:ec,isDisabled:ed,isReadOnly:ef,isPressed:ep}=k?function(e,t,r){var n,i;let o=(0,d.l)({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(r){r?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(r)}}),{name:s,descriptionId:a,errorMessageId:l,validationBehavior:u}=M.get(t);u=null!==(n=e.validationBehavior)&&void 0!==n?n:u;let{realtimeValidation:f}=(0,C.Q3)({...e,value:o.isSelected,name:void 0,validationBehavior:"aria"}),p=(0,c.useRef)(C.PS),h=()=>{t.setInvalid(e.value,f.isInvalid?f:p.current)};(0,c.useEffect)(h);let m=t.realtimeValidation.isInvalid?t.realtimeValidation:f,v="native"===u?t.displayValidation:m,g=P({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||s,isRequired:null!==(i=e.isRequired)&&void 0!==i?i:t.isRequired,validationBehavior:u,[C.tL]:{realtimeValidation:m,displayValidation:v,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(e){p.current=e,h()}}},o,r);return{...g,inputProps:{...g.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?l:null,a].filter(Boolean).join(" ")||void 0}}}({...ea},T.groupState,ei):P({...ea},el,ei),eh=ed||ef,[em,ev]=(0,c.useState)(!1),{pressProps:eg}=(0,v.r)({isDisabled:eh,onPressStart(e){"keyboard"!==e.pointerType&&ev(!0)},onPressEnd(e){"keyboard"!==e.pointerType&&ev(!1)}}),ey=!eh&&(em||ep),{hoverProps:eb,isHovered:ew}=(0,g.X)({isDisabled:eu.disabled}),{focusProps:ex,isFocused:eE,isFocusVisible:eS}=(0,y.F)({autoFocus:eu.autoFocus}),e_=(0,c.useMemo)(()=>h({color:H,size:B,radius:G,isInvalid:Y,lineThrough:U,isDisabled:ed,disableAnimation:q}),[H,B,G,Y,U,ed,q]);(0,O.G)(()=>{if(!ei.current)return;let e=!!ei.current.checked;el.setSelected(e)},[ei.current]);let eT=(0,m.W)(eo),eC=(0,c.useCallback)(e=>{if(ef||ed){e.preventDefault();return}null==eT||eT(e)},[ef,ed,eT]),ek=(0,_.W)(null==Q?void 0:Q.base,ee),eP=(0,c.useCallback)(()=>({ref:en,className:e_.base({class:ek}),"data-disabled":(0,x.PB)(ed),"data-selected":(0,x.PB)(ec||X),"data-invalid":(0,x.PB)(Y),"data-hover":(0,x.PB)(ew),"data-focus":(0,x.PB)(eE),"data-pressed":(0,x.PB)(ey),"data-readonly":(0,x.PB)(eu.readOnly),"data-focus-visible":(0,x.PB)(eS),"data-indeterminate":(0,x.PB)(X),...(0,w.d)(eb,eg,er)}),[e_,ek,ed,ec,X,Y,ew,eE,ey,eu.readOnly,eS,eb,eg,er]),eM=(0,c.useCallback)((e={})=>({...e,"aria-hidden":!0,className:(0,_.W)(e_.wrapper({class:(0,_.W)(null==Q?void 0:Q.wrapper,null==e?void 0:e.className)}))}),[e_,null==Q?void 0:Q.wrapper]),eO=(0,c.useCallback)(()=>({ref:(0,A.l)(ei,L),...(0,w.d)(eu,ex),onChange:(0,b.t)(eu.onChange,eC)}),[eu,ex,eC]),eA=(0,c.useCallback)(()=>({id:es,className:e_.label({class:null==Q?void 0:Q.label})}),[e_,null==Q?void 0:Q.label,ed,ec,Y]),eI=(0,c.useCallback)(()=>({isSelected:ec,isIndeterminate:X,disableAnimation:q,className:e_.icon({class:null==Q?void 0:Q.icon})}),[e_,null==Q?void 0:Q.icon,ec,X,q]);return{Component:I||"label",icon:N,children:R,isSelected:ec,isDisabled:ed,isInvalid:Y,isFocused:eE,isHovered:ew,isFocusVisible:eS,getBaseProps:eP,getWrapperProps:eM,getInputProps:eO,getLabelProps:eA,getIconProps:eI}}({...e,ref:t}),I="function"==typeof o?o(T()):(0,c.cloneElement)(o,T());return(0,n.jsxs)(r,{...a(),children:[(0,n.jsx)(L.T,{elementType:"span",children:(0,n.jsx)("input",{...p()})}),(0,n.jsx)("span",{...f(),children:I}),i&&(0,n.jsx)("span",{...k(),children:i})]})});D.displayName="NextUI.Checkbox";var R=D},90029:function(e,t,r){"use strict";r.d(t,{Lj:function(){return n},y7:function(){return i}});var n={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]};n.easeOut,n.easeIn;var i={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:n.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:n.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:n.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:n.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:n.ease}},exit:{opacity:0,transition:{duration:.3,ease:n.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}}},27963:function(e,t,r){"use strict";r.d(t,{z:function(){return l}});var n=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),i=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),o=/^(data-.*)$/,s=/^(aria-.*)$/,a=/^(on[A-Z].*)$/;function l(e,t={}){let{labelable:r=!0,enabled:l=!0,propNames:u,omitPropNames:c,omitEventNames:d,omitDataProps:f,omitEventProps:p}=t,h={};if(!l)return e;for(let t in e)!((null==c?void 0:c.has(t))||(null==d?void 0:d.has(t))&&a.test(t)||a.test(t)&&!i.has(t)||f&&o.test(t)||p&&a.test(t))&&(Object.prototype.hasOwnProperty.call(e,t)&&(n.has(t)||r&&s.test(t)||(null==u?void 0:u.has(t))||o.test(t))||a.test(t))&&(h[t]=e[t]);return h}},46347:function(e,t,r){"use strict";r.d(t,{k:function(){return i}});var n=r(67294);function i(e={}){let{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:i}=e,o=n.createContext(void 0);return o.displayName=i,[o.Provider,function e(){var i;let s=n.useContext(o);if(!s&&t){let t=Error(r);throw t.name="ContextError",null==(i=Error.captureStackTrace)||i.call(Error,t,e),t}return s},o]}},48255:function(e,t,r){"use strict";r.d(t,{l:function(){return i}});var n=r(50262);function i(...e){return t=>{e.forEach(e=>(function(e,t){if(null!=e){if((0,n.mf)(e)){e(t);return}try{e.current=t}catch(r){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}})(e,t))}}},33295:function(e,t,r){"use strict";r.d(t,{AH:function(){return o},gy:function(){return i}});var n=r(67294);function i(e){let t=(0,n.useRef)(null);return(0,n.useImperativeHandle)(e,()=>t.current),t}function o(e,t){return e&&t&&e.xt.x&&e.yt.y}"undefined"!=typeof window&&window.document&&window.document.createElement},31204:function(e,t,r){"use strict";r.d(t,{D:function(){return n},v:function(){return i}});var[n,i]=(0,r(46347).k)({name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"})},21974:function(e,t,r){"use strict";r.d(t,{I:function(){return c}});var n=r(31204),i=r(67294),o=r(15607),s=r(33295),a=r(49869),l=r(85893),u=(0,o.Gp)((e,t)=>{let{as:r,children:o,className:u,...c}=e,{slots:d,classNames:f,bodyId:p,setBodyMounted:h}=(0,n.v)(),m=(0,s.gy)(t);return(0,i.useEffect)(()=>(h(!0),()=>h(!1)),[h]),(0,l.jsx)(r||"div",{ref:m,className:d.body({class:(0,a.W)(null==f?void 0:f.body,u)}),id:p,...c,children:o})});u.displayName="NextUI.ModalBody";var c=u},47873:function(e,t,r){"use strict";r.d(t,{A:function(){return y}});var n=r(90029),i={enter:{scale:"var(--scale-enter)",y:"var(--slide-enter)",opacity:1,transition:{scale:{duration:.4,ease:n.Lj.ease},opacity:{duration:.4,ease:n.Lj.ease},y:{type:"spring",bounce:0,duration:.6}}},exit:{scale:"var(--scale-exit)",y:"var(--slide-exit)",opacity:0,transition:{duration:.3,ease:n.Lj.ease}}},o=r(31204),s=r(67294),a=r(15607),l=r(65081),u=r(85893),c=e=>{let{isSelected:t,isIndeterminate:r,disableAnimation:n,...i}=e;return(0,u.jsx)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:"1em",...i,children:(0,u.jsx)("path",{d:"M18 6L6 18M6 6l12 12"})})},d=r(18522),f=r(1673),p=r(12560),h=r(34446),m=r(28349),v=r(11086),g=(0,a.Gp)((e,t)=>{let{as:r,children:a,role:g="dialog",...y}=e,{Component:b,domRef:w,slots:x,classNames:E,motionProps:S,backdrop:_,closeButton:T,hideCloseButton:C,disableAnimation:k,getDialogProps:P,getBackdropProps:M,getCloseButtonProps:O,onClose:A}=(0,o.v)(),{dialogProps:I}=(0,h.R)({role:g},w),L=(0,s.isValidElement)(T)?(0,s.cloneElement)(T,O()):(0,u.jsx)("button",{...O(),children:(0,u.jsx)(c,{})}),D=(0,s.useCallback)(e=>{"Tab"===e.key&&e.nativeEvent.isComposing&&(e.stopPropagation(),e.preventDefault())},[]),R=P((0,m.d)(I,y)),N=(0,u.jsxs)(r||b||"div",{...R,onKeyDown:(0,v.t)(R.onKeyDown,D),children:[(0,u.jsx)(l.U,{onDismiss:A}),!C&&L,"function"==typeof a?a(A):a,(0,u.jsx)(l.U,{onDismiss:A})]}),j=(0,s.useMemo)(()=>"transparent"===_?null:k?(0,u.jsx)("div",{...M()}):(0,u.jsx)(d.X,{features:f.H,children:(0,u.jsx)(p.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:n.y7.fade,...M()})}),[_,k,M]),$=k?(0,u.jsx)("div",{className:x.wrapper({class:null==E?void 0:E.wrapper}),"data-slot":"wrapper",children:N}):(0,u.jsx)(d.X,{features:f.H,children:(0,u.jsx)(p.m.div,{animate:"enter",className:x.wrapper({class:null==E?void 0:E.wrapper}),"data-slot":"wrapper",exit:"exit",initial:"exit",variants:i,...S,children:N})});return(0,u.jsxs)("div",{tabIndex:-1,children:[j,$]})});g.displayName="NextUI.ModalContent";var y=g},49559:function(e,t,r){"use strict";let n;r.d(t,{R:function(){return j}});var i=r(74238),o=r(69786),s=r(68806),a=r(11086),l=r(49665);let u="undefined"!=typeof document&&window.visualViewport,c=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),d=0;function f(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function p(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function h(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=(0,l.r)(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let r=t.getBoundingClientRect().top,n=e.getBoundingClientRect().top;n>r+e.clientHeight&&(t.scrollTop+=n-r)}e=t.parentElement}}function m(e){return e instanceof HTMLInputElement&&!c.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var v=r(25299),g=r(6270),y=r(28349),b=r(67294),w=r(59488),x=r(65512),E=(0,w.tv)({slots:{wrapper:["flex","w-screen","h-[100dvh]","fixed","inset-0","z-50","overflow-x-auto","justify-center"],base:["flex","flex-col","relative","bg-white","z-50","w-full","box-border","bg-content1","outline-none","mx-1","my-1","sm:mx-6","sm:my-16"],backdrop:"z-50",header:"flex py-4 px-6 flex-initial text-large font-semibold",body:"flex flex-1 flex-col gap-3 px-6 py-2",footer:"flex flex-row gap-2 px-6 py-4 justify-end",closeButton:["absolute","appearance-none","outline-none","select-none","top-1","right-1","rtl:left-1","rtl:right-[unset]","p-2","text-foreground-500","rounded-full","hover:bg-default-100","active:bg-default-200","tap-highlight-transparent",...x.Dh]},variants:{size:{xs:{base:"max-w-xs"},sm:{base:"max-w-sm"},md:{base:"max-w-md"},lg:{base:"max-w-lg"},xl:{base:"max-w-xl"},"2xl":{base:"max-w-2xl"},"3xl":{base:"max-w-3xl"},"4xl":{base:"max-w-4xl"},"5xl":{base:"max-w-5xl"},full:{base:"my-0 mx-0 sm:mx-0 sm:my-0 max-w-full h-[100dvh] !rounded-none"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"}},placement:{auto:{wrapper:"items-end sm:items-center"},center:{wrapper:"items-center sm:items-center"},top:{wrapper:"items-start sm:items-start"},"top-center":{wrapper:"items-start sm:items-center"},bottom:{wrapper:"items-end sm:items-end"},"bottom-center":{wrapper:"items-end sm:items-center"}},shadow:{sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},backdrop:{transparent:{backdrop:"hidden"},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-md backdrop-saturate-150 bg-overlay/30"}},scrollBehavior:{normal:{base:"overflow-y-hidden"},inside:{base:"max-h-[calc(100%_-_7.5rem)]",body:"overflow-y-auto"},outside:{wrapper:"items-start sm:items-start overflow-y-auto",base:"my-16"}},disableAnimation:{false:{wrapper:["[--scale-enter:100%]","[--scale-exit:100%]","[--slide-enter:0px]","[--slide-exit:80px]","sm:[--scale-enter:100%]","sm:[--scale-exit:103%]","sm:[--slide-enter:0px]","sm:[--slide-exit:0px]"]}}},defaultVariants:{size:"md",radius:"lg",shadow:"sm",placement:"auto",backdrop:"opaque",scrollBehavior:"normal"},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"w-screen h-screen fixed inset-0"}}]}),S=r(76733),_=r(15607),T=r(27316),C=r(2459),k=r(49869),P=r(49037),M=r(50262),O=r(33295),A=r(16551),I=r(36303),L=r(31204),D=r(51526),R=r(85893),N=(0,_.Gp)((e,t)=>{let{children:r,...c}=e,w=function(e){var t,r,c;let w=(0,S.w)(),[x,L]=(0,_.oe)(e,E.variantKeys),{ref:D,as:R,className:N,classNames:j,isOpen:$,defaultOpen:V,onOpenChange:z,motionProps:F,closeButton:B,isDismissable:H=!0,hideCloseButton:G=!1,shouldBlockScroll:U=!0,portalContainer:W,isKeyboardDismissDisabled:q=!1,onClose:K,...Y}=x,X=(0,O.gy)(D),J=(0,b.useRef)(null),[Z,Q]=(0,b.useState)(!1),[ee,et]=(0,b.useState)(!1),er=null!=(r=null!=(t=e.disableAnimation)?t:null==w?void 0:w.disableAnimation)&&r,en=(0,b.useId)(),ei=(0,b.useId)(),eo=(0,b.useId)(),es=(0,A.d)({isOpen:$,defaultOpen:V,onOpenChange:e=>{null==z||z(e),e||null==K||K()}}),{modalProps:ea,underlayProps:el}=function(e={shouldBlockScroll:!0},t,r){let{overlayProps:c,underlayProps:w}=(0,i.I)({...e,isOpen:t.isOpen,onClose:t.close},r);return!function(e={}){let{isDisabled:t}=e;(0,o.b)(()=>{if(!t){let e,t,r,i,o;return 1==++d&&(n=(0,s.gn)()?(r=null,i=()=>{if(r)return;let e=window.pageXOffset,t=window.pageYOffset;r=(0,a.t)(p(window,"scroll",()=>{window.scrollTo(0,0)}),f(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),f(document.documentElement,"overflow","hidden"),f(document.body,"marginTop",`-${t}px`),()=>{window.scrollTo(e,t)}),window.scrollTo(0,0)},o=(0,a.t)(p(document,"touchstart",r=>{((e=(0,l.r)(r.target,!0))!==document.documentElement||e!==document.body)&&e instanceof HTMLElement&&"auto"===window.getComputedStyle(e).overscrollBehavior&&(t=f(e,"overscrollBehavior","contain"))},{passive:!1,capture:!0}),p(document,"touchmove",t=>{if(!e||e===document.documentElement||e===document.body){t.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()},{passive:!1,capture:!0}),p(document,"touchend",e=>{let r=e.target;m(r)&&r!==document.activeElement&&(e.preventDefault(),i(),r.style.transform="translateY(-2000px)",r.focus(),requestAnimationFrame(()=>{r.style.transform=""})),t&&t()},{passive:!1,capture:!0}),p(document,"focus",e=>{let t=e.target;m(t)&&(i(),t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",u&&(u.height{h(t)}):u.addEventListener("resize",()=>h(t),{once:!0}))}))},!0)),()=>{null==t||t(),null==r||r(),o()}):(0,a.t)(f(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),f(document.documentElement,"overflow","hidden"))),()=>{0==--d&&n()}}},[t])}({isDisabled:!t.isOpen||!e.shouldBlockScroll}),(0,v.Bq)(),(0,b.useEffect)(()=>{if(t.isOpen&&r.current)return(0,g.R)([r.current])},[t.isOpen,r]),{modalProps:(0,y.d)(c),underlayProps:w}}({isDismissable:H,shouldBlockScroll:U,isKeyboardDismissDisabled:q},es,X),{buttonProps:eu}=(0,T.j)({onPress:es.close},J),{isFocusVisible:ec,focusProps:ed}=(0,C.F)(),ef=(0,k.W)(null==j?void 0:j.base,N),ep=(0,b.useMemo)(()=>E({...L,disableAnimation:er}),[(0,P.Xx)(L),er]),eh=(0,b.useCallback)((e={})=>({className:ep.backdrop({class:null==j?void 0:j.backdrop}),onClick:()=>es.close(),...el,...e}),[ep,j,el]);return{Component:R||"section",slots:ep,domRef:X,headerId:ei,bodyId:eo,motionProps:F,classNames:j,isDismissable:H,closeButton:B,hideCloseButton:G,portalContainer:W,shouldBlockScroll:U,backdrop:null!=(c=e.backdrop)?c:"opaque",isOpen:es.isOpen,onClose:es.close,disableAnimation:er,setBodyMounted:et,setHeaderMounted:Q,getDialogProps:(e={},t=null)=>({ref:(0,I.l)(t,X),...(0,y.d)(ea,Y,e),className:ep.base({class:(0,k.W)(ef,e.className)}),id:en,"data-open":(0,M.PB)(es.isOpen),"data-dismissable":(0,M.PB)(H),"aria-modal":(0,M.PB)(!0),"aria-labelledby":Z?ei:void 0,"aria-describedby":ee?eo:void 0}),getBackdropProps:eh,getCloseButtonProps:()=>({role:"button",tabIndex:0,"aria-label":"Close","data-focus-visible":(0,M.PB)(ec),className:ep.closeButton({class:null==j?void 0:j.closeButton}),...(0,y.d)(eu,ed)})}}({...c,ref:t}),x=(0,R.jsx)(v.aV,{portalContainer:w.portalContainer,children:r});return(0,R.jsx)(L.D,{value:w,children:w.disableAnimation&&w.isOpen?x:(0,R.jsx)(D.M,{children:w.isOpen?x:null})})});N.displayName="NextUI.Modal";var j=N},10918:function(e,t,r){"use strict";r.d(t,{i:function(){return o}});var n=r(49037),i=r(67294);function o(e={}){let[t,r]=(0,i.useState)([]);return{ripples:t,onClick:(0,i.useCallback)(e=>{let t=e.currentTarget,i=Math.max(t.clientWidth,t.clientHeight),o=t.getBoundingClientRect();r(t=>[...t,{key:(0,n.QI)(t.length.toString()),size:i,x:e.clientX-o.left-i/2,y:e.clientY-o.top-i/2}])},[]),onClear:(0,i.useCallback)(e=>{r(t=>t.filter(t=>t.key!==e))},[]),...e}}},14890:function(e,t,r){"use strict";r.d(t,{L:function(){return c}});var n=r(18522),i=r(1673),o=r(51526),s=r(12560),a=r(80711),l=r(85893),u=e=>{let{ripples:t=[],motionProps:r,color:u="currentColor",style:c,onClear:d}=e;return(0,l.jsx)(l.Fragment,{children:t.map(e=>{let t=(0,a.uZ)(.01*e.size,.2,e.size>100?.75:.5);return(0,l.jsx)(n.X,{features:i.H,children:(0,l.jsx)(o.M,{mode:"popLayout",children:(0,l.jsx)(s.m.span,{animate:{transform:"scale(2)",opacity:0},className:"nextui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:u,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,top:e.y,left:e.x,width:`${e.size}px`,height:`${e.size}px`,...c},transition:{duration:t},onAnimationComplete:()=>{d(e.key)},...r})})},e.key)})})};u.displayName="NextUI.Ripple";var c=u},49869:function(e,t,r){"use strict";function n(...e){for(var t,r,i=0,o="";i{let t=" ";for(let r of e)if("string"==typeof r&&r.length>0){t=r;break}return t}},50262:function(e,t,r){"use strict";r.d(t,{PB:function(){return o},Ts:function(){return n},mf:function(){return i}});var n=!1;function i(e){return"function"==typeof e}var o=e=>e?"true":void 0},80711:function(e,t,r){"use strict";function n(e,t){return Array.from({length:t-e+1},(t,r)=>r+e)}function i(e,t,r){return Math.min(Math.max(e,t),r)}r.d(t,{uZ:function(){return i},w6:function(){return n}})},52046:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(83454),i={};function o(e,t,...r){var s;let a=t?` [${t}]`:" ",l=`[Next UI]${a}: ${e}`;if("undefined"!=typeof console&&!i[l]&&(i[l]=!0,(null==(s=null==n?void 0:n.env)?void 0:s.NODE_ENV)!=="production"))return console.warn(l,r)}},49037:function(e,t,r){"use strict";r.d(t,{Os:function(){return o},QI:function(){return i},Xx:function(){return s},kC:function(){return n}});var n=e=>e.charAt(0).toUpperCase()+e.slice(1);function i(e){return`${e}-${Math.floor(1e6*Math.random())}`}function o(e){for(let t in e)t.startsWith("on")&&delete e[t];return e}function s(e){if(!e||"object"!=typeof e)return"";try{return JSON.stringify(e)}catch(e){return""}}},34863:function(e,t,r){"use strict";r.d(t,{c:function(){return c}});var n=r(15607),i=(0,r(59488).tv)({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",circle1:["absolute","w-full","h-full","rounded-full","animate-spinner-ease-spin","border-2","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["absolute","w-full","h-full","rounded-full","opacity-75","animate-spinner-linear-spin","border-2","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"],label:"text-foreground dark:text-foreground-dark font-regular"},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current"},white:{circle1:"border-b-white",circle2:"border-b-white"},default:{circle1:"border-b-default",circle2:"border-b-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground"}}),o=r(49037),s=r(49869),a=r(67294),l=r(85893),u=(0,n.Gp)((e,t)=>{let{slots:r,classNames:u,label:c,getSpinnerProps:d}=function(e){let[t,r]=(0,n.oe)(e,i.variantKeys),{children:l,className:u,classNames:c,label:d,...f}=t,p=(0,a.useMemo)(()=>i({...r}),[(0,o.Xx)(r)]),h=(0,s.W)(null==c?void 0:c.base,u),m=d||l,v=(0,a.useMemo)(()=>m&&"string"==typeof m?m:f["aria-label"]?"":"Loading",[l,m,f["aria-label"]]),g=(0,a.useCallback)(()=>({"aria-label":v,className:p.base({class:h}),...f}),[v,p,h,f]);return{label:m,slots:p,classNames:c,getSpinnerProps:g}}({...e});return(0,l.jsxs)("div",{ref:t,...d(),children:[(0,l.jsxs)("div",{className:r.wrapper({class:null==u?void 0:u.wrapper}),children:[(0,l.jsx)("i",{className:r.circle1({class:null==u?void 0:u.circle1})}),(0,l.jsx)("i",{className:r.circle2({class:null==u?void 0:u.circle2})})]}),c&&(0,l.jsx)("span",{className:r.label({class:null==u?void 0:u.label}),children:c})]})});u.displayName="NextUI.Spinner";var c=u},15607:function(e,t,r){"use strict";r.d(t,{Gp:function(){return i},oe:function(){return o}});var n=r(67294);function i(e){return(0,n.forwardRef)(e)}var o=(e,t,r=!0)=>{if(!t)return[e,{}];let n=t.reduce((t,r)=>r in e?{...t,[r]:e[r]}:t,{});return r?[Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>({...t,[r]:e[r]}),{}),n]:[e,n]}},76733:function(e,t,r){"use strict";r.d(t,{a:function(){return n},w:function(){return i}});var[n,i]=(0,r(46347).k)({name:"ProviderContext",strict:!1})},43649:function(e,t,r){"use strict";r.d(t,{J:function(){return n}});var n={solid:{default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},shadow:{default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},bordered:{default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},flat:{default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},faded:{default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},light:{default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},ghost:{default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"}}},59488:function(e,t,r){"use strict";r.d(t,{tv:function(){return er}});var n=["small","medium","large"],i={theme:{opacity:["disabled"],spacing:["divider"],borderWidth:n,borderRadius:n},classGroups:{shadow:[{shadow:n}],"font-size":[{text:["tiny",...n]}],"bg-image":["bg-stripe-gradient"]}},o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s=e=>!e||"object"!=typeof e||0===Object.keys(e).length,a=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function l(e){let t=[];return function e(t,r){t.forEach(function(t){Array.isArray(t)?e(t,r):r.push(t)})}(e,t),t}var u=(...e)=>l(e).filter(Boolean),c=(e,t)=>{let r={},n=Object.keys(e),i=Object.keys(t);for(let o of n)if(i.includes(o)){let n=e[o],i=t[o];"object"==typeof n&&"object"==typeof i?r[o]=c(n,i):Array.isArray(n)||Array.isArray(i)?r[o]=u(i,n):r[o]=i+" "+n}else r[o]=e[o];for(let e of i)n.includes(e)||(r[e]=t[e]);return r},d=e=>e&&"string"==typeof e?e.replace(/\s+/g," ").trim():e,f=/^\[(.+)\]$/;function p(e,t){var r=e;return t.split("-").forEach(function(e){r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r}var h=/\s+/;function m(){for(var e,t,r=0,n="";re&&(t=0,n=r,r=new Map)}return{get:function(e){var t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(i(e,t),t):void 0},set:function(e,t){r.has(e)?r.set(e,t):i(e,t)}}}(e.cacheSize),splitModifiers:(r=1===(t=e.separator||":").length,n=t[0],i=t.length,function(e){for(var o,s=[],a=0,l=0,u=0;ul?o-l:void 0}}),...(l=e.theme,u=e.prefix,c={nextPart:new Map,validators:[]},(d=Object.entries(e.classGroups),u?d.map(function(e){return[e[0],e[1].map(function(e){return"string"==typeof e?u+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(function(e){return[u+e[0],e[1]]})):e})]}):d).forEach(function(e){var t=e[0];(function e(t,r,n,i){t.forEach(function(t){if("string"==typeof t){(""===t?r:p(r,t)).classGroupId=n;return}if("function"==typeof t){if(t.isThemeGetter){e(t(i),r,n,i);return}r.validators.push({validator:t,classGroupId:n});return}Object.entries(t).forEach(function(t){var o=t[0];e(t[1],p(r,o),n,i)})})})(e[1],c,t,l)}),o=e.conflictingClassGroups,a=void 0===(s=e.conflictingClassGroupModifiers)?{}:s,{getClassGroupId:function(e){var t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),function e(t,r){if(0===t.length)return r.classGroupId;var n=t[0],i=r.nextPart.get(n),o=i?e(t.slice(1),i):void 0;if(o)return o;if(0!==r.validators.length){var s=t.join("-");return r.validators.find(function(e){return(0,e.validator)(s)})?.classGroupId}}(t,c)||function(e){if(f.test(e)){var t=f.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}(e)},getConflictingClassGroupIds:function(e,t){var r=o[e]||[];return t&&a[e]?[].concat(r,a[e]):r}})}}(i.slice(1).reduce(function(e,t){return t(e)},o()))).cache.get,r=e.cache.set,s=a,a(n)};function a(n){var i,o,s,a,l,u=t(n);if(u)return u;var c=(o=(i=e).splitModifiers,s=i.getClassGroupId,a=i.getConflictingClassGroupIds,l=new Set,n.trim().split(h).map(function(e){var t=o(e),r=t.modifiers,n=t.hasImportantModifier,i=t.baseClassName,a=t.maybePostfixModifierPosition,l=s(a?i.substring(0,a):i),u=!!a;if(!l){if(!a||!(l=s(i)))return{isTailwindClass:!1,originalClassName:e};u=!1}var c=(function(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(e){"["===e[0]?(t.push.apply(t,r.sort().concat([e])),r=[]):r.push(e)}),t.push.apply(t,r.sort()),t})(r).join(":");return{isTailwindClass:!0,modifierId:n?c+"!":c,classGroupId:l,originalClassName:e,hasPostfixModifier:u}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,r=e.classGroupId,n=e.hasPostfixModifier,i=t+r;return!l.has(i)&&(l.add(i),a(r,n).forEach(function(e){return l.add(t+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" "));return r(n,c),c}return function(){return s(m.apply(null,arguments))}}function g(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var y=/^\[(?:([a-z-]+):)?(.+)\]$/i,b=/^\d+\/\d+$/,w=new Set(["px","full","screen"]),x=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,E=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,S=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function _(e){return O(e)||w.has(e)||b.test(e)||T(e)}function T(e){return j(e,"length",$)}function C(e){return j(e,"size",V)}function k(e){return j(e,"position",V)}function P(e){return j(e,"url",z)}function M(e){return j(e,"number",O)}function O(e){return!Number.isNaN(Number(e))}function A(e){return e.endsWith("%")&&O(e.slice(0,-1))}function I(e){return F(e)||j(e,"number",F)}function L(e){return y.test(e)}function D(){return!0}function R(e){return x.test(e)}function N(e){return j(e,"",B)}function j(e,t,r){var n=y.exec(e);return!!n&&(n[1]?n[1]===t:r(n[2]))}function $(e){return E.test(e)}function V(){return!1}function z(e){return e.startsWith("url(")}function F(e){return Number.isInteger(Number(e))}function B(e){return S.test(e)}function H(){var e=g("colors"),t=g("spacing"),r=g("blur"),n=g("brightness"),i=g("borderColor"),o=g("borderRadius"),s=g("borderSpacing"),a=g("borderWidth"),l=g("contrast"),u=g("grayscale"),c=g("hueRotate"),d=g("invert"),f=g("gap"),p=g("gradientColorStops"),h=g("gradientColorStopPositions"),m=g("inset"),v=g("margin"),y=g("opacity"),b=g("padding"),w=g("saturate"),x=g("scale"),E=g("sepia"),S=g("skew"),j=g("space"),$=g("translate"),V=function(){return["auto","contain","none"]},z=function(){return["auto","hidden","clip","visible","scroll"]},F=function(){return["auto",L,t]},B=function(){return[L,t]},H=function(){return["",_]},G=function(){return["auto",O,L]},U=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},W=function(){return["solid","dashed","dotted","double","none"]},q=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},K=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",L]},X=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},J=function(){return[O,M]},Z=function(){return[O,L]};return{cacheSize:500,theme:{colors:[D],spacing:[_],blur:["none","",R,L],brightness:J(),borderColor:[e],borderRadius:["none","","full",R,L],borderSpacing:B(),borderWidth:H(),contrast:J(),grayscale:Y(),hueRotate:Z(),invert:Y(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[A,T],inset:F(),margin:F(),opacity:J(),padding:B(),saturate:J(),scale:J(),sepia:Y(),skew:Z(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",L]}],container:["container"],columns:[{columns:[R]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(U(),[L])}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",I]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",L]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",I]}],"grid-cols":[{"grid-cols":[D]}],"col-start-end":[{col:["auto",{span:["full",I]},L]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[D]}],"row-start-end":[{row:["auto",{span:[I]},L]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",L]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",L]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(K())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(K(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(K(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",L,t]}],"min-w":[{"min-w":["min","max","fit",L,_]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[R]},R,L]}],h:[{h:[L,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",L,_]}],"max-h":[{"max-h":[L,t,"min","max","fit"]}],"font-size":[{text:["base",R,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",M]}],"font-family":[{font:[D]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",L]}],"line-clamp":[{"line-clamp":["none",O,M]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",L,_]}],"list-image":[{"list-image":["none",L]}],"list-style-type":[{list:["none","disc","decimal",L]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(W(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",_]}],"underline-offset":[{"underline-offset":["auto",L,_]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(U(),[k])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",C]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},P]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[].concat(W(),["hidden"])}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:W()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[""].concat(W())}],"outline-offset":[{"outline-offset":[L,_]}],"outline-w":[{outline:[_]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[_]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",R,N]}],"shadow-color":[{shadow:[D]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":q()}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",R,L]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",L]}],duration:[{duration:Z()}],ease:[{ease:["linear","in","out","in-out",L]}],delay:[{delay:Z()}],animate:[{animate:["none","spin","ping","pulse","bounce",L]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[I,L]}],"translate-x":[{"translate-x":[$]}],"translate-y":[{"translate-y":[$]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",L]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",L]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",L]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[_,M]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var G=v(H),U=Object.prototype.hasOwnProperty,W=new Set(["string","number","boolean"]),q={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},K=e=>e||void 0,Y=(...e)=>K(l(e).filter(Boolean).join(" ")),X=null,J={},Z=!1,Q=(...e)=>t=>t.twMerge?((!X||Z)&&(Z=!1,X=s(J)?G:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{for(let r in t)e.hasOwnProperty(r)?e[r]=Y(e[r],t[r]):e[r]=t[r];return e},et=(e,t)=>{let{extend:r=null,slots:n={},variants:i={},compoundVariants:l=[],compoundSlots:f=[],defaultVariants:p={}}=e,h={...q,...t},m=null!=r&&r.base?Y(r.base,null==e?void 0:e.base):null==e?void 0:e.base,v=null!=r&&r.variants&&!s(r.variants)?c(i,r.variants):i,g=null!=r&&r.defaultVariants&&!s(r.defaultVariants)?{...r.defaultVariants,...p}:p;s(h.twMergeConfig)||a(h.twMergeConfig,J)||(Z=!0,J=h.twMergeConfig);let y=s(null==r?void 0:r.slots),b=s(n)?{}:{base:Y(null==e?void 0:e.base,y&&(null==r?void 0:r.base)),...n},w=y?b:ee({...null==r?void 0:r.slots},s(b)?{base:null==e?void 0:e.base}:b),x=e=>{if(s(v)&&s(n)&&y)return Q(m,null==e?void 0:e.class,null==e?void 0:e.className)(h);if(l&&!Array.isArray(l))throw TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof l}`);if(f&&!Array.isArray(f))throw TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof f}`);let t=(e,t,r=[],n)=>{let i=r;if("string"==typeof t)i=i.concat(d(t).split(" ").map(t=>`${e}:${t}`));else if(Array.isArray(t))i=i.concat(t.reduce((t,r)=>t.concat(`${e}:${r}`),[]));else if("object"==typeof t&&"string"==typeof n){for(let r in t)if(t.hasOwnProperty(r)&&r===n){let o=t[r];if(o&&"string"==typeof o){let t=d(o);i[n]?i[n]=i[n].concat(t.split(" ").map(t=>`${e}:${t}`)):i[n]=t.split(" ").map(t=>`${e}:${t}`)}else Array.isArray(o)&&o.length>0&&(i[n]=o.reduce((t,r)=>t.concat(`${e}:${r}`),[]))}}return i},i=(r,n=v,i=null,a=null)=>{var l;let u=n[r];if(!u||s(u))return null;let c=null!=(l=null==a?void 0:a[r])?l:null==e?void 0:e[r];if(null===c)return null;let d=o(c),f=Array.isArray(h.responsiveVariants)&&h.responsiveVariants.length>0||!0===h.responsiveVariants,p=null==g?void 0:g[r],m=[];if("object"==typeof d&&f)for(let[e,r]of Object.entries(d)){let n=u[r];if("initial"===e){p=r;continue}Array.isArray(h.responsiveVariants)&&!h.responsiveVariants.includes(e)||(m=t(e,n,m,i))}let y=u[d]||u[o(p)];return"object"==typeof m&&"string"==typeof i&&m[i]?ee(m,y):m.length>0?(m.push(y),m):y},a=(e,t)=>{if(!v||"object"!=typeof v)return null;let r=[];for(let n in v){let o=i(n,v,e,t),s="base"===e&&"string"==typeof o?o:o&&o[e];s&&(r[r.length]=s)}return r},c={};for(let t in e)void 0!==e[t]&&(c[t]=e[t]);let p=(t,r)=>{var n;let i="object"==typeof(null==e?void 0:e[t])?{[t]:null==(n=e[t])?void 0:n.initial}:{};return{...g,...c,...i,...r}},b=(e=[],t)=>{let r=[];for(let{class:n,className:i,...o}of e){let e=!0;for(let[r,n]of Object.entries(o)){let i=p(r,t);if(Array.isArray(n)){if(!n.includes(i[r])){e=!1;break}}else if(i[r]!==n){e=!1;break}}e&&(n&&r.push(n),i&&r.push(i))}return r},x=e=>{let t=b(l,e);return u(b(null==r?void 0:r.compoundVariants,e),t)},E=e=>{let t=x(e);if(!Array.isArray(t))return t;let r={};for(let e of t)if("string"==typeof e&&(r.base=Q(r.base,e)(h)),"object"==typeof e)for(let[t,n]of Object.entries(e))r[t]=Q(r[t],n)(h);return r},S=e=>{if(f.length<1)return null;let t={};for(let{slots:r=[],class:n,className:i,...o}of f){if(!s(o)){let t=!0;for(let r of Object.keys(o)){let n=p(r,e)[r];if(void 0===n||(Array.isArray(o[r])?!o[r].includes(n):o[r]!==n)){t=!1;break}}if(!t)continue}for(let e of r)t[e]=t[e]||[],t[e].push([n,i])}return t};if(!s(n)||!y){let e={};if("object"==typeof w&&!s(w))for(let t of Object.keys(w))e[t]=e=>{var r,n;return Q(w[t],a(t,e),(null!=(r=E(e))?r:[])[t],(null!=(n=S(e))?n:[])[t],null==e?void 0:e.class,null==e?void 0:e.className)(h)};return e}return Q(m,v?Object.keys(v).map(e=>i(e,v)):null,x(),null==e?void 0:e.class,null==e?void 0:e.className)(h)};return x.variantKeys=(()=>{if(!(!v||"object"!=typeof v))return Object.keys(v)})(),x.extend=r,x.base=m,x.slots=w,x.variants=v,x.defaultVariants=g,x.compoundSlots=f,x.compoundVariants=l,x},er=(e,t)=>{var r,n,o;return et(e,{...t,twMerge:null==(r=null==t?void 0:t.twMerge)||r,twMergeConfig:{...null==t?void 0:t.twMergeConfig,theme:{...null==(n=null==t?void 0:t.twMergeConfig)?void 0:n.theme,...i.theme},classGroups:{...null==(o=null==t?void 0:t.twMergeConfig)?void 0:o.classGroups,...i.classGroups}}})}},35653:function(e,t,r){"use strict";r.d(t,{L:function(){return s}});var n=r(43649),i=r(59488),o=r(65512),s=(0,i.tv)({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-none","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent","data-[pressed=true]:scale-[0.97]",...o.Dh],variants:{variant:{solid:"",bordered:"border-medium bg-transparent",light:"bg-transparent",flat:"",faded:"border-medium",shadow:"",ghost:"border-medium bg-transparent"},size:{sm:"px-3 min-w-16 h-8 text-tiny gap-2 rounded-small",md:"px-4 min-w-20 h-10 text-small gap-2 rounded-medium",lg:"px-6 min-w-24 h-12 text-medium gap-3 rounded-large"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-disabled pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-0 !gap-0",false:"[&>svg]:max-w-[theme(spacing.8)]"},disableAnimation:{true:"!transition-none",false:"transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1},compoundVariants:[{variant:"solid",color:"default",class:n.J.solid.default},{variant:"solid",color:"primary",class:n.J.solid.primary},{variant:"solid",color:"secondary",class:n.J.solid.secondary},{variant:"solid",color:"success",class:n.J.solid.success},{variant:"solid",color:"warning",class:n.J.solid.warning},{variant:"solid",color:"danger",class:n.J.solid.danger},{variant:"shadow",color:"default",class:n.J.shadow.default},{variant:"shadow",color:"primary",class:n.J.shadow.primary},{variant:"shadow",color:"secondary",class:n.J.shadow.secondary},{variant:"shadow",color:"success",class:n.J.shadow.success},{variant:"shadow",color:"warning",class:n.J.shadow.warning},{variant:"shadow",color:"danger",class:n.J.shadow.danger},{variant:"bordered",color:"default",class:n.J.bordered.default},{variant:"bordered",color:"primary",class:n.J.bordered.primary},{variant:"bordered",color:"secondary",class:n.J.bordered.secondary},{variant:"bordered",color:"success",class:n.J.bordered.success},{variant:"bordered",color:"warning",class:n.J.bordered.warning},{variant:"bordered",color:"danger",class:n.J.bordered.danger},{variant:"flat",color:"default",class:n.J.flat.default},{variant:"flat",color:"primary",class:n.J.flat.primary},{variant:"flat",color:"secondary",class:n.J.flat.secondary},{variant:"flat",color:"success",class:n.J.flat.success},{variant:"flat",color:"warning",class:n.J.flat.warning},{variant:"flat",color:"danger",class:n.J.flat.danger},{variant:"faded",color:"default",class:n.J.faded.default},{variant:"faded",color:"primary",class:n.J.faded.primary},{variant:"faded",color:"secondary",class:n.J.faded.secondary},{variant:"faded",color:"success",class:n.J.faded.success},{variant:"faded",color:"warning",class:n.J.faded.warning},{variant:"faded",color:"danger",class:n.J.faded.danger},{variant:"light",color:"default",class:[n.J.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[n.J.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[n.J.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[n.J.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[n.J.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[n.J.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:n.J.ghost.default},{variant:"ghost",color:"primary",class:n.J.ghost.primary},{variant:"ghost",color:"secondary",class:n.J.ghost.secondary},{variant:"ghost",color:"success",class:n.J.ghost.success},{variant:"ghost",color:"warning",class:n.J.ghost.warning},{variant:"ghost",color:"danger",class:n.J.ghost.danger},{isInGroup:!0,class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,radius:"none",class:"rounded-none first:rounded-s-none last:rounded-e-none"},{isInGroup:!0,radius:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,radius:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,radius:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,radius:"full",class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,variant:["ghost","bordered"],color:"default",className:o.Zs.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:o.Zs.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:o.Zs.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:o.Zs.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:o.Zs.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:o.Zs.danger},{isIconOnly:!0,size:"sm",class:"min-w-8 w-8 h-8"},{isIconOnly:!0,size:"md",class:"min-w-10 w-10 h-10"},{isIconOnly:!0,size:"lg",class:"min-w-12 w-12 h-12"},{variant:["solid","faded","flat","bordered","shadow"],class:"data-[hover=true]:opacity-hover"}]});(0,i.tv)({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}})},65512:function(e,t,r){"use strict";r.d(t,{Dh:function(){return n},ID:function(){return i},Zs:function(){return o}});var n=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],i=["outline-none","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],o={default:["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]}},27316:function(e,t,r){"use strict";r.d(t,{j:function(){return a}});var n=r(28349),i=r(3136),o=r(41080),s=r(69935);function a(e,t){let r,{elementType:a="button",isDisabled:l,onPress:u,onPressStart:c,onPressEnd:d,onPressChange:f,preventFocusOnPress:p,allowFocusWhenDisabled:h,onClick:m,href:v,target:g,rel:y,type:b="button",allowTextSelectionOnPress:w}=e;r="button"===a?{type:b,disabled:l}:{role:"button",tabIndex:l?void 0:0,href:"a"===a&&l?void 0:v,target:"a"===a?g:void 0,type:"input"===a?b:void 0,disabled:"input"===a?l:void 0,"aria-disabled":l&&"input"!==a?l:void 0,rel:"a"===a?y:void 0};let{pressProps:x,isPressed:E}=(0,s.r)({onPressStart:c,onPressEnd:d,onPressChange:f,onPress:u,isDisabled:l,preventFocusOnPress:p,allowTextSelectionOnPress:w,ref:t}),{focusableProps:S}=(0,o.k)(e,t);h&&(S.tabIndex=l?-1:S.tabIndex);let _=(0,n.d)(S,x,(0,i.z)(e,{labelable:!0}));return{isPressed:E,buttonProps:(0,n.d)(r,_,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{null==m||m(e)}})}}},27794:function(e,t,r){"use strict";r.d(t,{W:function(){return o}});var n=r(67294),i=r(93387);function o(e,t=[]){let r=(0,n.useRef)(e);return(0,i.G)(()=>{r.current=e}),(0,n.useCallback)((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)},t)}},93387:function(e,t,r){"use strict";r.d(t,{G:function(){return i}});var n=r(67294),i=(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:n.useEffect},34446:function(e,t,r){"use strict";r.d(t,{R:function(){return l}});var n=r(9188),i=r(3136),o=r(26590),s=r(67294),a=r(25299);function l(e,t){let{role:r="dialog"}=e,l=(0,n.mp)();l=e["aria-label"]?void 0:l;let u=(0,s.useRef)(!1);return(0,s.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){(0,o.e)(t.current);let e=setTimeout(()=>{document.activeElement===t.current&&(u.current=!0,t.current&&(t.current.blur(),(0,o.e)(t.current)),u.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),(0,a.Bq)(),{dialogProps:{...(0,i.z)(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||l,onBlur:e=>{u.current&&e.stopPropagation()}},titleProps:{id:l}}}},37873:function(e,t,r){"use strict";r.d(t,{MT:function(){return u},QL:function(){return x},cW:function(){return g}});var n=r(26590),i=r(78837),o=r(69786),s=r(67294);let a=s.createContext(null),l=null;function u(e){let t,r,{children:n,contain:u,restoreFocus:c,autoFocus:d}=e,f=(0,s.useRef)(null),g=(0,s.useRef)(null),E=(0,s.useRef)([]),{parentNode:T}=(0,s.useContext)(a)||{},C=(0,s.useMemo)(()=>new S({scopeRef:E}),[E]);(0,o.b)(()=>{let e=T||_.root;if(_.getTreeNode(e.scopeRef)&&l&&!y(l,e.scopeRef)){let t=_.getTreeNode(l);t&&(e=t)}e.addChild(C),_.addNode(C)},[C,T]),(0,o.b)(()=>{let e=_.getTreeNode(E);e&&(e.contain=!!u)},[u]),(0,o.b)(()=>{var e;let t=null===(e=f.current)||void 0===e?void 0:e.nextSibling,r=[];for(;t&&t!==g.current;)r.push(t),t=t.nextSibling;E.current=r},[n]),(0,o.b)(()=>{if(c||u)return;let e=E.current,t=(0,i.r)(e?e[0]:void 0),r=e=>{let t=e.target;m(t,E.current)?l=E:v(t)||(l=null)};return t.addEventListener("focusin",r,!1),null==e||e.forEach(e=>e.addEventListener("focusin",r,!1)),()=>{t.removeEventListener("focusin",r,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",r,!1))}},[E,c,u]),t=(0,s.useRef)(),r=(0,s.useRef)(),(0,o.b)(()=>{let e=E.current;if(!u){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}let n=(0,i.r)(e?e[0]:void 0),o=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!h(E)||e.isComposing)return;let t=n.activeElement,r=E.current;if(!r||!m(t,r))return;let i=x(p(r),{tabbable:!0},r);if(!t)return;i.currentNode=t;let o=e.shiftKey?i.previousNode():i.nextNode();o||(i.currentNode=e.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,o=e.shiftKey?i.previousNode():i.nextNode()),e.preventDefault(),o&&b(o,!0)},s=e=>{(!l||y(l,E))&&m(e.target,E.current)?(l=E,t.current=e.target):h(E)&&!v(e.target,E)?t.current?t.current.focus():l&&l.current&&w(l.current):h(E)&&(t.current=e.target)},a=e=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(n.activeElement&&h(E)&&!v(n.activeElement,E)){if(l=E,n.body.contains(e.target)){var r;t.current=e.target,null===(r=t.current)||void 0===r||r.focus()}else l.current&&w(l.current)}})};return n.addEventListener("keydown",o,!1),n.addEventListener("focusin",s,!1),null==e||e.forEach(e=>e.addEventListener("focusin",s,!1)),null==e||e.forEach(e=>e.addEventListener("focusout",a,!1)),()=>{n.removeEventListener("keydown",o,!1),n.removeEventListener("focusin",s,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",s,!1)),null==e||e.forEach(e=>e.removeEventListener("focusout",a,!1))}},[E,u]),(0,o.b)(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r]),function(e,t,r){let n=(0,s.useRef)("undefined"!=typeof document?(0,i.r)(e.current?e.current[0]:void 0).activeElement:null);(0,o.b)(()=>{let n=e.current,o=(0,i.r)(n?n[0]:void 0);if(!t||r)return;let s=()=>{(!l||y(l,e))&&m(o.activeElement,e.current)&&(l=e)};return o.addEventListener("focusin",s,!1),null==n||n.forEach(e=>e.addEventListener("focusin",s,!1)),()=>{o.removeEventListener("focusin",s,!1),null==n||n.forEach(e=>e.removeEventListener("focusin",s,!1))}},[e,r]),(0,o.b)(()=>{let n=(0,i.r)(e.current?e.current[0]:void 0);if(!t)return;let o=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!h(e)||t.isComposing)return;let r=n.activeElement;if(!m(r,e.current))return;let i=_.getTreeNode(e);if(!i)return;let o=i.nodeToRestore,s=x(n.body,{tabbable:!0});s.currentNode=r;let a=t.shiftKey?s.previousNode():s.nextNode();if(o&&n.body.contains(o)&&o!==n.body||(o=void 0,i.nodeToRestore=void 0),(!a||!m(a,e.current))&&o){s.currentNode=o;do a=t.shiftKey?s.previousNode():s.nextNode();while(m(a,e.current));(t.preventDefault(),t.stopPropagation(),a)?b(a,!0):v(o)?b(o,!0):r.blur()}};return r||n.addEventListener("keydown",o,!0),()=>{r||n.removeEventListener("keydown",o,!0)}},[e,t,r]),(0,o.b)(()=>{var r;let o=(0,i.r)(e.current?e.current[0]:void 0);if(!t)return;let s=_.getTreeNode(e);if(s)return s.nodeToRestore=null!==(r=n.current)&&void 0!==r?r:void 0,()=>{let r=_.getTreeNode(e);if(!r)return;let n=r.nodeToRestore;if(t&&n&&(m(o.activeElement,e.current)||o.activeElement===o.body&&function(e){let t=_.getTreeNode(l);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}(e))){let t=_.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let r=t.getTreeNode(e);for(;r;){if(r.nodeToRestore&&r.nodeToRestore.isConnected){b(r.nodeToRestore);return}r=r.parent}for(r=t.getTreeNode(e);r;){if(r.scopeRef&&r.scopeRef.current&&_.getTreeNode(r.scopeRef)){w(r.scopeRef.current,!0);return}r=r.parent}}})}}},[e,t])}(E,c,u),function(e,t){let r=s.useRef(t);(0,s.useEffect)(()=>{r.current&&(l=e,!m((0,i.r)(e.current?e.current[0]:void 0).activeElement,l.current)&&e.current&&w(e.current)),r.current=!1},[e])}(E,d),(0,s.useEffect)(()=>{let e=(0,i.r)(E.current?E.current[0]:void 0).activeElement,t=null;if(m(e,E.current)){for(let r of _.traverse())r.scopeRef&&m(e,r.scopeRef.current)&&(t=r);t===_.getTreeNode(E)&&(l=t.scopeRef)}},[E]),(0,o.b)(()=>()=>{var e,t,r;let n=null!==(r=null===(t=_.getTreeNode(E))||void 0===t?void 0:null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==r?r:null;(E===l||y(E,l))&&(!n||_.getTreeNode(n))&&(l=n),_.removeTreeNode(E)},[E]);let k=(0,s.useMemo)(()=>({focusNext(e={}){let t=E.current,{from:r,tabbable:n,wrap:o,accept:s}=e,a=r||(0,i.r)(t[0]).activeElement,l=t[0].previousElementSibling,u=x(p(t),{tabbable:n,accept:s},t);u.currentNode=m(a,t)?a:l;let c=u.nextNode();return!c&&o&&(u.currentNode=l,c=u.nextNode()),c&&b(c,!0),c},focusPrevious(e={}){let t=E.current,{from:r,tabbable:n,wrap:o,accept:s}=e,a=r||(0,i.r)(t[0]).activeElement,l=t[t.length-1].nextElementSibling,u=x(p(t),{tabbable:n,accept:s},t);u.currentNode=m(a,t)?a:l;let c=u.previousNode();return!c&&o&&(u.currentNode=l,c=u.previousNode()),c&&b(c,!0),c},focusFirst(e={}){let t=E.current,{tabbable:r,accept:n}=e,i=x(p(t),{tabbable:r,accept:n},t);i.currentNode=t[0].previousElementSibling;let o=i.nextNode();return o&&b(o,!0),o},focusLast(e={}){let t=E.current,{tabbable:r,accept:n}=e,i=x(p(t),{tabbable:r,accept:n},t);i.currentNode=t[t.length-1].nextElementSibling;let o=i.previousNode();return o&&b(o,!0),o}}),[]),P=(0,s.useMemo)(()=>({focusManager:k,parentNode:C}),[C,k]);return s.createElement(a.Provider,{value:P},s.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:f}),n,s.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:g}))}let c=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],d=c.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";c.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let f=c.join(':not([hidden]):not([tabindex="-1"]),');function p(e){return e[0].parentElement}function h(e){let t=_.getTreeNode(l);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function m(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}function v(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of _.traverse(_.getTreeNode(t)))if(r&&m(e,r.current))return!0;return!1}function g(e){return v(e,l)}function y(e,t){var r;let n=null===(r=_.getTreeNode(t))||void 0===r?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function b(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{(0,n.e)(e)}catch(e){}}function w(e,t=!0){let r=e[0].previousElementSibling,n=p(e),i=x(n,{tabbable:t},e);i.currentNode=r;let o=i.nextNode();t&&!o&&((i=x(n=p(e),{tabbable:!1},e)).currentNode=r,o=i.nextNode()),b(o)}function x(e,t,r){let n=(null==t?void 0:t.tabbable)?f:d,o=(0,i.r)(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var o;return(null==t?void 0:null===(o=t.from)||void 0===o?void 0:o.contains(e))?NodeFilter.FILTER_REJECT:e.matches(n)&&function e(t,r){return"#comment"!==t.nodeName&&function(e){let t=(0,i.k)(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o="none"!==r&&"hidden"!==n&&"collapse"!==n;if(o){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n}=t(e);o="none"!==r&&"hidden"!==n&&"collapse"!==n}return o}(t)&&!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==t.nodeName||!r||"SUMMARY"===r.nodeName||t.hasAttribute("open"))&&(!t.parentElement||e(t.parentElement,t))}(e)&&(!r||m(e,r))&&(!(null==t?void 0:t.accept)||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==t?void 0:t.from)&&(o.currentNode=t.from),o}class E{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,r){let n=this.fastMap.get(null!=t?t:null);if(!n)return;let i=new S({scopeRef:e});n.addChild(i),i.parent=n,this.fastMap.set(e,i),r&&(i.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let r=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&m(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let n=t.children;r&&(r.removeChild(t),n.size>0&&n.forEach(e=>r&&r.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e,t;let r=new E;for(let n of this.traverse())r.addTreeNode(n.scopeRef,null!==(t=null===(e=n.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==t?t:null,n.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new S({scopeRef:null}),this.fastMap.set(null,this.root)}}class S{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let _=new E},26590:function(e,t,r){"use strict";r.d(t,{e:function(){return a}});var n=r(78837),i=r(85007),o=r(77604),s=r(9975);function a(e){let t=(0,n.r)(e);if("virtual"===(0,s.Jz)()){let r=t.activeElement;(0,i.Q)(()=>{t.activeElement===r&&e.isConnected&&(0,o.A)(e)})}else(0,o.A)(e)}},2459:function(e,t,r){"use strict";r.d(t,{F:function(){return a}});var n=r(9975),i=r(47234),o=r(44971),s=r(67294);function a(e={}){let{autoFocus:t=!1,isTextInput:r,within:a}=e,l=(0,s.useRef)({isFocused:!1,isFocusVisible:t||(0,n.E)()}),[u,c]=(0,s.useState)(!1),[d,f]=(0,s.useState)(()=>l.current.isFocused&&l.current.isFocusVisible),p=(0,s.useCallback)(()=>f(l.current.isFocused&&l.current.isFocusVisible),[]),h=(0,s.useCallback)(e=>{l.current.isFocused=e,c(e),p()},[p]);(0,n.mG)(e=>{l.current.isFocusVisible=e,p()},[],{isTextInput:r});let{focusProps:m}=(0,i.K)({isDisabled:a,onFocusChange:h}),{focusWithinProps:v}=(0,o.L)({isDisabled:!a,onFocusWithinChange:h});return{isFocused:u,isFocusVisible:d,focusProps:a?v:m}}},41080:function(e,t,r){"use strict";r.d(t,{k:function(){return c}});var n=r(26590),i=r(72970),o=r(28349),s=r(67294),a=r(47234);function l(e){if(!e)return;let t=!0;return r=>{e({...r,preventDefault(){r.preventDefault()},isDefaultPrevented:()=>r.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}}),t&&r.stopPropagation()}}let u=s.createContext(null);function c(e,t){let{focusProps:r}=(0,a.K)(e),{keyboardProps:c}={keyboardProps:e.isDisabled?{}:{onKeyDown:l(e.onKeyDown),onKeyUp:l(e.onKeyUp)}},d=(0,o.d)(r,c),f=function(e){let t=(0,s.useContext)(u)||{};(0,i.l)(t,e);let{ref:r,...n}=t;return n}(t),p=e.isDisabled?{}:f,h=(0,s.useRef)(e.autoFocus);return(0,s.useEffect)(()=>{h.current&&t.current&&(0,n.e)(t.current),h.current=!1},[t]),{focusableProps:(0,o.d)({...d,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},p)}}},14868:function(e,t,r){"use strict";r.d(t,{Q:function(){return a}});var n=r(67294),i=r(9975),o=r(69786),s=r(61718);function a(e,t,r){let{validationBehavior:a,focus:l}=e;(0,o.b)(()=>{if("native"===a&&(null==r?void 0:r.current)){var e;let n,i=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(i),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=r.current).validity.valid,validationDetails:{badInput:(n=e.validity).badInput,customError:n.customError,patternMismatch:n.patternMismatch,rangeOverflow:n.rangeOverflow,rangeUnderflow:n.rangeUnderflow,stepMismatch:n.stepMismatch,tooLong:n.tooLong,tooShort:n.tooShort,typeMismatch:n.typeMismatch,valueMissing:n.valueMissing,valid:n.valid},validationErrors:e.validationMessage?[e.validationMessage]:[]})}});let u=(0,s.i)(()=>{t.resetValidation()}),c=(0,s.i)(e=>{var n,o;t.displayValidation.isInvalid||t.commitValidation();let s=null==r?void 0:null===(n=r.current)||void 0===n?void 0:n.form;!e.defaultPrevented&&r&&s&&function(e){for(let t=0;t{t.commitValidation()});(0,n.useEffect)(()=>{let e=null==r?void 0:r.current;if(!e)return;let t=e.form;return e.addEventListener("invalid",c),e.addEventListener("change",d),null==t||t.addEventListener("reset",u),()=>{e.removeEventListener("invalid",c),e.removeEventListener("change",d),null==t||t.removeEventListener("reset",u)}},[r,c,d,u,a])}},54792:function(e,t,r){"use strict";r.d(t,{b:function(){return m},j:function(){return v}});let n=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),i=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function o(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),r="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(r)return"rtl"===r.direction;if(t.script)return n.has(t.script)}let t=e.split("-")[0];return i.has(t)}var s=r(67294),a=r(37385);let l=Symbol.for("react-aria.i18n.locale");function u(){let e="undefined"!=typeof window&&window[l]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:o(e)?"rtl":"ltr"}}let c=u(),d=new Set;function f(){for(let e of(c=u(),d))e(c)}function p(){let e=(0,a.Av)(),[t,r]=(0,s.useState)(c);return((0,s.useEffect)(()=>(0===d.size&&window.addEventListener("languagechange",f),d.add(r),()=>{d.delete(r),0===d.size&&window.removeEventListener("languagechange",f)}),[]),e)?{locale:"en-US",direction:"ltr"}:t}let h=s.createContext(null);function m(e){let{locale:t,children:r}=e,n=p(),i=s.useMemo(()=>t?{locale:t,direction:o(t)?"rtl":"ltr"}:n,[n,t]);return s.createElement(h.Provider,{value:i},r)}function v(){let e=p();return(0,s.useContext)(h)||e}},47259:function(e,t,r){"use strict";let n;r.d(t,{q:function(){return p}});var i=r(54792);let o=Symbol.for("react-aria.i18n.locale"),s=Symbol.for("react-aria.i18n.strings");class a{getStringForLocale(e,t){let r=this.getStringsForLocale(t)[e];if(!r)throw Error(`Could not find intl message ${e} in ${t} locale`);return r}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,r="en-US"){if(t[e])return t[e];let n=Intl.Locale?new Intl.Locale(e).language:e.split("-")[0];if(t[n])return t[n];for(let e in t)if(e.startsWith(n+"-"))return t[e];return t[r]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[o];if(void 0===n){let e=window[s];if(!e)return null;for(let r in n={},e)n[r]=new a({[t]:e[r]},t)}let r=null==n?void 0:n[e];if(!r)throw Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}}let l=new Map,u=new Map;class c{format(e,t){let r=this.strings.getStringForLocale(e,this.locale);return"function"==typeof r?r(t,this):r}plural(e,t,r="cardinal"){let n=t["="+e];if(n)return"function"==typeof n?n():n;let i=this.locale+":"+r,o=l.get(i);return o||(o=new Intl.PluralRules(this.locale,{type:r}),l.set(i,o)),"function"==typeof(n=t[o.select(e)]||t.other)?n():n}number(e){let t=u.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),u.set(this.locale,t)),t.format(e)}select(e,t){let r=e[t]||e.other;return"function"==typeof r?r():r}constructor(e,t){this.locale=e,this.strings=t}}var d=r(67294);let f=new WeakMap;function p(e,t){let r,{locale:n}=(0,i.j)(),o=t&&a.getGlobalDictionaryForPackage(t)||((r=f.get(e))||(r=new a(e),f.set(e,r)),r);return(0,d.useMemo)(()=>new c(n,o),[n,o])}},4942:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});let n=r(67294).createContext({register:()=>{}});n.displayName="PressResponderContext"},47234:function(e,t,r){"use strict";r.d(t,{K:function(){return s}});var n=r(34247),i=r(67294),o=r(78837);function s(e){let{isDisabled:t,onFocus:r,onBlur:s,onFocusChange:a}=e,l=(0,i.useCallback)(e=>{if(e.target===e.currentTarget)return s&&s(e),a&&a(!1),!0},[s,a]),u=(0,n.d)(l),c=(0,i.useCallback)(e=>{let t=(0,o.r)(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(r&&r(e),a&&a(!0),u(e))},[a,r,u]);return{focusProps:{onFocus:!t&&(r||a||s)?c:void 0,onBlur:!t&&(s||a)?l:void 0}}}},9975:function(e,t,r){"use strict";r.d(t,{E:function(){return E},Jz:function(){return S},Kf:function(){return T},_w:function(){return _},mG:function(){return k}});var n=r(68806),i=r(26301),o=r(78837),s=r(67294),a=r(37385);let l=null,u=new Set,c=new Map,d=!1,f=!1,p={Tab:!0,Escape:!0};function h(e,t){for(let r of u)r(e,t)}function m(e){d=!0,e.metaKey||!(0,n.V5)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(l="keyboard",h("keyboard",e))}function v(e){l="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(d=!0,h("pointer",e))}function g(e){(0,i.Z)(e)&&(d=!0,l="virtual")}function y(e){e.target!==window&&e.target!==document&&(d||f||(l="virtual",h("virtual",e)),d=!1,f=!1)}function b(){d=!1,f=!0}function w(e){if("undefined"==typeof window||c.get((0,o.k)(e)))return;let t=(0,o.k)(e),r=(0,o.r)(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){d=!0,n.apply(this,arguments)},r.addEventListener("keydown",m,!0),r.addEventListener("keyup",m,!0),r.addEventListener("click",g,!0),t.addEventListener("focus",y,!0),t.addEventListener("blur",b,!1),"undefined"!=typeof PointerEvent?(r.addEventListener("pointerdown",v,!0),r.addEventListener("pointermove",v,!0),r.addEventListener("pointerup",v,!0)):(r.addEventListener("mousedown",v,!0),r.addEventListener("mousemove",v,!0),r.addEventListener("mouseup",v,!0)),t.addEventListener("beforeunload",()=>{x(e)},{once:!0}),c.set(t,{focus:n})}let x=(e,t)=>{let r=(0,o.k)(e),n=(0,o.r)(e);t&&n.removeEventListener("DOMContentLoaded",t),c.has(r)&&(r.HTMLElement.prototype.focus=c.get(r).focus,n.removeEventListener("keydown",m,!0),n.removeEventListener("keyup",m,!0),n.removeEventListener("click",g,!0),r.removeEventListener("focus",y,!0),r.removeEventListener("blur",b,!1),"undefined"!=typeof PointerEvent?(n.removeEventListener("pointerdown",v,!0),n.removeEventListener("pointermove",v,!0),n.removeEventListener("pointerup",v,!0)):(n.removeEventListener("mousedown",v,!0),n.removeEventListener("mousemove",v,!0),n.removeEventListener("mouseup",v,!0)),c.delete(r))};function E(){return"pointer"!==l}function S(){return l}function _(e){l=e,h(e,null)}function T(){w();let[e,t]=(0,s.useState)(l);return(0,s.useEffect)(()=>{let e=()=>{t(l)};return u.add(e),()=>{u.delete(e)}},[]),(0,a.Av)()?null:e}"undefined"!=typeof document&&function(e){let t;let r=(0,o.r)(void 0);"loading"!==r.readyState?w(void 0):(t=()=>{w(void 0)},r.addEventListener("DOMContentLoaded",t)),()=>x(e,t)}();let C=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function k(e,t,r){w(),(0,s.useEffect)(()=>{let t=(t,n)=>{(function(e,t,r){var n;let i="undefined"!=typeof window?(0,o.k)(null==r?void 0:r.target).HTMLInputElement:HTMLInputElement,s="undefined"!=typeof window?(0,o.k)(null==r?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?(0,o.k)(null==r?void 0:r.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?(0,o.k)(null==r?void 0:r.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==r?void 0:r.target)instanceof i&&!C.has(null==r?void 0:null===(n=r.target)||void 0===n?void 0:n.type)||(null==r?void 0:r.target)instanceof s||(null==r?void 0:r.target)instanceof a&&(null==r?void 0:r.target.isContentEditable))&&"keyboard"===t&&r instanceof l&&!p[r.key])})(!!(null==r?void 0:r.isTextInput),t,n)&&e(E())};return u.add(t),()=>{u.delete(t)}},t)}},44971:function(e,t,r){"use strict";r.d(t,{L:function(){return o}});var n=r(34247),i=r(67294);function o(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:s}=e,a=(0,i.useRef)({isFocusWithin:!1}),l=(0,i.useCallback)(e=>{a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,r&&r(e),s&&s(!1))},[r,s,a]),u=(0,n.d)(l),c=(0,i.useCallback)(e=>{a.current.isFocusWithin||document.activeElement!==e.target||(o&&o(e),s&&s(!0),a.current.isFocusWithin=!0,u(e))},[o,s,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}},18419:function(e,t,r){"use strict";r.d(t,{X:function(){return u}});var n=r(67294);let i=!1,o=0;function s(){i=!0,setTimeout(()=>{i=!1},50)}function a(e){"touch"===e.pointerType&&s()}function l(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",a):document.addEventListener("touchend",s),o++,()=>{--o>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",a):document.removeEventListener("touchend",s))}}function u(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:o,isDisabled:s}=e,[a,u]=(0,n.useState)(!1),c=(0,n.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,n.useEffect)(l,[]);let{hoverProps:d,triggerHoverEnd:f}=(0,n.useMemo)(()=>{let e=(e,n)=>{if(c.pointerType=n,s||"touch"===n||c.isHovered||!e.currentTarget.contains(e.target))return;c.isHovered=!0;let i=e.currentTarget;c.target=i,t&&t({type:"hoverstart",target:i,pointerType:n}),r&&r(!0),u(!0)},n=(e,t)=>{if(c.pointerType="",c.target=null,"touch"===t||!c.isHovered)return;c.isHovered=!1;let n=e.currentTarget;o&&o({type:"hoverend",target:n,pointerType:t}),r&&r(!1),u(!1)},a={};return"undefined"!=typeof PointerEvent?(a.onPointerEnter=t=>{i&&"mouse"===t.pointerType||e(t,t.pointerType)},a.onPointerLeave=e=>{!s&&e.currentTarget.contains(e.target)&&n(e,e.pointerType)}):(a.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0},a.onMouseEnter=t=>{c.ignoreEmulatedMouseEvents||i||e(t,"mouse"),c.ignoreEmulatedMouseEvents=!1},a.onMouseLeave=e=>{!s&&e.currentTarget.contains(e.target)&&n(e,"mouse")}),{hoverProps:a,triggerHoverEnd:n}},[t,r,o,s,c]);return(0,n.useEffect)(()=>{s&&f({currentTarget:c.target},c.pointerType)},[s]),{hoverProps:d,isHovered:a}}},69935:function(e,t,r){"use strict";r.d(t,{r:function(){return k}});var n=r(68806),i=r(78837),o=r(85007);let s="default",a="",l=new WeakMap;function u(e){if((0,n.gn)()){if("default"===s){let t=(0,i.r)(e);a=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}s="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(l.set(e,e.style.userSelect),e.style.userSelect="none")}function c(e){if((0,n.gn)())"disabled"===s&&(s="restoring",setTimeout(()=>{(0,o.Q)(()=>{if("restoring"===s){let t=(0,i.r)(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=a||""),a="",s="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&l.has(e)){let t=l.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),l.delete(e)}}var d=r(4942);function f(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var p=r(7321);function h(e,t,r){var n=f(e,t,"set");return!function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=r}}(e,n,r),r}var m=r(28349),v=r(72970),g=r(36116),y=r(61718),b=r(11086),w=r(32433),x=r(26301),E=r(77604),S=r(67294),_=new WeakMap;class T{continuePropagation(){h(this,_,!1)}get shouldStopPropagation(){var e;return(e=f(this,_,"get")).get?e.get.call(this):e.value}constructor(e,t,r){(0,p._)(this,_,{writable:!0,value:void 0}),h(this,_,!0),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}let C=Symbol("linkClicked");function k(e){let{onPress:t,onPressChange:r,onPressStart:o,onPressEnd:s,onPressUp:a,isDisabled:l,isPressed:f,preventFocusOnPress:p,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:_,ref:k,...R}=function(e){let t=(0,S.useContext)(d.O);if(t){let{register:r,...n}=t;e=(0,m.d)(n,e),r()}return(0,v.l)(t,e.ref),e}(e),[N,j]=(0,S.useState)(!1),$=(0,S.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:V,removeAllGlobalListeners:z}=(0,g.x)(),F=(0,y.i)((e,t)=>{let n=$.current;if(l||n.didFirePressStart)return!1;let i=!0;if(n.isTriggeringEvent=!0,o){let r=new T("pressstart",t,e);o(r),i=r.shouldStopPropagation}return r&&r(!0),n.isTriggeringEvent=!1,n.didFirePressStart=!0,j(!0),i}),B=(0,y.i)((e,n,i=!0)=>{let o=$.current;if(!o.didFirePressStart)return!1;o.ignoreClickAfterPress=!0,o.didFirePressStart=!1,o.isTriggeringEvent=!0;let a=!0;if(s){let t=new T("pressend",n,e);s(t),a=t.shouldStopPropagation}if(r&&r(!1),j(!1),t&&i&&!l){let r=new T("press",n,e);t(r),a&&(a=r.shouldStopPropagation)}return o.isTriggeringEvent=!1,a}),H=(0,y.i)((e,t)=>{let r=$.current;if(l)return!1;if(a){r.isTriggeringEvent=!0;let n=new T("pressup",t,e);return a(n),r.isTriggeringEvent=!1,n.shouldStopPropagation}return!0}),G=(0,y.i)(e=>{let t=$.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&B(A(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,z(),_||c(t.target))}),U=(0,y.i)(e=>{h&&G(e)}),W=(0,S.useMemo)(()=>{let e=$.current,t={onKeyDown(t){if(M(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var o;D(t.target,t.key)&&t.preventDefault();let s=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,s=F(t,"keyboard");let n=t.currentTarget;V((0,i.r)(t.currentTarget),"keyup",(0,b.t)(t=>{M(t,n)&&!t.repeat&&n.contains(t.target)&&e.target&&H(A(e.target,t),"keyboard")},r),!0)}s&&t.stopPropagation(),t.metaKey&&(0,n.V5)()&&(null===(o=e.metaKeyEvents)||void 0===o||o.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!w.nG.isOpening){let r=!0;if(l&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||(0,x.Z)(t.nativeEvent))){l||p||(0,E.A)(t.currentTarget);let e=F(t,"virtual"),n=H(t,"virtual"),i=B(t,"virtual");r=e&&n&&i}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,r&&t.stopPropagation()}}},r=t=>{var r,n,i;if(e.isPressed&&e.target&&M(t,e.target)){D(t.target,t.key)&&t.preventDefault();let r=t.target;B(A(e.target,t),"keyboard",e.target.contains(r)),z(),"Enter"!==t.key&&P(e.target)&&e.target.contains(r)&&!t[C]&&(t[C]=!0,(0,w.nG)(e.target,t,!1)),e.isPressed=!1,null===(n=e.metaKeyEvents)||void 0===n||n.delete(t.key)}else if("Meta"===t.key&&(null===(r=e.metaKeyEvents)||void 0===r?void 0:r.size)){let t=e.metaKeyEvents;for(let r of(e.metaKeyEvents=void 0,t.values()))null===(i=e.target)||void 0===i||i.dispatchEvent(new KeyboardEvent("keyup",r))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if((0,x.c)(t.nativeEvent)){e.pointerType="virtual";return}L(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let s=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,l||p||(0,E.A)(t.currentTarget),_||u(e.target),s=F(t,e.pointerType),V((0,i.r)(t.currentTarget),"pointermove",r,!1),V((0,i.r)(t.currentTarget),"pointerup",n,!1),V((0,i.r)(t.currentTarget),"pointercancel",o,!1)),s&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(L(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&I(t,t.currentTarget)&&H(t,e.pointerType||t.pointerType)};let r=t=>{t.pointerId===e.activePointerId&&(e.target&&I(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,F(A(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,B(A(e.target,t),e.pointerType,!1),U(t)))},n=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(I(t,e.target)&&null!=e.pointerType?B(A(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&B(A(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,z(),_||c(e.target))},o=e=>{G(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&G(e)}}else{t.onMouseDown=t=>{if(0===t.button&&t.currentTarget.contains(t.target)){if(L(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents){t.stopPropagation();return}e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=(0,x.Z)(t.nativeEvent)?"virtual":"mouse",l||p||(0,E.A)(t.currentTarget),F(t,e.pointerType)&&t.stopPropagation(),V((0,i.r)(t.currentTarget),"mouseup",r,!1)}},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let r=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,r=F(t,e.pointerType)),r&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let r=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,r=B(t,e.pointerType,!1),U(t)),r&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&!e.ignoreEmulatedMouseEvents&&0===t.button&&H(t,e.pointerType||"mouse")};let r=t=>{if(0===t.button){if(e.isPressed=!1,z(),e.ignoreEmulatedMouseEvents){e.ignoreEmulatedMouseEvents=!1;return}e.target&&I(t,e.target)&&null!=e.pointerType?B(A(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&B(A(e.target,t),e.pointerType,!1),e.isOverTarget=!1}};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let r=function(e){let{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);r&&(e.activePointerId=r.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",l||p||(0,E.A)(t.currentTarget),_||u(e.target),F(t,e.pointerType)&&t.stopPropagation(),V((0,i.k)(t.currentTarget),"scroll",n,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let r=O(t.nativeEvent,e.activePointerId),n=!0;r&&I(r,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,n=F(t,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,n=B(t,e.pointerType,!1),U(t)),n&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let r=O(t.nativeEvent,e.activePointerId),n=!0;r&&I(r,t.currentTarget)&&null!=e.pointerType?(H(t,e.pointerType),n=B(t,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(n=B(t,e.pointerType,!1)),n&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!_&&c(e.target),z()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&G(t))};let n=t=>{e.isPressed&&t.target.contains(e.target)&&G({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&G(e)}}return t},[V,l,p,z,_,G,U,B,F,H]);return(0,S.useEffect)(()=>()=>{var e;_||c(null!==(e=$.current.target)&&void 0!==e?e:void 0)},[_]),{isPressed:f||N,pressProps:(0,m.d)(R,W)}}function P(e){return"A"===e.tagName&&e.hasAttribute("href")}function M(e,t){let{key:r,code:n}=e,o=t.getAttribute("role");return("Enter"===r||" "===r||"Spacebar"===r||"Space"===n)&&!(t instanceof(0,i.k)(t).HTMLInputElement&&!N(t,r)||t instanceof(0,i.k)(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===o||!o&&P(t))&&"Enter"!==r)}function O(e,t){let r=e.changedTouches;for(let e=0;eo.right)&&!(o.left>i.right)&&!(i.top>o.bottom)&&!(o.top>i.bottom)}function L(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function D(e,t){return e instanceof HTMLInputElement?!N(e,t):e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!P(e)}let R=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function N(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:R.has(e.type)}},34247:function(e,t,r){"use strict";r.d(t,{d:function(){return a}});var n=r(67294),i=r(69786),o=r(61718);class s{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function a(e){let t=(0,n.useRef)({isFocused:!1,observer:null});(0,i.b)(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let r=(0,o.i)(t=>{null==e||e(t)});return(0,n.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=e.target;n.addEventListener("focusout",e=>{t.current.isFocused=!1,n.disabled&&r(new s("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let r=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[r])}},65081:function(e,t,r){"use strict";r.d(t,{U:function(){return l}});var n={};n={"ar-AE":{dismiss:`\u{62A}\u{62C}\u{627}\u{647}\u{644}`},"bg-BG":{dismiss:`\u{41E}\u{442}\u{445}\u{432}\u{44A}\u{440}\u{43B}\u{44F}\u{43D}\u{435}`},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:`Schlie\xdfen`},"el-GR":{dismiss:`\u{391}\u{3C0}\u{3CC}\u{3C1}\u{3C1}\u{3B9}\u{3C8}\u{3B7}`},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:`L\xf5peta`},"fi-FI":{dismiss:`Hylk\xe4\xe4`},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:`\u{5D4}\u{5EA}\u{5E2}\u{5DC}\u{5DD}`},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:`Elutas\xedt\xe1s`},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:`\u{9589}\u{3058}\u{308B}`},"ko-KR":{dismiss:`\u{BB34}\u{C2DC}`},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:`Ner\u{101}d\u{12B}t`},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:`\u{41F}\u{440}\u{43E}\u{43F}\u{443}\u{441}\u{442}\u{438}\u{442}\u{44C}`},"sk-SK":{dismiss:`Zru\u{161}i\u{165}`},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:`\u{421}\u{43A}\u{430}\u{441}\u{443}\u{432}\u{430}\u{442}\u{438}`},"zh-CN":{dismiss:`\u{53D6}\u{6D88}`},"zh-TW":{dismiss:`\u{95DC}\u{9589}`}};var i=r(67294),o=r(79955),s=r(47259),a=r(73699);function l(e){var t;let{onDismiss:r,...l}=e,u=(0,s.q)((t=n)&&t.__esModule?t.default:t,"@react-aria/overlays"),c=(0,o.b)(l,u.format("dismiss"));return i.createElement(a.T,null,i.createElement("button",{...c,tabIndex:-1,onClick:()=>{r&&r()},style:{width:1,height:1}}))}},25299:function(e,t,r){"use strict";r.d(t,{aV:function(){return f},Bq:function(){return p}});var n=r(67294);let i=(0,n.createContext)({});var o=r(4942);function s({children:e}){let t=(0,n.useMemo)(()=>({register:()=>{}}),[]);return n.createElement(o.O.Provider,{value:t},e)}var a=r(37873),l=r(73935),u=r(37385),c=r(69786);let d=n.createContext(null);function f(e){var t;let r=(0,u.Av)(),{portalContainer:o=r?null:document.body,isExiting:c}=e,[f,p]=(0,n.useState)(!1),h=(0,n.useMemo)(()=>({contain:f,setContain:p}),[f,p]),{getContainer:m}=null!==(t=(0,n.useContext)(i))&&void 0!==t?t:{};if(!e.portalContainer&&m&&(o=m()),!o)return null;let v=e.children;return e.disableFocusManagement||(v=n.createElement(a.MT,{restoreFocus:!0,contain:f&&!c},v)),v=n.createElement(d.Provider,{value:h},n.createElement(s,null,v)),l.createPortal(v,o)}function p(){let e=(0,n.useContext)(d),t=null==e?void 0:e.setContain;(0,c.b)(()=>{null==t||t(!0)},[t])}},6270:function(e,t,r){"use strict";r.d(t,{R:function(){return o}});let n=new WeakMap,i=[];function o(e,t=document.body){let r=new Set(e),o=new Set,s=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))r.add(t);let t=e=>{if(r.has(e)||o.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of r)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),i=t(e);if(i===NodeFilter.FILTER_ACCEPT&&a(e),i!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;null!=e;)a(e),e=n.nextNode()}},a=e=>{var t;let r=null!==(t=n.get(e))&&void 0!==t?t:0;("true"!==e.getAttribute("aria-hidden")||0!==r)&&(0===r&&e.setAttribute("aria-hidden","true"),o.add(e),n.set(e,r+1))};i.length&&i[i.length-1].disconnect(),s(t);let l=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...r,...o].some(e=>e.contains(t.target))){for(let e of t.removedNodes)e instanceof Element&&(r.delete(e),o.delete(e));for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===e.dataset.liveAnnouncer||"true"===e.dataset.reactAriaTopLayer)?r.add(e):e instanceof Element&&s(e)}});l.observe(t,{childList:!0,subtree:!0});let u={observe(){l.observe(t,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return i.push(u),()=>{for(let e of(l.disconnect(),o)){let t=n.get(e);1===t?(e.removeAttribute("aria-hidden"),n.delete(e)):n.set(e,t-1)}u===i[i.length-1]?(i.pop(),i.length&&i[i.length-1].observe()):i.splice(i.indexOf(u),1)}}},74238:function(e,t,r){"use strict";r.d(t,{I:function(){return c}});var n=r(37873),i=r(67294),o=r(61718),s=r(78837);function a(e,t){if(e.button>0)return!1;if(e.target){let t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}var l=r(44971);let u=[];function c(e,t){let{onClose:r,shouldCloseOnBlur:c,isOpen:d,isDismissable:f=!1,isKeyboardDismissDisabled:p=!1,shouldCloseOnInteractOutside:h}=e;(0,i.useEffect)(()=>(d&&u.push(t),()=>{let e=u.indexOf(t);e>=0&&u.splice(e,1)}),[d,t]);let m=()=>{u[u.length-1]===t&&r&&r()};!function(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:l}=e,u=(0,i.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),c=(0,o.i)(e=>{r&&a(e,t)&&(l&&l(e),u.current.isPointerDown=!0)}),d=(0,o.i)(e=>{r&&r(e)});(0,i.useEffect)(()=>{let e=u.current;if(n)return;let r=t.current,i=(0,s.r)(r);if("undefined"!=typeof PointerEvent){let r=r=>{e.isPointerDown&&a(r,t)&&d(r),e.isPointerDown=!1};return i.addEventListener("pointerdown",c,!0),i.addEventListener("pointerup",r,!0),()=>{i.removeEventListener("pointerdown",c,!0),i.removeEventListener("pointerup",r,!0)}}{let r=r=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&a(r,t)&&d(r),e.isPointerDown=!1},n=r=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&a(r,t)&&d(r),e.isPointerDown=!1};return i.addEventListener("mousedown",c,!0),i.addEventListener("mouseup",r,!0),i.addEventListener("touchstart",c,!0),i.addEventListener("touchend",n,!0),()=>{i.removeEventListener("mousedown",c,!0),i.removeEventListener("mouseup",r,!0),i.removeEventListener("touchstart",c,!0),i.removeEventListener("touchend",n,!0)}}},[t,n,c,d])}({ref:t,onInteractOutside:f&&d?e=>{(!h||h(e.target))&&(u[u.length-1]===t&&(e.stopPropagation(),e.preventDefault()),m())}:null,onInteractOutsideStart:e=>{(!h||h(e.target))&&u[u.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:v}=(0,l.L)({isDisabled:!c,onBlurWithin:e=>{!(!e.relatedTarget||(0,n.cW)(e.relatedTarget))&&(!h||h(e.relatedTarget))&&r()}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||p||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),m())},...v},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}},37385:function(e,t,r){"use strict";r.d(t,{Av:function(){return p},gP:function(){return u}});var n=r(67294);let i={prefix:String(Math.round(1e10*Math.random())),current:0},o=n.createContext(i),s=n.createContext(!1),a=!!("undefined"!=typeof window&&window.document&&window.document.createElement),l=new WeakMap,u="function"==typeof n.useId?function(e){let t=n.useId(),[r]=(0,n.useState)(p()),o=r?"react-aria":`react-aria${i.prefix}`;return e||`${o}-${t}`}:function(e){let t=(0,n.useContext)(o);t!==i||a||console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let r=function(e=!1){let t=(0,n.useContext)(o),r=(0,n.useRef)(null);if(null===r.current&&!e){var i,s;let e=null===(s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===s?void 0:null===(i=s.ReactCurrentOwner)||void 0===i?void 0:i.current;if(e){let r=l.get(e);null==r?l.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==r.state&&(t.current=r.id,l.delete(e))}r.current=++t.current}return r.current}(!!e),s=`react-aria${t.prefix}`;return e||`${s}-${r}`};function c(){return!1}function d(){return!0}function f(e){return()=>{}}function p(){return"function"==typeof n.useSyncExternalStore?n.useSyncExternalStore(f,c,d):(0,n.useContext)(s)}},31801:function(e,t,r){"use strict";r.d(t,{O:function(){return l}});var n=r(28349),i=r(3136),o=r(85952),s=r(41080),a=r(69935);function l(e,t,r){let{isDisabled:l=!1,isReadOnly:u=!1,value:c,name:d,children:f,"aria-label":p,"aria-labelledby":h,validationState:m="valid",isInvalid:v}=e;null!=f||null!=p||null!=h||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:g,isPressed:y}=(0,a.r)({isDisabled:l}),{pressProps:b,isPressed:w}=(0,a.r)({isDisabled:l||u,onPress(){t.toggle()}}),{focusableProps:x}=(0,s.k)(e,r),E=(0,n.d)(g,x),S=(0,i.z)(e,{labelable:!0});return(0,o.y)(r,t.isSelected,t.setSelected),{labelProps:(0,n.d)(b,{onClick:e=>e.preventDefault()}),inputProps:(0,n.d)(S,{"aria-invalid":v||"invalid"===m||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":u||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:l,...null==c?{}:{value:c},name:d,type:"checkbox",...E}),isSelected:t.isSelected,isPressed:y||w,isDisabled:l,isReadOnly:u,isInvalid:v||"invalid"===m}}},11086:function(e,t,r){"use strict";function n(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}r.d(t,{t:function(){return n}})},78837:function(e,t,r){"use strict";r.d(t,{k:function(){return i},r:function(){return n}});let n=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},i=e=>e&&"window"in e&&e.window===e?e:n(e).defaultView||window},3136:function(e,t,r){"use strict";r.d(t,{z:function(){return a}});let n=new Set(["id"]),i=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),o=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),s=/^(data-.*)$/;function a(e,t={}){let{labelable:r,isLink:a,propNames:l}=t,u={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n.has(t)||r&&i.has(t)||a&&o.has(t)||(null==l?void 0:l.has(t))||s.test(t))&&(u[t]=e[t]);return u}},77604:function(e,t,r){"use strict";function n(e){if(function(){if(null==i){i=!1;try{document.createElement("div").focus({get preventScroll(){return i=!0,!0}})}catch(e){}}return i}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight=65&&90>=e.charCodeAt(2)?t[e]=(0,n.t)(r,a):("className"===e||"UNSAFE_className"===e)&&"string"==typeof r&&"string"==typeof a?t[e]=(0,o.Z)(r,a):"id"===e&&r&&a?t.id=(0,i.ur)(r,a):t[e]=void 0!==a?a:r}}return t}},36303:function(e,t,r){"use strict";function n(...e){return 1===e.length?e[0]:t=>{for(let r of e)"function"==typeof r?r(t):null!=r&&(r.current=t)}}r.d(t,{l:function(){return n}})},32433:function(e,t,r){"use strict";r.d(t,{b0:function(){return u},eY:function(){return p},ib:function(){return f},nG:function(){return c},pG:function(){return a},tv:function(){return l}});var n=r(77604),i=r(68806),o=r(67294);let s=(0,o.createContext)({isNative:!0,open:function(e,t){d(e,e=>c(e,t))},useHref:e=>e});function a(e){let{children:t,navigate:r,useHref:n}=e,i=(0,o.useMemo)(()=>({isNative:!1,open:(e,t,n,i)=>{d(e,e=>{u(e,t)?r(n,i):c(e,t)})},useHref:n||(e=>e)}),[r,n]);return o.createElement(s.Provider,{value:i},t)}function l(){return(0,o.useContext)(s)}function u(e,t){let r=e.getAttribute("target");return(!r||"_self"===r)&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function c(e,t,r=!0){var o,s;let{metaKey:a,ctrlKey:l,altKey:u,shiftKey:d}=t;(0,i.vU)()&&(null===(s=window.event)||void 0===s?void 0:null===(o=s.type)||void 0===o?void 0:o.startsWith("key"))&&"_blank"===e.target&&((0,i.V5)()?a=!0:l=!0);let f=(0,i.Pf)()&&(0,i.V5)()&&!(0,i.zc)()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:l,altKey:u,shiftKey:d}):new MouseEvent("click",{metaKey:a,ctrlKey:l,altKey:u,shiftKey:d,bubbles:!0,cancelable:!0});c.isOpening=r,(0,n.A)(e),e.dispatchEvent(f),c.isOpening=!1}function d(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function f(e){return{"data-href":e.href,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function p(e){let t=l();return{href:(null==e?void 0:e.href)?t.useHref(null==e?void 0:e.href):void 0,target:null==e?void 0:e.target,rel:null==e?void 0:e.rel,download:null==e?void 0:e.download,ping:null==e?void 0:e.ping,referrerPolicy:null==e?void 0:e.referrerPolicy}}c.isOpening=!1},68806:function(e,t,r){"use strict";function n(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function i(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function o(){return i(/^Mac/i)}function s(){return i(/^iPad/i)||o()&&navigator.maxTouchPoints>1}function a(){return i(/^iPhone/i)||s()}function l(){return o()||a()}function u(){return n(/AppleWebKit/i)&&!n(/Chrome/i)}function c(){return n(/Android/i)}function d(){return n(/Firefox/i)}r.d(t,{Dt:function(){return c},Pf:function(){return u},V5:function(){return o},ad:function(){return l},gn:function(){return a},vU:function(){return d},zc:function(){return s}})},85007:function(e,t,r){"use strict";r.d(t,{Q:function(){return s}});let n=new Map,i=new Set;function o(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=r=>{if(!e(r)||!r.target)return;let o=n.get(r.target);if(o&&(o.delete(r.propertyName),0===o.size&&(r.target.removeEventListener("transitioncancel",t),n.delete(r.target)),0===n.size)){for(let e of i)e();i.clear()}};document.body.addEventListener("transitionrun",r=>{if(!e(r)||!r.target)return;let i=n.get(r.target);i||(i=new Set,n.set(r.target,i),r.target.addEventListener("transitioncancel",t,{once:!0})),i.add(r.propertyName)}),document.body.addEventListener("transitionend",t)}function s(e){requestAnimationFrame(()=>{0===n.size?e():i.add(e)})}"undefined"!=typeof document&&("loading"!==document.readyState?o():document.addEventListener("DOMContentLoaded",o))},61718:function(e,t,r){"use strict";r.d(t,{i:function(){return o}});var n=r(69786),i=r(67294);function o(e){let t=(0,i.useRef)(null);return(0,n.b)(()=>{t.current=e},[e]),(0,i.useCallback)((...e)=>{let r=t.current;return null==r?void 0:r(...e)},[])}},85952:function(e,t,r){"use strict";r.d(t,{y:function(){return o}});var n=r(61718),i=r(67294);function o(e,t,r){let o=(0,i.useRef)(t),s=(0,n.i)(()=>{r&&r(o.current)});(0,i.useEffect)(()=>{var t;let r=null==e?void 0:null===(t=e.current)||void 0===t?void 0:t.form;return null==r||r.addEventListener("reset",s),()=>{null==r||r.removeEventListener("reset",s)}},[e,s])}},36116:function(e,t,r){"use strict";r.d(t,{x:function(){return i}});var n=r(67294);function i(){let e=(0,n.useRef)(new Map),t=(0,n.useCallback)((t,r,n,i)=>{let o=(null==i?void 0:i.once)?(...t)=>{e.current.delete(n),n(...t)}:n;e.current.set(n,{type:r,eventTarget:t,fn:o,options:i}),t.addEventListener(r,n,i)},[]),r=(0,n.useCallback)((t,r,n,i)=>{var o;let s=(null===(o=e.current.get(n))||void 0===o?void 0:o.fn)||n;t.removeEventListener(r,s,i),e.current.delete(n)},[]),i=(0,n.useCallback)(()=>{e.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]);return(0,n.useEffect)(()=>i,[i]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:i}}},9188:function(e,t,r){"use strict";r.d(t,{ur:function(){return c},Me:function(){return u},mp:function(){return d}});var n=r(69786),i=r(61718),o=r(67294),s=r(37385);let a=!!("undefined"!=typeof window&&window.document&&window.document.createElement),l=new Map;function u(e){let[t,r]=(0,o.useState)(e),i=(0,o.useRef)(null),u=(0,s.gP)(t),c=(0,o.useCallback)(e=>{i.current=e},[]);return a&&l.set(u,c),(0,n.b)(()=>()=>{l.delete(u)},[u]),(0,o.useEffect)(()=>{let e=i.current;e&&(i.current=null,r(e))}),u}function c(e,t){if(e===t)return e;let r=l.get(e);if(r)return r(t),t;let n=l.get(t);return n?(n(e),e):t}function d(e=[]){let t=u(),[r,s]=function(e){let[t,r]=(0,o.useState)(e),s=(0,o.useRef)(null),a=(0,i.i)(()=>{if(!s.current)return;let e=s.current.next();if(e.done){s.current=null;return}t===e.value?a():r(e.value)});(0,n.b)(()=>{s.current&&a()});let l=(0,i.i)(e=>{s.current=e(t),a()});return[t,l]}(t),a=(0,o.useCallback)(()=>{s(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,s]);return(0,n.b)(a,[t,a,...e]),r}},79955:function(e,t,r){"use strict";r.d(t,{b:function(){return i}});var n=r(9188);function i(e,t){let{id:r,"aria-label":i,"aria-labelledby":o}=e;return r=(0,n.Me)(r),o&&i?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),i||o||!t||(i=t),{id:r,"aria-label":i,"aria-labelledby":o}}},69786:function(e,t,r){"use strict";r.d(t,{b:function(){return i}});var n=r(67294);let i="undefined"!=typeof document?n.useLayoutEffect:()=>{}},72970:function(e,t,r){"use strict";r.d(t,{l:function(){return i}});var n=r(69786);function i(e,t){(0,n.b)(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}},73699:function(e,t,r){"use strict";r.d(t,{S:function(){return a},T:function(){return l}});var n=r(28349),i=r(67294),o=r(44971);let s={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function a(e={}){let{style:t,isFocusable:r}=e,[n,a]=(0,i.useState)(!1),{focusWithinProps:l}=(0,o.L)({isDisabled:!r,onFocusWithinChange:e=>a(e)}),u=(0,i.useMemo)(()=>n?t:t?{...s,...t}:s,[n]);return{visuallyHiddenProps:{...l,style:u}}}function l(e){let{children:t,elementType:r="div",isFocusable:o,style:s,...l}=e,{visuallyHiddenProps:u}=a(e);return i.createElement(r,(0,n.d)(l,u),t)}},48750:function(e,t,r){"use strict";r.d(t,{PS:function(){return s},Q3:function(){return u},tL:function(){return l}});var n=r(67294);let i={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},o={...i,customError:!0,valid:!1},s={isInvalid:!1,validationDetails:i,validationErrors:[]},a=(0,n.createContext)({}),l="__formValidationState"+Date.now();function u(e){if(e[l]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:o}=e[l];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:o}}return function(e){let{isInvalid:t,validationState:r,name:i,value:l,builtinValidation:u,validate:p,validationBehavior:h="aria"}=e;r&&(t||(t="invalid"===r));let m=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:o}:null,v=(0,n.useMemo)(()=>d(function(e,t){if("function"==typeof e){let r=e(t);if(r&&"boolean"!=typeof r)return c(r)}return[]}(p,l)),[p,l]);(null==u?void 0:u.validationDetails.valid)&&(u=null);let g=(0,n.useContext)(a),y=(0,n.useMemo)(()=>i?Array.isArray(i)?i.flatMap(e=>c(g[e])):c(g[i]):[],[g,i]),[b,w]=(0,n.useState)(g),[x,E]=(0,n.useState)(!1);g!==b&&(w(g),E(!1));let S=(0,n.useMemo)(()=>d(x?[]:y),[x,y]),_=(0,n.useRef)(s),[T,C]=(0,n.useState)(s),k=(0,n.useRef)(s),[P,M]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!P)return;M(!1);let e=v||u||_.current;f(e,k.current)||(k.current=e,C(e))}),{realtimeValidation:m||S||v||u||s,displayValidation:"native"===h?m||S||T:m||S||v||u||T,updateValidation(e){"aria"!==h||f(T,e)?_.current=e:C(e)},resetValidation(){f(s,k.current)||(k.current=s,C(s)),"native"===h&&M(!1),E(!0)},commitValidation(){"native"===h&&M(!0),E(!0)}}}(e)}function c(e){return e?Array.isArray(e)?e:[e]:[]}function d(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:o}:null}function f(e,t){return e===t||e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,r)=>e===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([e,r])=>t.validationDetails[e]===r)}},16551:function(e,t,r){"use strict";r.d(t,{d:function(){return o}});var n=r(67294),i=r(99373);function o(e){let[t,r]=(0,i.z)(e.isOpen,e.defaultOpen||!1,e.onOpenChange),o=(0,n.useCallback)(()=>{r(!0)},[r]),s=(0,n.useCallback)(()=>{r(!1)},[r]),a=(0,n.useCallback)(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:o,close:s,toggle:a}}},74619:function(e,t,r){"use strict";r.d(t,{l:function(){return i}});var n=r(99373);function i(e={}){let{isReadOnly:t}=e,[r,i]=(0,n.z)(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:r,setSelected:function(e){t||i(e)},toggle:function(){t||i(!r)}}}},99373:function(e,t,r){"use strict";r.d(t,{z:function(){return i}});var n=r(67294);function i(e,t,r){let[i,o]=(0,n.useState)(e||t),s=(0,n.useRef)(void 0!==e),a=void 0!==e;(0,n.useEffect)(()=>{let e=s.current;e!==a&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),s.current=a},[a]);let l=a?e:i,u=(0,n.useCallback)((e,...t)=>{let n=(e,...t)=>{r&&!Object.is(l,e)&&r(e,...t),a||(l=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((r,...i)=>{let o=e(a?l:r,...i);return(n(o,...t),a)?r:o})):(a||o(e),n(e,...t))},[a,l,r]);return[l,u]}},90512:function(e,t,r){"use strict";t.Z=function(){for(var e,t,r=0,n="",i=arguments.length;r({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),a={type:"keyframes",duration:.8},l={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},u=(e,{keyframes:t})=>t.length>2?a:i.G.has(e)?e.startsWith("scale")?s(t[1]):o:l;var c=r(31056),d=r(22081);let f={current:!1},p=e=>null!==e;function h(e,{repeat:t,repeatType:r="loop"},n){let i=e.filter(p),o=t&&"loop"!==r&&t%2==1?0:i.length-1;return o&&void 0!==n?n:i[o]}var m=r(26166),v=r(1117),g=r(20204);function y(e){let t;return()=>(void 0===t&&(t=e()),t)}var b=r(81662),w=r(41568),x=r(45487),E=r(51550);let S=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(E.P.test(e)||"0"===e)&&!e.startsWith("url("));class _{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:i,repeatType:o,...s},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,w.m)(),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;let{name:r,type:n,velocity:i,delay:o,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(e,t,r,n){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],s=S(i,t),a=S(o,t);return(0,x.K)(s===a,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!!s&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r{this.resolveFinishedPromise=e})}}var T=r(3038);function C(e,t,r){let n=Math.max(t-5,0);return(0,T.R)(r-e(n),t-n)}var k=r(24169);function P(e,t){return e*Math.sqrt(1-t*t)}let M=["duration","bounce"],O=["stiffness","damping","mass"];function A(e,t){return t.some(t=>void 0!==e[t])}function I({keyframes:e,restDelta:t,restSpeed:r,...i}){let o;let s=e[0],a=e[e.length-1],l={done:!1,value:s},{stiffness:u,damping:c,mass:d,duration:f,velocity:p,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!A(e,O)&&A(e,M)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:i=1}){let o,s;(0,x.K)(e<=(0,n.w)(10),"Spring duration must be 10 seconds or less");let a=1-t;a=(0,k.u)(.05,1,a),e=(0,k.u)(.01,10,(0,n.X)(e)),a<1?(o=t=>{let n=t*a,i=n*e;return .001-(n-r)/P(t,a)*Math.exp(-i)},s=t=>{let n=t*a*e,i=Math.pow(a,2)*Math.pow(t,2)*e,s=P(Math.pow(t,2),a);return(n*r+r-i)*Math.exp(-n)*(-o(t)+.001>0?-1:1)/s}):(o=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),s=t=>e*e*(r-t)*Math.exp(-t*e));let l=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(o,s,5/e);if(e=(0,n.w)(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*i;return{stiffness:t,damping:2*a*Math.sqrt(i*t),duration:e}}}(e);(t={...t,...r,mass:1}).isResolvedFromDuration=!0}return t}({...i,velocity:-(0,n.X)(i.velocity||0)}),m=p||0,v=c/(2*Math.sqrt(u*d)),g=a-s,y=(0,n.X)(Math.sqrt(u/d)),b=5>Math.abs(g);if(r||(r=b?.01:2),t||(t=b?.005:.5),v<1){let e=P(y,v);o=t=>a-Math.exp(-v*y*t)*((m+v*y*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(1===v)o=e=>a-Math.exp(-y*e)*(g+(m+y*g)*e);else{let e=y*Math.sqrt(v*v-1);o=t=>{let r=Math.exp(-v*y*t),n=Math.min(e*t,300);return a-r*((m+v*y*g)*Math.sinh(n)+e*g*Math.cosh(n))/e}}return{calculatedDuration:h&&f||null,next:e=>{let n=o(e);if(h)l.done=e>=f;else{let i=m;0!==e&&(i=v<1?C(o,e,n):0);let s=Math.abs(i)<=r,u=Math.abs(a-n)<=t;l.done=s&&u}return l.value=l.done?a:n,l}}}function L({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let d,f;let p=e[0],h={done:!1,value:p},m=e=>void 0!==a&&el,v=e=>void 0===a?l:void 0===l?a:Math.abs(a-e)-g*Math.exp(-e/n),x=e=>b+w(e),E=e=>{let t=w(e),r=x(e);h.done=Math.abs(t)<=u,h.value=h.done?b:r},S=e=>{m(h.value)&&(d=e,f=I({keyframes:[h.value,v(h.value)],velocity:C(x,e,h.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,E(e),S(e)),void 0!==d&&e>=d)?f.next(e-d):(t||E(e),h)}}}let D=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function R(e,t,r,n){if(e===t&&r===n)return b.Z;let i=t=>(function(e,t,r,n,i){let o,s;let a=0;do(o=D(s=t+(r-t)/2,n,i)-e)>0?r=s:t=s;while(Math.abs(o)>1e-7&&++a<12);return s})(t,0,1,e,r);return e=>0===e||1===e?e:D(i(e),t,n)}let N=R(.42,0,1,1),j=R(0,0,.58,1),$=R(.42,0,.58,1),V=e=>Array.isArray(e)&&"number"!=typeof e[0];var z=r(27255),F=r(90415),B=r(75129);let H=R(.33,1.53,.69,.99),G=(0,B.M)(H),U=(0,F.o)(G),W={linear:b.Z,easeIn:N,easeInOut:$,easeOut:j,circIn:z.Z7,circInOut:z.X7,circOut:z.Bn,backIn:G,backInOut:U,backOut:H,anticipate:e=>(e*=2)<1?.5*G(e):.5*(2-Math.pow(2,-10*(e-1)))},q=e=>{if(Array.isArray(e)){(0,x.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return R(t,r,n,i)}return"string"==typeof e?((0,x.k)(void 0!==W[e],`Invalid easing type '${e}'`),W[e]):e};var K=r(83624),Y=r(23967),X=r(40179);function J(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}var Z=r(26382),Q=r(40819),ee=r(93184);function et(e,t){return r=>r>0?t:e}let er=(e,t,r)=>{let n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},en=[Z.$,Q.m,ee.J],ei=e=>en.find(t=>t.test(e));function eo(e){let t=ei(e);if((0,x.K)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===ee.J&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,s=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,a=2*r-n;i=J(a,n,e+1/3),o=J(a,n,e),s=J(a,n,e-1/3)}else i=o=s=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:n}}(r)),r}let es=(e,t)=>{let r=eo(e),n=eo(t);if(!r||!n)return et(e,t);let i={...r};return e=>(i.red=er(r.red,n.red,e),i.green=er(r.green,n.green,e),i.blue=er(r.blue,n.blue,e),i.alpha=(0,X.t)(r.alpha,n.alpha,e),Q.m.transform(i))};var ea=r(85385),el=r(57630);let eu=new Set(["none","hidden"]);function ec(e,t){return r=>(0,X.t)(e,t,r)}function ed(e){return"number"==typeof e?ec:"string"==typeof e?(0,el.t)(e)?et:ea.$.test(e)?es:eh:Array.isArray(e)?ef:"object"==typeof e?ea.$.test(e)?es:ep:et}function ef(e,t){let r=[...e],n=r.length,i=e.map((e,r)=>ed(e)(e,t[r]));return e=>{for(let t=0;t{for(let t in n)r[t]=n[t](e);return r}}let eh=(e,t)=>{let r=E.P.createTransformer(t),n=(0,E.V)(e),i=(0,E.V)(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?eu.has(e)&&!i.values.length||eu.has(t)&&!n.values.length?eu.has(e)?r=>r<=0?e:t:r=>r>=1?t:e:(0,K.z)(ef(function(e,t){var r;let n=[],i={color:0,var:0,number:0};for(let o=0;ot[0];if(2===o&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,r){let n=[],i=r||em,o=e.length-1;for(let r=0;r{let r=0;if(a>1)for(;rl((0,k.u)(e[0],e[o-1],t)):l}((r&&r.length===t.length?r:function(e){let t=[0];return function(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let i=(0,Y.Y)(0,t,n);e.push((0,X.t)(r,1,i))}}(t,e.length-1),t}(t)).map(t=>t*e),t,{ease:Array.isArray(i)?i:t.map(()=>i||$).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}let eg=e=>{let t=({timestamp:t})=>e(t);return{start:()=>m.Wi.update(t,!0),stop:()=>(0,m.Pn)(t),now:()=>m.frameData.isProcessing?m.frameData.timestamp:v.X.now()}},ey={decay:L,inertia:L,tween:ev,keyframes:ev,spring:I},eb=e=>e/100;class ew extends _{constructor({KeyframeResolver:e=w.e,...t}){super(t),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:r,motionValue:n,keyframes:i}=this.options,o=(e,t)=>this.onKeyframesResolved(e,t);r&&n&&n.owner?this.resolver=n.owner.resolveKeyframes(i,o,r,n):this.resolver=new e(i,o,r,n),this.resolver.scheduleResolve()}initPlayback(e){let t,r;let{type:n="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s,velocity:a=0}=this.options,l=ey[n]||ev;l!==ev&&"number"!=typeof e[0]&&(t=(0,K.z)(eb,em(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===s&&(r=l({...this.options,keyframes:[...e].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=function(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}(u));let{calculatedDuration:c}=u,d=c+o;return{generator:u,mirroredGenerator:r,mapPercentToKeyframes:t,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(i+1)-o}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:r}=this;if(!r){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:n,generator:i,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=r;if(null===this.startTime)return i.next(0);let{delay:d,repeat:f,repeatType:p,repeatDelay:m,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let g=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let b=this.currentTime,w=i;if(f){let e=Math.min(this.currentTime,u)/c,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,f+1))%2&&("reverse"===p?(r=1-r,m&&(r-=m/c)):"mirror"===p&&(w=o)),b=(0,k.u)(0,1,r)*c}let x=y?{done:!1,value:a[0]}:w.next(b);s&&(x.value=s(x.value));let{done:E}=x;y||null===l||(E=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&E);return S&&void 0!==n&&(x.value=h(a,this.options,n)),v&&v(x.value),S&&this.finish(),x}get duration(){let{resolved:e}=this;return e?(0,n.X)(e.calculatedDuration):0}get time(){return(0,n.X)(this.currentTime)}set time(e){e=(0,n.w)(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=(0,n.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=eg,onPlay:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=r),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}let ex=e=>Array.isArray(e)&&"number"==typeof e[0],eE=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,eS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eE([0,.65,.55,1]),circOut:eE([.55,0,1,.45]),backIn:eE([.31,.01,.66,-.59]),backOut:eE([.33,1.53,.69,.99])};function e_(e){return eT(e)||eS.easeOut}function eT(e){if(e)return ex(e)?eE(e):Array.isArray(e)?e.map(e_):eS[e]}let eC=y(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ek=new Set(["opacity","clipPath","filter","transform"]);class eP extends _{constructor(e){super(e);let{name:t,motionValue:r,keyframes:n}=this.options;this.resolver=new g.s(n,(e,t)=>this.onKeyframesResolved(e,t),t,r),this.resolver.scheduleResolve()}initPlayback(e,t){var r,n;let{duration:i=300,times:o,ease:s,type:a,motionValue:l,name:u}=this.options;if(!(null===(r=l.owner)||void 0===r?void 0:r.current))return!1;if("spring"===(n=this.options).type||"backgroundColor"===n.name||!function e(t){return!!(!t||"string"==typeof t&&t in eS||ex(t)||Array.isArray(t)&&t.every(e))}(n.ease)){let{onComplete:t,onUpdate:r,motionValue:n,...l}=this.options,u=function(e,t){let r=new ew({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:e[0]},i=[],o=0;for(;!n.done&&o<2e4;)i.push((n=r.sample(o)).value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(e,l);1===(e=u.keyframes).length&&(e[1]=e[0]),i=u.duration,o=u.times,s=u.ease,a="keyframes"}let c=function(e,t,r,{delay:n=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){let u={[t]:r};l&&(u.offset=l);let c=eT(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(l.owner.current,u,e,{...this.options,duration:i,times:o,ease:s});return c.startTime=v.X.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:r}=this.options;l.set(h(e,this.options,t)),r&&r(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:o,type:a,ease:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return(0,n.X)(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return(0,n.X)(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.currentTime=(0,n.w)(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return b.Z;let{animation:r}=t;r.timeline=e,r.onfinish=null}else this.pendingTimeline=e;return b.Z}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:r,duration:i,type:o,ease:s,times:a}=e;if("idle"!==t.playState&&"finished"!==t.playState){if(this.time){let{motionValue:e,onUpdate:t,onComplete:l,...u}=this.options,c=new ew({...u,keyframes:r,duration:i,type:o,ease:s,times:a,isGenerator:!0}),d=(0,n.w)(this.time);e.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}this.cancel()}}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:i,damping:o,type:s}=e;return eC()&&r&&ek.has(r)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!n&&"mirror"!==i&&0!==o&&"inertia"!==s}}let eM=y(()=>void 0!==window.ScrollTimeline);class eO{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r{if(!eM()||!t.attachTimeline)return t.pause(),function(e,t){let r;let n=()=>{let{currentTime:n}=t,i=(null===n?0:n.value)/100;r!==i&&e(i),r=i};return m.Wi.update(n,!0),()=>(0,m.Pn)(n)}(e=>{t.time=t.duration*e},e);t.attachTimeline(e)});return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get duration(){let e=0;for(let t=0;tt[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let eA=(e,t,r,i={},o,s)=>a=>{let l=(0,c.e)(i,e)||{},p=l.delay||i.delay||0,{elapsed:v=0}=i;v-=(0,n.w)(p);let g={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-v,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:o};(0,c.r)(l)||(g={...g,...u(e,g)}),g.duration&&(g.duration=(0,n.w)(g.duration)),g.repeatDelay&&(g.repeatDelay=(0,n.w)(g.repeatDelay)),void 0!==g.from&&(g.keyframes[0]=g.from);let y=!1;if(!1!==g.type&&(0!==g.duration||g.repeatDelay)||(g.duration=0,0!==g.delay||(y=!0)),(f.current||d.c.skipAnimations)&&(y=!0,g.duration=0,g.delay=0),y&&!s&&void 0!==t.get()){let e=h(g.keyframes,l);if(void 0!==e)return m.Wi.update(()=>{g.onUpdate(e),g.onComplete()}),new eO([])}return!s&&eP.supports(g)?new eP(g):new ew(g)}},68588:function(e,t,r){"use strict";r.d(t,{M:function(){return n}});let n="data-"+(0,r(93193).D)("framerAppearId")},93785:function(e,t,r){"use strict";r.d(t,{s:function(){return i}});var n=r(68588);function i(e){return e.getProps()[n.M]}},2445:function(e,t,r){"use strict";function n(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}r.d(t,{H:function(){return n}})},48488:function(e,t,r){"use strict";r.d(t,{C:function(){return n}});let n=e=>Array.isArray(e)},31056:function(e,t,r){"use strict";function n({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function i(e,t){return e[t]||e.default||e}r.d(t,{e:function(){return i},r:function(){return n}})},51526:function(e,t,r){"use strict";r.d(t,{M:function(){return y}});var n=r(85893),i=r(67294),o=r(58868);function s(){let e=(0,i.useRef)(!1);return(0,o.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var a=r(26166),l=r(240),u=r(96681),c=r(16014);class d extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function f({children:e,isPresent:t}){let r=(0,i.useId)(),o=(0,i.useRef)(null),s=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:a}=(0,i.useContext)(c._);return(0,i.useInsertionEffect)(()=>{let{width:e,height:n,top:i,left:l}=s.current;if(t||!o.current||!e||!n)return;o.current.dataset.motionPopId=r;let u=document.createElement("style");return a&&(u.nonce=a),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` [data-motion-pop-id="${r}"] { position: absolute !important; width: ${e}px !important; height: ${n}px !important; top: ${i}px !important; left: ${l}px !important; } `),()=>{document.head.removeChild(u)}},[t]),(0,n.jsx)(d,{isPresent:t,childRef:o,sizeRef:s,children:i.cloneElement(e,{ref:o})})}let p=({children:e,initial:t,isPresent:r,onExitComplete:o,custom:s,presenceAffectsLayout:a,mode:c})=>{let d=(0,u.h)(h),p=(0,i.useId)(),m=(0,i.useMemo)(()=>({id:p,initial:t,isPresent:r,custom:s,onExitComplete:e=>{for(let t of(d.set(e,!0),d.values()))if(!t)return;o&&o()},register:e=>(d.set(e,!1),()=>d.delete(e))}),a?[Math.random()]:[r]);return(0,i.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[r]),i.useEffect(()=>{r||d.size||!o||o()},[r]),"popLayout"===c&&(e=(0,n.jsx)(f,{isPresent:r,children:e})),(0,n.jsx)(l.O.Provider,{value:m,children:e})};function h(){return new Map}var m=r(25364),v=r(45487);let g=e=>e.key||"",y=({children:e,custom:t,initial:r=!0,onExitComplete:l,exitBeforeEnter:u,presenceAffectsLayout:c=!0,mode:d="sync"})=>{var f;(0,v.k)(!u,"Replace exitBeforeEnter with mode='wait'");let h=(0,i.useContext)(m.p).forceRender||function(){let e=s(),[t,r]=(0,i.useState)(0),n=(0,i.useCallback)(()=>{e.current&&r(t+1)},[t]);return[(0,i.useCallback)(()=>a.Wi.postRender(n),[n]),t]}()[0],y=s(),b=function(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}(e),w=b,x=(0,i.useRef)(new Map).current,E=(0,i.useRef)(w),S=(0,i.useRef)(new Map).current,_=(0,i.useRef)(!0);if((0,o.L)(()=>{_.current=!1,function(e,t){e.forEach(e=>{let r=g(e);t.set(r,e)})}(b,S),E.current=w}),f=()=>{_.current=!0,S.clear(),x.clear()},(0,i.useEffect)(()=>()=>f(),[]),_.current)return(0,n.jsx)(n.Fragment,{children:w.map(e=>(0,n.jsx)(p,{isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:c,mode:d,children:e},g(e)))});w=[...w];let T=E.current.map(g),C=b.map(g),k=T.length;for(let e=0;e{if(-1!==C.indexOf(r))return;let i=S.get(r);if(!i)return;let o=T.indexOf(r),s=e;s||(s=(0,n.jsx)(p,{isPresent:!1,onExitComplete:()=>{x.delete(r);let e=Array.from(S.keys()).filter(e=>!C.includes(e));if(e.forEach(e=>S.delete(e)),E.current=b.filter(t=>{let n=g(t);return n===r||e.includes(n)}),!x.size){if(!1===y.current)return;h(),l&&l()}},custom:t,presenceAffectsLayout:c,mode:d,children:i},g(i)),x.set(r,s)),w.splice(o,0,s)}),w=w.map(e=>{let t=e.key;return x.has(t)?e:(0,n.jsx)(p,{isPresent:!0,presenceAffectsLayout:c,mode:d,children:e},g(e))}),(0,n.jsx)(n.Fragment,{children:x.size?w:w.map(e=>(0,i.cloneElement)(e))})}},18522:function(e,t,r){"use strict";r.d(t,{X:function(){return a}});var n=r(85893),i=r(67294),o=r(70398),s=r(81879);function a({children:e,features:t,strict:r=!1}){let[,a]=(0,i.useState)(!l(t)),u=(0,i.useRef)(void 0);if(!l(t)){let{renderer:e,...r}=t;u.current=e,(0,s.K)(r)}return(0,i.useEffect)(()=>{l(t)&&t().then(({renderer:e,...t})=>{(0,s.K)(t),u.current=e,a(!0)})},[]),(0,n.jsx)(o.u.Provider,{value:{renderer:u.current,strict:r},children:e})}function l(e){return"function"==typeof e}},25364:function(e,t,r){"use strict";r.d(t,{p:function(){return n}});let n=(0,r(67294).createContext)({})},70398:function(e,t,r){"use strict";r.d(t,{u:function(){return n}});let n=(0,r(67294).createContext)({strict:!1})},16014:function(e,t,r){"use strict";r.d(t,{_:function(){return n}});let n=(0,r(67294).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},24451:function(e,t,r){"use strict";r.d(t,{v:function(){return n}});let n=(0,r(67294).createContext)({})},240:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});let n=(0,r(67294).createContext)(null)},41705:function(e,t,r){"use strict";r.d(t,{g:function(){return n}});let n=(0,r(67294).createContext)({})},27255:function(e,t,r){"use strict";r.d(t,{Bn:function(){return s},X7:function(){return a},Z7:function(){return o}});var n=r(90415),i=r(75129);let o=e=>1-Math.sin(Math.acos(e)),s=(0,i.M)(o),a=(0,n.o)(o)},90415:function(e,t,r){"use strict";r.d(t,{o:function(){return n}});let n=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2},75129:function(e,t,r){"use strict";r.d(t,{M:function(){return n}});let n=e=>t=>1-e(1-t)},18456:function(e,t,r){"use strict";function n(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}r.d(t,{E:function(){return n}})},70486:function(e,t,r){"use strict";r.d(t,{a:function(){return o}});var n=r(18456),i=r(28148);function o(e,t,r,o){return(0,n.E)(e,t,(0,i.s)(r),o)}},28148:function(e,t,r){"use strict";r.d(t,{Q:function(){return i},s:function(){return o}});var n=r(9403);function i(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}let o=e=>t=>(0,n.D)(t)&&e(t,i(t))},9403:function(e,t,r){"use strict";r.d(t,{D:function(){return n}});let n=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary},89727:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(22081);class i{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}let o=["read","resolveKeyframes","update","preRender","render","postRender"];function s(e,t){let r=!1,s=!0,a={delta:0,timestamp:0,isProcessing:!1},l=o.reduce((e,t)=>(e[t]=function(e){let t=new i,r=new i,n=0,o=!1,s=!1,a=new WeakSet,l={schedule:(e,i=!1,s=!1)=>{let l=s&&o,u=l?t:r;return i&&a.add(e),u.add(e)&&l&&o&&(n=t.order.length),e},cancel:e=>{r.remove(e),a.delete(e)},process:i=>{if(o){s=!0;return}if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length)for(let r=0;rr=!0),e),{}),u=e=>{l[e].process(a)},c=()=>{let i=n.c.useManualTiming?a.timestamp:performance.now();r=!1,a.delta=s?1e3/60:Math.max(Math.min(i-a.timestamp,40),1),a.timestamp=i,a.isProcessing=!0,o.forEach(u),a.isProcessing=!1,r&&t&&(s=!1,e(c))},d=()=>{r=!0,s=!0,a.isProcessing||e(c)};return{schedule:o.reduce((e,t)=>{let n=l[t];return e[t]=(e,t=!1,i=!1)=>(r||d(),n.schedule(e,t,i)),e},{}),cancel:e=>o.forEach(t=>l[t].cancel(e)),state:a,steps:l}}},26166:function(e,t,r){"use strict";r.d(t,{Pn:function(){return o},S6:function(){return a},Wi:function(){return i},frameData:function(){return s}});var n=r(81662);let{schedule:i,cancel:o,state:s,steps:a}=(0,r(89727).Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.Z,!0)},83582:function(e,t,r){"use strict";r.d(t,{g:function(){return n}});let{schedule:n,cancel:i}=(0,r(89727).Z)(queueMicrotask,!1)},1117:function(e,t,r){"use strict";let n;r.d(t,{X:function(){return a}});var i=r(22081),o=r(26166);function s(){n=void 0}let a={now:()=>(void 0===n&&a.set(o.frameData.isProcessing||i.c.useManualTiming?o.frameData.timestamp:performance.now()),n),set:e=>{n=e,queueMicrotask(s)}}},37544:function(e,t,r){"use strict";function n(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}r.d(t,{fJ:function(){return s},gD:function(){return a}});let i=n("dragHorizontal"),o=n("dragVertical");function s(e){let t=!1;if("y"===e)t=o();else if("x"===e)t=i();else{let e=i(),r=o();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function a(){let e=s(!0);return!e||(e(),!1)}},50806:function(e,t,r){"use strict";r.d(t,{L:function(){return n}});class n{constructor(e){this.isMounted=!1,this.node=e}update(){}}},60534:function(e,t,r){"use strict";r.d(t,{s:function(){return P}});var n=r(2445),i=r(48488);function o(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;ny.remove(t))),b.push(p))}return a&&Promise.all(b).then(()=>{g.Wi.update(()=>{a&&function(e,t){let{transitionEnd:r={},transition:n={},...i}=l(e,t)||{};for(let t in i={...i,...r}){let r=(0,p.Y)(i[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,(0,h.BX)(r))}}(e,a)})}),b}function b(e,t,r={}){var n;let i=l(e,t,"exit"===r.type?null===(n=e.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);let s=i?()=>Promise.all(y(e,i,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(e,t,r=0,n=0,i=1,o){let s=[],a=(e.variantChildren.size-1)*n,l=1===i?(e=0)=>e*n:(e=0)=>a-e*n;return Array.from(e.variantChildren).sort(w).forEach((e,n)=>{e.notify("AnimationStart",t),s.push(b(e,t,{...o,delay:r+l(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,i+n,s,a,r)}:()=>Promise.resolve(),{when:u}=o;if(!u)return Promise.all([s(),a(r.delay)]);{let[e,t]="beforeChildren"===u?[s,a]:[a,s];return e().then(()=>t())}}function w(e,t){return e.sortNodePosition(t)}let x=[...u.e].reverse(),E=u.e.length;function S(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var _=r(50806);class T extends _.L{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>b(e,t,r)));else if("string"==typeof t)n=b(e,t,r);else{let i="function"==typeof t?l(e,t,r.custom):t;n=Promise.all(y(e,i,r))}return n.then(()=>{g.Wi.postRender(()=>{e.notify("AnimationComplete",t)})})})(e,t,r))),r={animate:S(!0),whileInView:S(),whileHover:S(),whileTap:S(),whileDrag:S(),whileFocus:S(),exit:S()},a=!0,u=t=>(r,n)=>{var i;let o=l(e,n,"exit"===t?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0);if(o){let{transition:e,transitionEnd:t,...n}=o;r={...r,...n,...t}}return r};function c(l){let c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],p=new Set,h={},m=1/0;for(let t=0;tm&&w),T=!1,C=Array.isArray(b)?b:[b],k=C.reduce(u(g),{});!1===E&&(k={});let{prevResolvedValues:P={}}=y,M={...P,...k},O=t=>{_=!0,p.has(t)&&(T=!0,p.delete(t)),y.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in M){let t=k[e],r=P[e];if(!h.hasOwnProperty(e))((0,i.C)(t)&&(0,i.C)(r)?o(t,r):t===r)?void 0!==t&&p.has(e)?O(e):y.protectedKeys[e]=!0:null!=t?O(e):p.add(e)}y.prevProp=b,y.prevResolvedValues=k,y.isActive&&(h={...h,...k}),a&&e.blockInitialAnimation&&(_=!1),_&&(!S||T)&&f.push(...C.map(e=>({animation:e,options:{type:g}})))}if(p.size){let t={};p.forEach(r=>{let n=e.getBaseTarget(r),i=e.getValue(r);i&&(i.liveStyle=!0),t[r]=null!=n?n:null}),f.push({animation:t})}let g=!!f.length;return a&&(!1===c.initial||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),a=!1,g?t(f):Promise.resolve()}return{animateChanges:c,setActive:function(t,n){var i;if(r[t].isActive===n)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach(e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;let o=c(t);for(let e in r)r[e].protectedKeys={};return o},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),(0,n.H)(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}let C=0;class k extends _.L{constructor(){super(...arguments),this.id=C++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}let P={animation:{Feature:T},exit:{Feature:k}}},9442:function(e,t,r){"use strict";r.d(t,{A:function(){return i}});let n={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},i={};for(let e in n)i[e]={isEnabled:t=>n[e].some(e=>!!t[e])}},33899:function(e,t,r){"use strict";r.d(t,{E:function(){return S}});var n=r(70486),i=r(83624),o=r(37544),s=r(50806),a=r(26166);function l(e,t){let r=t?"onHoverStart":"onHoverEnd";return(0,n.a)(e.current,t?"pointerenter":"pointerleave",(n,i)=>{if("touch"===n.pointerType||(0,o.gD)())return;let s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t);let l=s[r];l&&a.Wi.postRender(()=>l(n,i))},{passive:!e.getProps()[r]})}class u extends s.L{mount(){this.unmount=(0,i.z)(l(this.node,!0),l(this.node,!1))}unmount(){}}var c=r(18456);class d extends s.L{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,i.z)((0,c.E)(this.node.current,"focus",()=>this.onFocus()),(0,c.E)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var f=r(28148);let p=(e,t)=>!!t&&(e===t||p(e,t.parentElement));var h=r(81662);function m(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,(0,f.Q)(r))}class v extends s.L{constructor(){super(...arguments),this.removeStartListeners=h.Z,this.removeEndListeners=h.Z,this.removeAccessibleListeners=h.Z,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let r=this.node.getProps(),o=(0,n.a)(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:r,onTapCancel:n,globalTapTarget:i}=this.node.getProps(),o=i||p(this.node.current,e.target)?r:n;o&&a.Wi.update(()=>o(e,t))},{passive:!(r.onTap||r.onPointerUp)}),s=(0,n.a)(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=(0,i.z)(o,s),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=(0,c.E)(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=(0,c.E)(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&m("up",(e,t)=>{let{onTap:r}=this.node.getProps();r&&a.Wi.postRender(()=>r(e,t))})}),m("down",(e,t)=>{this.startPress(e,t)}))}),t=(0,c.E)(this.node.current,"blur",()=>{this.isPressing&&m("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=(0,i.z)(e,t)}}startPress(e,t){this.isPressing=!0;let{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&a.Wi.postRender(()=>r(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!(0,o.gD)()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:r}=this.node.getProps();r&&a.Wi.postRender(()=>r(e,t))}mount(){let e=this.node.getProps(),t=(0,n.a)(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=(0,c.E)(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,i.z)(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let g=new WeakMap,y=new WeakMap,b=e=>{let t=g.get(e.target);t&&t(e)},w=e=>{e.forEach(b)},x={some:0,all:1};class E extends s.L{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:x[n]};return function(e,t,r){let n=function({root:e,...t}){let r=e||document;y.has(r)||y.set(r,{});let n=y.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(w,{root:e,...t})),n[i]}(t);return g.set(e,r),n.observe(e),()=>{g.delete(e),n.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),o=t?r:n;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}let S={inView:{Feature:E},tap:{Feature:v},focus:{Feature:d},hover:{Feature:u}}},81879:function(e,t,r){"use strict";r.d(t,{K:function(){return i}});var n=r(9442);function i(e){for(let t in e)n.A[t]={...n.A[t],...e[t]}}},56816:function(e,t,r){"use strict";r.d(t,{j:function(){return o}});var n=r(64561),i=r(94714);function o(e,{layout:t,layoutId:r}){return i.G.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!n.P[e]||"opacity"===e)}},76117:function(e,t,r){"use strict";function n({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function i({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function o(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}r.d(t,{d7:function(){return o},i8:function(){return n},z2:function(){return i}})},16e3:function(e,t,r){"use strict";r.d(t,{D2:function(){return m},YY:function(){return u},am:function(){return d},o2:function(){return l},q2:function(){return o}});var n=r(40179),i=r(99527);function o(e,t,r){return r+t*(e-r)}function s(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function a(e,t=0,r=1,n,i){e.min=s(e.min,t,r,n,i),e.max=s(e.max,t,r,n,i)}function l(e,{x:t,y:r}){a(e.x,t.translate,t.scale,t.originPoint),a(e.y,r.translate,r.scale,r.originPoint)}function u(e,t,r,n=!1){let o,s;let a=r.length;if(a){t.x=t.y=1;for(let u=0;u1.0000000000001||e<.999999999999?e:1}function d(e,t){e.min=e.min+t,e.max=e.max+t}function f(e,t,[r,i,o]){let s=void 0!==t[o]?t[o]:.5,l=(0,n.t)(e.min,e.max,s);a(e,t[r],t[i],l,t.scale)}let p=["x","scaleX","originX"],h=["y","scaleY","originY"];function m(e,t){f(e.x,t,p),f(e.y,t,h)}},61512:function(e,t,r){"use strict";r.d(t,{dO:function(){return s},wc:function(){return i}});let n=()=>({translate:0,scale:1,origin:0,originPoint:0}),i=()=>({x:n(),y:n()}),o=()=>({min:0,max:0}),s=()=>({x:o(),y:o()})},64561:function(e,t,r){"use strict";r.d(t,{B:function(){return i},P:function(){return n}});let n={};function i(e){Object.assign(n,e)}},99527:function(e,t,r){"use strict";function n(e){return void 0===e||1===e}function i({scale:e,scaleX:t,scaleY:r}){return!n(e)||!n(t)||!n(r)}function o(e){return i(e)||s(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function s(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}r.d(t,{D_:function(){return s},Lj:function(){return i},ud:function(){return o}})},56460:function(e,t,r){"use strict";r.d(t,{J:function(){return o},z:function(){return s}});var n=r(76117),i=r(16e3);function o(e,t){return(0,n.i8)((0,n.d7)(e.getBoundingClientRect(),t))}function s(e,t,r){let n=o(e,r),{scroll:s}=t;return s&&((0,i.am)(n.x,s.offset.x),(0,i.am)(n.y,s.offset.y)),n}},20204:function(e,t,r){"use strict";r.d(t,{s:function(){return h}});var n=r(30681),i=r(45487),o=r(33441),s=r(57630);let a=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var l=r(6383),u=r(56440),c=r(41568),d=r(51550),f=r(79135);let p=new Set(["auto","none","0"]);class h extends c.e{constructor(e,t,r,n){super(e,t,r,n,null==n?void 0:n.owner,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t.current)return;super.readKeyframes();for(let r=0;r{t.getValue(e).set(r)}),this.resolveNoneKeyframes()}}},3319:function(e,t,r){"use strict";r.d(t,{b:function(){return Q}});var n=r(67294),i=r(38057),o=r(57630),s=r(94714),a=r(50189),l=r(34242),u=r(2728),c=r(56460),d=r(61512),f=r(51804),p=r(11741);let h={current:null},m={current:!1};var v=r(21560),g=r(33234),y=r(12490),b=r(40406),w=r(7504),x=r(97732),E=r(79432),S=r(9442),_=r(22963);let T=new WeakMap;var C=r(41568),k=r(33441),P=r(30681),M=r(85385),O=r(51550),A=r(56440),I=r(88340);let L=[...A.$,M.$,O.P],D=e=>L.find((0,I.l)(e));var R=r(79135),N=r(26166);let j=Object.keys(S.A),$=j.length,V=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],z=_.V.length;class F{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:i,visualState:o},s={}){this.resolveKeyframes=(e,t,r,n)=>new this.KeyframeResolver(e,t,r,n,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=C.e,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>N.Wi.render(this.render,!1,!0);let{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=(0,w.G)(t),this.isVariantNode=(0,w.M)(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==a[e]&&(0,b.i)(t)&&(t.set(a[e],!1),(0,y.L)(u)&&u.add(e))}}mount(e){this.current=e,T.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),m.current||function(){if(m.current=!0,p.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>h.current=e.matches;e.addListener(t),t()}else h.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||h.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var e;for(let e in T.delete(this.current),this.projection&&this.projection.unmount(),(0,N.Pn)(this.notifyUpdate),(0,N.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let t in this.features)null===(e=this.features[t])||void 0===e||e.unmount();this.current=null}bindToMotionValue(e,t){let r=s.G.has(e),n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&N.Wi.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},r,n,i){let o,s;for(let e=0;e<$;e++){let r=j[e],{isEnabled:n,Feature:i,ProjectionNode:a,MeasureLayout:l}=S.A[r];a&&(o=a),n(t)&&(!this.features[r]&&i&&(this.features[r]=new i(this)),l&&(s=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&o){let{layoutId:e,layout:r,drag:n,dragConstraints:s,layoutScroll:a,layoutRoot:l}=t;this.projection=new o(this.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(this.parent)),this.projection.setOptions({layoutId:e,layout:r,alwaysMeasureLayout:!!n||s&&(0,f.I)(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:i,layoutScroll:a,layoutRoot:l})}return s}updateFeatures(){for(let e in this.features){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,d.dO)()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;tt.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=(0,g.BX)(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){var r;let n=void 0===this.latestValues[e]&&this.current?null!==(r=this.getBaseTargetFromProps(this.props,e))&&void 0!==r?r:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&((0,k.P)(n)||(0,P.W)(n))?n=parseFloat(n):!D(n)&&O.P.test(t)&&(n=(0,R.T)(e,t)),this.setBaseTarget(e,(0,b.i)(n)?n.get():n)),(0,b.i)(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let r;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let i=(0,E.o)(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);i&&(r=i[e])}if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||(0,b.i)(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new v.L),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}var B=r(20204);class H extends F{constructor(){super(...arguments),this.KeyframeResolver=B.s}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}}class G extends H{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(s.G.has(t)){let e=(0,u.A)(t);return e&&e.default||0}{let r=window.getComputedStyle(e),n=((0,o.f)(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return(0,c.J)(e,t)}build(e,t,r,n){(0,i.r)(e,t,r,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return(0,a.U)(e,t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;(0,b.i)(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,r,n){(0,l.N)(e,t,r,n)}}var U=r(16832),W=r(85415),q=r(93193),K=r(77302),Y=r(68504),X=r(79854);class J extends H{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(s.G.has(t)){let e=(0,u.A)(t);return e&&e.default||0}return t=K.s.has(t)?t:(0,q.D)(t),e.getAttribute(t)}measureInstanceViewportBox(){return(0,d.dO)()}scrapeMotionValuesFromProps(e,t,r){return(0,U.U)(e,t,r)}build(e,t,r,n){(0,W.i)(e,t,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,r,n){(0,Y.K)(e,t,r,n)}mount(e){this.isSVGTag=(0,X.a)(e.tagName),super.mount(e)}}var Z=r(62627);let Q=(e,t)=>(0,Z.q)(e)?new J(t,{enableHardwareAcceleration:!1}):new G(t,{allowProjection:e!==n.Fragment,enableHardwareAcceleration:!0})},1673:function(e,t,r){"use strict";r.d(t,{H:function(){return o}});var n=r(60534),i=r(33899);let o={renderer:r(3319).b,...n.s,...i.E}},12560:function(e,t,r){"use strict";r.d(t,{m:function(){return o}});var n=r(5401),i=r(4007);let o=(0,n.D)(i.w)},5401:function(e,t,r){"use strict";r.d(t,{D:function(){return x}});var n=r(85893),i=r(67294),o=r(16014),s=r(24451),a=r(240),l=r(58868),u=r(70398),c=r(68588),d=r(83582),f=r(51804),p=r(97732),h=r(7504);function m(e){return Array.isArray(e)?e.join(" "):e}var v=r(81879),g=r(11741),y=r(25364),b=r(41705);let w=Symbol.for("motionComponentSymbol");function x(e){function t(t,r={}){return function({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:x,Component:E}){e&&(0,v.K)(e);let S=(0,i.forwardRef)(function(v,w){var S;let _;let T={...(0,i.useContext)(o._),...v,layoutId:function({layoutId:e}){let t=(0,i.useContext)(y.p).id;return t&&void 0!==e?t+"-"+e:e}(v)},{isStatic:C}=T,k=function(e){let{initial:t,animate:r}=function(e,t){if((0,h.G)(e)){let{initial:t,animate:r}=e;return{initial:!1===t||(0,p.$)(t)?t:void 0,animate:(0,p.$)(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,i.useContext)(s.v));return(0,i.useMemo)(()=>({initial:t,animate:r}),[m(t),m(r)])}(v),P=x(v,C);if(!C&&g.j){k.visualElement=function(e,t,r,n){let{visualElement:f}=(0,i.useContext)(s.v),p=(0,i.useContext)(u.u),h=(0,i.useContext)(a.O),m=(0,i.useContext)(o._).reducedMotion,v=(0,i.useRef)();n=n||p.renderer,!v.current&&n&&(v.current=n(e,{visualState:t,parent:f,props:r,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:m}));let g=v.current;(0,i.useInsertionEffect)(()=>{g&&g.update(r,h)});let y=(0,i.useRef)(!!(r[c.M]&&!window.HandoffComplete));return(0,l.L)(()=>{g&&(d.g.render(g.render),y.current&&g.animationState&&g.animationState.animateChanges())}),(0,i.useEffect)(()=>{g&&(g.updateFeatures(),!y.current&&g.animationState&&g.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),g}(E,P,T,t);let r=(0,i.useContext)(b.g),n=(0,i.useContext)(u.u).strict;k.visualElement&&(_=k.visualElement.loadFeatures(T,n,e,r))}return(0,n.jsxs)(s.v.Provider,{value:k,children:[_&&k.visualElement?(0,n.jsx)(_,{visualElement:k.visualElement,...T}):null,r(E,v,(S=k.visualElement,(0,i.useCallback)(e=>{e&&P.mount&&P.mount(e),S&&(e?S.mount(e):S.unmount()),w&&("function"==typeof w?w(e):(0,f.I)(w)&&(w.current=e))},[S])),P,C,k.visualElement)]})});return S[w]=E,S}(e(t,r))}if("undefined"==typeof Proxy)return t;let r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}},93193:function(e,t,r){"use strict";r.d(t,{D:function(){return n}});let n=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},4007:function(e,t,r){"use strict";r.d(t,{w:function(){return O}});var n,i=r(62627),o=r(67294),s=r(56816),a=r(40406),l=r(38057);let u=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function c(e,t,r){for(let n in t)(0,a.i)(t[n])||(0,s.j)(n,r)||(e[n]=t[n])}let d=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function f(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||d.has(e)}let p=e=>!f(e);try{(n=require("@emotion/is-prop-valid").default)&&(p=e=>e.startsWith("on")?!f(e):n(e))}catch(e){}var h=r(85415);let m=()=>({...u(),attrs:{}});var v=r(79854),g=r(68504),y=r(16832),b=r(2445),w=r(240),x=r(79432),E=r(96681),S=r(16399),_=r(24451),T=r(7504);let C=e=>(t,r)=>{let n=(0,o.useContext)(_.v),i=(0,o.useContext)(w.O),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){let s={latestValues:function(e,t,r,n){let i={},o=n(e,{});for(let e in o)i[e]=(0,S.b)(o[e]);let{initial:s,animate:a}=e,l=(0,T.G)(e),u=(0,T.M)(e);t&&u&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let c=!!r&&!1===r.initial,d=(c=c||!1===s)?a:s;return d&&"boolean"!=typeof d&&!(0,b.H)(d)&&(Array.isArray(d)?d:[d]).forEach(t=>{let r=(0,x.o)(e,t);if(!r)return;let{transitionEnd:n,transition:o,...s}=r;for(let e in s){let t=s[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in n)i[e]=n[e]}),i}(n,i,o,e),renderState:t()};return r&&(s.mount=e=>r(n,e,s)),s})(e,t,n,i);return r?s():(0,E.h)(s)};var k=r(26166);let P={useVisualState:C({scrapeMotionValuesFromProps:y.U,createRenderState:m,onMount:(e,t,{renderState:r,latestValues:n})=>{k.Wi.read(()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}}),k.Wi.render(()=>{(0,h.i)(r,n,{enableHardwareAcceleration:!1},(0,v.a)(t.tagName),e.transformTemplate),(0,g.K)(t,r)})}})},M={useVisualState:C({scrapeMotionValuesFromProps:r(50189).U,createRenderState:u})};function O(e,{forwardMotionProps:t=!1},r,n){return{...(0,i.q)(e)?P:M,preloadedFeatures:r,useRender:function(e=!1){return(t,r,n,{latestValues:s},d)=>{let g=((0,i.q)(t)?function(e,t,r,n){let i=(0,o.useMemo)(()=>{let r=m();return(0,h.i)(r,t,{enableHardwareAcceleration:!1},(0,v.a)(n),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};c(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t,r){let n={},i=function(e,t,r){let n=e.style||{},i={};return c(i,n,e),Object.assign(i,function({transformTemplate:e},t,r){return(0,o.useMemo)(()=>{let n=u();return(0,l.r)(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}(e,t,r)),i}(e,t,r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n})(r,s,d,t),y=function(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(p(i)||!0===r&&f(i)||!t&&!f(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"==typeof t,e),b=t!==o.Fragment?{...y,...g,ref:n}:{},{children:w}=r,x=(0,o.useMemo)(()=>(0,a.i)(w)?w.get():w,[w]);return(0,o.createElement)(t,{...b,children:x})}}(t),createVisualElement:n,Component:e}}},57630:function(e,t,r){"use strict";r.d(t,{f:function(){return i},t:function(){return s}});let n=e=>t=>"string"==typeof t&&t.startsWith(e),i=n("--"),o=n("var(--"),s=e=>!!o(e)&&a.test(e.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},62627:function(e,t,r){"use strict";r.d(t,{q:function(){return i}});let n=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function i(e){if("string"!=typeof e||e.includes("-"));else if(n.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}},6383:function(e,t,r){"use strict";r.d(t,{Ei:function(){return f},lw:function(){return p},mP:function(){return a},z2:function(){return s}});var n=r(94714),i=r(61649),o=r(96190);let s=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),a=e=>e===i.Rx||e===o.px,l=(e,t)=>parseFloat(e.split(", ")[t]),u=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/u);if(i)return l(i[1],t);{let t=n.match(/^matrix\((.+)\)$/u);return t?l(t[1],e):0}},c=new Set(["x","y","z"]),d=n._.filter(e=>!c.has(e));function f(e){let t=[];return d.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}let p={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:u(4,13),y:u(5,14)};p.translateX=p.x,p.translateY=p.y},79135:function(e,t,r){"use strict";r.d(t,{T:function(){return s}});var n=r(51550),i=r(97197),o=r(2728);function s(e,t){let r=(0,o.A)(e);return r!==i.h&&(r=n.P),r.getAnimatableNone?r.getAnimatableNone(t):void 0}},2728:function(e,t,r){"use strict";r.d(t,{A:function(){return s}});var n=r(85385),i=r(97197);let o={...r(36173).j,color:n.$,backgroundColor:n.$,outlineColor:n.$,fill:n.$,stroke:n.$,borderColor:n.$,borderTopColor:n.$,borderRightColor:n.$,borderBottomColor:n.$,borderLeftColor:n.$,filter:i.h,WebkitFilter:i.h},s=e=>o[e]},56440:function(e,t,r){"use strict";r.d(t,{$:function(){return s},C:function(){return a}});var n=r(61649),i=r(96190),o=r(88340);let s=[n.Rx,i.px,i.aQ,i.RW,i.vw,i.vh,{test:e=>"auto"===e,parse:e=>e}],a=e=>s.find((0,o.l)(e))},36173:function(e,t,r){"use strict";r.d(t,{j:function(){return s}});var n=r(61649),i=r(96190);let o={...n.Rx,transform:Math.round},s={borderWidth:i.px,borderTopWidth:i.px,borderRightWidth:i.px,borderBottomWidth:i.px,borderLeftWidth:i.px,borderRadius:i.px,radius:i.px,borderTopLeftRadius:i.px,borderTopRightRadius:i.px,borderBottomRightRadius:i.px,borderBottomLeftRadius:i.px,width:i.px,maxWidth:i.px,height:i.px,maxHeight:i.px,size:i.px,top:i.px,right:i.px,bottom:i.px,left:i.px,padding:i.px,paddingTop:i.px,paddingRight:i.px,paddingBottom:i.px,paddingLeft:i.px,margin:i.px,marginTop:i.px,marginRight:i.px,marginBottom:i.px,marginLeft:i.px,rotate:i.RW,rotateX:i.RW,rotateY:i.RW,rotateZ:i.RW,scale:n.bA,scaleX:n.bA,scaleY:n.bA,scaleZ:n.bA,skew:i.RW,skewX:i.RW,skewY:i.RW,distance:i.px,translateX:i.px,translateY:i.px,translateZ:i.px,x:i.px,y:i.px,z:i.px,perspective:i.px,transformPerspective:i.px,opacity:n.Fq,originX:i.$C,originY:i.$C,originZ:i.px,zIndex:o,backgroundPositionX:i.px,backgroundPositionY:i.px,fillOpacity:n.Fq,strokeOpacity:n.Fq,numOctaves:o}},88340:function(e,t,r){"use strict";r.d(t,{l:function(){return n}});let n=e=>t=>t.test(e)},38057:function(e,t,r){"use strict";r.d(t,{r:function(){return u}});var n=r(94714);let i={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},o=n._.length;var s=r(57630);let a=(e,t)=>t&&"number"==typeof e?t.transform(e):e;var l=r(36173);function u(e,t,r,u){let{style:c,vars:d,transform:f,transformOrigin:p}=e,h=!1,m=!1,v=!0;for(let e in t){let r=t[e];if((0,s.f)(e)){d[e]=r;continue}let i=l.j[e],o=a(r,i);if(n.G.has(e)){if(h=!0,f[e]=o,!v)continue;r!==(i.default||0)&&(v=!1)}else e.startsWith("origin")?(m=!0,p[e]=o):c[e]=o}if(!t.transform&&(h||u?c.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},s,a){let l="";for(let t=0;t"string"==typeof e&&"svg"===e.toLowerCase()},68504:function(e,t,r){"use strict";r.d(t,{K:function(){return s}});var n=r(93193),i=r(34242),o=r(77302);function s(e,t,r,s){for(let r in(0,i.N)(e,t,void 0,s),t.attrs)e.setAttribute(o.s.has(r)?r:(0,n.D)(r),t.attrs[r])}},16832:function(e,t,r){"use strict";r.d(t,{U:function(){return s}});var n=r(40406),i=r(50189),o=r(94714);function s(e,t,r){let s=(0,i.U)(e,t,r);for(let r in e)((0,n.i)(e[r])||(0,n.i)(t[r]))&&(s[-1!==o._.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return s}},41568:function(e,t,r){"use strict";r.d(t,{e:function(){return d},m:function(){return c}});var n=r(6383),i=r(26166);let o=new Set,s=!1,a=!1;function l(){if(a){let e=Array.from(o).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t=(0,n.Ei)(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{var n;null===(n=e.getValue(t))||void 0===n||n.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}a=!1,s=!1,o.forEach(e=>e.complete()),o.clear()}function u(){o.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(a=!0)})}function c(){u(),l()}class d{constructor(e,t,r,n,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(o.add(this),s||(s=!0,i.Wi.read(u),i.Wi.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;for(let i=0;i(0,i.$)(e[t]))}function a(e){return!!(s(e)||e.variants)}},97732:function(e,t,r){"use strict";function n(e){return"string"==typeof e||Array.isArray(e)}r.d(t,{$:function(){return n}})},79432:function(e,t,r){"use strict";function n(e){let t=[{},{}];return null==e||e.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function i(e,t,r,i){if("function"==typeof t){let[o,s]=n(i);t=t(void 0!==r?r:e.custom,o,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[o,s]=n(i);t=t(void 0!==r?r:e.custom,o,s)}return t}r.d(t,{o:function(){return i}})},22963:function(e,t,r){"use strict";r.d(t,{V:function(){return i},e:function(){return n}});let n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i=["initial",...n]},22081:function(e,t,r){"use strict";r.d(t,{c:function(){return n}});let n={skipAnimations:!1,useManualTiming:!1}},10010:function(e,t,r){"use strict";function n(e,t){-1===e.indexOf(t)&&e.push(t)}function i(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}r.d(t,{cl:function(){return i},y4:function(){return n}})},24169:function(e,t,r){"use strict";r.d(t,{u:function(){return n}});let n=(e,t,r)=>r>t?t:r/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)},51804:function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}r.d(t,{I:function(){return n}})},30681:function(e,t,r){"use strict";r.d(t,{W:function(){return n}});let n=e=>/^0[^.\s]+$/u.test(e)},40179:function(e,t,r){"use strict";r.d(t,{t:function(){return n}});let n=(e,t,r)=>e+(t-e)*r},81662:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=e=>e},83624:function(e,t,r){"use strict";r.d(t,{z:function(){return i}});let n=(e,t)=>r=>t(e(r)),i=(...e)=>e.reduce(n)},23967:function(e,t,r){"use strict";r.d(t,{Y:function(){return n}});let n=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n}},8715:function(e,t,r){"use strict";r.d(t,{Y:function(){return o},p:function(){return i}});var n=r(48488);let i=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),o=e=>(0,n.C)(e)?e[e.length-1]||0:e},21560:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(10010);class i{constructor(){this.subscriptions=[]}add(e){return(0,n.y4)(this.subscriptions,e),()=>(0,n.cl)(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i1e3*e,i=e=>e/1e3},96681:function(e,t,r){"use strict";r.d(t,{h:function(){return i}});var n=r(67294);function i(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},58868:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(67294);let i=r(11741).j?n.useLayoutEffect:n.useEffect},3038:function(e,t,r){"use strict";function n(e,t){return t?1e3/t*e:0}r.d(t,{R:function(){return n}})},33234:function(e,t,r){"use strict";r.d(t,{BX:function(){return c}});var n=r(21560),i=r(3038),o=r(1117),s=r(26166);let a=e=>!isNaN(parseFloat(e)),l={current:void 0};class u{constructor(e,t={}){this.version="11.2.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let r=o.X.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=o.X.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=a(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new n.L);let r=this.events[e].add(t);return"change"===e?()=>{r(),s.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=o.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,i.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function c(e,t){return new u(e,t)}},26382:function(e,t,r){"use strict";r.d(t,{$:function(){return i}});var n=r(40819);let i={test:(0,r(98834).i)("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:n.m.transform}},93184:function(e,t,r){"use strict";r.d(t,{J:function(){return a}});var n=r(61649),i=r(96190),o=r(36430),s=r(98834);let a={test:(0,s.i)("hsl","hue"),parse:(0,s.d)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:s=1})=>"hsla("+Math.round(e)+", "+i.aQ.transform((0,o.Nw)(t))+", "+i.aQ.transform((0,o.Nw)(r))+", "+(0,o.Nw)(n.Fq.transform(s))+")"}},85385:function(e,t,r){"use strict";r.d(t,{$:function(){return a}});var n=r(36430),i=r(26382),o=r(93184),s=r(40819);let a={test:e=>s.m.test(e)||i.$.test(e)||o.J.test(e),parse:e=>s.m.test(e)?s.m.parse(e):o.J.test(e)?o.J.parse(e):i.$.parse(e),transform:e=>(0,n.HD)(e)?e:e.hasOwnProperty("red")?s.m.transform(e):o.J.transform(e)}},40819:function(e,t,r){"use strict";r.d(t,{m:function(){return u}});var n=r(24169),i=r(61649),o=r(36430),s=r(98834);let a=e=>(0,n.u)(0,255,e),l={...i.Rx,transform:e=>Math.round(a(e))},u={test:(0,s.i)("rgb","red"),parse:(0,s.d)("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+l.transform(e)+", "+l.transform(t)+", "+l.transform(r)+", "+(0,o.Nw)(i.Fq.transform(n))+")"}},98834:function(e,t,r){"use strict";r.d(t,{d:function(){return o},i:function(){return i}});var n=r(36430);let i=(e,t)=>r=>!!((0,n.HD)(r)&&n.mj.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),o=(e,t,r)=>i=>{if(!(0,n.HD)(i))return i;let[o,s,a,l]=i.match(n.KP);return{[e]:parseFloat(o),[t]:parseFloat(s),[r]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},97197:function(e,t,r){"use strict";r.d(t,{h:function(){return l}});var n=r(51550),i=r(36430);let o=new Set(["brightness","contrast","saturate","opacity"]);function s(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(i.KP)||[];if(!n)return e;let s=r.replace(n,""),a=o.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+s+")"}let a=/\b([a-z-]*)\(.*?\)/gu,l={...n.P,getAnimatableNone:e=>{let t=e.match(a);return t?t.map(s).join(" "):e}}},51550:function(e,t,r){"use strict";r.d(t,{P:function(){return f},V:function(){return l}});var n=r(85385),i=r(36430);let o="number",s="color",a=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function l(e){let t=e.toString(),r=[],i={color:[],number:[],var:[]},l=[],u=0,c=t.replace(a,e=>(n.$.test(e)?(i.color.push(u),l.push(s),r.push(n.$.parse(e))):e.startsWith("var(")?(i.var.push(u),l.push("var"),r.push(e)):(i.number.push(u),l.push(o),r.push(parseFloat(e))),++u,"${}")).split("${}");return{values:r,split:c,indexes:i,types:l}}function u(e){return l(e).values}function c(e){let{split:t,types:r}=l(e),a=t.length;return e=>{let l="";for(let u=0;u"number"==typeof e?0:e,f={test:function(e){var t,r;return isNaN(e)&&(0,i.HD)(e)&&((null===(t=e.match(i.KP))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(i.dA))||void 0===r?void 0:r.length)||0)>0},parse:u,createTransformer:c,getAnimatableNone:function(e){let t=u(e);return c(e)(t.map(d))}}},61649:function(e,t,r){"use strict";r.d(t,{Fq:function(){return o},Rx:function(){return i},bA:function(){return s}});var n=r(24169);let i={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},o={...i,transform:e=>(0,n.u)(0,1,e)},s={...i,default:1}},96190:function(e,t,r){"use strict";r.d(t,{$C:function(){return c},RW:function(){return o},aQ:function(){return s},px:function(){return a},vh:function(){return l},vw:function(){return u}});var n=r(36430);let i=e=>({test:t=>(0,n.HD)(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),o=i("deg"),s=i("%"),a=i("px"),l=i("vh"),u=i("vw"),c={...s,parse:e=>s.parse(e)/100,transform:e=>s.transform(100*e)}},36430:function(e,t,r){"use strict";r.d(t,{HD:function(){return a},KP:function(){return i},Nw:function(){return n},dA:function(){return o},mj:function(){return s}});let n=e=>Math.round(1e5*e)/1e5,i=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,o=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,s=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function a(e){return"string"==typeof e}},12490:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(40406);function i(e){return!!((0,n.i)(e)&&e.add)}},40406:function(e,t,r){"use strict";r.d(t,{i:function(){return n}});let n=e=>!!(e&&e.getVelocity)},16399:function(e,t,r){"use strict";r.d(t,{b:function(){return o}});var n=r(8715),i=r(40406);function o(e){let t=(0,i.i)(e)?e.get():e;return(0,n.p)(t)?t.toValue():t}},31955:function(e,t,r){"use strict";/*! js-cookie v3.0.5 | MIT */function n(e){for(var t=1;t{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(e){return atob(t)}}(o)}catch(e){throw new n(`Invalid token specified: invalid base64 for part #${i+1} (${e.message})`)}try{return JSON.parse(r)}catch(e){throw new n(`Invalid token specified: invalid json for part #${i+1} (${e.message})`)}}n.prototype.name="InvalidTokenError"},65890:function(e,t,r){"use strict";r.d(t,{And:function(){return i},EZF:function(){return l},Gi4:function(){return c},HUZ:function(){return d},HsN:function(){return a},_ES:function(){return f},dVI:function(){return p},fmn:function(){return s},j$X:function(){return u},pjk:function(){return o}});var n=r(15955);function i(e){return(0,n.w_)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8"},child:[]}]})(e)}function o(e){return(0,n.w_)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0"},child:[]}]})(e)}function s(e){return(0,n.w_)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"},child:[]}]})(e)}function a(e){return(0,n.w_)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.5 9.511c.076.954.83 1.697 2.182 1.785V12h.6v-.709c1.4-.098 2.218-.846 2.218-1.932 0-.987-.626-1.496-1.745-1.76l-.473-.112V5.57c.6.068.982.396 1.074.85h1.052c-.076-.919-.864-1.638-2.126-1.716V4h-.6v.719c-1.195.117-2.01.836-2.01 1.853 0 .9.606 1.472 1.613 1.707l.397.098v2.034c-.615-.093-1.022-.43-1.114-.9zm2.177-2.166c-.59-.137-.91-.416-.91-.836 0-.47.345-.822.915-.925v1.76h-.005zm.692 1.193c.717.166 1.048.435 1.048.91 0 .542-.412.914-1.135.982V8.518z"},child:[]},{tag:"path",attr:{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"},child:[]},{tag:"path",attr:{d:"M8 13.5a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11m0 .5A6 6 0 1 0 8 2a6 6 0 0 0 0 12"},child:[]}]})(e)}function l(e){return(0,n.w_)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z"},child:[]}]})(e)}function u(e){return(0,n.w_)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v1h14V4a1 1 0 0 0-1-1zm13 4H1v5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1z"},child:[]},{tag:"path",attr:{d:"M2 10a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1z"},child:[]}]})(e)}function c(e){return(0,n.w_)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 1a2 2 0 0 1 2 2v2H6V3a2 2 0 0 1 2-2m3 4V3a3 3 0 1 0-6 0v2H3.36a1.5 1.5 0 0 0-1.483 1.277L.85 13.13A2.5 2.5 0 0 0 3.322 16h9.355a2.5 2.5 0 0 0 2.473-2.87l-1.028-6.853A1.5 1.5 0 0 0 12.64 5zm-1 1v1.5a.5.5 0 0 0 1 0V6h1.639a.5.5 0 0 1 .494.426l1.028 6.851A1.5 1.5 0 0 1 12.678 15H3.322a1.5 1.5 0 0 1-1.483-1.723l1.028-6.851A.5.5 0 0 1 3.36 6H5v1.5a.5.5 0 1 0 1 0V6z"},child:[]}]})(e)}function d(e){return(0,n.w_)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M12.5 3a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1zm0 3a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1zm.5 3.5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h5a.5.5 0 0 0 .5-.5m-.5 2.5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1z"},child:[]},{tag:"path",attr:{d:"M16 2a2 2 0 0 0-2-2H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2zM4 1v14H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm1 0h9a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H5z"},child:[]}]})(e)}function f(e){return(0,n.w_)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M0 .5A.5.5 0 0 1 .5 0h3a.5.5 0 0 1 0 1H1v2.5a.5.5 0 0 1-1 0zm12 0a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-1 0V1h-2.5a.5.5 0 0 1-.5-.5M.5 12a.5.5 0 0 1 .5.5V15h2.5a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5m15 0a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1 0-1H15v-2.5a.5.5 0 0 1 .5-.5M4 4h1v1H4z"},child:[]},{tag:"path",attr:{d:"M7 2H2v5h5zM3 3h3v3H3zm2 8H4v1h1z"},child:[]},{tag:"path",attr:{d:"M7 9H2v5h5zm-4 1h3v3H3zm8-6h1v1h-1z"},child:[]},{tag:"path",attr:{d:"M9 2h5v5H9zm1 1v3h3V3zM8 8v2h1v1H8v1h2v-2h1v2h1v-1h2v-1h-3V8zm2 2H9V9h1zm4 2h-1v1h-2v1h3zm-4 2v-1H8v1z"},child:[]},{tag:"path",attr:{d:"M12 9h2V8h-2z"},child:[]}]})(e)}function p(e){return(0,n.w_)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0"},child:[]}]})(e)}},18644:function(e,t,r){"use strict";r.d(t,{OYx:function(){return s},bI9:function(){return o},bjh:function(){return i}});var n=r(15955);function i(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}function o(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M427.68 351.43C402 320 383.87 304 383.87 217.35 383.87 138 343.35 109.73 310 96c-4.43-1.82-8.6-6-9.95-10.55C294.2 65.54 277.8 48 256 48s-38.21 17.55-44 37.47c-1.35 4.6-5.52 8.71-9.95 10.53-33.39 13.75-73.87 41.92-73.87 121.35C128.13 304 110 320 84.32 351.43 73.68 364.45 83 384 101.61 384h308.88c18.51 0 27.77-19.61 17.19-32.57zM320 384v16a64 64 0 0 1-128 0v-16"},child:[]}]})(e)}function s(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M479.07 111.36a16 16 0 0 0-13.15-14.74c-86.5-15.52-122.61-26.74-203.33-63.2a16 16 0 0 0-13.18 0C168.69 69.88 132.58 81.1 46.08 96.62a16 16 0 0 0-13.15 14.74c-3.85 61.11 4.36 118.05 24.43 169.24A349.47 349.47 0 0 0 129 393.11c53.47 56.73 110.24 81.37 121.07 85.73a16 16 0 0 0 12 0c10.83-4.36 67.6-29 121.07-85.73a349.47 349.47 0 0 0 71.5-112.51c20.07-51.19 28.28-108.13 24.43-169.24zm-131 75.11-110.8 128a16 16 0 0 1-11.41 5.53h-.66a16 16 0 0 1-11.2-4.57l-49.2-48.2a16 16 0 1 1 22.4-22.86l37 36.29 99.7-115.13a16 16 0 0 1 24.2 20.94z"},child:[]}]})(e)}},15955:function(e,t,r){"use strict";r.d(t,{w_:function(){return c}});var n=r(67294),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=n.createContext&&n.createContext(i),s=["attr","size","title"];function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.createElement(d,a({attr:u({},e.attr)},t),function e(t){return t&&t.map((t,r)=>n.createElement(t.tag,u({key:r},t.attr),e(t.child)))}(e.child))}function d(e){var t=t=>{var r,{attr:i,size:o,title:l}=e,c=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,s),d=o||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{className:r,style:u(u({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),l&&n.createElement("title",null,l),e.children)};return void 0!==o?n.createElement(o.Consumer,null,e=>t(e)):t(i)}},7321:function(e,t,r){"use strict";function n(e,t,r){!function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}r.d(t,{_:function(){return n}})},55678:function(e,t,r){"use strict";r.d(t,{Am:function(){return C},Ix:function(){return D}});var n=r(67294),i=r(90512);let o=e=>"number"==typeof e&&!isNaN(e),s=e=>"string"==typeof e,a=e=>"function"==typeof e,l=e=>s(e)||a(e)?e:null,u=e=>(0,n.isValidElement)(e)||s(e)||a(e)||o(e);function c(e){let{enter:t,exit:r,appendPosition:i=!1,collapse:o=!0,collapseDuration:s=300}=e;return function(e){let{children:a,position:l,preventExitTransition:u,done:c,nodeRef:d,isIn:f,playToast:p}=e,h=i?`${t}--${l}`:t,m=i?`${r}--${l}`:r,v=(0,n.useRef)(0);return(0,n.useLayoutEffect)(()=>{let e=d.current,t=h.split(" "),r=n=>{n.target===d.current&&(p(),e.removeEventListener("animationend",r),e.removeEventListener("animationcancel",r),0===v.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",r),e.addEventListener("animationcancel",r)},[]),(0,n.useEffect)(()=>{let e=d.current,t=()=>{e.removeEventListener("animationend",t),o?function(e,t,r){void 0===r&&(r=300);let{scrollHeight:n,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=n+"px",i.transition=`all ${r}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,r)})})}(e,c,s):c()};f||(u?t():(v.current=1,e.className+=` ${m}`,e.addEventListener("animationend",t)))},[f]),n.createElement(n.Fragment,null,a)}}function d(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}let f=new Map,p=[],h=new Set,m=e=>h.forEach(t=>t(e)),v=()=>f.size>0;function g(e,t){var r;if(t)return!(null==(r=f.get(t))||!r.isToastActive(e));let n=!1;return f.forEach(t=>{t.isToastActive(e)&&(n=!0)}),n}function y(e,t){u(e)&&(v()||p.push({content:e,options:t}),f.forEach(r=>{r.buildToast(e,t)}))}function b(e,t){f.forEach(r=>{null!=t&&null!=t&&t.containerId?(null==t?void 0:t.containerId)===r.id&&r.toggle(e,null==t?void 0:t.id):r.toggle(e,null==t?void 0:t.id)})}function w(e){let{delay:t,isRunning:r,closeToast:o,type:s="default",hide:l,className:u,style:c,controlledProgress:d,progress:f,rtl:p,isIn:h,theme:m}=e,v=l||d&&0===f,g={...c,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused"};d&&(g.transform=`scaleX(${f})`);let y=(0,i.Z)("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${s}`,{"Toastify__progress-bar--rtl":p}),b=a(u)?u({rtl:p,type:s,defaultClassName:y}):(0,i.Z)(y,u);return n.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":v},n.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${m} Toastify__progress-bar--${s}`}),n.createElement("div",{role:"progressbar","aria-hidden":v?"true":"false","aria-label":"notification timer",className:b,style:g,[d&&f>=1?"onTransitionEnd":"onAnimationEnd"]:d&&f<1?null:()=>{h&&o()}}))}let x=1,E=()=>""+x++;function S(e,t){return y(e,t),t.toastId}function _(e,t){return{...t,type:t&&t.type||e,toastId:t&&(s(t.toastId)||o(t.toastId))?t.toastId:E()}}function T(e){return(t,r)=>S(t,_(e,r))}function C(e,t){return S(e,_("default",t))}C.loading=(e,t)=>S(e,_("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),C.promise=function(e,t,r){let n,{pending:i,error:o,success:l}=t;i&&(n=s(i)?C.loading(i,r):C.loading(i.render,{...r,...i}));let u={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(e,t,i)=>{if(null==t)return void C.dismiss(n);let o={type:e,...u,...r,data:i},a=s(t)?{render:t}:t;return n?C.update(n,{...o,...a}):C(a.render,{...o,...a}),i},d=a(e)?e():e;return d.then(e=>c("success",l,e)).catch(e=>c("error",o,e)),d},C.success=T("success"),C.info=T("info"),C.error=T("error"),C.warning=T("warning"),C.warn=C.warning,C.dark=(e,t)=>S(e,_("default",{theme:"dark",...t})),C.dismiss=function(e){!function(e){var t;if(v()){if(null==e||s(t=e)||o(t))f.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=f.get(e.containerId);t?t.removeToast(e.id):f.forEach(t=>{t.removeToast(e.id)})}}else p=p.filter(t=>null!=e&&t.options.toastId!==e)}(e)},C.clearWaitingQueue=function(e){void 0===e&&(e={}),f.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},C.isActive=g,C.update=function(e,t){void 0===t&&(t={});let r=((e,t)=>{var r;let{containerId:n}=t;return null==(r=f.get(n||1))?void 0:r.toasts.get(e)})(e,t);if(r){let{props:n,content:i}=r,o={delay:100,...n,...t,toastId:t.toastId||e,updateId:E()};o.toastId!==e&&(o.staleId=e);let s=o.render||i;delete o.render,S(s,o)}},C.done=e=>{C.update(e,{progress:1})},C.onChange=function(e){return h.add(e),()=>{h.delete(e)}},C.play=e=>b(!0,e),C.pause=e=>b(!1,e);let k="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,P=e=>{let{theme:t,type:r,isLoading:i,...o}=e;return n.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${r})`,...o})},M={info:function(e){return n.createElement(P,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return n.createElement(P,{...e},n.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return n.createElement(P,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return n.createElement(P,{...e},n.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return n.createElement("div",{className:"Toastify__spinner"})}},O=e=>{let{isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:s,playToast:l}=function(e){var t,r;let[i,o]=(0,n.useState)(!1),[s,a]=(0,n.useState)(!1),l=(0,n.useRef)(null),u=(0,n.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:d,closeToast:p,onClick:h,closeOnClick:m}=e;function v(){o(!0)}function g(){o(!1)}function y(t){let r=l.current;u.canDrag&&r&&(u.didMove=!0,i&&g(),u.delta="x"===e.draggableDirection?t.clientX-u.start:t.clientY-u.start,u.start!==t.clientX&&(u.canCloseOnClick=!1),r.style.transform=`translate3d(${"x"===e.draggableDirection?`${u.delta}px, var(--y)`:`0, calc(${u.delta}px + var(--y))`},0)`,r.style.opacity=""+(1-Math.abs(u.delta/u.removalDistance)))}function b(){document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",b);let t=l.current;if(u.canDrag&&u.didMove&&t){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance)return a(!0),e.closeToast(),void e.collapseAll();t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}null==(r=f.get((t={id:e.toastId,containerId:e.containerId,fn:o}).containerId||1))||r.setToggle(t.id,t.fn),(0,n.useEffect)(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||g(),window.addEventListener("focus",v),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",g)}},[e.pauseOnFocusLoss]);let w={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){u.didMove=!1,document.addEventListener("pointermove",y),document.addEventListener("pointerup",b);let r=l.current;u.canCloseOnClick=!0,u.canDrag=!0,r.style.transition="none","x"===e.draggableDirection?(u.start=t.clientX,u.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(u.start=t.clientY,u.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:r,bottom:n,left:i,right:o}=l.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=i&&t.clientX<=o&&t.clientY>=r&&t.clientY<=n?g():v()}};return c&&d&&(w.onMouseEnter=g,e.stacked||(w.onMouseLeave=v)),m&&(w.onClick=e=>{h&&h(e),u.canCloseOnClick&&p()}),{playToast:v,pauseToast:g,isRunning:i,preventExitTransition:s,toastRef:l,eventHandlers:w}}(e),{closeButton:u,children:c,autoClose:d,onClick:p,type:h,hideProgressBar:m,closeToast:v,transition:g,position:y,className:b,style:x,bodyClassName:E,bodyStyle:S,progressClassName:_,progressStyle:T,updateId:C,role:k,progress:P,rtl:O,toastId:A,deleteToast:I,isIn:L,isLoading:D,closeOnClick:R,theme:N}=e,j=(0,i.Z)("Toastify__toast",`Toastify__toast-theme--${N}`,`Toastify__toast--${h}`,{"Toastify__toast--rtl":O},{"Toastify__toast--close-on-click":R}),$=a(b)?b({rtl:O,position:y,type:h,defaultClassName:j}):(0,i.Z)(j,b),V=function(e){let{theme:t,type:r,isLoading:i,icon:o}=e,s=null,l={theme:t,type:r};return!1===o||(a(o)?s=o({...l,isLoading:i}):(0,n.isValidElement)(o)?s=(0,n.cloneElement)(o,l):i?s=M.spinner():r in M&&(s=M[r](l))),s}(e),z=!!P||!d,F={closeToast:v,type:h,theme:N},B=null;return!1===u||(B=a(u)?u(F):(0,n.isValidElement)(u)?(0,n.cloneElement)(u,F):function(e){let{closeToast:t,theme:r,ariaLabel:i="close"}=e;return n.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":i},n.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},n.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(F)),n.createElement(g,{isIn:L,done:I,position:y,preventExitTransition:r,nodeRef:o,playToast:l},n.createElement("div",{id:A,onClick:p,"data-in":L,className:$,...s,style:x,ref:o},n.createElement("div",{...L&&{role:k},className:a(E)?E({type:h}):(0,i.Z)("Toastify__toast-body",E),style:S},null!=V&&n.createElement("div",{className:(0,i.Z)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!D})},V),n.createElement("div",null,c)),B,n.createElement(w,{...C&&!z?{key:`pb-${C}`}:{},rtl:O,theme:N,delay:d,isRunning:t,isIn:L,closeToast:v,hide:m,type:h,style:T,className:_,controlledProgress:z,progress:P||0})))},A=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},I=c(A("bounce",!0)),L=(c(A("slide",!0)),c(A("zoom")),c(A("flip")),{position:"top-right",transition:I,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"});function D(e){let t={...L,...e},r=e.stacked,[c,h]=(0,n.useState)(!0),v=(0,n.useRef)(null),{getToastToRender:b,isToastActive:w,count:x}=function(e){let{subscribe:t,getSnapshot:r,setProps:i}=(0,n.useRef)(function(e){let t=e.containerId||1;return{subscribe(r){let i=function(e,t,r){let i=1,c=0,f=[],p=[],h=[],m=t,v=new Map,g=new Set,y=()=>{h=Array.from(v.values()),g.forEach(e=>e())},b=e=>{p=null==e?[]:p.filter(t=>t!==e),y()},w=e=>{let{toastId:t,onOpen:i,updateId:o,children:s}=e.props,l=null==o;e.staleId&&v.delete(e.staleId),v.set(t,e),p=[...p,e.props.toastId].filter(t=>t!==e.staleId),y(),r(d(e,l?"added":"updated")),l&&a(i)&&i((0,n.isValidElement)(s)&&s.props)};return{id:e,props:m,observe:e=>(g.add(e),()=>g.delete(e)),toggle:(e,t)=>{v.forEach(r=>{null!=t&&t!==r.props.toastId||a(r.toggle)&&r.toggle(e)})},removeToast:b,toasts:v,clearQueue:()=>{c-=f.length,f=[]},buildToast:(t,p)=>{var h,g;if((t=>{let{containerId:r,toastId:n,updateId:i}=t,o=v.has(n)&&null==i;return(r?r!==e:1!==e)||o})(p))return;let{toastId:x,updateId:E,data:S,staleId:_,delay:T}=p,C=()=>{b(x)},k=null==E;k&&c++;let P={...m,style:m.toastStyle,key:i++,...Object.fromEntries(Object.entries(p).filter(e=>{let[t,r]=e;return null!=r})),toastId:x,updateId:E,data:S,closeToast:C,isIn:!1,className:l(p.className||m.toastClassName),bodyClassName:l(p.bodyClassName||m.bodyClassName),progressClassName:l(p.progressClassName||m.progressClassName),autoClose:!p.isLoading&&(h=p.autoClose,g=m.autoClose,!1===h||o(h)&&h>0?h:g),deleteToast(){let e=v.get(x),{onClose:t,children:i}=e.props;a(t)&&t((0,n.isValidElement)(i)&&i.props),r(d(e,"removed")),v.delete(x),--c<0&&(c=0),f.length>0?w(f.shift()):y()}};P.closeButton=m.closeButton,!1===p.closeButton||u(p.closeButton)?P.closeButton=p.closeButton:!0===p.closeButton&&(P.closeButton=!u(m.closeButton)||m.closeButton);let M=t;(0,n.isValidElement)(t)&&!s(t.type)?M=(0,n.cloneElement)(t,{closeToast:C,toastProps:P,data:S}):a(t)&&(M=t({closeToast:C,toastProps:P,data:S}));let O={content:M,props:P,staleId:_};m.limit&&m.limit>0&&c>m.limit&&k?f.push(O):o(T)?setTimeout(()=>{w(O)},T):w(O)},setProps(e){m=e},setToggle:(e,t)=>{v.get(e).toggle=t},isToastActive:e=>p.some(t=>t===e),getSnapshot:()=>m.newestOnTop?h.reverse():h}}(t,e,m);f.set(t,i);let c=i.observe(r);return p.forEach(e=>y(e.content,e.options)),p=[],()=>{c(),f.delete(t)}},setProps(e){var r;null==(r=f.get(t))||r.setProps(e)},getSnapshot(){var e;return null==(e=f.get(t))?void 0:e.getSnapshot()}}}(e)).current;i(e);let c=(0,n.useSyncExternalStore)(t,r,r);return{getToastToRender:function(e){if(!c)return[];let t=new Map;return c.forEach(e=>{let{position:r}=e.props;t.has(r)||t.set(r,[]),t.get(r).push(e)}),Array.from(t,t=>e(t[0],t[1]))},isToastActive:g,count:null==c?void 0:c.length}}(t),{className:E,style:S,rtl:_,containerId:T}=t;function P(){r&&(h(!0),C.play())}return k(()=>{if(r){var e;let r=v.current.querySelectorAll('[data-in="true"]'),n=null==(e=t.position)?void 0:e.includes("top"),i=0,o=0;Array.from(r).reverse().forEach((e,t)=>{e.classList.add("Toastify__toast--stacked"),t>0&&(e.dataset.collapsed=`${c}`),e.dataset.pos||(e.dataset.pos=n?"top":"bot");let r=i*(c?.2:1)+(c?0:12*t);e.style.setProperty("--y",`${n?r:-1*r}px`),e.style.setProperty("--g","12"),e.style.setProperty("--s",""+(1-(c?o:0))),i+=e.offsetHeight,o+=.025})}},[c,x,r]),n.createElement("div",{ref:v,className:"Toastify",id:T,onMouseEnter:()=>{r&&(h(!1),C.pause())},onMouseLeave:P},b((e,t)=>{let o=t.length?{...S}:{...S,pointerEvents:"none"};return n.createElement("div",{className:function(e){let t=(0,i.Z)("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":_});return a(E)?E({position:e,rtl:_,defaultClassName:t}):(0,i.Z)(t,l(E))}(e),style:o,key:`container-${e}`},t.map(e=>{let{content:t,props:i}=e;return n.createElement(O,{...i,stacked:r,collapseAll:P,isIn:w(i.toastId,i.containerId),style:i.style,key:`toast-${i.key}`},t)}))}))}},98918:function(e,t,r){"use strict";r.d(t,{o3:function(){return o}});var n=r(13433),i=r(7185);function o(e){let{swiper:t,extendParams:r,on:o}=e;r({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let s=!1,a=!1;function l(){let e;let r=t.thumbs.swiper;if(!r||r.destroyed)return;let n=r.clickedIndex,i=r.clickedSlide;i&&i.classList.contains(t.params.thumbs.slideThumbActiveClass)||null==n||(e=r.params.loop?parseInt(r.clickedSlide.getAttribute("data-swiper-slide-index"),10):n,t.params.loop?t.slideToLoop(e):t.slideTo(e))}function u(){let{thumbs:e}=t.params;if(s)return!1;s=!0;let r=t.constructor;if(e.swiper instanceof r)t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update();else if((0,i.l)(e.swiper)){let n=Object.assign({},e.swiper);Object.assign(n,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new r(n),a=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",l),!0}function c(e){let r=t.thumbs.swiper;if(!r||r.destroyed)return;let n="auto"===r.params.slidesPerView?r.slidesPerViewDynamic():r.params.slidesPerView,o=1,s=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(o=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(o=1),o=Math.floor(o),r.slides.forEach(e=>e.classList.remove(s)),r.params.loop||r.params.virtual&&r.params.virtual.enabled)for(let e=0;e{e.classList.add(s)});else for(let e=0;ee.getAttribute("data-swiper-slide-index")===`${t.realIndex}`)[0];i=r.slides.indexOf(e),o=t.activeIndex>t.previousIndex?"next":"prev"}else o=(i=t.realIndex)>t.previousIndex?"next":"prev";l&&(i+="next"===o?a:-1*a),r.visibleSlidesIndexes&&0>r.visibleSlidesIndexes.indexOf(i)&&(r.params.centeredSlides?i=i>s?i-Math.floor(n/2)+1:i+Math.floor(n/2)-1:i>s&&r.params.slidesPerGroup,r.slideTo(i,e?0:void 0))}}t.thumbs={swiper:null},o("beforeInit",()=>{let{thumbs:e}=t.params;if(e&&e.swiper){if("string"==typeof e.swiper||e.swiper instanceof HTMLElement){let r=(0,n.g)(),i=()=>{let n="string"==typeof e.swiper?r.querySelector(e.swiper):e.swiper;if(n&&n.swiper)e.swiper=n.swiper,u(),c(!0);else if(n){let r=i=>{e.swiper=i.detail[0],n.removeEventListener("init",r),u(),c(!0),e.swiper.update(),t.update()};n.addEventListener("init",r)}return n},o=()=>{!t.destroyed&&(i()||requestAnimationFrame(o))};requestAnimationFrame(o)}else u(),c(!0)}}),o("slideChange update resize observerUpdate",()=>{c()}),o("setTransition",(e,r)=>{let n=t.thumbs.swiper;n&&!n.destroyed&&n.setTransition(r)}),o("beforeDestroy",()=>{let e=t.thumbs.swiper;e&&!e.destroyed&&a&&e.destroy()}),Object.assign(t.thumbs,{init:u,update:c})}},13433:function(e,t,r){"use strict";function n(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function i(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach(r=>{void 0===e[r]?e[r]=t[r]:n(t[r])&&n(e[r])&&Object.keys(t[r]).length>0&&i(e[r],t[r])})}r.d(t,{a:function(){return l},g:function(){return s}});let o={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 s(){let e="undefined"!=typeof document?document:{};return i(e,o),e}let a={document:o,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 l(){let e="undefined"!=typeof window?window:{};return i(e,a),e}},7185:function(e,t,r){"use strict";r.d(t,{a:function(){return y},c:function(){return p},d:function(){return s},e:function(){return d},f:function(){return b},h:function(){return g},j:function(){return a},l:function(){return l},n:function(){return o},o:function(){return v},p:function(){return m},q:function(){return h},r:function(){return c},s:function(){return u},t:function(){return f},u:function(){return function e(){let t=Object(arguments.length<=0?void 0:arguments[0]),r=["__proto__","constructor","prototype"];for(let n=1;n0>r.indexOf(e));for(let r=0,o=n.length;r{try{e[t]=null}catch(e){}try{delete e[t]}catch(e){}})}function o(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function s(){return Date.now()}function a(e,t){let r,i,o;void 0===t&&(t="x");let s=(0,n.a)(),a=function(e){let t;let r=(0,n.a)();return r.getComputedStyle&&(t=r.getComputedStyle(e,null)),!t&&e.currentStyle&&(t=e.currentStyle),t||(t=e.style),t}(e);return s.WebKitCSSMatrix?((i=a.transform||a.webkitTransform).split(",").length>6&&(i=i.split(", ").map(e=>e.replace(",",".")).join(", ")),o=new s.WebKitCSSMatrix("none"===i?"":i)):r=(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(i=s.WebKitCSSMatrix?o.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(i=s.WebKitCSSMatrix?o.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),i||0}function l(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function u(e,t,r){e.style.setProperty(t,r)}function c(e){let t,{swiper:r,targetPosition:i,side:o}=e,s=(0,n.a)(),a=-r.translate,l=null,u=r.params.speed;r.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(r.cssModeFrameID);let c=i>a?"next":"prev",d=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,f=()=>{t=new Date().getTime(),null===l&&(l=t);let e=a+(.5-Math.cos(Math.max(Math.min((t-l)/u,1),0)*Math.PI)/2)*(i-a);if(d(e,i)&&(e=i),r.wrapperEl.scrollTo({[o]:e}),d(e,i)){r.wrapperEl.style.overflow="hidden",r.wrapperEl.style.scrollSnapType="",setTimeout(()=>{r.wrapperEl.style.overflow="",r.wrapperEl.scrollTo({[o]:e})}),s.cancelAnimationFrame(r.cssModeFrameID);return}r.cssModeFrameID=s.requestAnimationFrame(f)};f()}function d(e,t){return void 0===t&&(t=""),[...e.children].filter(e=>e.matches(t))}function f(e){try{console.warn(e);return}catch(e){}}function p(e,t){var r;void 0===t&&(t=[]);let n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:(void 0===(r=t)&&(r=""),r.trim().split(" ").filter(e=>!!e.trim()))),n}function h(e,t){let r=[];for(;e.previousElementSibling;){let n=e.previousElementSibling;t?n.matches(t)&&r.push(n):r.push(n),e=n}return r}function m(e,t){let r=[];for(;e.nextElementSibling;){let n=e.nextElementSibling;t?n.matches(t)&&r.push(n):r.push(n),e=n}return r}function v(e,t){return(0,n.a)().getComputedStyle(e,null).getPropertyValue(t)}function g(e){let t,r=e;if(r){for(t=0;null!==(r=r.previousSibling);)1===r.nodeType&&(t+=1);return t}}function y(e,t){let r=[],n=e.parentElement;for(;n;)t?n.matches(t)&&r.push(n):r.push(n),n=n.parentElement;return r}function b(e,t,r){let i=(0,n.a)();return r?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}},2261:function(e,t,r){"use strict";let n,i,o;r.d(t,{tq:function(){return H},o5:function(){return G}});var s=r(67294),a=r(13433),l=r(7185);function u(){return n||(n=function(){let e=(0,a.a)(),t=(0,a.g)();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),n}function c(e){return void 0===e&&(e={}),i||(i=function(e){let{userAgent:t}=void 0===e?{}:e,r=u(),n=(0,a.a)(),i=n.navigator.platform,o=t||n.navigator.userAgent,s={ios:!1,android:!1},l=n.screen.width,c=n.screen.height,d=o.match(/(Android);?[\s\/]+([\d.]+)?/),f=o.match(/(iPad).*OS\s([\d_]+)/),p=o.match(/(iPod)(.*OS\s([\d_]+))?/),h=!f&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m="MacIntel"===i;return!f&&m&&r.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${l}x${c}`)>=0&&((f=o.match(/(Version)\/([\d.]+)/))||(f=[0,1,"13_0_0"]),m=!1),d&&"Win32"!==i&&(s.os="android",s.android=!0),(f||h||p)&&(s.os="ios",s.ios=!0),s}(e)),i}let d=(e,t)=>{if(!e||e.destroyed||!e.params)return;let r=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(r){let t=r.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(r.shadowRoot?t=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(t=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`))&&t.remove()})),t&&t.remove()}},f=(e,t)=>{if(!e.slides[t])return;let r=e.slides[t].querySelector('[loading="lazy"]');r&&r.removeAttribute("loading")},p=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext,r=e.slides.length;if(!r||!t||t<0)return;t=Math.min(t,r);let n="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){let r=[i-t];r.push(...Array.from({length:t}).map((e,t)=>i+n+t)),e.slides.forEach((t,n)=>{r.includes(t.column)&&f(e,n)});return}let o=i+n-1;if(e.params.rewind||e.params.loop)for(let n=i-t;n<=o+t;n+=1){let t=(n%r+r)%r;(to)&&f(e,t)}else for(let n=Math.max(i-t,0);n<=Math.min(o+t,r-1);n+=1)n!==i&&(n>o||ns?"next":o=n.innerWidth-s)||"prevent"===o&&(t.preventDefault(),!0)}function v(e){let t=(0,a.g)(),r=e;r.originalEvent&&(r=r.originalEvent);let n=this.touchEventsData;if("pointerdown"===r.type){if(null!==n.pointerId&&n.pointerId!==r.pointerId)return;n.pointerId=r.pointerId}else"touchstart"===r.type&&1===r.targetTouches.length&&(n.touchId=r.targetTouches[0].identifier);if("touchstart"===r.type){m(this,r,r.targetTouches[0].pageX);return}let{params:i,touches:o,enabled:s}=this;if(!s||!i.simulateTouch&&"mouse"===r.pointerType||this.animating&&i.preventInteractionOnTransition)return;!this.animating&&i.cssMode&&i.loop&&this.loopFix();let u=r.target;if("wrapper"===i.touchEventsTarget&&!this.wrapperEl.contains(u)||"which"in r&&3===r.which||"button"in r&&r.button>0||n.isTouched&&n.isMoved)return;let c=!!i.noSwipingClass&&""!==i.noSwipingClass,d=r.composedPath?r.composedPath():r.path;c&&r.target&&r.target.shadowRoot&&d&&(u=d[0]);let f=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,p=!!(r.target&&r.target.shadowRoot);if(i.noSwiping&&(p?function(e,t){return void 0===t&&(t=this),function t(r){if(!r||r===(0,a.g)()||r===(0,a.a)())return null;r.assignedSlot&&(r=r.assignedSlot);let n=r.closest(e);return n||r.getRootNode?n||t(r.getRootNode().host):null}(t)}(f,u):u.closest(f))){this.allowClick=!0;return}if(i.swipeHandler&&!u.closest(i.swipeHandler))return;o.currentX=r.pageX,o.currentY=r.pageY;let h=o.currentX,v=o.currentY;if(!m(this,r,h))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=h,o.startY=v,n.touchStartTime=(0,l.d)(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,i.threshold>0&&(n.allowThresholdMove=!1);let g=!0;u.matches(n.focusableElements)&&(g=!1,"SELECT"===u.nodeName&&(n.isTouched=!1)),t.activeElement&&t.activeElement.matches(n.focusableElements)&&t.activeElement!==u&&t.activeElement.blur();let y=g&&this.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||y)&&!u.isContentEditable&&r.preventDefault(),i.freeMode&&i.freeMode.enabled&&this.freeMode&&this.animating&&!i.cssMode&&this.freeMode.onTouchStart(),this.emit("touchStart",r)}function g(e){let t,r;let n=(0,a.g)(),i=this.touchEventsData,{params:o,touches:s,rtlTranslate:u,enabled:c}=this;if(!c||!o.simulateTouch&&"mouse"===e.pointerType)return;let d=e;if(d.originalEvent&&(d=d.originalEvent),"pointermove"===d.type&&(null!==i.touchId||d.pointerId!==i.pointerId))return;if("touchmove"===d.type){if(!(t=[...d.changedTouches].filter(e=>e.identifier===i.touchId)[0])||t.identifier!==i.touchId)return}else t=d;if(!i.isTouched){i.startMoving&&i.isScrolling&&this.emit("touchMoveOpposite",d);return}let f=t.pageX,p=t.pageY;if(d.preventedByNestedSwiper){s.startX=f,s.startY=p;return}if(!this.allowTouchMove){d.target.matches(i.focusableElements)||(this.allowClick=!1),i.isTouched&&(Object.assign(s,{startX:f,startY:p,currentX:f,currentY:p}),i.touchStartTime=(0,l.d)());return}if(o.touchReleaseOnEdges&&!o.loop){if(this.isVertical()){if(ps.startY&&this.translate>=this.minTranslate()){i.isTouched=!1,i.isMoved=!1;return}}else if(fs.startX&&this.translate>=this.minTranslate())return}if(n.activeElement&&d.target===n.activeElement&&d.target.matches(i.focusableElements)){i.isMoved=!0,this.allowClick=!1;return}i.allowTouchCallbacks&&this.emit("touchMove",d),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=f,s.currentY=p;let h=s.currentX-s.startX,m=s.currentY-s.startY;if(this.params.threshold&&Math.sqrt(h**2+m**2)=25&&(e=180*Math.atan2(Math.abs(m),Math.abs(h))/Math.PI,i.isScrolling=this.isHorizontal()?e>o.touchAngle:90-e>o.touchAngle)}if(i.isScrolling&&this.emit("touchMoveOpposite",d),void 0===i.startMoving&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(i.startMoving=!0),i.isScrolling){i.isTouched=!1;return}if(!i.startMoving)return;this.allowClick=!1,!o.cssMode&&d.cancelable&&d.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&d.stopPropagation();let v=this.isHorizontal()?h:m,g=this.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;o.oneWayMovement&&(v=Math.abs(v)*(u?1:-1),g=Math.abs(g)*(u?1:-1)),s.diff=v,v*=o.touchRatio,u&&(v=-v,g=-g);let y=this.touchesDirection;this.swipeDirection=v>0?"prev":"next",this.touchesDirection=g>0?"prev":"next";let b=this.params.loop&&!o.cssMode,w="next"===this.touchesDirection&&this.allowSlideNext||"prev"===this.touchesDirection&&this.allowSlidePrev;if(!i.isMoved){if(b&&w&&this.loopFix({direction:this.swipeDirection}),i.startTranslate=this.getTranslate(),this.setTransition(0),this.animating){let e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});this.wrapperEl.dispatchEvent(e)}i.allowMomentumBounce=!1,o.grabCursor&&(!0===this.allowSlideNext||!0===this.allowSlidePrev)&&this.setGrabCursor(!0),this.emit("sliderFirstMove",d)}if(new Date().getTime(),i.isMoved&&i.allowThresholdMove&&y!==this.touchesDirection&&b&&w&&Math.abs(v)>=1){Object.assign(s,{startX:f,startY:p,currentX:f,currentY:p,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,i.startTranslate=i.currentTranslate;return}this.emit("sliderMove",d),i.isMoved=!0,i.currentTranslate=v+i.startTranslate;let x=!0,E=o.resistanceRatio;if(o.touchReleaseOnEdges&&(E=0),v>0?(b&&w&&!r&&i.allowThresholdMove&&i.currentTranslate>(o.centeredSlides?this.minTranslate()-this.slidesSizesGrid[this.activeIndex+1]:this.minTranslate())&&this.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>this.minTranslate()&&(x=!1,o.resistance&&(i.currentTranslate=this.minTranslate()-1+(-this.minTranslate()+i.startTranslate+v)**E))):v<0&&(b&&w&&!r&&i.allowThresholdMove&&i.currentTranslate<(o.centeredSlides?this.maxTranslate()+this.slidesSizesGrid[this.slidesSizesGrid.length-1]:this.maxTranslate())&&this.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:this.slides.length-("auto"===o.slidesPerView?this.slidesPerViewDynamic():Math.ceil(parseFloat(o.slidesPerView,10)))}),i.currentTranslatei.startTranslate&&(i.currentTranslate=i.startTranslate),this.allowSlidePrev||this.allowSlideNext||(i.currentTranslate=i.startTranslate),o.threshold>0){if(Math.abs(v)>o.threshold||i.allowThresholdMove){if(!i.allowThresholdMove){i.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,i.currentTranslate=i.startTranslate,s.diff=this.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{i.currentTranslate=i.startTranslate;return}}o.followFinger&&!o.cssMode&&((o.freeMode&&o.freeMode.enabled&&this.freeMode||o.watchSlidesProgress)&&(this.updateActiveIndex(),this.updateSlidesClasses()),o.freeMode&&o.freeMode.enabled&&this.freeMode&&this.freeMode.onTouchMove(),this.updateProgress(i.currentTranslate),this.setTranslate(i.currentTranslate))}function y(e){let t,r;let n=this,i=n.touchEventsData,o=e;if(o.originalEvent&&(o=o.originalEvent),"touchend"===o.type||"touchcancel"===o.type){if(!(t=[...o.changedTouches].filter(e=>e.identifier===i.touchId)[0])||t.identifier!==i.touchId)return}else{if(null!==i.touchId||o.pointerId!==i.pointerId)return;t=o}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(o.type)&&!(["pointercancel","contextmenu"].includes(o.type)&&(n.browser.isSafari||n.browser.isWebView)))return;i.pointerId=null,i.touchId=null;let{params:s,touches:a,rtlTranslate:u,slidesGrid:c,enabled:d}=n;if(!d||!s.simulateTouch&&"mouse"===o.pointerType)return;if(i.allowTouchCallbacks&&n.emit("touchEnd",o),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&s.grabCursor&&n.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}s.grabCursor&&i.isMoved&&i.isTouched&&(!0===n.allowSlideNext||!0===n.allowSlidePrev)&&n.setGrabCursor(!1);let f=(0,l.d)(),p=f-i.touchStartTime;if(n.allowClick){let e=o.path||o.composedPath&&o.composedPath();n.updateClickedSlide(e&&e[0]||o.target,e),n.emit("tap click",o),p<300&&f-i.lastClickTime<300&&n.emit("doubleTap doubleClick",o)}if(i.lastClickTime=(0,l.d)(),(0,l.n)(()=>{n.destroyed||(n.allowClick=!0)}),!i.isTouched||!i.isMoved||!n.swipeDirection||0===a.diff&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,r=s.followFinger?u?n.translate:-n.translate:-i.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){n.freeMode.onTouchEnd({currentPos:r});return}let h=r>=-n.maxTranslate()&&!n.params.loop,m=0,v=n.slidesSizesGrid[0];for(let e=0;e=c[e]&&r=c[e])&&(m=e,v=c[c.length-1]-c[c.length-2])}let g=null,y=null;s.rewind&&(n.isBeginning?y=s.virtual&&s.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1:n.isEnd&&(g=0));let b=(r-c[m])/v,w=ms.longSwipesMs){if(!s.longSwipes){n.slideTo(n.activeIndex);return}"next"===n.swipeDirection&&(b>=s.longSwipesRatio?n.slideTo(s.rewind&&n.isEnd?g:m+w):n.slideTo(m)),"prev"===n.swipeDirection&&(b>1-s.longSwipesRatio?n.slideTo(m+w):null!==y&&b<0&&Math.abs(b)>s.longSwipesRatio?n.slideTo(y):n.slideTo(m))}else{if(!s.shortSwipes){n.slideTo(n.activeIndex);return}n.navigation&&(o.target===n.navigation.nextEl||o.target===n.navigation.prevEl)?o.target===n.navigation.nextEl?n.slideTo(m+w):n.slideTo(m):("next"===n.swipeDirection&&n.slideTo(null!==g?g:m+w),"prev"===n.swipeDirection&&n.slideTo(null!==y?y:m))}}function b(){let e=this,{params:t,el:r}=e;if(r&&0===r.offsetWidth)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:n,allowSlidePrev:i,snapGrid:o}=e,s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();let a=s&&t.loop;"auto"!==t.slidesPerView&&!(t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||a?e.params.loop&&!s?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(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=n,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function w(e){this.enabled&&!this.allowClick&&(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function x(){let{wrapperEl:e,rtlTranslate:t,enabled:r}=this;if(!r)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 n=this.maxTranslate()-this.minTranslate();(0===n?0:(this.translate-this.minTranslate())/n)!==this.progress&&this.updateProgress(t?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)}function E(e){d(this,e.target),!this.params.cssMode&&("auto"===this.params.slidesPerView||this.params.autoHeight)&&this.update()}function S(){!this.documentTouchHandlerProceeded&&(this.documentTouchHandlerProceeded=!0,this.params.touchReleaseOnEdges&&(this.el.style.touchAction="auto"))}let _=(e,t)=>{let r=(0,a.g)(),{params:n,el:i,wrapperEl:o,device:s}=e,l=!!n.nested,u="on"===t?"addEventListener":"removeEventListener";r[u]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:l}),i[u]("touchstart",e.onTouchStart,{passive:!1}),i[u]("pointerdown",e.onTouchStart,{passive:!1}),r[u]("touchmove",e.onTouchMove,{passive:!1,capture:l}),r[u]("pointermove",e.onTouchMove,{passive:!1,capture:l}),r[u]("touchend",e.onTouchEnd,{passive:!0}),r[u]("pointerup",e.onTouchEnd,{passive:!0}),r[u]("pointercancel",e.onTouchEnd,{passive:!0}),r[u]("touchcancel",e.onTouchEnd,{passive:!0}),r[u]("pointerout",e.onTouchEnd,{passive:!0}),r[u]("pointerleave",e.onTouchEnd,{passive:!0}),r[u]("contextmenu",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&i[u]("click",e.onClick,!0),n.cssMode&&o[u]("scroll",e.onScroll),n.updateOnWindowResize?e[t](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",b,!0):e[t]("observerUpdate",b,!0),i[u]("load",e.onLoad,{capture:!0})},T=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var C={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",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,loopAddBlankSlides:!0,loopAdditionalSlides:0,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",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};let k={eventsEmitter:{on(e,t,r){let n=this;if(!n.eventsListeners||n.destroyed||"function"!=typeof t)return n;let i=r?"unshift":"push";return e.split(" ").forEach(e=>{n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][i](t)}),n},once(e,t,r){let n=this;if(!n.eventsListeners||n.destroyed||"function"!=typeof t)return n;function i(){n.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var r=arguments.length,o=Array(r),s=0;sthis.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 r=this;return r.eventsListeners&&!r.destroyed&&r.eventsListeners&&e.split(" ").forEach(e=>{void 0===t?r.eventsListeners[e]=[]:r.eventsListeners[e]&&r.eventsListeners[e].forEach((n,i)=>{(n===t||n.__emitterProxy&&n.__emitterProxy===t)&&r.eventsListeners[e].splice(i,1)})}),r},emit(){let e,t,r;let n=this;if(!n.eventsListeners||n.destroyed||!n.eventsListeners)return n;for(var i=arguments.length,o=Array(i),s=0;s{n.eventsAnyListeners&&n.eventsAnyListeners.length&&n.eventsAnyListeners.forEach(n=>{n.apply(r,[e,...t])}),n.eventsListeners&&n.eventsListeners[e]&&n.eventsListeners[e].forEach(e=>{e.apply(r,t)})}),n}},update:{updateSize:function(){let e,t;let r=this.el;e=void 0!==this.params.width&&null!==this.params.width?this.params.width:r.clientWidth,t=void 0!==this.params.height&&null!==this.params.height?this.params.height:r.clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt((0,l.o)(r,"padding-left")||0,10)-parseInt((0,l.o)(r,"padding-right")||0,10),t=t-parseInt((0,l.o)(r,"padding-top")||0,10)-parseInt((0,l.o)(r,"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 r(e,r){return parseFloat(e.getPropertyValue(t.getDirectionLabel(r))||0)}let n=t.params,{wrapperEl:i,slidesEl:o,size:s,rtlTranslate:a,wrongRTL:u}=t,c=t.virtual&&n.virtual.enabled,d=c?t.virtual.slides.length:t.slides.length,f=(0,l.e)(o,`.${t.params.slideClass}, swiper-slide`),p=c?t.virtual.slides.length:f.length,h=[],m=[],v=[],g=n.slidesOffsetBefore;"function"==typeof g&&(g=n.slidesOffsetBefore.call(t));let y=n.slidesOffsetAfter;"function"==typeof y&&(y=n.slidesOffsetAfter.call(t));let b=t.snapGrid.length,w=t.slidesGrid.length,x=n.spaceBetween,E=-g,S=0,_=0;if(void 0===s)return;"string"==typeof x&&x.indexOf("%")>=0?x=parseFloat(x.replace("%",""))/100*s:"string"==typeof x&&(x=parseFloat(x)),t.virtualSize=-x,f.forEach(e=>{a?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&((0,l.s)(i,"--swiper-centered-offset-before",""),(0,l.s)(i,"--swiper-centered-offset-after",""));let T=n.grid&&n.grid.rows>1&&t.grid;T?t.grid.initSlides(f):t.grid&&t.grid.unsetSlides();let C="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>void 0!==n.breakpoints[e].slidesPerView).length>0;for(let i=0;iMath.abs(E)&&(E=0),n.roundLengths&&(E=Math.floor(E)),_%n.slidesPerGroup==0&&h.push(E),m.push(E)):(n.roundLengths&&(E=Math.floor(E)),(_-Math.min(t.params.slidesPerGroupSkip,_))%t.params.slidesPerGroup==0&&h.push(E),m.push(E),E=E+e+x),t.virtualSize+=e+x,S=e,_+=1}}if(t.virtualSize=Math.max(t.virtualSize,s)+y,a&&u&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=`${t.virtualSize+x}px`),n.setWrapperSize&&(i.style[t.getDirectionLabel("width")]=`${t.virtualSize+x}px`),T&&t.grid.updateWrapperSize(e,h),!n.centeredSlides){let e=[];for(let r=0;r1&&h.push(t.virtualSize-s)}if(c&&n.loop){let e=v[0]+x;if(n.slidesPerGroup>1){let r=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/n.slidesPerGroup),i=e*n.slidesPerGroup;for(let e=0;e!n.cssMode||!!n.loop||t!==f.length-1).forEach(t=>{t.style[e]=`${x}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;v.forEach(t=>{e+=t+(x||0)});let t=(e-=x)-s;h=h.map(e=>e<=0?-g:e>t?t+y:e)}if(n.centerInsufficientSlides){let e=0;if(v.forEach(t=>{e+=t+(x||0)}),(e-=x){h[r]=e-t}),m.forEach((e,r)=>{m[r]=e+t})}}if(Object.assign(t,{slides:f,snapGrid:h,slidesGrid:m,slidesSizesGrid:v}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){(0,l.s)(i,"--swiper-centered-offset-before",`${-h[0]}px`),(0,l.s)(i,"--swiper-centered-offset-after",`${t.size/2-v[v.length-1]/2}px`);let e=-t.snapGrid[0],r=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(t=>t+e),t.slidesGrid=t.slidesGrid.map(e=>e+r)}if(p!==d&&t.emit("slidesLengthChange"),h.length!==b&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),m.length!==w&&t.emit("slidesGridLengthChange"),n.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!c&&!n.cssMode&&("slide"===n.effect||"fade"===n.effect)){let e=`${n.containerModifierClass}backface-hidden`,r=t.el.classList.contains(e);p<=n.maxBackfaceHiddenSlides?r||t.el.classList.add(e):r&&t.el.classList.remove(e)}},updateAutoHeight:function(e){let t;let r=this,n=[],i=r.virtual&&r.params.virtual.enabled,o=0;"number"==typeof e?r.setTransition(e):!0===e&&r.setTransition(r.params.speed);let s=e=>i?r.slides[r.getSlideIndexByData(e)]:r.slides[e];if("auto"!==r.params.slidesPerView&&r.params.slidesPerView>1){if(r.params.centeredSlides)(r.visibleSlides||[]).forEach(e=>{n.push(e)});else for(t=0;tr.slides.length&&!i)break;n.push(s(e))}}else n.push(s(r.activeIndex));for(t=0;to?e:o}(o||0===o)&&(r.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){let e=this.slides,t=this.isElement?this.isHorizontal()?this.wrapperEl.offsetLeft:this.wrapperEl.offsetTop:0;for(let r=0;r{e.classList.remove(t.slideVisibleClass,t.slideFullyVisibleClass)}),this.visibleSlidesIndexes=[],this.visibleSlides=[];let s=t.spaceBetween;"string"==typeof s&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*this.size:"string"==typeof s&&(s=parseFloat(s));for(let e=0;e=0&&d<=this.size-this.slidesSizesGrid[e];(d>=0&&d1&&f<=this.size||d<=0&&f>=this.size)&&(this.visibleSlides.push(a),this.visibleSlidesIndexes.push(e),r[e].classList.add(t.slideVisibleClass)),p&&r[e].classList.add(t.slideFullyVisibleClass),a.progress=n?-u:u,a.originalProgress=n?-c:c}},updateProgress:function(e){if(void 0===e){let t=this.rtlTranslate?-1:1;e=this&&this.translate&&this.translate*t||0}let t=this.params,r=this.maxTranslate()-this.minTranslate(),{progress:n,isBeginning:i,isEnd:o,progressLoop:s}=this,a=i,l=o;if(0===r)n=0,i=!0,o=!0;else{n=(e-this.minTranslate())/r;let t=1>Math.abs(e-this.minTranslate()),s=1>Math.abs(e-this.maxTranslate());i=t||n<=0,o=s||n>=1,t&&(n=0),s&&(n=1)}if(t.loop){let t=this.getSlideIndexByData(0),r=this.getSlideIndexByData(this.slides.length-1),n=this.slidesGrid[t],i=this.slidesGrid[r],o=this.slidesGrid[this.slidesGrid.length-1],a=Math.abs(e);(s=a>=n?(a-n)/o:(a+o-i)/o)>1&&(s-=1)}Object.assign(this,{progress:n,progressLoop:s,isBeginning:i,isEnd:o}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&this.updateSlidesProgress(e),i&&!a&&this.emit("reachBeginning toEdge"),o&&!l&&this.emit("reachEnd toEdge"),(a&&!i||l&&!o)&&this.emit("fromEdge"),this.emit("progress",n)},updateSlidesClasses:function(){let e,t,r;let{slides:n,params:i,slidesEl:o,activeIndex:s}=this,a=this.virtual&&i.virtual.enabled,u=this.grid&&i.grid&&i.grid.rows>1,c=e=>(0,l.e)(o,`.${i.slideClass}${e}, swiper-slide${e}`)[0];if(n.forEach(e=>{e.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)}),a){if(i.loop){let t=s-this.virtual.slidesBefore;t<0&&(t=this.virtual.slides.length+t),t>=this.virtual.slides.length&&(t-=this.virtual.slides.length),e=c(`[data-swiper-slide-index="${t}"]`)}else e=c(`[data-swiper-slide-index="${s}"]`)}else u?(e=n.filter(e=>e.column===s)[0],r=n.filter(e=>e.column===s+1)[0],t=n.filter(e=>e.column===s-1)[0]):e=n[s];e&&(e.classList.add(i.slideActiveClass),u?r&&r.classList.add(i.slideNextClass):(r=(0,l.p)(e,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!r&&(r=n[0]),r&&r.classList.add(i.slideNextClass),t=(0,l.q)(e,`.${i.slideClass}, swiper-slide`)[0],i.loop),t&&t.classList.add(i.slidePrevClass)),this.emitSlidesClasses()},updateActiveIndex:function(e){let t,r;let n=this,i=n.rtlTranslate?n.translate:-n.translate,{snapGrid:o,params:s,activeIndex:a,realIndex:l,snapIndex:u}=n,c=e,d=e=>{let t=e-n.virtual.slidesBefore;return t<0&&(t=n.virtual.slides.length+t),t>=n.virtual.slides.length&&(t-=n.virtual.slides.length),t};if(void 0===c&&(c=function(e){let t;let{slidesGrid:r,params:n}=e,i=e.rtlTranslate?e.translate:-e.translate;for(let e=0;e=r[e]&&i=r[e]&&i=r[e]&&(t=e);return n.normalizeSlideIndex&&(t<0||void 0===t)&&(t=0),t}(n)),o.indexOf(i)>=0)t=o.indexOf(i);else{let e=Math.min(s.slidesPerGroupSkip,c);t=e+Math.floor((c-e)/s.slidesPerGroup)}if(t>=o.length&&(t=o.length-1),c===a&&!n.params.loop){t!==u&&(n.snapIndex=t,n.emit("snapIndexChange"));return}if(c===a&&n.params.loop&&n.virtual&&n.params.virtual.enabled){n.realIndex=d(c);return}let f=n.grid&&s.grid&&s.grid.rows>1;if(n.virtual&&s.virtual.enabled&&s.loop)r=d(c);else if(f){let e=n.slides.filter(e=>e.column===c)[0],t=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(t)&&(t=Math.max(n.slides.indexOf(e),0)),r=Math.floor(t/s.grid.rows)}else if(n.slides[c]){let e=n.slides[c].getAttribute("data-swiper-slide-index");r=e?parseInt(e,10):c}else r=c;Object.assign(n,{previousSnapIndex:u,snapIndex:t,previousRealIndex:l,realIndex:r,previousIndex:a,activeIndex:c}),n.initialized&&p(n),n.emit("activeIndexChange"),n.emit("snapIndexChange"),(n.initialized||n.params.runCallbacksOnInit)&&(l!==r&&n.emit("realIndexChange"),n.emit("slideChange"))},updateClickedSlide:function(e,t){let r;let n=this.params,i=e.closest(`.${n.slideClass}, swiper-slide`);!i&&this.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!i&&e.matches&&e.matches(`.${n.slideClass}, swiper-slide`)&&(i=e)});let o=!1;if(i){for(let e=0;ec?c:n&&e=c.length&&(y=c.length-1);let b=-c[y];if(u.normalizeSlideIndex)for(let e=0;e=r&&t=r&&t=r&&(a=e)}if(s.initialized&&a!==p&&(!s.allowSlideNext&&(h?b>s.translate&&b>s.minTranslate():bs.translate&&b>s.maxTranslate()&&(p||0)!==a))return!1;if(a!==(f||0)&&r&&s.emit("beforeSlideChangeStart"),s.updateProgress(b),o=a>p?"next":a0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[e?"scrollLeft":"scrollTop"]=r})):m[e?"scrollLeft":"scrollTop"]=r,t&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1})}else{if(!s.support.smoothScroll)return(0,l.r)({swiper:s,targetPosition:r,side:e?"left":"top"}),!0;m.scrollTo({[e?"left":"top"]:r,behavior:"smooth"})}return!0}return s.setTransition(t),s.setTranslate(b),s.updateActiveIndex(a),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,n),s.transitionStart(r,o),0===t?s.transitionEnd(r,o):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(e){s&&!s.destroyed&&e.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(r,o))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,r,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===r&&(r=!0),"string"==typeof e&&(e=parseInt(e,10));let i=this;if(i.destroyed)return;let o=i.grid&&i.params.grid&&i.params.grid.rows>1,s=e;if(i.params.loop){if(i.virtual&&i.params.virtual.enabled)s+=i.virtual.slidesBefore;else{let e;if(o){let t=s*i.params.grid.rows;e=i.slides.filter(e=>1*e.getAttribute("data-swiper-slide-index")===t)[0].column}else e=i.getSlideIndexByData(s);let t=o?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:r}=i.params,n=i.params.slidesPerView;"auto"===n?n=i.slidesPerViewDynamic():(n=Math.ceil(parseFloat(i.params.slidesPerView,10)),r&&n%2==0&&(n+=1));let a=t-e1*t.getAttribute("data-swiper-slide-index")===e)[0].column}else s=i.getSlideIndexByData(s)}}return requestAnimationFrame(()=>{i.slideTo(s,t,r,n)}),i},slideNext:function(e,t,r){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);let n=this,{enabled:i,params:o,animating:s}=n;if(!i||n.destroyed)return n;let a=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(a=Math.max(n.slidesPerViewDynamic("current",!0),1));let l=n.activeIndex{n.slideTo(n.activeIndex+l,e,t,r)}),!0}return o.rewind&&n.isEnd?n.slideTo(0,e,t,r):n.slideTo(n.activeIndex+l,e,t,r)},slidePrev:function(e,t,r){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);let n=this,{params:i,snapGrid:o,slidesGrid:s,rtlTranslate:a,enabled:l,animating:u}=n;if(!l||n.destroyed)return n;let c=n.virtual&&i.virtual.enabled;if(i.loop){if(u&&!c&&i.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let f=d(a?n.translate:-n.translate),p=o.map(e=>d(e)),h=o[p.indexOf(f)-1];if(void 0===h&&i.cssMode){let e;o.forEach((t,r)=>{f>=t&&(e=r)}),void 0!==e&&(h=o[e>0?e-1:e])}let m=0;if(void 0!==h&&((m=s.indexOf(h))<0&&(m=n.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(m=Math.max(m=m-n.slidesPerViewDynamic("previous",!0)+1,0))),i.rewind&&n.isBeginning){let i=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(i,e,t,r)}return i.loop&&0===n.activeIndex&&i.cssMode?(requestAnimationFrame(()=>{n.slideTo(m,e,t,r)}),!0):n.slideTo(m,e,t,r)},slideReset:function(e,t,r){if(void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),!this.destroyed)return this.slideTo(this.activeIndex,e,t,r)},slideToClosest:function(e,t,r,n){if(void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===n&&(n=.5),this.destroyed)return;let i=this.activeIndex,o=Math.min(this.params.slidesPerGroupSkip,i),s=o+Math.floor((i-o)/this.params.slidesPerGroup),a=this.rtlTranslate?this.translate:-this.translate;if(a>=this.snapGrid[s]){let e=this.snapGrid[s];a-e>(this.snapGrid[s+1]-e)*n&&(i+=this.params.slidesPerGroup)}else{let e=this.snapGrid[s-1];a-e<=(this.snapGrid[s]-e)*n&&(i-=this.params.slidesPerGroup)}return i=Math.min(i=Math.max(i,0),this.slidesGrid.length-1),this.slideTo(i,e,t,r)},slideToClickedSlide:function(){let e;let t=this;if(t.destroyed)return;let{params:r,slidesEl:n}=t,i="auto"===r.slidesPerView?t.slidesPerViewDynamic():r.slidesPerView,o=t.clickedIndex,s=t.isElement?"swiper-slide":`.${r.slideClass}`;if(r.loop){if(t.animating)return;e=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),r.centeredSlides?ot.slides.length-t.loopedSlides+i/2?(t.loopFix(),o=t.getSlideIndex((0,l.e)(n,`${s}[data-swiper-slide-index="${e}"]`)[0]),(0,l.n)(()=>{t.slideTo(o)})):t.slideTo(o):o>t.slides.length-i?(t.loopFix(),o=t.getSlideIndex((0,l.e)(n,`${s}[data-swiper-slide-index="${e}"]`)[0]),(0,l.n)(()=>{t.slideTo(o)})):t.slideTo(o)}else t.slideTo(o)}},loop:{loopCreate:function(e){let t=this,{params:r,slidesEl:n}=t;if(!r.loop||t.virtual&&t.params.virtual.enabled)return;let i=t.grid&&r.grid&&r.grid.rows>1,o=r.slidesPerGroup*(i?r.grid.rows:1),s=t.slides.length%o!=0,a=i&&t.slides.length%r.grid.rows!=0,u=e=>{for(let n=0;n{e.setAttribute("data-swiper-slide-index",t)}),t.loopFix({slideRealIndex:e,direction:r.centeredSlides?void 0:"next"})},loopFix:function(e){let{slideRealIndex:t,slideTo:r=!0,direction:n,setTranslate:i,activeSlideIndex:o,byController:s,byMousewheel:a}=void 0===e?{}:e,u=this;if(!u.params.loop)return;u.emit("beforeLoopFix");let{slides:c,allowSlidePrev:d,allowSlideNext:f,slidesEl:p,params:h}=u,{centeredSlides:m}=h;if(u.allowSlidePrev=!0,u.allowSlideNext=!0,u.virtual&&h.virtual.enabled){r&&(h.centeredSlides||0!==u.snapIndex?h.centeredSlides&&u.snapIndex1;c.lengthe.classList.contains(h.slideActiveClass))[0]):E=o;let S="next"===n||!n,_="prev"===n||!n,T=0,C=0,k=b?Math.ceil(c.length/h.grid.rows):c.length,P=(b?c[o].column:o)+(m&&void 0===i?-v/2+.5:0);if(P=0;t-=1)c[t].column===e&&w.push(t)}else w.push(k-t-1)}}else if(P+v>k-y){C=Math.max(P-(k-2*y),g);for(let e=0;e{e.column===t&&x.push(r)}):x.push(t)}}if(u.__preventObserver__=!0,requestAnimationFrame(()=>{u.__preventObserver__=!1}),_&&w.forEach(e=>{c[e].swiperLoopMoveDOM=!0,p.prepend(c[e]),c[e].swiperLoopMoveDOM=!1}),S&&x.forEach(e=>{c[e].swiperLoopMoveDOM=!0,p.append(c[e]),c[e].swiperLoopMoveDOM=!1}),u.recalcSlides(),"auto"===h.slidesPerView?u.updateSlides():b&&(w.length>0&&_||x.length>0&&S)&&u.slides.forEach((e,t)=>{u.grid.updateSlide(t,e,u.slides)}),h.watchSlidesProgress&&u.updateSlidesOffset(),r){if(w.length>0&&_){if(void 0===t){let e=u.slidesGrid[E],t=u.slidesGrid[E+T]-e;a?u.setTranslate(u.translate-t):(u.slideTo(E+Math.ceil(T),0,!1,!0),i&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-t,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-t))}else if(i){let e=b?w.length/h.grid.rows:w.length;u.slideTo(u.activeIndex+e,0,!1,!0),u.touchEventsData.currentTranslate=u.translate}}else if(x.length>0&&S){if(void 0===t){let e=u.slidesGrid[E],t=u.slidesGrid[E-C]-e;a?u.setTranslate(u.translate-t):(u.slideTo(E-C,0,!1,!0),i&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-t,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-t))}else{let e=b?x.length/h.grid.rows:x.length;u.slideTo(u.activeIndex-e,0,!1,!0)}}}if(u.allowSlidePrev=d,u.allowSlideNext=f,u.controller&&u.controller.control&&!s){let e={slideRealIndex:t,direction:n,setTranslate:i,activeSlideIndex:o,byController:!0};Array.isArray(u.controller.control)?u.controller.control.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===h.slidesPerView&&r})}):u.controller.control instanceof u.constructor&&u.controller.control.params.loop&&u.controller.control.loopFix({...e,slideTo:u.controller.control.params.slidesPerView===h.slidesPerView&&r})}u.emit("loopFix")},loopDestroy:function(){let{params:e,slidesEl:t}=this;if(!e.loop||this.virtual&&this.params.virtual.enabled)return;this.recalcSlides();let r=[];this.slides.forEach(e=>{r[void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex]=e}),this.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),r.forEach(e=>{t.append(e)}),this.recalcSlides(),this.slideTo(this.realIndex,0)}},grabCursor:{setGrabCursor:function(e){let t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;let r="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),r.style.cursor="move",r.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){let e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){let{params:e}=this;this.onTouchStart=v.bind(this),this.onTouchMove=g.bind(this),this.onTouchEnd=y.bind(this),this.onDocumentTouchStart=S.bind(this),e.cssMode&&(this.onScroll=x.bind(this)),this.onClick=w.bind(this),this.onLoad=E.bind(this),_(this,"on")},detachEvents:function(){_(this,"off")}},breakpoints:{setBreakpoint:function(){let e=this,{realIndex:t,initialized:r,params:n,el:i}=e,o=n.breakpoints;if(!o||o&&0===Object.keys(o).length)return;let s=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!s||e.currentBreakpoint===s)return;let a=(s in o?o[s]:void 0)||e.originalParams,u=T(e,n),c=T(e,a),d=n.enabled;u&&!c?(i.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&c&&(i.classList.add(`${n.containerModifierClass}grid`),(a.grid.fill&&"column"===a.grid.fill||!a.grid.fill&&"column"===n.grid.fill)&&i.classList.add(`${n.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===a[t])return;let r=n[t]&&n[t].enabled,i=a[t]&&a[t].enabled;r&&!i&&e[t].disable(),!r&&i&&e[t].enable()});let f=a.direction&&a.direction!==n.direction,p=n.loop&&(a.slidesPerView!==n.slidesPerView||f),h=n.loop;f&&r&&e.changeDirection(),(0,l.u)(e.params,a);let m=e.params.enabled,v=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!m?e.disable():!d&&m&&e.enable(),e.currentBreakpoint=s,e.emit("_beforeBreakpoint",a),r&&(p?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!h&&v?(e.loopCreate(t),e.updateSlides()):h&&!v&&e.loopDestroy()),e.emit("breakpoint",a)},getBreakpoint:function(e,t,r){if(void 0===t&&(t="window"),!e||"container"===t&&!r)return;let n=!1,i=(0,a.a)(),o="window"===t?i.innerHeight:r.clientHeight,s=Object.keys(e).map(e=>"string"==typeof e&&0===e.indexOf("@")?{value:o*parseFloat(e.substr(1)),point:e}:{value:e,point:e});s.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;et}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:r,el:n,device:i}=this,o=function(e,t){let r=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(n=>{e[n]&&r.push(t+n)}):"string"==typeof e&&r.push(t+e)}),r}(["initialized",t.direction,{"free-mode":this.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:r},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&"column"===t.grid.fill},{android:i.android},{ios:i.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...o),n.classList.add(...e),this.emitContainerClasses()},removeClasses:function(){let{el:e,classNames:t}=this;e.classList.remove(...t),this.emitContainerClasses()}}},P={};class M{constructor(){let e,t;for(var r=arguments.length,n=Array(r),i=0;i1){let e=[];return s.querySelectorAll(t.el).forEach(r=>{let n=(0,l.u)({},t,{el:r});e.push(new M(n))}),e}let d=this;d.__swiper__=!0,d.support=u(),d.device=c({userAgent:t.userAgent}),d.browser=(o||(o=function(){let e=(0,a.a)(),t=c(),r=!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 t=String(e.navigator.userAgent);if(t.includes("Version/")){let[e,n]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));r=e<16||16===e&&n<2}}let i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),o=n(),s=o||i&&t.ios;return{isSafari:r||o,needPerspectiveFix:r,need3dFix:s,isWebView:i}}()),o),d.eventsListeners={},d.eventsAnyListeners=[],d.modules=[...d.__modules__],t.modules&&Array.isArray(t.modules)&&d.modules.push(...t.modules);let f={};d.modules.forEach(e=>{var r;e({params:t,swiper:d,extendParams:(r=t,function(e){void 0===e&&(e={});let t=Object.keys(e)[0],n=e[t];if("object"!=typeof n||null===n||(!0===r[t]&&(r[t]={enabled:!0}),"navigation"===t&&r[t]&&r[t].enabled&&!r[t].prevEl&&!r[t].nextEl&&(r[t].auto=!0),["pagination","scrollbar"].indexOf(t)>=0&&r[t]&&r[t].enabled&&!r[t].el&&(r[t].auto=!0),!(t in r&&"enabled"in n))){(0,l.u)(f,e);return}"object"!=typeof r[t]||"enabled"in r[t]||(r[t].enabled=!0),r[t]||(r[t]={enabled:!1}),(0,l.u)(f,e)}),on:d.on.bind(d),once:d.once.bind(d),off:d.off.bind(d),emit:d.emit.bind(d)})});let p=(0,l.u)({},C,f);return d.params=(0,l.u)({},p,P,t),d.originalParams=(0,l.u)({},d.params),d.passedParams=(0,l.u)({},t),d.params&&d.params.on&&Object.keys(d.params.on).forEach(e=>{d.on(e,d.params.on[e])}),d.params&&d.params.onAny&&d.onAny(d.params.onAny),Object.assign(d,{enabled:d.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===d.params.direction,isVertical:()=>"vertical"===d.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return 8388608*Math.trunc(this.translate/8388608)},allowSlideNext:d.params.allowSlideNext,allowSlidePrev:d.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:d.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:d.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),d.emit("_swiper"),d.params.init&&d.init(),d}getDirectionLabel(e){return this.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]}getSlideIndex(e){let{slidesEl:t,params:r}=this,n=(0,l.e)(t,`.${r.slideClass}, swiper-slide`),i=(0,l.h)(n[0]);return(0,l.h)(e)-i}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(t=>1*t.getAttribute("data-swiper-slide-index")===e)[0])}recalcSlides(){let{slidesEl:e,params:t}=this;this.slides=(0,l.e)(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 r=this.minTranslate(),n=(this.maxTranslate()-r)*e+r;this.translateTo(n,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(r=>{let n=e.getSlideClasses(r);t.push({slideEl:r,classNames:n}),e.emit("_slideClass",r,n)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);let{params:r,slides:n,slidesGrid:i,slidesSizesGrid:o,size:s,activeIndex:a}=this,l=1;if("number"==typeof r.slidesPerView)return r.slidesPerView;if(r.centeredSlides){let e,t=n[a]?Math.ceil(n[a].swiperSlideSize):0;for(let r=a+1;rs&&(e=!0));for(let r=a-1;r>=0;r-=1)n[r]&&!e&&(t+=n[r].swiperSlideSize,l+=1,t>s&&(e=!0))}else if("current"===e)for(let e=a+1;e=0;e-=1)i[a]-i[e]{e.complete&&d(t,e)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)i(),n.autoHeight&&t.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&t.isEnd&&!n.centeredSlides){let r=t.virtual&&n.virtual.enabled?t.virtual.slides:t.slides;e=t.slideTo(r.length-1,0,!1,!0)}else e=t.slideTo(t.activeIndex,0,!1,!0);e||i()}n.watchOverflow&&r!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);let r=this.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(this.el.classList.remove(`${this.params.containerModifierClass}${r}`),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 r=e||t.params.el;if("string"==typeof r&&(r=document.querySelector(r)),!r)return!1;r.swiper=t,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);let n=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`,i=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(n()):(0,l.e)(r,n())[0];return!i&&t.params.createElements&&(i=(0,l.c)("div",t.params.wrapperClass),r.append(i),(0,l.e)(r,`.${t.params.slideClass}`).forEach(e=>{i.append(e)})),Object.assign(t,{el:r,wrapperEl:i,slidesEl:t.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:i,hostEl:t.isElement?r.parentNode.host:r,mounted:!0,rtl:"rtl"===r.dir.toLowerCase()||"rtl"===(0,l.o)(r,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===r.dir.toLowerCase()||"rtl"===(0,l.o)(r,"direction")),wrongRTL:"-webkit-box"===(0,l.o)(i,"display")}),!0}init(e){let t=this;if(t.initialized||!1===t.mount(e))return t;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();let r=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&r.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),r.forEach(e=>{e.complete?d(t,e):e.addEventListener("load",e=>{d(t,e.target)})}),p(t),t.initialized=!0,p(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);let r=this,{params:n,el:i,wrapperEl:o,slides:s}=r;return void 0===r.params||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),n.loop&&r.loopDestroy(),t&&(r.removeClasses(),i.removeAttribute("style"),o.removeAttribute("style"),s&&s.length&&s.forEach(e=>{e.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(e=>{r.off(e)}),!1!==e&&(r.el.swiper=null,(0,l.v)(r)),r.destroyed=!0),null}static extendDefaults(e){(0,l.u)(P,e)}static get extendedDefaults(){return P}static get defaults(){return C}static installModule(e){M.prototype.__modules__||(M.prototype.__modules__=[]);let t=M.prototype.__modules__;"function"==typeof e&&0>t.indexOf(e)&&t.push(e)}static use(e){return Array.isArray(e)?e.forEach(e=>M.installModule(e)):M.installModule(e),M}}Object.keys(k).forEach(e=>{Object.keys(k[e]).forEach(t=>{M.prototype[t]=k[e][t]})}),M.use([function(e){let{swiper:t,on:r,emit:n}=e,i=(0,a.a)(),o=null,s=null,l=()=>{t&&!t.destroyed&&t.initialized&&(n("beforeResize"),n("resize"))},u=()=>{t&&!t.destroyed&&t.initialized&&(o=new ResizeObserver(e=>{s=i.requestAnimationFrame(()=>{let{width:r,height:n}=t,i=r,o=n;e.forEach(e=>{let{contentBoxSize:r,contentRect:n,target:s}=e;s&&s!==t.el||(i=n?n.width:(r[0]||r).inlineSize,o=n?n.height:(r[0]||r).blockSize)}),(i!==r||o!==n)&&l()})})).observe(t.el)},c=()=>{s&&i.cancelAnimationFrame(s),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null)},d=()=>{t&&!t.destroyed&&t.initialized&&n("orientationchange")};r("init",()=>{if(t.params.resizeObserver&&void 0!==i.ResizeObserver){u();return}i.addEventListener("resize",l),i.addEventListener("orientationchange",d)}),r("destroy",()=>{c(),i.removeEventListener("resize",l),i.removeEventListener("orientationchange",d)})},function(e){let{swiper:t,extendParams:r,on:n,emit:i}=e,o=[],s=(0,a.a)(),u=function(e,r){void 0===r&&(r={});let n=new(s.MutationObserver||s.WebkitMutationObserver)(e=>{if(t.__preventObserver__)return;if(1===e.length){i("observerUpdate",e[0]);return}let r=function(){i("observerUpdate",e[0])};s.requestAnimationFrame?s.requestAnimationFrame(r):s.setTimeout(r,0)});n.observe(e,{attributes:void 0===r.attributes||r.attributes,childList:void 0===r.childList||r.childList,characterData:void 0===r.characterData||r.characterData}),o.push(n)};r({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",()=>{if(t.params.observer){if(t.params.observeParents){let e=(0,l.a)(t.hostEl);for(let t=0;t{o.forEach(e=>{e.disconnect()}),o.splice(0,o.length)})}]);let O=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_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","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","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"];function A(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function I(e,t){let r=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>0>r.indexOf(e)).forEach(r=>{void 0===e[r]?e[r]=t[r]:A(t[r])&&A(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:I(e[r],t[r]):e[r]=t[r]})}function L(e){return void 0===e&&(e={}),e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function D(e){return void 0===e&&(e={}),e.pagination&&void 0===e.pagination.el}function R(e){return void 0===e&&(e={}),e.scrollbar&&void 0===e.scrollbar.el}function N(e){void 0===e&&(e="");let t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),r=[];return t.forEach(e=>{0>r.indexOf(e)&&r.push(e)}),r.join(" ")}let j=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 $(){return($=Object.assign?Object.assign.bind():function(e){for(var t=1;te.replace(/_/,""));return Object.keys(Object.assign({},e)).forEach(a=>{void 0!==e[a]&&(s.indexOf(a)>=0?A(e[a])?(r[a]={},i[a]={},I(r[a],e[a]),I(i[a],e[a])):(r[a]=e[a],i[a]=e[a]):0===a.search(/on[A-Z]/)&&"function"==typeof e[a]?t?n[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:r.on[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:o[a]=e[a])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===r[e]&&(r[e]={}),!1===r[e]&&delete r[e]}),{params:r,passedParams:i,rest:o,events:n}}(u),{slides:G,slots:U}=function(e){let t=[],r={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return s.Children.toArray(e).forEach(e=>{if(V(e))t.push(e);else if(e.props&&e.props.slot&&r[e.props.slot])r[e.props.slot].push(e);else if(e.props&&e.props.children){let n=function e(t){let r=[];return s.Children.toArray(t).forEach(t=>{V(t)?r.push(t):t.props&&t.props.children&&e(t.props.children).forEach(e=>r.push(e))}),r}(e.props.children);n.length>0?n.forEach(e=>t.push(e)):r["container-end"].push(e)}else r["container-end"].push(e)}),{slides:t,slots:r}}(a),W=()=>{v(!m)};Object.assign(k.on,{_containerClasses(e,t){f(t)}});let q=()=>{Object.assign(k.on,H),c=!0;let e={...k};if(delete e.wrapperClass,b.current=new M(e),b.current.virtual&&b.current.params.virtual.enabled){b.current.virtual.slides=G;let e={cache:!1,slides:G,renderExternal:h,renderExternalUpdate:!1};I(b.current.params.virtual,e),I(b.current.originalParams.virtual,e)}};y.current||q(),b.current&&b.current.on("_beforeBreakpoint",W);let K=()=>{!c&&H&&b.current&&Object.keys(H).forEach(e=>{b.current.on(e,H[e])})},Y=()=>{H&&b.current&&Object.keys(H).forEach(e=>{b.current.off(e,H[e])})};return(0,s.useEffect)(()=>()=>{b.current&&b.current.off("_beforeBreakpoint",W)}),(0,s.useEffect)(()=>{!g.current&&b.current&&(b.current.emitSlidesClasses(),g.current=!0)}),z(()=>{if(t&&(t.current=y.current),y.current)return b.current.destroyed&&q(),function(e,t){let{el:r,nextEl:n,prevEl:i,paginationEl:o,scrollbarEl:s,swiper:a}=e;L(t)&&n&&i&&(a.params.navigation.nextEl=n,a.originalParams.navigation.nextEl=n,a.params.navigation.prevEl=i,a.originalParams.navigation.prevEl=i),D(t)&&o&&(a.params.pagination.el=o,a.originalParams.pagination.el=o),R(t)&&s&&(a.params.scrollbar.el=s,a.originalParams.scrollbar.el=s),a.init(r)}({el:y.current,nextEl:E.current,prevEl:S.current,paginationEl:_.current,scrollbarEl:T.current,swiper:b.current},k),l&&!b.current.destroyed&&l(b.current),()=>{b.current&&!b.current.destroyed&&b.current.destroy(!0,!1)}},[]),z(()=>{K();let e=function(e,t,r,n,i){let o=[];if(!t)return o;let s=e=>{0>o.indexOf(e)&&o.push(e)};if(r&&n){let e=n.map(i),t=r.map(i);e.join("")!==t.join("")&&s("children"),n.length!==r.length&&s("children")}return O.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(r=>{if(r in e&&r in t){if(A(e[r])&&A(t[r])){let n=Object.keys(e[r]),i=Object.keys(t[r]);n.length!==i.length?s(r):(n.forEach(n=>{e[r][n]!==t[r][n]&&s(r)}),i.forEach(n=>{e[r][n]!==t[r][n]&&s(r)}))}else e[r]!==t[r]&&s(r)}}),o}(P,w.current,G,x.current,e=>e.key);return w.current=P,x.current=G,e.length&&b.current&&!b.current.destroyed&&function(e){let t,r,n,i,o,s,a,l,{swiper:u,slides:c,passedParams:d,changedParams:f,nextEl:p,prevEl:h,scrollbarEl:m,paginationEl:v}=e,g=f.filter(e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e),{params:y,pagination:b,navigation:w,scrollbar:x,virtual:E,thumbs:S}=u;f.includes("thumbs")&&d.thumbs&&d.thumbs.swiper&&y.thumbs&&!y.thumbs.swiper&&(t=!0),f.includes("controller")&&d.controller&&d.controller.control&&y.controller&&!y.controller.control&&(r=!0),f.includes("pagination")&&d.pagination&&(d.pagination.el||v)&&(y.pagination||!1===y.pagination)&&b&&!b.el&&(n=!0),f.includes("scrollbar")&&d.scrollbar&&(d.scrollbar.el||m)&&(y.scrollbar||!1===y.scrollbar)&&x&&!x.el&&(i=!0),f.includes("navigation")&&d.navigation&&(d.navigation.prevEl||h)&&(d.navigation.nextEl||p)&&(y.navigation||!1===y.navigation)&&w&&!w.prevEl&&!w.nextEl&&(o=!0);let _=e=>{u[e]&&(u[e].destroy(),"navigation"===e?(u.isElement&&(u[e].prevEl.remove(),u[e].nextEl.remove()),y[e].prevEl=void 0,y[e].nextEl=void 0,u[e].prevEl=void 0,u[e].nextEl=void 0):(u.isElement&&u[e].el.remove(),y[e].el=void 0,u[e].el=void 0))};f.includes("loop")&&u.isElement&&(y.loop&&!d.loop?s=!0:!y.loop&&d.loop?a=!0:l=!0),g.forEach(e=>{if(A(y[e])&&A(d[e]))Object.assign(y[e],d[e]),("navigation"===e||"pagination"===e||"scrollbar"===e)&&"enabled"in d[e]&&!d[e].enabled&&_(e);else{let t=d[e];(!0===t||!1===t)&&("navigation"===e||"pagination"===e||"scrollbar"===e)?!1===t&&_(e):y[e]=d[e]}}),g.includes("controller")&&!r&&u.controller&&u.controller.control&&y.controller&&y.controller.control&&(u.controller.control=y.controller.control),f.includes("children")&&c&&E&&y.virtual.enabled?(E.slides=c,E.update(!0)):f.includes("virtual")&&E&&y.virtual.enabled&&(c&&(E.slides=c),E.update(!0)),f.includes("children")&&c&&y.loop&&(l=!0),t&&S.init()&&S.update(!0),r&&(u.controller.control=y.controller.control),n&&(u.isElement&&(!v||"string"==typeof v)&&((v=document.createElement("div")).classList.add("swiper-pagination"),v.part.add("pagination"),u.el.appendChild(v)),v&&(y.pagination.el=v),b.init(),b.render(),b.update()),i&&(u.isElement&&(!m||"string"==typeof m)&&((m=document.createElement("div")).classList.add("swiper-scrollbar"),m.part.add("scrollbar"),u.el.appendChild(m)),m&&(y.scrollbar.el=m),x.init(),x.updateSize(),x.setTranslate()),o&&(u.isElement&&(p&&"string"!=typeof p||((p=document.createElement("div")).classList.add("swiper-button-next"),p.innerHTML=u.hostEl.constructor.nextButtonSvg,p.part.add("button-next"),u.el.appendChild(p)),h&&"string"!=typeof h||((h=document.createElement("div")).classList.add("swiper-button-prev"),h.innerHTML=u.hostEl.constructor.prevButtonSvg,h.part.add("button-prev"),u.el.appendChild(h))),p&&(y.navigation.nextEl=p),h&&(y.navigation.prevEl=h),w.init(),w.update()),f.includes("allowSlideNext")&&(u.allowSlideNext=d.allowSlideNext),f.includes("allowSlidePrev")&&(u.allowSlidePrev=d.allowSlidePrev),f.includes("direction")&&u.changeDirection(d.direction,!1),(s||l)&&u.loopDestroy(),(a||l)&&u.loopCreate(),u.update()}({swiper:b.current,slides:G,passedParams:P,changedParams:e,nextEl:E.current,prevEl:S.current,scrollbarEl:T.current,paginationEl:_.current}),()=>{Y()}}),z(()=>{j(b.current)},[p]),s.createElement(i,$({ref:y,className:N(`${d}${n?` ${n}`:""}`)},F),s.createElement(B.Provider,{value:b.current},U["container-start"],s.createElement(o,{className:(void 0===(r=k.wrapperClass)&&(r=""),r)?r.includes("swiper-wrapper")?r:`swiper-wrapper ${r}`:"swiper-wrapper"},U["wrapper-start"],k.virtual?function(e,t,r){if(!r)return null;let n=e=>{let r=e;return e<0?r=t.length+e:r>=t.length&&(r-=t.length),r},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${r.offset}px`}:{top:`${r.offset}px`},{from:o,to:a}=r,l=e.params.loop?-t.length:0,u=e.params.loop?2*t.length:t.length,c=[];for(let e=l;e=o&&e<=a&&c.push(t[n(e)]);return c.map((t,r)=>s.cloneElement(t,{swiper:e,style:i,key:t.props.virtualIndex||t.key||`slide-${r}`}))}(b.current,G,p):G.map((e,t)=>s.cloneElement(e,{swiper:b.current,swiperSlideIndex:t})),U["wrapper-end"]),L(k)&&s.createElement(s.Fragment,null,s.createElement("div",{ref:S,className:"swiper-button-prev"}),s.createElement("div",{ref:E,className:"swiper-button-next"})),R(k)&&s.createElement("div",{ref:T,className:"swiper-scrollbar"}),D(k)&&s.createElement("div",{ref:_,className:"swiper-pagination"}),U["container-end"]))});H.displayName="Swiper";let G=(0,s.forwardRef)(function(e,t){let{tag:r="div",children:n,className:i="",swiper:o,zoom:a,lazy:l,virtualIndex:u,swiperSlideIndex:c,...d}=void 0===e?{}:e,f=(0,s.useRef)(null),[p,h]=(0,s.useState)("swiper-slide"),[m,v]=(0,s.useState)(!1);function g(e,t,r){t===f.current&&h(r)}z(()=>{if(void 0!==c&&(f.current.swiperSlideIndex=c),t&&(t.current=f.current),f.current&&o){if(o.destroyed){"swiper-slide"!==p&&h("swiper-slide");return}return o.on("_slideClass",g),()=>{o&&o.off("_slideClass",g)}}}),z(()=>{o&&f.current&&!o.destroyed&&h(o.getSlideClasses(f.current))},[o]);let y={isActive:p.indexOf("swiper-slide-active")>=0,isVisible:p.indexOf("swiper-slide-visible")>=0,isPrev:p.indexOf("swiper-slide-prev")>=0,isNext:p.indexOf("swiper-slide-next")>=0},b=()=>"function"==typeof n?n(y):n;return s.createElement(r,$({ref:f,className:N(`${p}${i?` ${i}`:""}`),"data-swiper-slide-index":u,onLoad:()=>{v(!0)}},d),a&&s.createElement(F.Provider,{value:y},s.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof a?a:void 0},b(),l&&!m&&s.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&s.createElement(F.Provider,{value:y},b(),l&&!m&&s.createElement("div",{className:"swiper-lazy-preloader"})))});G.displayName="SwiperSlide"}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(6840),t(9090)}),_N_E=e.O()}]);