1/*! For license information please see app.9fd4cf74.js.LICENSE.txt */ 2(self.webpackChunkweb=self.webpackChunkweb||[]).push([[2143],{84186:function(e,t,r){"use strict";r.d(t,{dd:function(){return E},j9:function(){return l}});var n=r(27378),i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},a=Symbol("NiceModalId"),s={},l=n.createContext(s),u=n.createContext(null),c={},d={},f=0,p=function(){throw new Error("No dispatch method detected, did you embed your app with NiceModal.Provider?")},h=function(){return"_nice_modal_"+f++},m=function(e,t){var r,n,o;switch(void 0===e&&(e=s),t.type){case"nice-modal/show":var a=t.payload,l=a.modalId,u=a.args;return i(i({},e),((r={})[l]=i(i({},e[l]),{id:l,args:u,visible:!!d[l],delayVisible:!d[l]}),r));case"nice-modal/hide":return e[l=t.payload.modalId]?i(i({},e),((n={})[l]=i(i({},e[l]),{visible:!1}),n)):e;case"nice-modal/remove":l=t.payload.modalId;var c=i({},e);return delete c[l],c;case"nice-modal/set-flags":var f=t.payload,p=(l=f.modalId,f.flags);return i(i({},e),((o={})[l]=i(i({},e[l]),p),o));default:return e}},v={},g={},y=function(e){return"string"==typeof e?e:(e[a]||(e[a]=h()),e[a])};function b(e,t){var r=y(e);if("string"==typeof e||c[r]||k(r,e),p(function(e,t){return{type:"nice-modal/show",payload:{modalId:e,args:t}}}(r,t)),!v[r]){var n,i,o=new Promise(function(e,t){n=e,i=t});v[r]={resolve:n,reject:i,promise:o}}return v[r].promise}function w(e){var t=y(e);if(p(function(e){return{type:"nice-modal/hide",payload:{modalId:e}}}(t)),delete v[t],!g[t]){var r,n,i=new Promise(function(e,t){r=e,n=t});g[t]={resolve:r,reject:n,promise:i}}return g[t].promise}var x=function(e){var t=y(e);p(function(e){return{type:"nice-modal/remove",payload:{modalId:e}}}(t)),delete v[t],delete g[t]};function E(e,t){var r,i=(0,n.useContext)(l),o=(0,n.useContext)(u),a=e&&"string"!=typeof e;if(!(r=e?y(e):o))throw new Error("No modal id found in NiceModal.useModal.");var s=r;(0,n.useEffect)(function(){a&&!c[s]&&k(s,e,t)},[a,s,e,t]);var d=i[s],f=(0,n.useCallback)(function(e){return b(s,e)},[s]),p=(0,n.useCallback)(function(){return w(s)},[s]),h=(0,n.useCallback)(function(){return x(s)},[s]),m=(0,n.useCallback)(function(e){var t;null===(t=v[s])||void 0===t||t.resolve(e),delete v[s]},[s]),E=(0,n.useCallback)(function(e){var t;null===(t=v[s])||void 0===t||t.reject(e),delete v[s]},[s]),S=(0,n.useCallback)(function(e){var t;null===(t=g[s])||void 0===t||t.resolve(e),delete g[s]},[s]);return(0,n.useMemo)(function(){return{id:s,args:null==d?void 0:d.args,visible:!!(null==d?void 0:d.visible),keepMounted:!!(null==d?void 0:d.keepMounted),show:f,hide:p,remove:h,resolve:m,reject:E,resolveHide:S}},[s,null==d?void 0:d.args,null==d?void 0:d.visible,null==d?void 0:d.keepMounted,f,p,h,m,E,S])}var k=function(e,t,r){c[e]?c[e].props=r:c[e]={comp:t,props:r}},S=function(){var e=(0,n.useContext)(l),t=Object.keys(e).filter(function(t){return!!e[t]});t.forEach(function(e){c[e]||d[e]||console.warn("No modal found for id: "+e+". Please check the id or if it is registered or declared via JSX.")});var r=t.filter(function(e){return c[e]}).map(function(e){return i({id:e},c[e])});return n.createElement(n.Fragment,null,r.map(function(e){return n.createElement(e.comp,i({key:e.id,id:e.id},e.props))}))},_=function(e){var t=e.children,r=(0,n.useReducer)(m,s),i=r[0];return p=r[1],n.createElement(l.Provider,{value:i},t,n.createElement(S,null))},C={Provider:function(e){var t=e.children,r=e.dispatch,i=e.modals;return r&&i?(p=r,n.createElement(l.Provider,{value:i},t,n.createElement(S,null))):n.createElement(_,null,t)},ModalDef:function(e){var t=e.id,r=e.component;return(0,n.useEffect)(function(){return k(t,r),function(){!function(e){delete c[e]}(t)}},[t,r]),null},ModalHolder:function(e){var t,r=e.modal,a=e.handler,s=void 0===a?{}:a,l=o(e,["modal","handler"]),u=(0,n.useMemo)(function(){return h()},[]),d="string"==typeof r?null===(t=c[r])||void 0===t?void 0:t.comp:r;if(!s)throw new Error("No handler found in NiceModal.ModalHolder.");if(!d)throw new Error("No modal found for id: "+r+" in NiceModal.ModalHolder.");return s.show=(0,n.useCallback)(function(e){return b(u,e)},[u]),s.hide=(0,n.useCallback)(function(){return w(u)},[u]),n.createElement(d,i({id:u},l))},NiceModalContext:l,create:function(e){return function(t){var r,a=t.defaultVisible,s=t.keepMounted,c=t.id,f=o(t,["defaultVisible","keepMounted","id"]),h=E(c),m=h.args,v=h.show,g=(0,n.useContext)(l),y=!!g[c];(0,n.useEffect)(function(){return a&&v(),d[c]=!0,function(){delete d[c]}},[c,v,a]),(0,n.useEffect)(function(){s&&p({type:"nice-modal/set-flags",payload:{modalId:c,flags:{keepMounted:!0}}})},[c,s]);var b=null===(r=g[c])||void 0===r?void 0:r.delayVisible;return(0,n.useEffect)(function(){b&&v(m)},[b,m,v]),y?n.createElement(u.Provider,{value:c},n.createElement(e,i({},f,m))):null}},register:k,getModal:function(e){var t;return null===(t=c[e])||void 0===t?void 0:t.comp},show:b,hide:w,remove:x,useModal:E,reducer:m,antdModal:function(e){return{visible:e.visible,onOk:function(){return e.hide()},onCancel:function(){return e.hide()},afterClose:function(){e.resolveHide(),e.keepMounted||e.remove()}}},antdDrawer:function(e){return{visible:e.visible,onClose:function(){return e.hide()},afterVisibleChange:function(t){t||e.resolveHide(),!t&&!e.keepMounted&&e.remove()}}},muiDialog:function(e){return{open:e.visible,onClose:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}},bootstrapDialog:function(e){return{show:e.visible,onHide:function(){return e.hide()},onExited:function(){e.resolveHide(),!e.keepMounted&&e.remove()}}}};t.ZP=C},34717:function(e,t,r){"use strict";var n=r(9131),i=r(4289).default;
2n(t,"__esModule",{value:!0}),t.createAuth=function(e,t){return(0,a.createAuthentication)(e,t)},t.createDbAuthClient=function({webAuthn:e,dbAuthUrl:t,fetchConfig:r}={}){const n=r?.credentials||"same-origin";let i;e?.setAuthApiUrl(t);let a,l=new Date("1970-01-01T00:00:00");const u=()=>t||`${RWJS_API_URL}/auth`,c=async(...e)=>(d(),fetch(...e)),d=()=>{l=new Date("1970-01-01T00:00:00"),a=null},f=async()=>i||((new Date).getTime()-l.getTime()>s?(i=fetch(`${u()}?method=getToken`,{credentials:n}).then(e=>e.text()).then(e=>(l=new Date,a=0===e.length?null:e,a)).finally(()=>{i=null}),i):a);return{type:"dbAuth",client:e,login:async({username:e,password:t})=>(await c(u(),{credentials:n,method:"POST",headers:{"Content-Type":"application/json"},body:(0,o.default)({username:e,password:t,method:"login"})})).json(),logout:async()=>(await c(u(),{credentials:n,method:"POST",body:(0,o.default)({method:"logout"})}),!0),signup:async e=>(await c(u(),{credentials:n,method:"POST",headers:{"Content-Type":"application/json"},body:(0,o.default)({...e,method:"signup"})})).json(),getToken:f,getUserMetadata:f,forgotPassword:async e=>(await c(u(),{credentials:n,method:"POST",headers:{"Content-Type":"application/json"},body:(0,o.default)({username:e,method:"forgotPassword"})})).json(),resetPassword:async e=>(await c(u(),{credentials:n,method:"POST",headers:{"Content-Type":"application/json"},body:(0,o.default)({...e,method:"resetPassword"})})).json(),validateResetToken:async e=>(await c(u(),{credentials:n,method:"POST",headers:{"Content-Type":"application/json"},body:(0,o.default)({resetToken:e,method:"validateResetToken"})})).json()}};var o=i(r(75443)),a=r(51896);const s=5e3},16926:function(e,t,r){"use strict";var n,i=r(9131),o=r(91496),a=r(27085);i(t,"__esModule",{value:!0});var s=r(34717);o(n=a(s)).call(n,function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||i(t,e,{enumerable:!0,get:function(){return s[e]}}))})},36018:function(e,t,r){"use strict";var n=r(9131),i=r(4289).default;n(t,"__esModule",{value:!0}),t.createAuthContext=function(){return o.default.createContext(void 0)};var o=i(r(27378))},29354:function(e,t,r){"use strict";var n=r(9131),i=r(31550).default;n(t,"__esModule",{value:!0}),t.createAuthProvider=function(e,t,r){return n=>{let{children:i,skipFetchCurrentUser:g}=n;const[y,b]=(0,o.useState)(a.defaultAuthProviderState),w=(0,m.useToken)(t),x=r?.useCurrentUser?r.useCurrentUser:(0,s.useCurrentUser)(t),E=(0,f.useReauthenticate)(t,b,x,g),k=r?.useHasRole?r.useHasRole(y.currentUser):(0,u.useHasRole)(y.currentUser),S=(0,h.useSignUp)(t,b,x,g),_=(0,c.useLogIn)(t,b,x,g),C=(0,d.useLogOut)(t,b),O=(0,l.useForgotPassword)(t),P=(0,p.useResetPassword)(t),T=(0,v.useValidateResetToken)(t),A=t.type,I=t.client;return(0,o.useEffect)(()=>{!async function(){await(t.restoreAuthState?.()),E()}()},[E]),o.default.createElement(e.Provider,{value:{...y,signUp:S,logIn:_,logOut:C,getToken:w,getCurrentUser:x,hasRole:k,reauthenticate:E,forgotPassword:O,resetPassword:P,validateResetToken:T,client:I,type:A}},i)}};var o=i(r(27378)),a=r(63902),s=r(15680),l=r(69554),u=r(90203),c=r(45515),d=r(24026),f=r(26779),p=r(57690),h=r(89162),m=r(30170),v=r(20521)},63902:function(e,t,r){"use strict";r(9131)(t,"__esModule",{value:!0}),t.defaultAuthProviderState=void 0,t.defaultAuthProviderState={loading:!0,isAuthenticated:!1,userMetadata:null,currentUser:null,hasError:!1}},15680:function(e,t,r){"use strict";var n=r(9131),i=r(4289).default;n(t,"__esModule",{value:!0}),t.useCurrentUser=void 0;var o=i(r(4475)),a=i(r(75443)),s=r(27378),l=r(30170);t.useCurrentUser=e=>{const t=(0,l.useToken)(e);return(0,s.useCallback)(async()=>{const r=await t(),n=await o.default.fetch(o.default.RWJS_API_GRAPHQL_URL,{method:"POST",credentials:"include",headers:{"content-type":"application/json","auth-provider":e.type,authorization:`Bearer ${r}`},body:(0,a.default)({query:"query __REDWOOD__AUTH_GET_CURRENT_USER { redwood { currentUser } }"})});if(n.ok){const{data:e}=await n.json();return e?.redwood?.currentUser}throw new Error(`Could not fetch current user: ${n.statusText} (${n.status})`)},[e,t])}},69554:function(e,t,r){"use strict";
2r(9131)(t,"__esModule",{value:!0}),t.useForgotPassword=void 0;var n=r(27378);t.useForgotPassword=e=>(0,n.useCallback)(async t=>{if(e.forgotPassword)return await e.forgotPassword(t);throw new Error(`Auth client ${e.type} does not implement this function`)},[e])},90203:function(e,t,r){"use strict";var n=r(9131),i=r(4289).default;n(t,"__esModule",{value:!0}),t.useHasRole=void 0;var o=i(r(9981)),a=i(r(92959)),s=i(r(80966)),l=r(27378);t.useHasRole=e=>(0,l.useCallback)(t=>{if(e?.roles){if("string"==typeof t){if("string"==typeof e.roles)return e.roles===t;if((0,o.default)(e.roles))return e.roles?.some(e=>t===e)}if((0,o.default)(t)){if((0,o.default)(e.roles))return e.roles?.some(e=>(0,a.default)(t).call(t,e));if("string"==typeof e.roles)return(0,s.default)(t).call(t,t=>e?.roles===t)}}return!1},[e])},45515:function(e,t,r){"use strict";r(9131)(t,"__esModule",{value:!0}),t.useLogIn=void 0;var n=r(27378),i=r(63902),o=r(26779);t.useLogIn=(e,t,r,a)=>{const s=(0,o.useReauthenticate)(e,t,r,a);return(0,n.useCallback)(async r=>{t(i.defaultAuthProviderState);const n=await e.login(r);return await s(),n},[e,s,t])}},24026:function(e,t,r){"use strict";r(9131)(t,"__esModule",{value:!0}),t.useLogOut=void 0;var n=r(27378);t.useLogOut=(e,t)=>(0,n.useCallback)(async r=>{const n=await e.logout(r);return t({userMetadata:null,currentUser:null,isAuthenticated:!1,hasError:!1,error:void 0,loading:!1}),n},[e,t])},26779:function(e,t,r){"use strict";r(9131)(t,"__esModule",{value:!0}),t.useReauthenticate=void 0;var n=r(27378),i=r(30170);const o={isAuthenticated:!1,currentUser:null,userMetadata:null,loading:!1,hasError:!1};t.useReauthenticate=(e,t,r,a)=>{const s=(0,i.useToken)(e);return(0,n.useCallback)(async()=>{e.loadWhileReauthenticating&&t(e=>({...e,loading:!0}));try{const n=await e.getUserMetadata();if(n){await s();const i=a?null:await r();t(t=>({...t,userMetadata:n,currentUser:i,isAuthenticated:!0,loading:!1,client:e.client}))}else{let r=!1;e.clientHasLoaded&&(r=!e.clientHasLoaded()),t({...o,loading:r,client:e.client})}}catch(e){t({...o,hasError:!0,error:e})}},[e,s,t,a,r])}},57690:function(e,t,r){"use strict";r(9131)(t,"__esModule",{value:!0}),t.useResetPassword=void 0;var n=r(27378);t.useResetPassword=e=>(0,n.useCallback)(async t=>{if(e.resetPassword)return await e.resetPassword(t);throw new Error(`Auth client ${e.type} does not implement this function`)},[e])},89162:function(e,t,r){"use strict";r(9131)(t,"__esModule",{value:!0}),t.useSignUp=void 0;var n=r(27378),i=r(26779);t.useSignUp=(e,t,r,o)=>{const a=(0,i.useReauthenticate)(e,t,r,o);return(0,n.useCallback)(async t=>{const r=await e.signup(t);return await a(),r},[e,a])}},30170:function(e,t,r){"use strict";r(9131)(t,"__esModule",{value:!0}),t.useToken=void 0;var n=r(27378);t.useToken=e=>(0,n.useCallback)(async()=>{try{return await e.getToken()}catch(e){return console.error("Caught internal:",e),null}},[e])},20521:function(e,t,r){"use strict";r(9131)(t,"__esModule",{value:!0}),t.useValidateResetToken=void 0;var n=r(27378);t.useValidateResetToken=e=>(0,n.useCallback)(async t=>{if(e.validateResetToken)return await e.validateResetToken(t);throw new Error(`Auth client ${e.type} does not implement this function`)},[e])},19159:function(e,t,r){"use strict";r(9131)(t,"__esModule",{value:!0}),t.createAuthentication=function(e,t){const r=(0,n.createAuthContext)(),a=(0,o.createUseAuth)(r);return{AuthContext:r,AuthProvider:(0,i.createAuthProvider)(r,e,t),useAuth:a}};var n=r(36018),i=r(29354),o=r(12534)},51896:function(e,t,r){"use strict";var n=r(9131);n(t,"__esModule",{value:!0}),n(t,"AuthContextInterface",{enumerable:!0,get:function(){return i.AuthContextInterface}}),n(t,"CurrentUser",{enumerable:!0,get:function(){return i.CurrentUser}}),n(t,"UseAuth",{enumerable:!0,get:function(){return o.UseAuth}}),n(t,"createAuthentication",{enumerable:!0,get:function(){return a.createAuthentication}}),n(t,"useNoAuth",{enumerable:!0,get:function(){return o.useNoAuth}});var i=r(36018),o=r(12534),a=r(19159)},12534:function(e,t,r){"use strict";var n=r(9131),i=r(4289).default;n(t,"__esModule",{value:!0}),t.createUseAuth=function(e){return()=>{const t=o.default.useContext(e);if(!t)throw new Error("useAuth must be used within an AuthProvider");return t}},t.useNoAuth=function(){return{loading:!1,isAuthenticated:!1,logIn:async()=>{},logOut:async()=>{},signUp:async()=>{},currentUser:null,userMetadata:null,getToken:async()=>null,getCurrentUser:async()=>null,hasRole:()=>!1,reauthenticate:async()=>{},forgotPassword:async()=>{},resetPassword:async()=>{},validateResetToken:async()=>{},type:"default",client:void 0,hasError:!1}};var o=i(r(27378))},83136:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return zi}});var n,i,o,a=r(84186),s=r(31786),l=r(35189),u=r(27378),c=r(9659),d=r(98889),f=r(73487),p=(r(63517),r(54557)),h=r(94621),m=(0,h.ZP)(n||(i=["\n mutation MarkMagicMomentSeen {\
2n markMagicMomentSeen {\n mode\n magicMomentSeenAt\n }\n }\n"],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}})))),v=r(66248),g=r(88631),y=function(e){var t=e.onKeepEarning,r=e.isFinal,n=[{children:"Keep Earning",variant:"secondary",kind:"link",to:d.routes.earn(),onClick:t}];return u.createElement(g.Z,{className:"bg-[#2D7E60] bg-[linear-gradient(180deg,#269B74_0%,#2D7E60_67%)]"},u.createElement(g.Z.Background,null,u.createElement(v.I,{className:"bg-[url('./components/shared/MagicMoment/assets/propoints-rays.svg')]"})),u.createElement(g.Z.Hero,{className:"text-white"},u.createElement("p",{className:"text-xl"},"Yay! You just unlocked"),u.createElement("p",{className:"text-7xl leading-none tracking-tighter"},r?u.createElement(u.Fragment,null,"Pro",u.createElement("br",null),"Status"):"Skilled")),u.createElement(g.Z.Content,null,u.createElement(g.Z.Card,null,u.createElement("div",{className:"space-y-5 px-4 pb-20 text-center"},u.createElement("h2",{className:"text-xl font-bold"},r?"Easy... You are now a top earner":"Great, you have unlocked new offers!"),u.createElement("p",{className:"text-slateGrey"},r?"You have unlocked access to the entire catalogue of premium offers, and other earning opportunities.":"Install new games to get access to the entire catalogue.")))),u.createElement(g.Z.Footer,null,u.createElement(g.Z.Buttons,{buttons:n})))};function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var w,x=function(e){var t,r,n=e.children,i=(0,p._)(),o=i.liteMode,a=i.refetch,l=(0,u.useRef)(!1),c=(t=null==o?void 0:o.mode,r=null==o?void 0:o.magicMomentSeenAt,"pending_magic_moment"===t&&!r);(0,u.useEffect)(function(){c||(l.current=!1)},[c]);var d,f=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b(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)?b(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((d={onCompleted:function(){l.current=!0,a()}},(0,s.useMutation)(m,d)),1)[0],h=-1===(null==o?void 0:o.visibleCount);return c&&!l.current?u.createElement(y,{onKeepEarning:function(){return f()},isFinal:h}):u.createElement(u.Fragment,null,n)},E=(r(74413),r(69108),r(57637),r(54370),r(5153),r(67506),r(80566),r(50870),r(75397),r(18829),r(95498),r(51429),r(61842),r(25376),r(38333),r(95864),r(63990),r(94565),r(95073),r(65204),r(47072),r(98391),r(24338),r(22727),r(2002),r(19647),r(73169)),k=r(6128),S=r(3484),_=r(71453),C=r(13899),O=r(46285),P=function(e){var t,r,n=e.preview,i=e.onInstallNowPress,o=e.onSeeRewardsPress,a=e.hide,s=(0,S.T)({task:{productId:n.productId,productRedirectUrl:n.productRedirectUrl,productPgFeatureKey:n.productPgFeatureKey,productIsFeatured:n.productIsFeatured,productCategorySlug:n.productCategorySlug,productDisplayName:null!==(t=n.productDisplayName)&&void 0!==t?t:n.name,productTitle:null!==(r=n.productTitle)&&void 0!==r?r:n.title,productType:n.productType,productBrandId:n.productBrandId,brandName:n.brandName,position:n.position,reward:{points:n.reward,boostedPoints:n.boostedReward,isBoosted:n.isRewardBoosted}}}).handleClick;return u.createElement(k.Z,{id:n.id,image:n.image,reward:n.reward,boostedReward:n.boostedReward,isRewardBoosted:n.isRewardBoosted,rewardDisplayMode:n.rewardDisplayMode,status:n.status,platforms:n.platforms,name:n.name,title:n.title,rating:n.rating,installBooster:n.installBooster,onSeeRewardsPress:function(){a(),null==o||o(n.productId)},onInstallNowClick:function(e){a(),null==i||i(n.productId),s(e)}})},T=a.ZP.create(function(e){var t=e.onCtaPress,r=e.onInstallNowPress,n=e.onSeeRewardsPress,i=e.previews,o=void 0===i?[]:i,s=e.testId,l=void 0===s?"install-booster-popup-modal":s,c=(0,a.dd)(),d=c.hide,f=c.visible,p=o.length>0;return u.createElement(C.Z.Root,{isOpen:f,onClose:d},u.createElement(C.Z.Backdrop,null),u.createElement(C.Z.Layout,null,u.createElement(C.Z.Panel,{className:"w-full max-w-full rounded-t-[30px] bg-white px-0 pb-6 pt-3.5 tablet:max-w-[480px] tablet:rounded-2xl laptop:min-h-0"},u.createElement("div",{"data-testid":l},u.createElement("div",{className:"mb-2 flex items-start justify-end px-3.5"},u.createElement(C.Z.Close,{onClick:d,className:"w-auto"})),u.createElement("div",{className:"flex flex-col items-center gap-1.5 px-7"},u.createElement("h2",{className:"text-center text-[20px] font-bold leading-[27px] tracking-[-1px] text-ebonyGrey"},"â¡ You have unlocked instant rewardsâ¡"),u.createElement("p",{className:"text-center text-[17px] leading-[27px] text-slateGrey"},"Install & Play new games to claim them!")),p&&u.createElement(O.Z,{className:"mt-6",testId:"".concat(l,"-carousel"),paginationTestId:"".concat(l,"-pagination"),dotTestIdPrefix:"".concat(l,"-dot"),items:o.map(function(e){return{key:e.id,preview:e}}),renderItem:function(e){var t=e.preview;return u.createElement(P,{preview:t,onInstallNowPress:r,onSeeRewardsPress:n,hide:d})}}),!p&&t&&u.createElement("div",{className:"mt-6 px-5"},u.createElement(_.Z,{kind:"button",variant:"primary","data-testid":"".concat(l,"-cta"),className:"w-full",onClick:function(){d(),null==t||t()}},"Claim Now"))))))}),A=r(14121),I=(r(62285),r(47959));function N(e,t){var r,n,i,o,a,s,l,u,c,d,f,p,h,m,v,g,y,b,w,x,E,k,S=e.product,_=e.task;if(null==S||!S.id||null==_||!_.id)return null;var C=null!==(r=null===(n=e.taskReward)||void 0===n?void 0:n.points)&&void 0!==r?r:0,O=null!==(i=null===(o=e.taskReward)||void 0===o?void 0:o.boostedPoints)&&void 0!==i?i:C,P=null!==(a=null===(s=e.taskReward)||void 0===s?void 0:s.isBoosted)&&void 0!==a&&a,T=_.isCompleted?"completed":"notStarted";return{id:_.id,productId:S.id,image:(null===(l=S.heroImage)||void 0===l?void 0:l.url)||void 0,reward:C,boostedRew
vendor: 4,047 bytes, line 2
2ard:O,isRewardBoosted:P,status:T,platforms:null!==(u=S.platforms)&&void 0!==u?u:[],name:S.displayName||(null===(c=S.brand)||void 0===c?void 0:c.name)||S.name||"",title:null!==(d=S.title)&&void 0!==d?d:void 0,rating:null!==(f=S.rating)&&void 0!==f?f:void 0,installBooster:{rewardAmount:t.rewardAmount,expiresAt:t.expiresAt},productRedirectUrl:null!==(p=S.redirectUrl)&&void 0!==p?p:null,productPgFeatureKey:null,productIsFeatured:null!==(h=S.isFeatured)&&void 0!==h?h:null,productCategorySlug:null!==(m=null===(v=S.category)||void 0===v?void 0:v.slug)&&void 0!==m?m:null,productType:null!==(g=S.type)&&void 0!==g?g:null,productBrandId:null!==(y=null===(b=S.brand)||void 0===b?void 0:b.id)&&void 0!==y?y:null,brandName:null!==(w=null===(x=S.brand)||void 0===x?void 0:x.name)&&void 0!==w?w:"",productDisplayName:S.displayName||(null===(E=S.brand)||void 0===E?void 0:E.name)||null,productTitle:null!==(k=S.title)&&void 0!==k?k:null,position:null}}function R(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var l=n&&n.prototype instanceof s?n:s,u=Object.create(l.prototype);return j(u,"_invoke",function(r,n,i){var o,s,l,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return o=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&u&&!i&&t<c.length;t++){var i,o=c[t],p=f.p,h=o[2];r>3?(i=h===n)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=r<2&&p<o[1])?(s=0,f.v=n,f.n=o[1]):p<h&&(i=r<3||o[0]>n||n>h)&&(o[4]=r,o[5]=n,f.n=h,s=0))}if(i||r>1)return a;throw d=!0,n}return function(i,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(r,i,o),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(j(t={},n,function(){return this}),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,j(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,j(d,"constructor",u),j(u,"constructor",l),l.displayName="GeneratorFunction",j(u,i,"GeneratorFunction"),j(d),j(d,i,"Generator"),j(d,n,function(){return this}),j(d,"toString",function(){return"[object Generator]"}),(R=function(){return{w:o,m:f}})()}function j(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}j=function(e,t,r,n){function o(t,r){j(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},j(e,t,r,n)}function M(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function D(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){M(o,n,i,a,s,"next",e)}function s(e){M(o,n,i,a,s,"throw",e)}a(void 0)})}}function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return F(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)?F(e,t):void 0}}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var B=(0,h.ZP)(w||(w=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n query InstallBoosterPopupProduct($id: String!) {\n product: product(id: $id) {\n id\n type\n name\n displayName\n title\n platforms\n brand {\n id\n name\n }\n category {\n id\n name\n slug\n }\n heroImage {\n id\n url\n alt\n }\n redirectUrl\n isFeatured\n rating\n }\n task(productId: $id) {\n id\n isCompleted\n }\n taskReward(id: $id) {\n points\n boostedPoints\n tokens\n isBoosted\n }\n }\n"])));var U,V=r(14252),z=r(22595);function q(e,t){var r=null!=t?t:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date).toISOString().slice(0,10)}();return"".concat("install_booster_popup","_").concat(e,"_").concat(r)}function H(e){"undefined"!=typeof window&&window.localStorage.setItem(q(e),"1")}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $(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)?$(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var W=(0,h.ZP)(U||(U=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n query ActiveInstallBoosters {\n activeInstallBoosters {\n id\n productId\n rewardAmount\n activatedAt\n expiresAt\n status\n }\n }\n"]))),Z=new Set(["/wallet","/cashout","/more"]),Q=function(e){return e.endsWith("/")&&e.length>1?e.slice(0,-1):e},Y=function(e){var t,r=e.children,n=(0,d.useLocation)().pathname,i=(0,E.a)().currentUser,o=null==i?void 0:i.id,l=function(e){return Z.has(Q(e))}(n),c=(0,a.dd)(T).show,f=function(e){return"/cashout"===Q(e)}(n),p=(0,A.b)({skip:!f}).gate,h="shown"===(null==p?void 0:p.status)||"install_tapped"===(null==p?void 0:p.status),m=G((0,u.useState)(!1),2),v=m[0],g=m[1],y=G((0,u.useState)(!0),2),b=y[0],w=y[1],x=(0,u.useRef)(!1);(0,u.useEffect)(function(){if(!o)return g(!1),w(!0),void(x.current=!1);g(!1),w(!0),x.current=!1;try{var e=function(e){return"undefined"!=typeof window&&null!=window.localStorage.getItem(q(e))}(o);w(e),g(!0)}catch(e){w(!0),g(!0)}},[o]);var k=!l||!o||!v||b||h,S=(0,s.useQuery)(W,{skip:k}),_=S.data,C=S.loading,O=null==_?void 0:_.activeInstallBoosters,P=null!==(t=null==O?void 0:O.length)&&void 0!==t?t:0,j=function(e,t){var r,n=(0,I.x)(),i=!0===(null==t?void 0:t.skip),o=(0,u.useMemo)(function(){return(null!=e?e:[]).map(function(e){return"".concat(e.id,":").concat(e.productId,":").concat(e.rewardAmount,":").concat(e.expiresAt)}).join("|")},[e]),a=L((0,u.useState)([]),2),s=a[0],l=a[1],c=L((0,u.useState)(null),2),d=c[0],f=c[1],p=(null!==(r=null==e?void 0:e.length)&&void 0!==r?r:0)>0,h=!i&&p&&d!==o;return(0,u.useEffect)(function(){if(!p||null==e||!e.length)return l([]),void f(o);if(!i){var t=e,r=!1;return D(R().m(function e(){var i;return R().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Promise.all(t.map(function(){var e=D(R().m(function e(t){var r,i;return R().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,n.query({query:B,variables:{id:t.productId},fetchPolicy:"network-only"});case 1:if(r=e.v,i=r.data){e.n=2;break}return e.a(2,null);case 2:return e.a(2,N(i,t));case 3:return e.p=3,e.v,e.a(2,null)}},e,null,[[0,3]])}
2));return function(t){return e.apply(this,arguments)}}()));case 1:if(i=e.v,!r){e.n=2;break}return e.a(2);case 2:l(i.filter(function(e){return null!=e})),f(o),e.n=5;break;case 3:if(e.p=3,e.v,!r){e.n=4;break}return e.a(2);case 4:l([]),f(o);case 5:return e.a(2)}},e,null,[[0,3]])}))(),function(){r=!0}}},[n,i,o,p]),{previews:d===o?s:[],loading:h}}(O,{skip:k||0===P}),M=j.previews,F=j.loading,U=(0,u.useCallback)(function(){if(o)try{H(o)}catch(e){}},[o]),$=(0,u.useCallback)(function(){(0,V.kH)({active_booster_count:P}),U(),(0,d.navigate)(d.routes.earn())},[P,U]),Y=(0,u.useCallback)(function(e){var t,r,n=M.find(function(t){return t.productId===e}),i=null==n?void 0:n.installBooster,o=i?(0,z.jg)(i.expiresAt):0;n&&i&&o>0&&(0,V.TS)({productId:n.productId,expiresAt:i.expiresAt,productName:null!==(r=n.productDisplayName)&&void 0!==r?r:"",timerRemainingSeconds:o,rewardAmount:i.rewardAmount}),(0,V.kH)({active_booster_count:P,offerId:e,offerName:null!==(t=null==n?void 0:n.name)&&void 0!==t?t:null}),U()},[P,U,M]),K=(0,u.useCallback)(function(e){U(),(0,d.navigate)(d.routes.product({id:e}))},[U]);return(0,u.useEffect)(function(){if(l&&o&&v&&!b&&!h&&!x.current&&!C&&!F&&0!==P){x.current=!0,w(!0),(0,V._V)({active_booster_count:P,offerIds:M.map(function(e){return e.productId}),offerNames:M.map(function(e){return e.name})});try{H(o)}catch(e){}c({previews:M,onInstallNowPress:Y,onSeeRewardsPress:K,onCtaPress:0===M.length?$:void 0})}},[l,o,v,b,h,C,F,P,M,c,Y,K,$]),u.createElement(u.Fragment,null,r)},K=(r(20779),r(67551),r(81006)),J=r(63322),X=r(98773);function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var te,re,ne=function(e){var t=e.iconUrl,r=e.game,n=e.onDismiss,i=e.onClick,o=e.visible,a=void 0===o||o,s=e.durationMs,l=e.className,c=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ee(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)?ee(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,u.useState)("100%"),2),d=c[0],f=c[1];return(0,u.useEffect)(function(){var e=requestAnimationFrame(function(){return f("0%")});return function(){return cancelAnimationFrame(e)}},[s]),u.createElement("div",{className:(0,X.m)("relative flex items-center gap-3 overflow-hidden rounded-[10px] border border-[#CCF5DF] bg-white p-3 shadow-[0_4px_24px_rgba(0,0,0,0.12)] transition-all duration-300",a?"translate-y-0 opacity-100":"-translate-y-2 opacity-0",l),role:"status"},u.createElement("button",{type:"button",onClick:i,disabled:!i,className:"flex min-w-0 flex-1 items-center gap-3 text-left enabled:cursor-pointer"},u.createElement("img",{src:t,alt:"",className:"h-[55px] w-[55px] shrink-0 rounded-[10px] object-cover"}),u.createElement("span",{className:"min-w-0 flex-1"},u.createElement("span",{className:"block text-sm font-bold text-ebonyGrey"},"Install confirmed"),u.createElement("span",{className:"line-clamp-2 block text-sm text-slateGrey"},r," is being tracked."))),u.createElement("button",{type:"button",onClick:n,"aria-label":"Dismiss",className:"shrink-0 cursor-pointer self-start rounded-[4px] p-1 text-slateGrey transition-colors hover:bg-lilyGrey"},u.createElement(J.Z,{className:"h-4 w-4"})),u.createElement("div",{className:"absolute bottom-0 left-0 h-[3px] rounded-full bg-[#06B47A] ease-linear",style:{width:d,transition:"width ".concat(s,"ms linear")}}))},ie=(0,h.ZP)(te||(te=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n mutation MarkProductActivationSeen($id: String!) {\n markProductActivationSeen(id: $id) {\n id\n notifiedAt\n }\n }\n"]))),oe=(0,h.ZP)(re||(re=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n query NotSeenProductActivations {\n notSeenProductActivations {\n id\n createdAt\n product {\n productId\n name\n appIcon {\n url\n }\n }\n }\n }\n"])));function ae(e){return function(e){if(Array.isArray(e))return ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||le(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}
2finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||le(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,t){if(e){if("string"==typeof e)return ue(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)?ue(e,t):void 0}}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var ce="install-confirmed-",de=/^\/(earn(\/.*)?|wallet|cashout|more|products\/[^/]+)$/;var fe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"MarkGoogleAnalyticsEventsSynced"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"eventIds"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"markGoogleAnalyticsEventsSynced"},arguments:[{kind:"Argument",name:{kind:"Name",value:"eventIds"},value:{kind:"Variable",name:{kind:"Name",value:"eventIds"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:152,source:{body:"\n mutation MarkGoogleAnalyticsEventsSynced($eventIds: [String!]!) {\n markGoogleAnalyticsEventsSynced(eventIds: $eventIds) {\n success\n }\n }\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}},pe=r(30127),he={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PendingGoogleAnalyticsEvents"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pendingGoogleAnalyticsEvents"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"params"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:118,source:{body:"\n query PendingGoogleAnalyticsEvents {\n pendingGoogleAnalyticsEvents {\n id\n name\n params\n }\n }\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}},me=r(25311);function ve(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var l=n&&n.prototype instanceof s?n:s,u=Object.create(l.prototype);return ge(u,"_invoke",function(r,n,i){var o,s,l,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return o=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&u&&!i&&t<c.length;t++){var i,o=c[t],p=f.p,h=o[2];r>3?(i=h===n)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=r<2&&p<o[1])?(s=0,f.v=n,f.n=o[1]):p<h&&(i=r<3||o[0]>n||n>h)&&(o[4]=r,o[5]=n,f.n=h,s=0))}if(i||r>1)return a;throw d=!0,n}return function(i,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(r,i,o),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(ge(t={},n,function(){return this}),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,ge(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,ge(d,"constructor",u),ge(u,"constructor",l),l.displayName="GeneratorFunction",ge(u,i,"GeneratorFunction"),ge(d),ge(d,i,"Generator"),ge(d,n,function(){return this}),ge(d,"toString",function(){return"[object Generator]"}),(ve=function(){return{w:o,m:f}})()}function ge(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}ge=function(e,t,r,n){function o(t,r){ge(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},ge(e,t,r,n)}function ye(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Ee(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}
2}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function be(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function we(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){be(o,n,i,a,s,"next",e)}function s(e){be(o,n,i,a,s,"throw",e)}a(void 0)})}}function xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||Ee(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(e,t){if(e){if("string"==typeof e)return ke(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)?ke(e,t):void 0}}function ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Se(e){return Se="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},Se(e)}var _e=function(e){return"object"===Se(e)&&null!==e&&!Array.isArray(e)};var Ce,Oe=r(29876),Pe=(0,h.ZP)(Ce||(Ce=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n query CurrencyPreferences {\n userProfile {\n id\n displayCurrency\n }\n exchangeRates {\n id\n rate\n currency\n }\n }\n"]))),Te=r(25083),Ae=r(49793),Ie=r(56295);function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Re="pg_session_user_id",je={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"StartSession"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"startSession"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"success"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:70,source:{body:"\n mutation StartSession {\n startSession {\n success\n }\n }\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}},Me=r(9962),De=r(47023),Le=r(64452),Fe=function(e){var t=e.className,r=(0,Le.Z)("laptop"),n=(0,p._)().isLiteMode;return u.createElement("header",{className:(0,X.m)("fixed inset-x-0 top-0 z-40 flex h-16 items-center justify-between gap-3 border-b border-b-lilyGrey bg-white p-4 text-sm",t)},u.createElement(Me.ZP,{id:r?void 0:"wallet-balance"}),!n&&u.createElement(De.Z,null))},Be=r(93076),Ue=r(4387),Ve=function(e){var t=e.className,r=(0,(0,Be.$G)().t)("footer.contactCenter");return Ue.rY?u.createElement("button",{type:"button",onClick:Ue.Q$,className:(0,X.m)("text-primary underline",t)},r):u.createElement("a",{href:Ue.zl,className:(0,X.m)("text-primary underline",t)},r)};function ze(e){return ze="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},ze(e)}function qe(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 He(e,t,r){return(t=function(e){var t=function(e){if("object"!=ze(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=ze(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ze(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var $e=function(e){return u.createElement("svg",e,u.createElement("path",{d:"M323 1C318.925 1 318.416 1.01875 316.816 1.09C315.219 1.165 314.131 1.41625 313.175 1.7875C312.189 2.17 311.351 2.68375 310.517 3.5175C309.684 4.35125 309.169 5.1875 308.788 6.175C308.416 7.13125 308.164 8.21875 308.09 9.81625C308.015 11.4163 308 11.925 308 16C308 20.075 308.019 20.5837 308.09 22.1838C308.165 23.78 308.416 24.8688 308.788 25.825C309.17 26.81 309.684 27.6488 310.517 28.4825C311.351 29.315 312.188 29.8313 313.175 30.2125C314.132 30.5825 315.22 30.8363 316.816 30.91C318.416 30.985 318.925 31 323 31C327.075 31 327.584 30.9812 329.184 30.91C330.78 30.835 331.869 30.5825 332.825 30.2125C333.81 29.83 334.649 29.315 335.483 28.4825C336.315 27.6488 336.831 26.8138 337.213 25.825C337.583 24.8688 337.836 23.78 337.91 22.1838C337.985 20.5837 338 20.075 338 16C338 11.925 337.981 11.4163 337.91 9.81625C337.835 8.22 337.583 7.13 337.213 6.175C336.83 5.18875 336.315 4.35125 335.483 3.5175C334.649 2.68375 333.814 2.16875 332.825 1.7875C331.869 1.41625 330.78 1.16375 329.184 1.09C327.584 1.015 327.075 1 323 1ZM323 3.7C327.004 3.7 327.481 3.72 329.062 3.78875C330.525 3.8575 331.319 4.1 331.846 4.3075C332.549 4.57875 333.046 4.90375 333.574 5.4275C334.097 5.9525 334.422 6.45125 334.694 7.15375C334.899 7.68125 335.144 8.475 335.21 9.9375C335.281 11.52 335.297 11.995 335.297 16C335.297 20.005 335.279 20.4813 335.205 22.0625C335.129 23.525 334.885 24.3188 334.679 24.8462C334.399 25.5487 334.08 26.0462 333.555 26.5737C333.031 27.0975 332.525 27.4225 331.83 27.6937C331.305 27.8988 330.499 28.1437 329.036 28.21C327.444 28.2812 326.975 28.2975 322.963 28.2975C318.949 28.2975 318.48 28.2787 316.889 28.205C315.425 28.1287 314.619 27.885 314.094 27.
26788C313.383 27.3988 312.894 27.08 312.37 26.555C311.844 26.0312 311.507 25.525 311.245 24.83C311.039 24.305 310.796 23.4988 310.72 22.0363C310.664 20.4613 310.644 19.975 310.644 15.9812C310.644 11.9862 310.664 11.4987 310.72 9.905C310.796 8.4425 311.039 7.6375 311.245 7.1125C311.507 6.4 311.844 5.9125 312.37 5.38625C312.894 4.8625 313.383 4.525 314.094 4.26375C314.619 4.05625 315.408 3.8125 316.87 3.7375C318.464 3.68125 318.932 3.6625 322.944 3.6625L323 3.7ZM323 8.2975C318.744 8.2975 315.297 11.7475 315.297 16C315.297 20.2563 318.748 23.7025 323 23.7025C327.256 23.7025 330.703 20.2525 330.703 16C330.703 11.7437 327.253 8.2975 323 8.2975ZM323 21C320.238 21 318 18.7625 318 16C318 13.2375 320.238 11 323 11C325.763 11 328 13.2375 328 16C328 18.7625 325.763 21 323 21ZM332.808 7.99375C332.808 8.9875 332 9.79375 331.007 9.79375C330.014 9.79375 329.208 8.98625 329.208 7.99375C329.208 7.00125 330.015 6.195 331.007 6.195C331.999 6.19375 332.808 7.00125 332.808 7.99375Z",fill:"#677489"}))};$e.defaultProps={width:"32",height:"32",viewBox:"308 0 30 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var We=function(e){return u.createElement("svg",e,u.createElement("path",{d:"M175.855 25.8607H171.708V19.3635C171.708 17.8142 171.677 15.8203 169.548 15.8203C167.386 15.8203 167.056 17.5062 167.056 19.2492V25.8607H162.909V12.5H166.892V14.3212H166.946C167.503 13.2712 168.856 12.1628 170.878 12.1628C175.079 12.1628 175.856 14.9278 175.856 18.527V25.8607H175.855ZM158.226 10.6718C156.892 10.6718 155.82 9.5915 155.82 8.26267C155.82 6.935 156.893 5.85583 158.226 5.85583C159.556 5.85583 160.634 6.935 160.634 8.26267C160.634 9.5915 159.555 10.6718 158.226 10.6718ZM160.306 25.8607H156.148V12.5H160.306V25.8607ZM177.929 2H154.066C152.924 2 152 2.903 152 4.01717V27.9828C152 29.0982 152.924 30 154.066 30H177.926C179.067 30 180 29.0982 180 27.9828V4.01717C180 2.903 179.067 2 177.926 2H177.929Z",fill:"#677489"}))};We.defaultProps={width:"32",height:"32",viewBox:"152 0 28 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var Ze=function(e){return u.createElement("svg",e,u.createElement("g",{clipPath:"url(#clip0_327_85)"},u.createElement("path",{d:"M15.6574 1.025C17.2949 1 18.9199 1.0125 20.5449 1C20.6449 2.9125 21.3324 4.8625 22.7324 6.2125C24.1324 7.6 26.1074 8.2375 28.0324 8.45V13.4875C26.2324 13.425 24.4199 13.05 22.7824 12.275C22.0699 11.95 21.4074 11.5375 20.7574 11.1125C20.7449 14.7625 20.7699 18.4125 20.7324 22.05C20.6324 23.8 20.0574 25.5375 19.0449 26.975C17.4074 29.375 14.5699 30.9375 11.6574 30.9875C9.86988 31.0875 8.08238 30.6 6.55738 29.7C4.03238 28.2125 2.25738 25.4875 1.99488 22.5625C1.96988 21.9375 1.95738 21.3125 1.98238 20.7C2.20738 18.325 3.38238 16.05 5.20738 14.5C7.28238 12.7 10.1824 11.8375 12.8949 12.35C12.9199 14.2 12.8449 16.05 12.8449 17.9C11.6074 17.5 10.1574 17.6125 9.06988 18.3625C8.28238 18.875 7.68238 19.6625 7.36988 20.55C7.10738 21.1875 7.18238 21.8875 7.19488 22.5625C7.49488 24.6125 9.46988 26.3375 11.5699 26.15C12.9699 26.1375 14.3074 25.325 15.0324 24.1375C15.2699 23.725 15.5324 23.3 15.5449 22.8125C15.6699 20.575 15.6199 18.35 15.6324 16.1125C15.6449 11.075 15.6199 6.05 15.6574 1.025Z",fill:"#677489"})),u.createElement("defs",null,u.createElement("clipPath",{id:"clip0_327_85"},u.createElement("rect",{width:"30",height:"30",fill:"white",transform:"translate(0 1)"}))))};Ze.defaultProps={width:"32",height:"32",viewBox:"0 0 30 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var Qe=function(e){return u.createElement("svg",e,u.createElement("path",{d:"M257.331 8.2479C257.15 7.56693 256.793 6.94541 256.297 6.44558C255.8 5.94575 255.181 5.58515 254.501 5.3999C252.007 4.72656 242 4.72656 242 4.72656C242 4.72656 231.993 4.72656 229.497 5.3999C228.818 5.58548 228.199 5.94621 227.703 6.446C227.206 6.9458 226.85 7.56715 226.669 8.2479C226 10.7599 226 15.9999 226 15.9999C226 15.9999 226 21.2399 226.669 23.7519C226.85 24.4329 227.207 25.0544 227.703 25.5542C228.2 26.054 228.819 26.4146 229.499 26.5999C231.993 27.2732 242 27.2732 242 27.2732C242 27.2732 252.007 27.2732 254.503 26.5999C255.182 26.4148 255.802 26.0542 256.298 25.5544C256.795 25.0545 257.151 24.4329 257.332 23.7519C258 21.2399 258 15.9999 258 15.9999C258 15.9999 258 10.7599 257.331 8.2479ZM238.727 20.7572V11.2426L247.091 15.9999L238.727 20.7572Z",fill:"#677489"}))};Qe.defaultProps={width:"32",height:"32",viewBox:"226 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var Ye={tiktok:{icon:Ze,url:"https://www.tiktok.com/@prograd.uk",order:1},linkedin:{icon:We,url:"https://www.linkedin.com/company/prograduk",order:2},youtube:{icon:Qe,url:"https://youtube.com/channel/UCHQAIiRDH0TYHCEq3PkOKyQ",order:3},instagram:{icon:$e,url:"https://instagram.com/prograd.uk",order:4}},Ke=Object.entries(Ye).map(function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}
2finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ge(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)?Ge(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2);return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(r),!0).forEach(function(t){He(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qe(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({id:t[0]},t[1])}).sort(function(e,t){return e.order>t.order?1:-1}),Je=r(71213),Xe=r(80707),et=function(e){return u.createElement("svg",e,u.createElement("path",{d:"M4 43.1911H9.08932V32.4644C10.6161 33.6389 12.2603 34.187 14.1786 34.187C16.9973 34.187 19.6986 32.9342 21.382 30.9768C22.8696 29.2543 23.77 26.9053 23.77 24.3215C23.77 18.7233 19.6203 14.4169 14.4527 14.4169C12.2995 14.4169 10.3812 15.1216 8.89357 16.3352V14.8084H4V43.1911ZM9.08932 21.4637C10.1463 20.0543 11.8297 19.1148 13.7871 19.1148C16.7624 19.1148 18.6807 21.5811 18.6807 24.3215C18.6807 27.2968 16.5275 29.4891 13.6697 29.4891C11.7514 29.4891 10.068 28.5496 9.08932 27.1402V21.4637Z"}),u.createElement("path",{d:"M38.6557 14.5735C38.1076 14.4952 37.677 14.4169 36.9331 14.4169C34.6234 14.4169 32.5485 15.3174 31.4132 16.7267V14.8084H26.5196V33.7955H31.6089V21.8552C32.2353 20.7199 33.997 19.1148 36.2285 19.1148C36.9723 19.1148 37.7161 19.1931 38.0684 19.3105L38.6557 14.5735Z"}),u.createElement("path",{d:"M82.483 14.8084H77.5895V16.3352C76.1018 15.1216 74.1835 14.4169 72.0304 14.4169C66.8628 14.4169 62.713 18.7233 62.713 24.3215C62.713 26.9053 63.6134 29.2543 65.1011 30.9768C66.7845 32.9342 69.4857 34.187 72.3044 34.187C74.2227 34.187 75.8669 33.6389 77.3937 32.4644V33.0908C77.3937 35.518 77.0022 36.6925 76.2193 37.5538C75.358 38.5716 73.9878 39.0806 72.3436 39.0806C69.2117 39.0806 67.45 37.4363 66.4321 36.3401L63.2219 39.6678C65.1011 41.8601 68.6245 43.5826 72.3436 43.5826C75.9844 43.5826 79.038 42.1733 80.7605 39.7852C81.8958 38.1801 82.483 36.1444 82.483 32.7385V14.8084ZM77.3937 27.1402C76.415 28.5496 74.7316 29.4891 72.8133 29.4891C69.9555 29.4891 67.8023 27.2968 67.8023 24.3215C67.8023 21.5811 69.7206 19.1148 72.6959 19.1148C74.6533 19.1148 76.3367 20.0543 77.3937 21.4637V27.1402Z"}),u.createElement("path",{d:"M98.6361 14.5735C98.088 14.4952 97.6573 14.4169 96.9135 14.4169C94.6038 14.4169 92.5289 15.3174 91.3936 16.7267V14.8084H86.5V33.7955H91.5893V21.8552C92.2157 20.7199 93.9774 19.1148 96.2088 19.1148C96.9527 19.1148 97.6965 19.1931 98.0488 19.3105L98.6361 14.5735Z"}),u.createElement("path",{d:"M113.532 27.1402C112.554 28.5496 110.87 29.4891 108.952 29.4891C106.094 29.4891 103.941 27.2968 103.941 24.3215C103.941 21.5811 105.859 19.1148 108.835 19.1148C110.792 19.1148 112.475 20.0543 113.532 21.4637V27.1402ZM118.622 14.8084H113.728V16.3352C112.24 15.1216 110.322 14.4169 108.169 14.4169C103.001 14.4169 98.8517 18.7233 98.8517 24.3215C98.8517 26.9053 99.7912 29.2543 101.279 30.9768C102.962 32.9342 105.624 34.187 108.443 34.187C110.361 34.187 112.162 33.5997 113.728 32.2687V33.7955H118.622V14.8084Z"}),u.createElement("path",{d:"M136.052 27.1402C135.073 28.5496 133.39 29.4891 131.472 29.4891C128.614 29.4891 126.461 27.2968 126.461 24.3215C126.461 21.5811 128.379 19.1148 131.354 19.1148C133.312 19.1148 134.995 20.0543 136.052 21.4637V27.1402ZM141.141 33.7955V6H136.052V16.1786C134.564 15.0042 132.764 14.4169 130.689 14.4169C125.521 14.4169 121.371 18.7233 121.371 24.3215C121.371 26.9053 122.311 29.2543 123.799 30.9768C125.482 32.9342 128.144 34.187 130.963 34.187C132.881 34.187 134.682 33.5997 136.248 32.2687V33.7955H141.141Z"}),u.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M59.8184 24.2632C59.8184 29.7911 55.3371 34.2724 49.8092 34.2724C44.2813 34.2724 39.8 29.7911 39.8 24.2632C39.8 18.7353 44.2813 14.254 49.8092 14.254C55.3371 14.254 59.8184 18.7353 59.8184 24.2632ZM51.686 22.3865H48.1411V19.4671H54.6054V25.9314H51.686V22.3865ZM44.804 26.557H47.5148V29.2678H50.4342V23.6377H44.804V26.557Z"}))};et.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"145",height:"44",fill:"none",viewBox:"0 0 145 44"};var tt=function(e){var t=e.className,r=(0,Be.$G)().t;return u.createElement("footer",{className:(0,X.m)("bg-white pt-12 tablet:pt-16",t)},u.createElement("div",{className:"app-container mb-10 text-slateGrey laptop:mb-20"},u.createElement(et,{className:"mb-6 w-28 fill-primary laptop:mb-10 laptop:w-36"}),u.createElement("div",{className:"mb-6 flex gap-6"},Ke.map(function(e){var t=e.id,r=e.icon,n=e.url;return u.createElement("a",{key:t,href:n,target:"_blank",rel:"noopener noreferrer"},u.createElement(r,{className:"h-6 w-6"}))})),u.createElement("div",{className:"space-y-4 text-xs laptop:text-sm"},u.createElement("p",null,r("footer.copy2")),u.createElement("p",null,r("footer.copy3"),u.createElement(Ve,null),"."),u.createElement("p",null,u.createElement(Be.cC,{i18nKey:"footer.copy4"},"If you want to make a complaint, please read our complaints policy"," ",u.createElement("a",{className:"text-primary underline",href:(0,Xe.S)("complaints"),target:"_blank",rel:"noopener noreferrer"},"here"))),u.createElement("p",null,u.createElement(Be.cC,{i18nKey:"footer.copy5"},"Please read our"," ",u.createElement("a",{className:"text-primary underline",href:(0,Xe.S)("terms-conditions"),target:"_blank",rel:"noopener noreferrer"},"Terms and Conditions")," ","and"," ",u.createElement("a",{className:"text-primary underline",href:(0,Xe.S)("privacy"),target:"_blank",rel:"noopener noreferrer"},"Privacy Policy")," ","for more information",u.createElement("button",{className:"text-primary underline",onClick:Je.B}
2,"Manage Cookies")," ")))),u.createElement("hr",{className:"text-platinumGrey"}),u.createElement("div",{className:"app-container py-8 text-center"},u.createElement("p",{className:"text-xs text-slateGrey laptop:text-sm"},r("footer.copyright",{year:(new Date).getFullYear()}))))};function rt({title:e,titleId:t,...r},n){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?u.createElement("title",{id:t},e):null,u.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15m3 0 3-3m0 0-3-3m3 3H9"}))}var nt=u.forwardRef(rt),it=(r(66066),function(e){var t=(0,d.useLocation)().pathname,r=e.children,n=e.onClick,i=e.className;if(function(e){return"to"in e}(e)){var o=t.includes("campaigns")&&e.to.includes("spin-the-wheel"),a=(0,X.m)("group relative flex items-center gap-2 rounded-lg border border-transparent px-3 py-3 text-ebonyGrey transition-all duration-300 hover:border-primary active:border-primary [&_svg]:h-5 [&_svg]:w-5",i),s=function(){null==n||n()};return void 0!==e.matchNavigationActive?u.createElement(d.Link,{to:e.to,className:(0,X.m)(a,e.matchNavigationActive&&"!border-primary !shadow-rect"),onClick:s},r):u.createElement(d.NavLink,{to:e.to,className:(0,X.m)(a,o&&"!border-primary !shadow-rect"),activeClassName:"!border-primary !shadow-rect",onClick:s},r)}return u.createElement("button",{onClick:n,className:"group relative flex items-center gap-2 rounded-lg border border-transparent px-3 py-3 text-ebonyGrey transition-all duration-300 hover:border-primary active:border-primary [&_svg]:h-5 [&_svg]:w-5"},r)}),ot=r(55741),at=r.p+"static/media/device.836d31c5.png",st=function(e){var t=e.className;return u.createElement("div",{className:(0,X.m)("rounded-lg bg-[#D0FAEC]",t)},u.createElement("div",{className:"bg-[url('./layouts/AppLayout/components/AppSidebarBanner/assets/background.png')] bg-cover bg-no-repeat"},u.createElement("div",{className:"flex justify-between gap-3 px-3 pt-3"},u.createElement("p",{className:"text-xl font-bold"},"Download the Prograd app ð"),u.createElement(ot.Z,{className:"h-6 w-6 flex-shrink-0"})),u.createElement("div",{className:"flex justify-between pl-3"},u.createElement("p",{className:"py-2 text-slateGrey"},"Make money wherever you are"),u.createElement("img",{src:at,alt:"Mobile phone with Prograd app icon",className:"w-20 flex-shrink-0"}))))},lt=[/^\/more(\/|$)/,/^\/profile(\/|$)/,/^\/bonus-rewards(\/|$)/,/^\/leaderboard(\/|$)/,/^\/quests(\/|$)/,/^\/quest\//,/^\/spin-the-wheel(\/|$)/,/^\/campaigns(\/|$)/,/^\/redemptions(\/|$)/];function ut(e){return lt.some(function(t){return t.test(e)})}function ct(e,t){switch(e){case"earn":return/^\/earn(\/|$)/.test(t);case"my_games":return/^\/wallet(\/|$)/.test(t);case"cashout":return/^\/cashout(\/|$)/.test(t);case"more":return ut(t);default:return!1}}var dt=function(e){return u.createElement("svg",e,u.createElement("path",{d:"M4 43.1911H9.08932V32.4644C10.6161 33.6389 12.2603 34.187 14.1786 34.187C16.9973 34.187 19.6986 32.9342 21.382 30.9768C22.8696 29.2543 23.77 26.9053 23.77 24.3215C23.77 18.7233 19.6203 14.4169 14.4527 14.4169C12.2995 14.4169 10.3812 15.1216 8.89357 16.3352V14.8084H4V43.1911ZM9.08932 21.4637C10.1463 20.0543 11.8297 19.1148 13.7871 19.1148C16.7624 19.1148 18.6807 21.5811 18.6807 24.3215C18.6807 27.2968 16.5275 29.4891 13.6697 29.4891C11.7514 29.4891 10.068 28.5496 9.08932 27.1402V21.4637Z"}),u.createElement("path",{d:"M38.6557 14.5735C38.1076 14.4952 37.677 14.4169 36.9331 14.4169C34.6234 14.4169 32.5485 15.3174 31.4132 16.7267V14.8084H26.5196V33.7955H31.6089V21.8552C32.2353 20.7199 33.997 19.1148 36.2285 19.1148C36.9723 19.1148 37.7161 19.1931 38.0684 19.3105L38.6557 14.5735Z"}),u.createElement("path",{d:"M82.483 14.8084H77.5895V16.3352C76.1018 15.1216 74.1835 14.4169 72.0304 14.4169C66.8628 14.4169 62.713 18.7233 62.713 24.3215C62.713 26.9053 63.6134 29.2543 65.1011 30.9768C66.7845 32.9342 69.4857 34.187 72.3044 34.187C74.2227 34.187 75.8669 33.6389 77.3937 32.4644V33.0908C77.3937 35.518 77.0022 36.6925 76.2193 37.5538C75.358 38.5716 73.9878 39.0806 72.3436 39.0806C69.2117 39.0806 67.45 37.4363 66.4321 36.3401L63.2219 39.6678C65.1011 41.8601 68.6245 43.5826 72.3436 43.5826C75.9844 43.5826 79.038 42.1733 80.7605 39.7852C81.8958 38.1801 82.483 36.1444 82.483 32.7385V14.8084ZM77.3937 27.1402C76.415 28.5496 74.7316 29.4891 72.8133 29.4891C69.9555 29.4891 67.8023 27.2968 67.8023 24.3215C67.8023 21.5811 69.7206 19.1148 72.6959 19.1148C74.6533 19.1148 76.3367 20.0543 77.3937 21.4637V27.1402Z"}),u.createElement("path",{d:"M98.6361 14.5735C98.088 14.4952 97.6573 14.4169 96.9135 14.4169C94.6038 14.4169 92.5289 15.3174 91.3936 16.7267V14.8084H86.5V33.7955H91.5893V21.8552C92.2157 20.7199 93.9774 19.1148 96.2088 19.1148C96.9527 19.1148 97.6965 19.1931 98.0488 19.3105L98.6361 14.5735Z"}
2),u.createElement("path",{d:"M113.532 27.1402C112.554 28.5496 110.87 29.4891 108.952 29.4891C106.094 29.4891 103.941 27.2968 103.941 24.3215C103.941 21.5811 105.859 19.1148 108.835 19.1148C110.792 19.1148 112.475 20.0543 113.532 21.4637V27.1402ZM118.622 14.8084H113.728V16.3352C112.24 15.1216 110.322 14.4169 108.169 14.4169C103.001 14.4169 98.8517 18.7233 98.8517 24.3215C98.8517 26.9053 99.7912 29.2543 101.279 30.9768C102.962 32.9342 105.624 34.187 108.443 34.187C110.361 34.187 112.162 33.5997 113.728 32.2687V33.7955H118.622V14.8084Z"}),u.createElement("path",{d:"M136.052 27.1402C135.073 28.5496 133.39 29.4891 131.472 29.4891C128.614 29.4891 126.461 27.2968 126.461 24.3215C126.461 21.5811 128.379 19.1148 131.354 19.1148C133.312 19.1148 134.995 20.0543 136.052 21.4637V27.1402ZM141.141 33.7955V6H136.052V16.1786C134.564 15.0042 132.764 14.4169 130.689 14.4169C125.521 14.4169 121.371 18.7233 121.371 24.3215C121.371 26.9053 122.311 29.2543 123.799 30.9768C125.482 32.9342 128.144 34.187 130.963 34.187C132.881 34.187 134.682 33.5997 136.248 32.2687V33.7955H141.141Z"}),u.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M59.8184 24.2632C59.8184 29.7911 55.3371 34.2724 49.8092 34.2724C44.2813 34.2724 39.8 29.7911 39.8 24.2632C39.8 18.7353 44.2813 14.254 49.8092 14.254C55.3371 14.254 59.8184 18.7353 59.8184 24.2632ZM51.686 22.3865H48.1411V19.4671H54.6054V25.9314H51.686V22.3865ZM44.804 26.557H47.5148V29.2678H50.4342V23.6377H44.804V26.557Z"}))};dt.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"145",height:"44",fill:"none",viewBox:"0 0 145 44"};var ft=function(e){return u.createElement("svg",e,u.createElement("path",{d:"M0.76875 4.51875H14.2688M3.76875 8.26875H4.51875M7.51875 8.26875H8.26875M3.01875 11.2688H12.0188C13.2614 11.2688 14.2688 10.2614 14.2688 9.01875V3.01875C14.2688 1.77611 13.2614 0.76875 12.0187 0.76875H3.01875C1.77611 0.76875 0.76875 1.77611 0.76875 3.01875V9.01875C0.76875 10.2614 1.77611 11.2688 3.01875 11.2688Z",stroke:"currentColor",strokeWidth:"1.5375",strokeLinecap:"round",strokeLinejoin:"round"}))};ft.defaultProps={width:"20",height:"16",viewBox:"0 0 15.0375 12.0375",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var pt=function(e){return u.createElement("svg",e,u.createElement("path",{d:"M13.8889 6.66667V5.11111C13.8889 4.252 13.1924 3.55556 12.3333 3.55556H4.55556C3.69645 3.55556 3 4.252 3 5.11111V9.77778C3 10.6369 3.69645 11.3333 4.55556 11.3333H6.11111M7.66667 14.4444H15.4444C16.3036 14.4444 17 13.748 17 12.8889V8.22222C17 7.36311 16.3036 6.66667 15.4444 6.66667H7.66667C6.80756 6.66667 6.11111 7.36311 6.11111 8.22222V12.8889C6.11111 13.748 6.80756 14.4444 7.66667 14.4444ZM13.1111 10.5556C13.1111 11.4147 12.4147 12.1111 11.5556 12.1111C10.6964 12.1111 10 11.4147 10 10.5556C10 9.69645 10.6964 9 11.5556 9C12.4147 9 13.1111 9.69645 13.1111 10.5556Z",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"}))};pt.defaultProps={width:"20",height:"18",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var ht=function(e){return u.createElement("svg",e,u.createElement("path",{d:"M12.75 13.5C12.75 13.6989 12.829 13.8897 12.9697 14.0303C13.1103 14.171 13.3011 14.25 13.5 14.25C13.6989 14.25 13.8897 14.171 14.0303 14.0303C14.171 13.8897 14.25 13.6989 14.25 13.5C14.25 13.3011 14.171 13.1103 14.0303 12.9697C13.8897 12.829 13.6989 12.75 13.5 12.75C13.3011 12.75 13.1103 12.829 12.9697 12.9697C12.829 13.1103 12.75 13.3011 12.75 13.5ZM8.25 13.5C8.25 13.6989 8.32902 13.8897 8.46967 14.0303C8.61032 14.171 8.80109 14.25 9 14.25C9.19891 14.25 9.38968 14.171 9.53033 14.0303C9.67098 13.8897 9.75 13.6989 9.75 13.5C9.75 13.3011 9.67098 13.1103 9.53033 12.9697C9.38968 12.829 9.19891 12.75 9 12.75C8.80109 12.75 8.61032 12.829 8.46967 12.9697C8.32902 13.1103 8.25 13.3011 8.25 13.5ZM3.75 13.5C3.75 13.6989 3.82902 13.8897 3.96967 14.0303C4.11032 14.171 4.30109 14.25 4.5 14.25C4.69891 14.25 4.88968 14.171 5.03033 14.0303C5.17098 13.8897 5.25 13.6989 5.25 13.5C5.25 13.3011 5.17098 13.1103 5.03033 12.9697C4.88968 12.829 4.69891 12.75 4.5 12.75C4.30109 12.75 4.11032 12.829 3.96967 12.9697C3.82902 13.1103 3.75 13.3011 3.75 13.5ZM12.75 9C12.75 9.19891 12.829 9.38968 12.9697 9.53033C13.1103 9.67098 13.3011 9.75 13.5 9.75C13.6989 9.75 13.8897 9.67098 14.0303 9.53033C14.171 9.38968 14.25 9.19891 14.25 9C14.25 8.8
20109 14.171 8.61032 14.0303 8.46967C13.8897 8.32902 13.6989 8.25 13.5 8.25C13.3011 8.25 13.1103 8.32902 12.9697 8.46967C12.829 8.61032 12.75 8.80109 12.75 9ZM8.25 9C8.25 9.19891 8.32902 9.38968 8.46967 9.53033C8.61032 9.67098 8.80109 9.75 9 9.75C9.19891 9.75 9.38968 9.67098 9.53033 9.53033C9.67098 9.38968 9.75 9.19891 9.75 9C9.75 8.80109 9.67098 8.61032 9.53033 8.46967C9.38968 8.32902 9.19891 8.25 9 8.25C8.80109 8.25 8.61032 8.32902 8.46967 8.46967C8.32902 8.61032 8.25 8.80109 8.25 9ZM3.75 9C3.75 9.19891 3.82902 9.38968 3.96967 9.53033C4.11032 9.67098 4.30109 9.75 4.5 9.75C4.69891 9.75 4.88968 9.67098 5.03033 9.53033C5.17098 9.38968 5.25 9.19891 5.25 9C5.25 8.80109 5.17098 8.61032 5.03033 8.46967C4.88968 8.32902 4.69891 8.25 4.5 8.25C4.30109 8.25 4.11032 8.32902 3.96967 8.46967C3.82902 8.61032 3.75 8.80109 3.75 9ZM12.75 4.5C12.75 4.69891 12.829 4.88968 12.9697 5.03033C13.1103 5.17098 13.3011 5.25 13.5 5.25C13.6989 5.25 13.8897 5.17098 14.0303 5.03033C14.171 4.88968 14.25 4.69891 14.25 4.5C14.25 4.30109 14.171 4.11032 14.0303 3.96967C13.8897 3.82902 13.6989 3.75 13.5 3.75C13.3011 3.75 13.1103 3.82902 12.9697 3.96967C12.829 4.11032 12.75 4.30109 12.75 4.5ZM8.25 4.5C8.25 4.69891 8.32902 4.88968 8.46967 5.03033C8.61032 5.17098 8.80109 5.25 9 5.25C9.19891 5.25 9.38968 5.17098 9.53033 5.03033C9.67098 4.88968 9.75 4.69891 9.75 4.5C9.75 4.30109 9.67098 4.11032 9.53033 3.96967C9.38968 3.82902 9.19891 3.75 9 3.75C8.80109 3.75 8.61032 3.82902 8.46967 3.96967C8.32902 4.11032 8.25 4.30109 8.25 4.5ZM3.75 4.5C3.75 4.69891 3.82902 4.88968 3.96967 5.03033C4.11032 5.17098 4.30109 5.25 4.5 5.25C4.69891 5.25 4.88968 5.17098 5.03033 5.03033C5.17098 4.88968 5.25 4.69891 5.25 4.5C5.25 4.30109 5.17098 4.11032 5.03033 3.96967C4.88968 3.82902 4.69891 3.75 4.5 3.75C4.30109 3.75 4.11032 3.82902 3.96967 3.96967C3.82902 4.11032 3.75 4.30109 3.75 4.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};ht.defaultProps={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var mt=function(e){return u.createElement("svg",e,u.createElement("path",{d:"M3.4126 14.25C2.7751 14.25 2.28135 14.0281 1.93135 13.5844C1.58135 13.1406 1.4501 12.6 1.5376 11.9625L2.3251 6.3375C2.4376 5.5875 2.77198 4.96875 3.32823 4.48125C3.88448 3.99375 4.5376 3.75 5.2876 3.75H12.7126C13.4626 3.75 14.1157 3.99375 14.672 4.48125C15.2282 4.96875 15.5626 5.5875 15.6751 6.3375L16.4626 11.9625C16.5501 12.6 16.4189 13.1406 16.0689 13.5844C15.7189 14.0281 15.2251 14.25 14.5876 14.25C14.3251 14.25 14.0814 14.2031 13.8564 14.1094C13.6314 14.0156 13.4251 13.875 13.2376 13.6875L11.5501 12H6.4501L4.7626 13.6875C4.5751 13.875 4.36885 14.0156 4.14385 14.1094C3.91885 14.2031 3.6751 14.25 3.4126 14.25ZM3.7126 12.6375L5.8501 10.5H12.1501L14.2876 12.6375C14.3126 12.6625 14.4126 12.7 14.5876 12.75C14.7251 12.75 14.8345 12.7094 14.9157 12.6281C14.997 12.5469 15.0251 12.4375 15.0001 12.3L14.1751 6.525C14.1251 6.1625 13.9626 5.85937 13.6876 5.61562C13.4126 5.37187 13.0876 5.25 12.7126 5.25H5.2876C4.9126 5.25 4.5876 5.37187 4.3126 5.61562C4.0376 5.85937 3.8751 6.1625 3.8251 6.525L3.0001 12.3C2.9751 12.4375 3.00323 12.5469 3.08448 12.6281C3.16573 12.7094 3.2751 12.75 3.4126 12.75C3.4376 12.75 3.5376 12.7125 3.7126 12.6375ZM13.2845 9.53438C13.4282 9.39063 13.5001 9.2125 13.5001 9C13.5001 8.7875 13.4282 8.60937 13.2845 8.46562C13.1407 8.32187 12.9626 8.25 12.7501 8.25C12.5376 8.25 12.3595 8.32187 12.2157 8.46562C12.072 8.60937 12.0001 8.7875 12.0001 9C12.0001 9.2125 12.072 9.39063 12.2157 9.53438C12.3595 9.67813 12.5376 9.75 12.7501 9.75C12.9626 9.75 13.1407 9.67813 13.2845 9.53438ZM11.7845 7.28438C11.9282 7.14063 12.0001 6.9625 12.0001 6.75C12.0001 6.5375 11.9282 6.35938 11.7845 6.21563C11.6407 6.07188 11.4626 6 11.2501 6C11.0376 6 10.8595 6.07188 10.7157 6.21563C10.572 6.35938 10.5001 6.5375 10.5001 6.75C10.5001 6.9625 10.572 7.14063 10.7157 7.28438C10.8595 7.42813 11.0376 7.5 11.2501 7.5C11.4626 7.5 11.6407 7.42813 11.7845 7.28438ZM5.8126 9.75H6.9376V8.4375H8.2501V7.3125H6.9376V6H5.8126V7.3125H4.5001V8.4375H5.8126V9.75Z",fill:"currentColor"}))};mt.defaultProps={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var vt=function(e){var t=e.className,r=(0,E.a)().logOut,n=(0,I.x)(),i=(0,d.useLocation)().pathname,o=(0,p._)().isLiteMode;return u.createElement("aside",{className:(0,X.m)("no-scrollbar group fixed left-0 top-0 z-50 flex h-screen w-56 flex-col border-r border-r-lilyGrey bg-white px-4 py-5 font-normal",t)},u.createElement("div",{className:"mb-16"},u.createElement(dt,{className:"mx-auto w-28 fill-primary"})),u.createElement("nav",{className:"flex flex-grow flex-col justify-between"},u.createElement("div",{className:"flex flex-col gap-2"},u.createElement(it,{to:d.routes.earn(),matchNavigationActive:ct("earn",i)},u.createElement(pt,{className:"flex-shrink-0"}),u.createElement("span",null,"Earn")),u.createElement(it,{to:d.routes.wallet(),matchNavigationActive:ct("my_games",i)},u.createElement(mt,{className:"flex-shrink-0"}),u.createElement("span",null,"My Games")),u.createElement(it,{to:d.routes.cashout(),matchNavigationActive:ct("cashout",i)},u.createElement(ft,{className:"flex-shrink-0"}),u.createElement("span",null,"Cashout")),u.createElement(it,{to:d.routes.more(),matchNavigationActive:ct("more",i)},u.createElement(ht,{className:"flex-shrink-0"}),u.createElement("span",null,"More")),!o&&u.createElement(d.Link,{to:d.routes.appAd()},u.createElement(st,null))),u.createElement("button",{onClick:function(){return V.co.reset(),(0,Ue.DZ)(),n.clearStore(),r()},className:"group flex items-center gap-5 p-3 text-ebonyGrey"},u.createElement(nt,{className:"w-5 flex-shrink-0 stroke-ebonyGrey"}),u.createElement("span",null,"Logout"))))},gt=function(e){var t,r,n,i,o,l,c,p=e.children;return(0,V.Sn)(),(0,Te.x)(),t=(0,s.useQuery)(Pe).data,r=(0,Oe._y)(),(0,u.useEffect)(function(){null!=t&&t.userProfile&&null!=t&&t.exchangeRates&&(r.setDisplayCurrency(t.userProfile.displayCurrency),r.setExchangeRates(t.exchangeRates))},[t,r]),n=(0,E.a)().currentUser,i=null==n?void 0:n.id,o=(0,Ie.C)().persistGoogleAnalyticsIds,l=(0,u.useRef)(null),c=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}
2finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ne(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)?Ne(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,s.useMutation)(je,{onCompleted:function(){i&&(l.current=i,sessionStorage.setItem(Re,i))},onError:function(){l.current=null,sessionStorage.removeItem(Re)}}),1)[0],(0,u.useEffect)(function(){if(i){var e=sessionStorage.getItem(Re),t=l.current;e!==i&&t!==i&&(l.current=i,c(),o())}else l.current=null},[c,o,i]),function(){var e=(0,E.a)().currentUser,t=null==e?void 0:e.id,r=(0,u.useRef)(!1),n=(0,u.useRef)(0),i=xe((0,pe.t)(he),1)[0],o=xe((0,s.useMutation)(fe,void 0),1)[0],a=(0,u.useCallback)(we(ve().m(function e(){var a,s,l,u,c,d,f,p,h;return ve().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t){e.n=1;break}return e.a(2);case 1:if(!r.current){e.n=2;break}return e.a(2);case 2:if(!(Date.now()-n.current<3e5)){e.n=3;break}return e.a(2);case 3:return r.current=!0,e.p=4,e.n=5,i({fetchPolicy:"network-only"});case 5:l=e.v,u=null!==(a=null===(s=l.data)||void 0===s?void 0:s.pendingGoogleAnalyticsEvents)&&void 0!==a?a:[],c=[],d=ye(u),e.p=6,d.s();case 7:if((f=d.n()).done){e.n=13;break}if(p=f.value,e.p=8,_e(p.params)){e.n=9;break}throw new Error("Google Analytics event params must be an object");case 9:return e.n=10,(0,me.ni)(p.name,p.params);case 10:c.push(p.id),e.n=12;break;case 11:e.p=11,e.v;case 12:e.n=7;break;case 13:e.n=15;break;case 14:e.p=14,h=e.v,d.e(h);case 15:return e.p=15,d.f(),e.f(15);case 16:if(!(c.length>0)){e.n=17;break}return e.n=17,o({variables:{eventIds:c}});case 17:n.current=Date.now(),e.n=19;break;case 18:e.p=18,e.v;case 19:return e.p=19,r.current=!1,e.f(19);case 20:return e.a(2)}},e,null,[[8,11],[6,14,15,16],[4,18,19,20]])})),[i,o,t]);(0,u.useEffect)(function(){a()},[a]),(0,u.useEffect)(function(){var e=function(){a()},t=function(){"visible"===document.visibilityState&&a()};return window.addEventListener("focus",e),document.addEventListener("visibilitychange",t),function(){window.removeEventListener("focus",e),document.removeEventListener("visibilitychange",t)}},[a])}(),function(){var e=(0,d.useLocation)().pathname,t=(0,s.useQuery)(oe,{fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first"}),r=t.data,n=t.refetch,i=se((0,s.useMutation)(ie,void 0),1)[0],o=(0,K.useToasterStore)().toasts,l=(0,u.useContext)(a.j9),c=Object.values(null!=l?l:{}).some(function(e){return null==e?void 0:e.visible}),f=function(e){return de.test(e)}(e),p=f&&!c,h=(0,u.useRef)(f);h.current=f;var m=se((0,u.useState)([]),2),v=m[0],g=m[1],y=(0,u.useRef)(new Set),b=(0,u.useRef)(new Set),w=(0,u.useCallback)(function(e){return!b.current.has(e)&&(b.current.add(e),!0)},[]),x=o.filter(function(e){var t;return e.visible&&(null===(t=e.id)||void 0===t?void 0:t.startsWith(ce))}).length,E=(0,u.useCallback)(function(e){var t="".concat(ce).concat(e.id),r={offerId:e.product.productId,offerName:e.product.name};K.toast.custom(function(t){var n,i;return u.createElement(ne,{iconUrl:null!==(n=null===(i=e.product.appIcon)||void 0===i?void 0:i.url)&&void 0!==n?n:"",game:e.product.name,visible:t.visible,onDismiss:function(){K.toast.dismiss(t.id),w(e.id)&&(0,V.i$)(r)},onClick:function(){K.toast.dismiss(t.id),w(e.id)&&(0,V.XY)(r),(0,d.navigate)(d.routes.wallet({productId:e.product.productId}))},durationMs:5e3,className:"w-[310px]"})},{id:t,duration:5e3,position:"undefined"!=typeof window&&window.matchMedia("(min-width: 1024px)").matches?"top-right":"bottom-center"}),(0,V._o)(r),i({variables:{id:e.id}}).catch(function(){})},[i,w]);(0,u.useEffect)(function(){var e=null==r?void 0:r.notSeenProductActivations;if(null!=e&&e.length){var t=e.filter(function(e){return!y.current.has(e.id)});0!==t.length&&(t.forEach(function(e){return y.current.add(e.id)}),g(function(e){return[].concat(ae(e),ae(t))}))}},[r]),(0,u.useEffect)(function(){if(p&&0!==v.length){var e=3-x;if(!(e<=0)){var t=v.slice(0,e);t.forEach(E),g(function(e){return e.slice(t.length)})}}},[p,v,x,E]);var k=(0,u.useRef)(!0);(0,u.useEffect)(function(){k.current?k.current=!1:f&&n()},[e]),(0,u.useEffect)(function(){var e=function(){"visible"===document.visibilityState&&h.current&&n()};return window.addEventListener("focus",e),document.addEventListener("visibilitychange",e),function(){window.removeEventListener("focus",e),document.removeEventListener("visibilitychange",e)}},[n])}(),(0,Ae.J)(),u.createElement("div",{className:"flex min-h-screen flex-col"},u.createElement(Fe,{className:"laptop:hidden"}),u.createElement(vt,{className:"hidden laptop:flex"}),u.createElement("main",{className:"pt-16 laptop:ml-56 laptop:flex laptop:flex-col laptop:pt-0"},u.createElement(x,null,u.createElement(Y,null,p))),u.createElement(tt,{className:"mt-auto laptop:pl-56"}),u.createElement(f.Toaster,{containerClassName:"max-laptop:!bottom-[75px]"}))},yt=function(e){return u.createElement("svg",e,u.createElement("g",{id:"logo"},u.createElement("g",{id:"pr grad"},u.createElement("path",{d:"M0 29.5472H4.06515V21.0251C5.2847 21.9582 6.59805 22.3936 8.1303 22.3936C10.3818 22.3936 12.5394 21.3984 13.8841 19.8433C15.0723 18.4748 15.7915 16.6086 15.7915 14.5559C15.7915 10.1082 12.4769 6.68699 8.34919 6.68699C6.62932 6.68699 5.09707 7.24683 3.9088 8.211V6.99801H0V29.5472ZM4.06515 12.2854C4.90945 11.1657 6.25408 10.4193 7.8176 10.4193C10.1941 10.4193 11.7264 12.3787 11.7264 14.5559C11.7264 16.9196 10.0065 18.6614 7.72379 18.6614C6.19154 18.6614 4.84691 17.9149 4.06515 16.7952V12.2854Z",fill:"#269B74"}),u.createElement("path",{d:"M27.6816 6.8114C27.2438 6.74919 26.8999 6.68699 26.3057 6.68699C24.4608 6.68699 22.8034 7.40234 21.89
266 8.52203V6.99801H17.9878V22.0826H22.053V12.5964C22.5533 11.6945 23.9604 10.4193 25.7429 10.4193C26.337 10.4193 26.9311 10.4815 27.2126 10.5748L27.6816 6.8114Z",fill:"#269B74"}),u.createElement("path",{d:"M62.6893 6.99801H58.7805V8.211C57.5922 7.24683 56.0599 6.68699 54.3401 6.68699C50.2124 6.68699 46.8977 10.1082 46.8977 14.5559C46.8977 16.6086 47.6169 18.4748 48.8052 19.8433C50.1498 21.3984 52.3075 22.3936 54.559 22.3936C56.0912 22.3936 57.4046 21.9582 58.6241 21.0251V21.5228C58.6241 23.4511 58.3114 24.3842 57.686 25.0684C56.9981 25.8771 55.9036 26.2814 54.5902 26.2814C52.0886 26.2814 50.6814 24.9751 49.8684 24.1043L47.3042 26.748C48.8052 28.4897 51.6195 29.8582 54.5902 29.8582C57.4984 29.8582 59.9375 28.7385 61.3134 26.8413C62.2202 25.5661 62.6893 23.9488 62.6893 21.2429V6.99801ZM58.6241 16.7952C57.8424 17.9149 56.4977 18.6614 54.9655 18.6614C52.6827 18.6614 50.9629 16.9196 50.9629 14.5559C50.9629 12.3787 52.4951 10.4193 54.8717 10.4193C56.4352 10.4193 57.7798 11.1657 58.6241 12.2854V16.7952Z",fill:"#269B74"}),u.createElement("path",{d:"M75.5917 6.8114C75.1539 6.74919 74.8099 6.68699 74.2158 6.68699C72.3708 6.68699 70.7135 7.40234 69.8067 8.52202V6.99801H65.8979V22.0826H69.963V12.5964C70.4633 11.6945 71.8705 10.4193 73.6529 10.4193C74.2471 10.4193 74.8412 10.4815 75.1226 10.5748L75.5917 6.8114Z",fill:"#269B74"}),u.createElement("path",{d:"M87.4903 16.7952C86.7085 17.9149 85.3639 18.6614 83.8317 18.6614C81.5489 18.6614 79.8291 16.9196 79.8291 14.5559C79.8291 12.3787 81.3613 10.4193 83.7379 10.4193C85.3014 10.4193 86.646 11.1657 87.4903 12.2854V16.7952ZM91.5555 6.99801H87.6467V8.211C86.4584 7.24683 84.9261 6.68699 83.2063 6.68699C79.0786 6.68699 75.7639 10.1082 75.7639 14.5559C75.7639 16.6086 76.5144 18.4748 77.7027 19.8433C79.0473 21.3984 81.1737 22.3936 83.4252 22.3936C84.9574 22.3936 86.3958 21.9271 87.6467 20.8696V22.0826H91.5555V6.99801Z",fill:"#269B74"}),u.createElement("path",{d:"M105.478 16.7952C104.696 17.9149 103.352 18.6614 101.819 18.6614C99.5367 18.6614 97.8169 16.9196 97.8169 14.5559C97.8169 12.3787 99.3491 10.4193 101.726 10.4193C103.289 10.4193 104.634 11.1657 105.478 12.2854V16.7952ZM109.543 22.0826V0H105.478V8.08659C104.29 7.15352 102.851 6.68699 101.194 6.68699C97.0664 6.68699 93.7517 10.1082 93.7517 14.5559C93.7517 16.6086 94.5022 18.4748 95.6905 19.8433C97.0351 21.3984 99.1615 22.3936 101.413 22.3936C102.945 22.3936 104.384 21.9271 105.634 20.8696V22.0826H109.543Z",fill:"#269B74"})),u.createElement("path",{id:"Subtract",fillRule:"evenodd",clipRule:"evenodd",d:"M44.5855 14.5091C44.5855 18.9009 41.006 22.4611 36.5905 22.4611C32.175 22.4611 28.5955 18.9009 28.5955 14.5091C28.5955 10.1174 32.175 6.55713 36.5905 6.55713C41.006 6.55713 44.5855 10.1174 44.5855 14.5091ZM38.0896 13.0181H35.2581V10.6988H40.4215V15.8344H38.0896V13.0181ZM32.5925 16.3315H34.7578V18.4851H37.0897V14.0121H32.5925V16.3315Z",fill:"#269B74"})))};yt.defaultProps={width:"110",height:"30",viewBox:"0 0 110 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var bt=function(e){var t=e.className;return u.createElement("header",{className:(0,X.m)("flex min-h-24 flex-col bg-peppermintGreen bg-[url('./components/auth/AuthHeader/assets/shadow-coins.png')] bg-contain bg-right-bottom bg-no-repeat",t)},u.createElement("div",{className:"mx-auto flex w-full max-w-7xl flex-grow flex-col justify-center px-6"},u.createElement(yt,{className:"h-8"})))},wt=function(e){var t=e.children;return u.createElement("main",null,u.createElement("div",{className:"flex min-h-screen flex-col items-stretch"},u.createElement(bt,{className:"w-full flex-[200px] flex-grow-0"}),u.createElement("div",{className:"px-6 py-10"},u.createElement("div",{className:"mx-auto max-w-xl"},t))),u.createElement(K.Toaster,null))},xt=function(e){return u.createElement("svg",e,u.createElement("path",{d:"M0.76875 4.51875H14.2688M3.76875 8.26875H4.51875M7.51875 8.26875H8.26875M3.01875 11.2688H12.0188C13.2614 11.2688 14.2688 10.2614 14.2688 9.01875V3.01875C14.2688 1.77611 13.2614 0.76875 12.0187 0.76875H3.01875C1.77611 0.76875 0.76875 1.77611 0.76875 3.01875V9.01875C0.76875 10.2614 1.77611 11.2688 3.01875 11.2688Z",stroke:"currentColor",strokeWidth:"1.5375",strokeLinecap:"round",strokeLinejoin:"round"}))};xt.defaultProps={width:"20",height:"16",viewBox:"0 0 15.0375 12.0375",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var Et=function(e){return u.createElement("svg",e,u.createElement("path",{d:"M13.8889 6.66667V5.11111C13.8889 4.252 13.1924 3.55556 12.3333 3.55556H4.5
25556C3.69645 3.55556 3 4.252 3 5.11111V9.77778C3 10.6369 3.69645 11.3333 4.55556 11.3333H6.11111M7.66667 14.4444H15.4444C16.3036 14.4444 17 13.748 17 12.8889V8.22222C17 7.36311 16.3036 6.66667 15.4444 6.66667H7.66667C6.80756 6.66667 6.11111 7.36311 6.11111 8.22222V12.8889C6.11111 13.748 6.80756 14.4444 7.66667 14.4444ZM13.1111 10.5556C13.1111 11.4147 12.4147 12.1111 11.5556 12.1111C10.6964 12.1111 10 11.4147 10 10.5556C10 9.69645 10.6964 9 11.5556 9C12.4147 9 13.1111 9.69645 13.1111 10.5556Z",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"}))};Et.defaultProps={width:"20",height:"18",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var kt=function(e){return u.createElement("svg",e,u.createElement("path",{d:"M12.75 13.5C12.75 13.6989 12.829 13.8897 12.9697 14.0303C13.1103 14.171 13.3011 14.25 13.5 14.25C13.6989 14.25 13.8897 14.171 14.0303 14.0303C14.171 13.8897 14.25 13.6989 14.25 13.5C14.25 13.3011 14.171 13.1103 14.0303 12.9697C13.8897 12.829 13.6989 12.75 13.5 12.75C13.3011 12.75 13.1103 12.829 12.9697 12.9697C12.829 13.1103 12.75 13.3011 12.75 13.5ZM8.25 13.5C8.25 13.6989 8.32902 13.8897 8.46967 14.0303C8.61032 14.171 8.80109 14.25 9 14.25C9.19891 14.25 9.38968 14.171 9.53033 14.0303C9.67098 13.8897 9.75 13.6989 9.75 13.5C9.75 13.3011 9.67098 13.1103 9.53033 12.9697C9.38968 12.829 9.19891 12.75 9 12.75C8.80109 12.75 8.61032 12.829 8.46967 12.9697C8.32902 13.1103 8.25 13.3011 8.25 13.5ZM3.75 13.5C3.75 13.6989 3.82902 13.8897 3.96967 14.0303C4.11032 14.171 4.30109 14.25 4.5 14.25C4.69891 14.25 4.88968 14.171 5.03033 14.0303C5.17098 13.8897 5.25 13.6989 5.25 13.5C5.25 13.3011 5.17098 13.1103 5.03033 12.9697C4.88968 12.829 4.69891 12.75 4.5 12.75C4.30109 12.75 4.11032 12.829 3.96967 12.9697C3.82902 13.1103 3.75 13.3011 3.75 13.5ZM12.75 9C12.75 9.19891 12.829 9.38968 12.9697 9.53033C13.1103 9.67098 13.3011 9.75 13.5 9.75C13.6989 9.75 13.8897 9.67098 14.0303 9.53033C14.171 9.38968 14.25 9.19891 14.25 9C14.25 8.80109 14.171 8.61032 14.0303 8.46967C13.8897 8.32902 13.6989 8.25 13.5 8.25C13.3011 8.25 13.1103 8.32902 12.9697 8.46967C12.829 8.61032 12.75 8.80109 12.75 9ZM8.25 9C8.25 9.19891 8.32902 9.38968 8.46967 9.53033C8.61032 9.67098 8.80109 9.75 9 9.75C9.19891 9.75 9.38968 9.67098 9.53033 9.53033C9.67098 9.38968 9.75 9.19891 9.75 9C9.75 8.80109 9.67098 8.61032 9.53033 8.46967C9.38968 8.32902 9.19891 8.25 9 8.25C8.80109 8.25 8.61032 8.32902 8.46967 8.46967C8.32902 8.61032 8.25 8.80109 8.25 9ZM3.75 9C3.75 9.19891 3.82902 9.38968 3.96967 9.53033C4.11032 9.67098 4.30109 9.75 4.5 9.75C4.69891 9.75 4.88968 9.67098 5.03033 9.53033C5.17098 9.38968 5.25 9.19891 5.25 9C5.25 8.80109 5.17098 8.61032 5.03033 8.46967C4.88968 8.32902 4.69891 8.25 4.5 8.25C4.30109 8.25 4.11032 8.32902 3.96967 8.46967C3.82902 8.61032 3.75 8.80109 3.75 9ZM12.75 4.5C12.75 4.69891 12.829 4.88968 12.9697 5.03033C13.1103 5.17098 13.3011 5.25 13.5 5.25C13.6989 5.25 13.8897 5.17098 14.0303 5.03033C14.171 4.88968 14.25 4.69891 14.25 4.5C14.25 4.30109 14.171 4.11032 14.0303 3.96967C13.8897 3.82902 13.6989 3.75 13.5 3.75C13.3011 3.75 13.1103 3.82902 12.9697 3.96967C12.829 4.11032 12.75 4.30109 12.75 4.5ZM8.25 4.5C8.25 4.69891 8.32902 4.88968 8.46967 5.03033C8.61032 5.17098 8.80109 5.25 9 5.25C9.19891 5.25 9.38968 5.17098 9.53033 5.03033C9.67098 4.88968 9.75 4.69891 9.75 4.5C9.75 4.30109 9.67098 4.11032 9.53033 3.96967C9.38968 3.82902 9.19891 3.75 9 3.75C8.80109 3.75 8.61032 3.82902 8.46967 3.96967C8.32902 4.11032 8.25 4.30109 8.25 4.5ZM3.75 4.5C3.75 4.69891 3.82902 4.88968 3.96967 5.03033C4.11032 5.17098 4.30109 5.25 4.5 5.25C4.69891 5.25 4.88968 5.17098 5.03033 5.03033C5.17098 4.88968 5.25 4.69891 5.25 4.5C5.25 4.30109 5.17098 4.11032 5.03033 3.96967C4.88968 3.82902 4.69891 3.75 4.5 3.75C4.30109 3.75 4.11032 3.82902 3.96967 3.96967C3.82902 4.11032 3.75 4.30109 3.75 4.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};kt.defaultProps={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var St=function(e){return u.createElement("svg",e,u.createElement("path",{d:"M3.4126 14.25C2.7751 14.25 2.28135 14.0281 1.93135 13.5844C1.58135 13.1406 1.4501 12.6 1.5376 11.9625L2.3251 6.3375C2.4376 5.5875 2.77198 4.96875 3.32823 4.48125C3.88448 3.99375 4.5376 3.75 5.2876 3.75H12.7126C13.4626 3.75 14.1157 3.99375 14.672 4.48125C15.2282 4.96875 15.5626 5.5875 15.6751 6.3375L16.4626 11.9625C16.5501 12.6 16.4189 13.1406 16.0689 13.5844C15.7189 14.0281 15.2251 14.25 14.5876 14.25C14.3251 14.25 14.0814 14.2031 13.8564 14.1094C13.6314 14.0156 13.4251 13.875 13.2376 13.6875L11.5501 12H6.4501L4.7626 13.6875C4.5751 13.875 4.36885 14.0156 4.14385 14.1094C3.91885 14.2031 3.6751 14.25 3.4126 14.25ZM3.7126 12.637
25L5.8501 10.5H12.1501L14.2876 12.6375C14.3126 12.6625 14.4126 12.7 14.5876 12.75C14.7251 12.75 14.8345 12.7094 14.9157 12.6281C14.997 12.5469 15.0251 12.4375 15.0001 12.3L14.1751 6.525C14.1251 6.1625 13.9626 5.85937 13.6876 5.61562C13.4126 5.37187 13.0876 5.25 12.7126 5.25H5.2876C4.9126 5.25 4.5876 5.37187 4.3126 5.61562C4.0376 5.85937 3.8751 6.1625 3.8251 6.525L3.0001 12.3C2.9751 12.4375 3.00323 12.5469 3.08448 12.6281C3.16573 12.7094 3.2751 12.75 3.4126 12.75C3.4376 12.75 3.5376 12.7125 3.7126 12.6375ZM13.2845 9.53438C13.4282 9.39063 13.5001 9.2125 13.5001 9C13.5001 8.7875 13.4282 8.60937 13.2845 8.46562C13.1407 8.32187 12.9626 8.25 12.7501 8.25C12.5376 8.25 12.3595 8.32187 12.2157 8.46562C12.072 8.60937 12.0001 8.7875 12.0001 9C12.0001 9.2125 12.072 9.39063 12.2157 9.53438C12.3595 9.67813 12.5376 9.75 12.7501 9.75C12.9626 9.75 13.1407 9.67813 13.2845 9.53438ZM11.7845 7.28438C11.9282 7.14063 12.0001 6.9625 12.0001 6.75C12.0001 6.5375 11.9282 6.35938 11.7845 6.21563C11.6407 6.07188 11.4626 6 11.2501 6C11.0376 6 10.8595 6.07188 10.7157 6.21563C10.572 6.35938 10.5001 6.5375 10.5001 6.75C10.5001 6.9625 10.572 7.14063 10.7157 7.28438C10.8595 7.42813 11.0376 7.5 11.2501 7.5C11.4626 7.5 11.6407 7.42813 11.7845 7.28438ZM5.8126 9.75H6.9376V8.4375H8.2501V7.3125H6.9376V6H5.8126V7.3125H4.5001V8.4375H5.8126V9.75Z",fill:"currentColor"}))};function _t(e){var t="h-[18px] w-[18px] transition-colors";switch(e.tab){case"earn":return u.createElement(Et,{className:t});case"my_games":return u.createElement(St,{className:t});case"cashout":return u.createElement(xt,{className:t});default:return u.createElement(kt,{className:t})}}St.defaultProps={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var Ct=function(e){var t=e.className,r=(0,d.useLocation)().pathname,n=[{key:"earn",label:"Earn",path:d.routes.earn()},{key:"my_games",label:"My Games",path:d.routes.wallet()},{key:"cashout",label:"Cashout",path:d.routes.cashout()},{key:"more",label:"More",path:d.routes.more()}];return u.createElement("nav",{className:(0,X.m)("border border-[#E0E0E0] bg-white px-[26px] py-2 shadow-[0px_-4px_4px_0px_rgba(1,_117,_78,_0.20)]",t)},u.createElement("ul",{className:"mx-auto flex w-full max-w-[420px] items-center justify-between"},n.map(function(e){var t=e.key,n=e.label,i=e.path,o=ct(t,r);return u.createElement("li",{key:t},u.createElement(d.Link,{to:i,className:(0,X.m)("flex flex-col items-center justify-center gap-[3px] rounded-lg border border-transparent px-[10px] py-[4px] text-[#20293A] transition-colors hover:text-primary",o&&"border-primary bg-[#EEFFF5] text-primary shadow-[0px_0px_0px_3px_rgba(38,155,116,0.2)]")},u.createElement(_t,{tab:t}),u.createElement("span",{className:"whitespace-nowrap text-[10px] font-bold leading-none tracking-[-0.2px]"},n)))})))},Ot="primary_nav_scroll:";var Pt=function(e){var t,r,n=e.children;return t=(0,d.useLocation)().pathname,r=(0,u.useRef)(null),(0,u.useEffect)(function(){var e=function(e){return/^\/earn(\/|$)/.test(e)?"earn":/^\/wallet(\/|$)/.test(e)?"my_games":/^\/cashout(\/|$)/.test(e)?"cashout":ut(e)?"more":null}(t),n=r.current;if(n!==e&&(n&&sessionStorage.setItem(Ot+n,String(window.scrollY)),e)){var i=sessionStorage.getItem(Ot+e),o=null!==i?Number(i):0;requestAnimationFrame(function(){window.scrollTo(0,Number.isFinite(o)?o:0)})}r.current=e},[t]),u.createElement(u.Fragment,null,n,u.createElement(Ct,{className:"fixed bottom-0 left-0 z-[40] w-full laptop:hidden"}))},Tt=r(66547),At=r(81350),It=function(e){var t=e.children,r=(0,At.v)(),n=r.loading,i=r.canUseInvestmentSimulator;return n?u.createElement("div",{className:"flex h-screen items-center justify-center"},u.createElement(Tt.Z,null)):i?u.createElement(u.Fragment,null,t):u.createElement(d.Redirect,{to:d.routes.invSimOnboarding()})},Nt=r(46141),Rt=function(e){var t=e.children,r=(0,d.useLocation)();return Nt.V.jobsEnabled?r.pathname.includes("/jobs")&&"/jobs"!==r.pathname?u.createElement(d.Redirect,{to:d.routes.proJobsHome()}):u.createElement(u.Fragment,null,t):u.createElement(d.Redirect,{to:d.routes.home()})},jt=function(e){var t=e.children,r=(0,p._)(),n=r.isLiteMode;return r.loading?null:n?u.createElement(d.Redirect,{to:d.routes.earn()}):u.createElement(u.Fragment,null,t)},Mt=function(){return u.createElement(d.Redirect,{to:d.routes.earn()})},Dt=r(6718),Lt=function(e){var t=e.children,r=(0,d.useLocation)().pathname,n=(0,p._)().isLiteMode,i=(0,Dt.$)(),o=i.data,a=(void 0===o?{}:o).notSeenRewardIds,s=i.loading,l=i.refetch;return(0,u.useEffect)(function(){l()},[r]),s?u.createElement("div",{className:"flex h-screen items-center justify-center"},u.createElement(Tt.Z,null)):!n&&(null==a?void 0:a.rewardIds.length)>0?u.createElement(d.Redirect,{to:d.routes.reward({id:a.rewardIds[0]})}):u.createElement(u.Fragment,null,t)},Ft=r(40757),Bt=r(27688),Ut=r(59619),Vt=r(13248),zt=r(52431),qt=r(61159),Ht=r(63002),Gt=r(3673),$t=r(87403);function Wt(e){var t=e.children,r=e.onPress,n=e.isDisabled,i=void 0!==n&&n,o=e.isLoading,a=void 0!==o&&o,s=e.className,l=e.testID,c=void 0===l?"questionnaire-cta":l;return u.createElement("button",{type:"button","data-testid":c,disabled:i||a,onClick:r,className:(0,X.m)("flex h-14 w-full items-center justify-center rounded-xl text-center text-[18px] font-bold",a||!i?"bg-ebonyGrey text-white":"bg-ashGrey text-slateGrey",s)},a?u.createElement($t.Z,null):t)}function Zt(e){var t=e.onNext,r=e.onSkip,n=e.nextDisabled,i=void 0!==n&&n,o=e.isLoading,a=void 0!==o&&o,s=e.className,l=e.testID,c=void 0===l?"questionnaire-footer":l,d=(0,Be.$G)().t;return u.createElement("div",{className:(0,X.m)("flex w-full flex-col items-center gap-3.5",
2s),"data-testid":c},r?u.createElement("button",{type:"button","data-testid":"".concat(c,"-skip"),disabled:a,onClick:r,className:"flex h-[45px] w-full items-center justify-center text-center text-base text-slateGrey disabled:opacity-50"},d("questionnaire.prefer-not-to-say")):null,u.createElement(Wt,{isDisabled:i,isLoading:a,onPress:t},d("questionnaire.next")))}function Qt(e){var t=e.current,r=e.total,n=e.className,i=e.testID,o=void 0===i?"questionnaire-header":i,a=(0,Be.$G)().t,s=r>0?Math.min(t/r*100,100):0,l=Math.round(s);return u.createElement("div",{className:(0,X.m)("w-full space-y-4",n),"data-testid":o},u.createElement("div",{className:"flex flex-col items-center gap-1.5"},u.createElement("p",{className:"text-center text-[17px] font-bold leading-[1.35]"},a("questionnaire.title")),u.createElement("p",{className:"text-center text-[13px] leading-[1.35] text-slateGrey"},a("questionnaire.progress",{current:t,total:r}))),u.createElement("div",{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l,"data-testid":"".concat(o,"-progress"),className:"h-[6px] w-full overflow-hidden rounded-[3px] bg-fogGrey"},u.createElement("div",{className:"h-full rounded-[3px] bg-primary",style:{width:"".concat(s,"%")}})))}function Yt(e){var t=e.label,r=e.selected,n=e.onPress,i=e.selectionMode,o=void 0===i?"single":i,a=e.className,s=e.testID,l="multiple"===o;return u.createElement("button",{type:"button","data-testid":s,role:l?"checkbox":"radio","aria-checked":r,"aria-label":t,onClick:n,className:(0,X.m)("flex min-h-12 flex-row items-center gap-2.5 overflow-hidden rounded-[10px] border-[1.5px] py-3.5 pl-4 pr-3.5",r?"border-primaryDark2 bg-iceMint":"border-platinumGrey bg-white",a)},u.createElement("span",{className:(0,X.m)("min-w-0 flex-1 text-left text-[15px] leading-[1.35]",r&&"font-bold text-primaryDark2")},t),u.createElement("span",{className:(0,X.m)("flex h-5 w-5 items-center justify-center border-[1.5px]",l?"rounded-[4px]":"rounded-full",r?"border-primaryDark2 bg-primaryDark2":"border-platinumGrey bg-white")},r&&(l?u.createElement("span",{className:"text-[11px] leading-none text-white"},"â"):u.createElement("span",{className:"h-2 w-2 rounded-full bg-white"}))))}function Kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Jt(e){var t,r=e.options,n=e.columns,i=void 0===n?1:n,o=e.className,a=e.testID,s=void 0===a?"questionnaire-option-group":a,l=null!==(t=e.selectionMode)&&void 0!==t?t:"single";return u.createElement("div",{"data-testid":s,role:"multiple"===l?void 0:"radiogroup",className:(0,X.m)(2===i?"flex flex-row flex-wrap gap-3":"flex flex-col gap-3",o)},r.map(function(t){return u.createElement(Yt,{key:t.id,label:t.label,selected:Xt(e,t.id),selectionMode:l,onPress:function(){return function(e,t){if("multiple"!==e.selectionMode){var r;e.onChange(t)}else{var n,i=null!==(n=e.value)&&void 0!==n?n:[];e.onChange(i.includes(t)?i.filter(function(e){return e!==t}):[].concat(function(e){if(Array.isArray(e))return Kt(e)}(r=i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return Kt(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)?Kt(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[t]))}}(e,t.id)},className:2===i?"min-w-0 flex-1 basis-[40%]":"w-full",testID:"".concat(s,"-").concat(t.id)})}))}function Xt(e,t){var r,n;return"multiple"===e.selectionMode?null!==(r=null===(n=e.value)||void 0===n?void 0:n.includes(t))&&void 0!==r&&r:e.value===t}function er(e){var t=e.question,r=e.hint,n=e.className,i=e.testID,o=void 0===i?"questionnaire-prompt":i;return u.createElement("div",{className:(0,X.m)("flex w-full flex-col items-center gap-2",n),"data-testid":o},u.createElement("p",{className:"text-center text-[19px] font-bold leading-[1.35]"},t),r?u.createElement("p",{className:"text-center text-sm leading-[1.35] text-slateGrey"},r):null)}var tr=r.p+"static/media/desktop-backdrop.4b23b2c2.jpg";function rr(){return u.createElement("div",{"aria-hidden":!0,"data-testid":"questionnaire-desktop-backdrop",className:"pointer-events-none absolute inset-0 overflow-hidden bg-[#20293A]"},u.createElement("img",{src:tr,alt:"",className:"h-full w-full scale-110 object-cover blur-md"}),u.createElement("div",{className:"absolute inset-0 bg-[rgba(32,41,58,0.40)]"}))}function nr(e){var t=e.header,r=e.footer,n=e.children,i=e.className;return u.createElement("div",{className:(0,X.m)("flex h-full min-h-0 flex-col bg-white px-6 pt-12","pb-[max(0.75rem,env(safe-area-inset-bottom))]",i)},t,u.createElement("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto pb-6 pt-8"},n),r?u.createElement("div",{className:"shrink-0 bg-white pt-2"},r):null)}function ir(e){var t=e.children,r=e.header,n=e.footer,i=e.testID,o=void 0===i?"onboarding-questionnaire":i;return(0,Le.Z)("laptop")?u.createElement("div",{className:"fixed inset-0 z-50","data-testid":o},u.createElement(rr,null),u.createElement("div",{className:"relative flex h-full items-center justify-center p-8"},u.createElement("div",{"data-testid":"".concat(o,"-modal"),className:"flex h-[min(52rem,90vh)] w-full max-w-[480px] flex-col overflow-hidden rounded-3xl shadow-[0_24px_64px_rgba(32,41,58,0.24)]"}
2,u.createElement(nr,{header:r,footer:n},t)))):u.createElement("div",{className:"flex h-dvh flex-col","data-testid":o},u.createElement(nr,{header:r,footer:n},t))}var or=r.p+"static/media/ready-to-earn.823fc550.png";function ar(e){var t=e.onStart,r=e.className,n=e.testID,i=void 0===n?"questionnaire-success":n,o=(0,Be.$G)().t;return u.createElement("div",{className:(0,X.m)("flex flex-1 flex-col items-center pb-8 pt-5",r),"data-testid":i},u.createElement("div",{className:"min-h-px flex-1"}),u.createElement("img",{"data-testid":"".concat(i,"-art"),src:or,alt:"",width:245,height:245,className:"h-[245px] w-[245px] object-contain"}),u.createElement("div",{className:"flex w-full flex-col items-center gap-2"},u.createElement("p",{className:"text-center text-[19px] font-bold leading-[1.35]"},o("questionnaire.success.title")),u.createElement("p",{className:"text-center text-base leading-[1.4] text-slateGrey"},o("questionnaire.success.subtitle"))),u.createElement("div",{className:"min-h-px flex-1"}),u.createElement(Wt,{onPress:t},o("questionnaire.success.cta")))}function sr(e){var t=e.value,r=e.onChangeText,n=e.multiline,i=void 0===n||n,o=e.ariaLabel,a=e.className,s=e.testID,l=void 0===s?"questionnaire-text-input":s,c=(0,X.m)("w-full rounded-[10px] border border-platinumGrey px-4 text-[15px] leading-5",i?"h-32 py-3.5":"h-12",a);return i?u.createElement("textarea",{"data-testid":l,"aria-label":o,value:t,onChange:function(e){return r(e.target.value)},className:c}):u.createElement("input",{"data-testid":l,type:"text",inputMode:"decimal","aria-label":o,value:t,onChange:function(e){return r(e.target.value)},className:c})}var lr=r(79529),ur=r(292),cr=r(54311);function dr(e){return dr="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},dr(e)}function fr(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 pr(e,t,r){return(t=function(e){var t=function(e){if("object"!=dr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=dr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hr(e){return hr="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},hr(e)}function mr(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var l=n&&n.prototype instanceof s?n:s,u=Object.create(l.prototype);return vr(u,"_invoke",function(r,n,i){var o,s,l,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return o=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&u&&!i&&t<c.length;t++){var i,o=c[t],p=f.p,h=o[2];r>3?(i=h===n)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=r<2&&p<o[1])?(s=0,f.v=n,f.n=o[1]):p<h&&(i=r<3||o[0]>n||n>h)&&(o[4]=r,o[5]=n,f.n=h,s=0))}if(i||r>1)return a;throw d=!0,n}return function(i,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(r,i,o),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(vr(t={},n,function(){return this}),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,vr(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,vr(d,"constructor",u),vr(u,"constructor",l),l.displayName="GeneratorFunction",vr(u,i,"GeneratorFunction"),vr(d),vr(d,i,"Generator"),vr(d,n,function(){return this}),vr(d,"toString",function(){return"[object Generator]"}),(mr=function(){return{w:o,m:f}})()}function vr(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}vr=function(e,t,r,n){function o(t,r){vr(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},vr(e,t,r,n)}function gr(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function yr(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){gr(o,n,i,a,s,"next",e)}function s(e){gr(o,n,i,a,s,"throw",e)}a(void 0)})}}function br(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 wr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?br(Object(r),!0).forEach(function(t){xr(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):br(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function xr(e,t,r){return(t=function(e){var t=function(e){if("object"!=hr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=hr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Er(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kr(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)?kr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Sr(e){var t=e.children,r=e.status,n=e.result,i=Er((0,u.useState)("questionnaire_required"===r),2),o=i[0],a=i[1],l=Er((0,u.useState)(!1),2),c=l[0],d=l[1],f=function(e){var t,r,n=(0,s.useQuery)(ur.Qq,{skip:null==e?void 0:e.skip}),i=n.data,o=n.loading,a=n.error,l=(0,u.useMemo)(function(){return(0,lr.u)("undefined"!=typeof navigator?navigator.userAgent:"")},[]),c=null==i||null===(t=i.user)||void 0===t?void 0:t.selectedPlatform,d=(0,cr.J)(null==i?void 0:i.userMixpanelAcquisition),f=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fr(Object(r),!0).forEach(function(t){pr(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fr(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({surface:l.surface},d);return{selectedPlatform:(r=c,"ios"===r||"android"===r?c:null),loading:o,error:a,classification:l,gateProps:f}}({skip:"questionnaire_required"!==r&&!o&&!c});return(0,u.useEffect)(function(){"questionnaire_required"===r&&a(!0)},[r]),"questionnaire_required"!==r||n&&!f.loading||c?"questionnaire_required"===r&&n||o||c?u.createElement(Cr,{result:n,showPayoff:c||"complete"===r,selectedPlatform:f.selectedPlatform,classification:f.classification,gateProps:f.gateProps,onCompleted:function(){return d(!0)},onStart:function(){d(!1),a(!1)}}):u.createElement(u.Fragment,null,t):u.createElement("div",{className:"flex h-screen items-center justify-center"},u.createElement(Tt.Z,null))}function _r(e){var t=e instanceof Error?e.message:"Something went wrong";K.toast.error(t)}function Cr(e){var t,r,n,i,o,a=e.result,s=e.showPayoff,l=e.selectedPlatform,c=e.classification,d=e.gateProps,f=e.onCompleted,p=e.onStart,h=(0,Be.$G)().t,m=null!==(t=null==a?void 0:a.questions)&&void 0!==t?t:[],v=Er((0,u.useState)(function(){return null==l}),1)[0],g=Er((0,u.useState)(function(){return v?"device":"survey"}),2),y=g[0],b=g[1],w=Er((0,u.useState)(null!==(r=c.platform)&&void 0!==r?r:"android"),2),x=w[0],E=w[1],k=Er((0,u.useState)(function(){return(0,Gt.ER)(m)}),2),S=k[0],_=k[1],C=Er((0,u.useState)(function(){return Object.fromEntries(m.map(function(e){return[e.question.id,(0,Gt.GD)(e.question.type,e.userAnswer)]}))}),2),O=C[0],P=C[1],T=Er((0,qt.Nu)(),2),A=T[0],I=T[1].loading,N=Er((0,qt.rI)(),2),R=N[0],j=N[1].loading,M=Er((0,zt.v)(),2),D=M[0],L=M[1],F=L.loading,B=L.error,U=(0,u.useRef)(!1),z=(0,u.useRef)(null),q=(0,u.useRef)(!1),H=(0,u.useRef)(!1),G=(0,u.useRef)(!1),$=(0,u.useRef)(0),W=Er((0,u.useState)(!1),2),Z=W[0],Q=W[1];s&&(H.current=!0);var Y=Z||I||j||F,J=m[S],X=v?2:0,ee=X+m.length,te={device:1,download:2,survey:X+S+1}[y];function re(){return(re=yr(mr().m(function e(){var t,r,n;return mr().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!U.current&&x){e.n=1;break}return e.a(2);case 1:return U.current=!0,Q(!0),e.p=2,e.n=3,D({variables:{platform:x}});case 3:if(!(r=e.v).error&&null!==(t=r.data)&&void 0!==t&&t.setSelectedPlatform){e.n=4;break}return(0,Ht.hR)({operation:"set_platform",error:r.error}),r.error&&_r(r.error),e.a(2);case 4:V.co.track("platform_selected",wr(wr({},d),{},{selected_platform:x,detection:"manual"})),b("download"),e.n=6;break;case 5:e.p=5,n=e.v,(0,Ht.hR)({operation:"set_platform",error:n}),_r(n);case 6:return e.p=6,U.current=!1,Q(!1),e.f(6);case 7:return e.a(2)}},e,null,[[2,5,6,7]])}))).apply(this,arguments)}if((0,u.useEffect)(function(){"device"===y&&V.co.track("platform_select_shown",d)},[y]),(0,u.useEffect)(function(){"download"===y&&V.co.track("app_install_qr_shown",wr(wr({},d),{},{selected_platform:x}))},[y]),(0,u.useEffect)(function(){var e;s||q.current||(q.current=!0,z.current=Date.now(),(0,Ht.M6)({questionSetVersion:null!==(e=null==a?void 0:a.name)&&void 0!==e?e:null,totalQuestions:m.length,platform:(0,Ht.aF)(l,c.platform)}))},[s,null==a?void 0:a.name,m.length,l,c.platform]),(0,u.useEffect)(function(){"survey"===y&&($.current=Date.now())},[y,S]),(0,u.useEffect)(function(){if(!s){var e=function(){var e;H.current||G.current||(G.current=!0,(0,Ht.aU)({lastQuestionIndex:"survey"===y?S:null,questions:null!==(e=null==a?void 0:a.questions)&&void 0!==e?e:[]}))};return window.addEventListener("pagehide",e),function(){return window.removeEventListener("pagehide",e)}}}
2,[s,y,S,a]),s)return u.createElement(u.Fragment,null,u.createElement(K.Toaster,null),u.createElement(ir,null,u.createElement(ar,{onStart:p})));if("device"===y)return u.createElement(u.Fragment,null,u.createElement(K.Toaster,null),u.createElement(ir,{header:u.createElement(Qt,{current:te,total:ee}),footer:u.createElement(Zt,{onNext:function(){!function(){re.apply(this,arguments)}()},nextDisabled:Y||!x,isLoading:Y})},B?u.createElement("div",{role:"alert",className:"mb-4 text-center text-red-600"},"We couldnât save your platform. Please try again."):null,u.createElement("div",{className:"flex flex-col gap-8"},u.createElement(er,{question:h("questionnaire.device.question")}),u.createElement(Jt,{options:[{id:"ios",label:h("questionnaire.device.ios")},{id:"android",label:h("questionnaire.device.android")}],columns:2,value:x,onChange:function(e){"ios"!==e&&"android"!==e||E(e)}}))));if("download"===y){var ne=(0,Ut.f)(Bt.Q,"undefined"!=typeof window?window.location.search:"");return u.createElement(u.Fragment,null,u.createElement(K.Toaster,null),u.createElement(ir,{header:u.createElement(Qt,{current:te,total:ee}),footer:u.createElement(Zt,{onNext:function(){return b("survey")},isLoading:!1})},u.createElement(Vt.Z,{surface:c.surface,platform:x,installLink:ne,showProgress:!1,showDismiss:!1,onDownloadClick:function(){return V.co.track("app_install_link_clicked",wr(wr({},d),{},{selected_platform:x}))}})))}if(!J)return u.createElement("div",{className:"flex h-screen items-center justify-center"},u.createElement(Tt.Z,null));var ie=J.question,oe=null!==(n=O[ie.id])&&void 0!==n?n:(0,Gt.GD)(ie.type,J.userAnswer),ae=S===m.length-1,se=Y||!(0,Gt.vF)({type:ie.type,inputType:ie.inputType,options:ie.options,draft:oe});function le(e){return ue.apply(this,arguments)}function ue(){return(ue=yr(mr().m(function e(t){var r,n,i,o,a,s,l,u;return mr().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!U.current){e.n=1;break}return e.a(2);case 1:return U.current=!0,Q(!0),document.activeElement instanceof HTMLElement&&document.activeElement.blur(),r="save_answer",e.p=2,e.n=3,A({variables:{questionId:ie.id,answer:t}});case 3:if(!(s=e.v).error&&null!==(n=s.data)&&void 0!==n&&n.saveOnboardingAnswer){e.n=4;break}return(0,Ht.hR)({operation:r,error:s.error,questionName:ie.name,questionIndex:S}),s.error&&_r(s.error),e.a(2);case 4:if((0,Ht.bw)({question:ie,questionIndex:S,answer:t,timeOnQuestionMs:Date.now()-$.current}),ae){e.n=5;break}return _(function(e){return e+1}),e.a(2);case 5:return r="complete",e.n=6,R();case 6:if(!(l=e.v).error&&"complete"===(null===(i=l.data)||void 0===i?void 0:i.completeOnboardingQuestionnaire.status)){e.n=7;break}return(0,Ht.hR)({operation:r,error:l.error,questionName:ie.name,questionIndex:S}),l.error&&_r(l.error),e.a(2);case 7:(0,Ht.qv)({questions:null!==(o=l.data.completeOnboardingQuestionnaire.questions)&&void 0!==o?o:m,durationMs:Date.now()-(null!==(a=z.current)&&void 0!==a?a:Date.now())}),H.current=!0,f(),e.n=9;break;case 8:e.p=8,u=e.v,(0,Ht.hR)({operation:r,error:u,questionName:ie.name,questionIndex:S}),_r(u);case 9:return e.p=9,U.current=!1,Q(!1),e.f(9);case 10:return e.a(2)}},e,null,[[2,8,9,10]])}))).apply(this,arguments)}function ce(){return(ce=yr(mr().m(function e(){var t;return mr().w(function(e){for(;;)switch(e.n){case 0:if(!se&&!U.current){e.n=1;break}return e.a(2);case 1:if(t=(0,Gt.KP)({type:ie.type,inputType:ie.inputType,options:ie.options,draft:oe})){e.n=2;break}return e.a(2);case 2:return e.n=3,le(t);case 3:return e.a(2)}},e)}))).apply(this,arguments)}function de(){return(de=yr(mr().m(function e(){return mr().w(function(e){for(;;)switch(e.n){case 0:if(ie.allowSkip&&!U.current&&!Y){e.n=1;break}return e.a(2);case 1:return e.n=2,le({skipped:!0});case 2:return e.a(2)}},e)}))).apply(this,arguments)}return u.createElement(u.Fragment,null,u.createElement(K.Toaster,null),u.createElement(ir,{header:u.createElement(Qt,{current:te,total:ee}),footer:u.createElement(Zt,{onNext:function(){!function(){ce.apply(this,arguments)}()},onSkip:ie.allowSkip?function(){!function(){de.apply(this,arguments)}()}:void 0,nextDisabled:se,isLoading:Y})},u.createElement("div",{className:"flex flex-col gap-8"},u.createElement(er,{question:null!==(i=ie.text)&&void 0!==i?i:"",hint:null!==(o=ie.description)&&void 0!==o?o:void 0}),u.createElement(Or,{item:J,draft:oe,onChange:function(e){return P(function(t){return wr(wr({},t),{},xr({},ie.id,e))})}}))))}
2function Or(e){var t,r=e.item,n=e.draft,i=e.onChange,o=r.question,a=(null!==(t=o.options)&&void 0!==t?t:[]).map(function(e){return{id:e.id,label:e.value}});if("openEnd"===o.type){var s,l="number"===o.inputType;return u.createElement(sr,{value:"string"==typeof n?n:"",onChangeText:i,multiline:!l,ariaLabel:null!==(s=o.text)&&void 0!==s?s:void 0})}return"multiPunch"===o.type?u.createElement(Jt,{selectionMode:"multiple",options:a,columns:1,value:Array.isArray(n)?n:[],onChange:i}):u.createElement(Jt,{options:a,columns:(0,Gt.Yo)(o.type,a.length),value:"string"==typeof n?n:void 0,onChange:i})}var Pr=r(64274),Tr=function(e){var t,r,n=e.children,i=(0,Pr.H)(),o=i.loading,a=i.shouldVerifyEmail,s=(0,qt.oj)(),l=null===(t=s.data)||void 0===t?void 0:t.myOnboardingQuestionnaire.status,c=(0,Gt.a_)({status:l,loading:s.loading,hasData:!!s.data,error:s.error}),f=!a&&c&&!s.data;return(0,u.useEffect)(function(){s.error&&(console.error("onboarding-questionnaire: query failed",s.error),(0,Ht.hR)({operation:"load",error:s.error}))},[s.error]),o||f?u.createElement("div",{className:"flex h-screen items-center justify-center"},u.createElement(Tt.Z,null)):a||"verification_required"===l?u.createElement(d.Redirect,{to:d.routes.verifyEmailCta()}):u.createElement(Sr,{status:l,result:null===(r=s.data)||void 0===r?void 0:r.myOnboardingQuestionnaire},u.createElement(p.D,null,n,u.createElement(Ft.ZP,null)))},Ar=(r(50785),r(68983),r(50112),r(44173));function Ir(e){return Ir="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},Ir(e)}function Nr(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 Rr(e,t,r){return(t=function(e){var t=function(e){if("object"!=Ir(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Ir(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ir(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nr(Object(r),!0).forEach(function(t){Rr(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nr(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({intent:e,signUpUrl:arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.location.href,provider:arguments.length>3?arguments[3]:void 0,platform:arguments.length>4?arguments[4]:void 0},t);sessionStorage.setItem(Ar.cS,JSON.stringify(r)),sessionStorage.setItem(Ar.Zi,e);var n=encodeURIComponent(btoa(JSON.stringify(r))),i="".concat(window.location.protocol,"//").concat(window.location.host),o=new URL("/callback",i);return o.searchParams.set(Ar.vc,n),o.toString()}function Mr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Unexpected error";if(null!=e){var r=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2,r=(new Error).stack;return r&&null!==(e=r.split("\n").map(function(e){return e.trim()})[t+1])&&void 0!==e?e:"unknown"}(2),n=e instanceof Error?e:new Error(String(e));throw console.warn("Assertion failed: ".concat(t," @ ").concat(r),n),n}}var Dr=r(25277),Lr=r(21982),Fr=r(61672);function Br(e){return Br="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},Br(e)}function Ur(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 Vr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?Ur(Object(r),!0).forEach(function(t){zr(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ur(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function zr(e,t,r){return(t=function(e){var t=function(e){if("object"!=Br(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Br(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Br(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qr(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var l=n&&n.prototype instanceof s?n:s,u=Object.create(l.prototype);return Hr(u,"_invoke",function(r,n,i){var o,s,l,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return o=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&u&&!i&&t<c.length;t++){var i,o=c[t],p=f.p,h=o[2];r>3?(i=h===n)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=r<2&&p<o[1])?(s=0,f.v=n,f.n=o[1]):p<h&&(i=r<3||o[0]>n||n>h)&&(o[4]=r,o[5]=n,f.n=h,s=0))}if(i||r>1)return a;throw d=!0,n}return function(i,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(r,i,o),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(Hr(t={},n,function(){return this}),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Hr(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,Hr(d,"constructor",u),Hr(u,"constructor",l),l.displayName="GeneratorFunction",Hr(u,i,"GeneratorFunction"),Hr(d),Hr(d,i,"Generator"),Hr(d,n,function(){return this}),Hr(d,"toString",function(){return"[object Generator]"}),(qr=function(){return{w:o,m:f}})()}function Hr(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Hr=function(e,t,r,n){function o(t,r){Hr(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},Hr(e,t,r,n)}function Gr(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function $r(e){if(e){var t=e.trim();if(t&&!(t.length>128))return t}}function Wr(){var e=function(){var e,t,r=new URLSearchParams(window.location.search),n=function(e){return e===Ar.Aq||e===Ar.oY?e:null}(r.get("provider"));if(!n)throw new Error("Invalid OAuth provider");return{provider:n,signUpUrl:null!==(e=r.get("signupurl"))&&void 0!==e?e:"undefined url",platform:null!==(t=r.get("platform"))&&void 0!==t?t:"unknown",optIn:"true"===r.get("optin"),fingerprint:Zr(r),distinctId:$r(r.get("distinct_id"))}}();return(0,u.useEffect)(function(){var t=function(){var t,r=(t=qr().m(function t(){var r;return qr().w(function(t){for(;;)switch(t.n){case 0:return r=jr(Ar.f,Qr(e),e.signUpUrl,e.provider,e.platform),t.n=1,Dr.O.auth.signInWithOAuth({provider:e.provider,options:{redirectTo:r,queryParams:{prompt:"select_account"}}});case 1:Mr(t.v.error,"OAuth launch page failed");case 2:return t.a(2)}},t)}),function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(e){Gr(o,n,i,a,s,"next",e)}function s(e){Gr(o,n,i,a,s,"throw",e)}a(void 0)})});return function(){return r.apply(this,arguments)}}();t()},[]),u.createElement(u.Fragment,null)}function Zr(e){var t=e.get("fpeventid"),r=e.get("fpvisitorid");if(t&&r)return{eventId:t,visitorId:r}}function Qr(e){return Vr(Vr({optIn:e.optIn,fingerprint:e.fingerprint},e.distinctId?{distinctId:e.distinctId}:{}),(t=e.signUpUrl,(r=(0,Fr.W)(t)).gclid||r.gbraid?r:(0,Lr.YU)()));var t,r}var Yr=r(74857),Kr=r(53646),Jr=r(634),Xr=r(66746),en=r(21687),tn=r(27090),rn=r(73280),nn=r(51728);function on(e){return on="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},on(e)}function an(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var l=n&&n.prototype instanceof s?n:s,u=Object.create(l.prototype);return sn(u,"_invoke",function(r,n,i){var o,s,l,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return o=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&u&&!i&&t<c.length;t++){var i,o=c[t],p=f.p,h=o[2];r>3?(i=h===n)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=r<2&&p<o[1])?(s=0,f.v=n,f.n=o[1]):p<h&&(i=r<3||o[0]>n||n>h)&&(o[4]=r,o[5]=n,f.n=h,s=0))}if(i||r>1)return a;throw d=!0,n}return function(i,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(r,i,o),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(sn(t={},n,function(){return this}),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,sn(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,sn(d,"constructor",u),sn(u,"constructor",l),l.displayName="GeneratorFunction",sn(u,i,"GeneratorFunction"),sn(d),sn(d,i,"Generator"),sn(d,n,function(){return this}),sn(d,"toString",function(){return"[object Generator]"}),(an=function(){return{w:o,m:f}})()}function sn(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}sn=function(e,t,r,n){function o(t,r){sn(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},sn(e,t,r,n)}function ln(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 un(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ln(Object(r),!0).forEach(function(t){cn(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ln(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function cn(e,t,r){return(t=function(e){var t=function(e){if("object"!=on(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=on(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==on(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dn(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function fn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return pn(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)?pn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var hn=function(e){var t=e.className,r=(0,Be.$G)().t,n=(0,E.a)().signUp,i=(0,Oe._y)(),o=(0,d.useParams)().c,a=function(){var e=(0,Be.$G)().t;return{getPasswordValidation:function(){return{required:e("form-validation.input-required",{name:e("inputs.password.label").toLowerCase()}),minLength:{value:8,message:e("form-validation.password-length")},pattern:{value:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^A-Za-z0-9]).{8,}$/,message:e("form-validation.password-format")}}}}}(),s=a.getPasswordValidation,l=fn((0,u.useState)(!1),2),c=l[0],p=l[1],h=fn((0,u.useState)("social"),2),m=h[0],v=h[1],g=fn((0,u.useState)(!0),2),y=g[0],b=g[1],w=function(){var e,t=(e=an().m(function e(t){var r,a,s,l,u,c;return an().w(function(e){for(;;)switch(e.p=e.n){case 0:return(0,V.v4)({hasMarketingConsent:t.emailOptIn}),e.n=1,(0,Xr.Zc)();case 1:return r=e.v,a=(0,Lr.YU)(),s=un(un(un({username:t.email.toLowerCase(),password:t.password,signUpUrl:window.location.href,emailOptIn:t.emailOptIn},r?{fingerprint:r}:{}),a),{},{platform:tn.yu,referralCode:"string"==typeof o?o.toUpperCase():void 0,registrationPlatform:tn.yu,timeToSignupSeconds:(0,rn.Py)(),profile:{firstName:t.firstName}}),p(!0),e.p=2,e.n=3,n(s);case 3:l=e.v,e.n=5;break;case 4:return e.p=4,c=e.v,p(!1),(0,V.TA)({signupMethod:"email",failureReason:"network"}),u=c instanceof Error?c.message:"Something went wrong",e.a(2,f.toast.error(u));case 5:if(!l.error){e.n=6;break}return p(!1),(0,V.TA)({signupMethod:"email",failureReason:(0,V.b8)(l.error)}),e.a(2,f.toast.error(l.error));case 6:try{(0,en.V)({eventName:"sign_up",userData:{first_name:t.firstName,email:t.email.toLowerCase(),external_id:l.id||""}})}catch(e){console.error("Error sending dataLayerSignUpEvent",e)}i.register(),V.co.identify(t.email,{database_id:l.id}),(0,Ue.gS)(t.email.toLowerCase(),l.id||""),(0,V.qr)(l.emailValidationMoment),(a.gclid||a.gbraid)&&(0,me.H$)(a),p(!1),(0,rn.bZ)(),(0,d.navigate)(d.routes.home());case 7:return e.a(2)}},e,null,[[2,4]])}),function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){dn(o,n,i,a,s,"next",e)}function s(e){dn(o,n,i,a,s,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}();return u.createElement("div",{className:(0,X.m)("space-y-6",t)},u.createElement("h3",{className:"text-center text-2xl"},r("onboarding-page.questions.account.question")),"social"===m?u.createElement(u.Fragment,null,u.createElement(nn.Z,{method:"signUp",getState:function(){return{optIn:y,referralCode:"string"==typeof o?o.toUpperCase():void 0,termsVersion:"[TERMS_VERSION]"}}}),u.createElement("div",{className:"flex items-center gap-2"},u.createElement("input",{id:"socialEmailOptIn",type:"checkbox",className:"h-5 w-5 rounded border-gray-300 text-primary focus:ring-primary",checked:y,onChange:function(e){return b(e.target.checked)}}),u.createElement("label",{htmlFor:"socialEmailOptIn",className:"mb-0 block text-sm leading-5 text-slateGrey"},"Count me in for exclusive emails on side hustles & money gigs"))):u.createElement(_.Z,{kind:"button",variant:"secondary",className:"py-2.5",onClick:function(){return v("social")}},"Sign Up with social"),u.createElement("div",{className:"relative"},u.createElement("div",{className:"absolute inset-0 flex items-center"},u.createElement("div",{className:"w-full border-t border-gray-300"})),u.createElement("div",{className:"relative flex justify-center text-sm"},u.createElement("span",{className:"bg-gray-50 px-4 text-gray-500"},"Or"))),"traditional"===m?u.createElement(Yr.Form,{onSubmit:w,className:"space-y-4"},u.createElement(Kr.Z.Input,{name:"firstName",input:"text",autoComplete:"given-name",placeholder:"Enter ".concat(r("inputs.first-name.label")," *"),validation:{required:r("form-validation.input-required",{name:r("inputs.first-name.label")})}}),u.createElement(Kr.Z.Input,{name:"email",input:"email",autoComplete:"email",placeholder:"Enter ".concat(r("inputs.email.placeholder-alt")," *"),validation:{required:r("form-validation.input-required",{name:r("inputs.email.label-alt").toLowerCase()})}}),u.createElement(Kr.Z.Input,{name:"password",input:"password",autoComplete:"new-password",placeholder:"Enter ".concat(r("inputs.password.placeholder-alt")," *"),validation:s()}),u.createElement(Kr.Z.Input,{name:"emailOptIn",input:"checkbox",multiple:!1,labelText:r("inputs.email-
2opt-in.label"),defaultChecked:!0}),u.createElement(_.Z,{kind:"submit",variant:"secondary",className:"py-2.5",loading:c,disabled:c},r("onboarding-page.questions.account.action"))):u.createElement(_.Z,{kind:"button",variant:"secondary",className:"py-2.5",onClick:function(){(0,rn.h)()&&(0,V.d$)(),(0,V.d_)("email"),v("traditional")}},"Sign Up with email"),u.createElement("div",{className:"space-y-2 text-center"},u.createElement("p",{className:"text-sm text-slateGrey"},"By signing up, I agree to the"," ",u.createElement("a",{className:"text-primary",href:(0,Xe.S)("terms-conditions"),target:"_blank",rel:"noopener noreferrer"},"Terms of Use")," ","and accept the"," ",u.createElement("a",{className:"text-primary",target:"_blank",href:(0,Xe.S)("privacy"),rel:"noreferrer"},"Privacy Policy")),u.createElement("p",{className:"text-base text-ebonyGrey"},r("onboarding-page.already-have-an-account")," ",u.createElement(Jr.Z,{to:d.routes.login(),className:"text-primary"},r("sign-in"),"."))))},mn=function(){var e=(0,E.a)().isAuthenticated;return(0,V.yx)(),e?u.createElement(d.Redirect,{to:d.routes.home()}):u.createElement(u.Fragment,null,u.createElement(s.MetaTags,{title:"Registration",description:"Registration page"}),u.createElement(hn,null))};const vn={name:"AppAdPage",loader:()=>r.e(8964).then(r.bind(r,45039)),prerenderLoader:e=>r(45039)},gn={name:"BonusRewardsPage",loader:()=>r.e(8535).then(r.bind(r,68647)),prerenderLoader:e=>r(68647)},yn={name:"CampaignPage",loader:()=>r.e(3784).then(r.bind(r,56319)),prerenderLoader:e=>r(56319)},bn={name:"CashoutPage",loader:()=>Promise.all([r.e(5208),r.e(8397),r.e(1559),r.e(9562),r.e(4867)]).then(r.bind(r,4430)),prerenderLoader:e=>r(4430)},wn={name:"CircleCommunityAuthPage",loader:()=>r.e(3760).then(r.bind(r,72061)),prerenderLoader:e=>r(72061)},xn={name:"DashboardPage",loader:()=>r.e(5296).then(r.bind(r,80798)),prerenderLoader:e=>r(80798)},En={name:"EarnCategoryPage",loader:()=>Promise.all([r.e(18),r.e(2614)]).then(r.bind(r,30775)),prerenderLoader:e=>r(30775)},kn={name:"EarnPage",loader:()=>Promise.all([r.e(1559),r.e(8326)]).then(r.bind(r,90339)),prerenderLoader:e=>r(90339)},Sn={name:"EmailVerificationPage",loader:()=>r.e(1922).then(r.bind(r,78599)),prerenderLoader:e=>r(78599)},_n={name:"ForgotPasswordPage",loader:()=>r.e(5096).then(r.bind(r,50418)),prerenderLoader:e=>r(50418)},Cn={name:"GuidesPage",loader:()=>r.e(9109).then(r.bind(r,97363)),prerenderLoader:e=>r(97363)},On={name:"HomePage",loader:()=>r.e(8460).then(r.bind(r,16309)),prerenderLoader:e=>r(16309)},Pn={name:"InvSimAssetsPage",loader:()=>Promise.all([r.e(8482),r.e(4951)]).then(r.bind(r,37245)),prerenderLoader:e=>r(37245)},Tn={name:"InvSimBuyAssetConfirmationPage",loader:()=>Promise.all([r.e(5993),r.e(9056)]).then(r.bind(r,47075)),prerenderLoader:e=>r(47075)},An={name:"InvSimBuyAssetPage",loader:()=>Promise.all([r.e(8482),r.e(7259),r.e(7833)]).then(r.bind(r,2008)),prerenderLoader:e=>r(2008)},In={name:"InvSimDepositPage",loader:()=>Promise.all([r.e(808),r.e(763)]).then(r.bind(r,95336)),prerenderLoader:e=>r(95336)},Nn={name:"InvSimHistoryPage",loader:()=>Promise.all([r.e(8482),r.e(7027),r.e(4028)]).then(r.bind(r,61236)),prerenderLoader:e=>r(61236)},Rn={name:"InvSimHomePage",loader:()=>Promise.all([r.e(5566),r.e(8482),r.e(7027),r.e(2293)]).then(r.bind(r,33244)),prerenderLoader:e=>r(33244)},jn={name:"InvSimOnboardingPage",loader:()=>Promise.all([r.e(808),r.e(3992)]).then(r.bind(r,14115)),prerenderLoader:e=>r(14115)},Mn={name:"InvSimSellAssetConfirmationPage",loader:()=>Promise.all([r.e(5993),r.e(7885)]).then(r.bind(r,89338)),prerenderLoader:e=>r(89338)},Dn={name:"InvSimSellAssetPage",loader:()=>Promise.all([r.e(8482),r.e(7259),r.e(6028)]).then(r.bind(r,31123)),prerenderLoader:e=>r(31123)},Ln={name:"InvSimSingleAssetPage",loader:()=>Promise.all([r.e(3919),r.e(5566),r.e(8482),r.e(8199),r.e(6796)]).then(r.bind(r,38997)),prerenderLoader:e=>r(38997)},Fn={name:"InvSimWithdrawPage",loader:()=>r.e(6856).then(r.bind(r,84627)),prerenderLoader:e=>r(84627)},Bn={name:"InvSimWithdrawTransactionPage",loader:()=>Promise.all([r.e(808),r.e(3694)]).then(r.bind(r,38919)),prerenderLoader:e=>r(38919)},Un={name:"LeaderboardPage",loader:()=>Promise.all([r.e(18),r.e(1228)]).then(r.bind(r,53573)),prerenderLoader:e=>r(53573)},Vn={name:"LeaderboardUserPage",loader:()=>r.e(245).then(r.bind(r,23643)),prerenderLoader:e=>r(23643)},zn={name:"LoginPage",loader:()=>r.e(7789).then(r.bind(r,9061)),prerenderLoader:e=>r(9061)},qn={name:"MorePage",loader:()=>r.e(2997).then(r.bind(r,58834)),prerenderLoader:e=>r(58834)},Hn={name:"NotFoundPage",loader:()=>r.e(3754).then(r.bind(r,59220)),prerenderLoader:e=>r(59220)},Gn={name:"OAuthCallbackPage",loader:()=>r.e(3640).then(r.bind(r,20466)),prerenderLoader:e=>r(20466)},$n={name:"ProJobsJobPostPage",loader:()=>Promise.all([r.e(3919),r.e(5208),r.e(2061),r.e(5343)]).then(r.bind(r,61393)),prerenderLoader:e=>r(61393)},Wn={name:"ProJobsMatchesPage",loader:()=>Promise.all([r.e(3919),r.e(8199),r.e(2061),r.e(1665)]).then(r.bind(r,50375)),prerenderLoader:e=>r(50375)},Zn={name:"ProJobsPage",loader:()=>r.e(1644).then(r.bind(r,24923)),prerenderLoader:e=>r(24923)},Qn={name:"ProJobsPreferencesPage",loader:()=>r.e(1425).then(r.bind(r,86816)),prerenderLoader:e=>r(86816)}
2,Yn={name:"ProductPage",loader:()=>Promise.all([r.e(18),r.e(1516)]).then(r.bind(r,19898)),prerenderLoader:e=>r(19898)},Kn={name:"ProductReviewsPage",loader:()=>r.e(6504).then(r.bind(r,49100)),prerenderLoader:e=>r(49100)},Jn={name:"ProfileBuilderPage",loader:()=>r.e(1276).then(r.bind(r,47243)),prerenderLoader:e=>r(47243)},Xn={name:"ProfilePreferencesFormPage",loader:()=>r.e(8839).then(r.bind(r,12165)),prerenderLoader:e=>r(12165)},ei={name:"ProfileYouFormPage",loader:()=>r.e(577).then(r.bind(r,16389)),prerenderLoader:e=>r(16389)},ti={name:"ProgradSurveyPage",loader:()=>r.e(4110).then(r.bind(r,65568)),prerenderLoader:e=>r(65568)},ri={name:"QuestOutcomePage",loader:()=>r.e(5773).then(r.bind(r,93614)),prerenderLoader:e=>r(93614)},ni={name:"QuestPage",loader:()=>Promise.all([r.e(5208),r.e(3419)]).then(r.bind(r,45991)),prerenderLoader:e=>r(45991)},ii={name:"QuestsPage",loader:()=>r.e(5964).then(r.bind(r,46264)),prerenderLoader:e=>r(46264)},oi={name:"RedemptionPage",loader:()=>Promise.all([r.e(8397),r.e(6365)]).then(r.bind(r,71275)),prerenderLoader:e=>r(71275)},ai={name:"ResetPasswordPage",loader:()=>r.e(3753).then(r.bind(r,31611)),prerenderLoader:e=>r(31611)},si={name:"ReviewPage",loader:()=>r.e(2255).then(r.bind(r,14368)),prerenderLoader:e=>r(14368)},li={name:"RewardPage",loader:()=>Promise.all([r.e(18),r.e(5018)]).then(r.bind(r,52300)),prerenderLoader:e=>r(52300)},ui={name:"RewardsPage",loader:()=>r.e(2461).then(r.bind(r,92335)),prerenderLoader:e=>r(92335)},ci={name:"SpinTheWheelPage",loader:()=>r.e(5227).then(r.bind(r,8911)),prerenderLoader:e=>r(8911)},di={name:"SurveysPage",loader:()=>r.e(2196).then(r.bind(r,95911)),prerenderLoader:e=>r(95911)},fi={name:"TaskProgressPage",loader:()=>r.e(2314).then(r.bind(r,1606)),prerenderLoader:e=>r(1606)},pi={name:"UserIdentityVerificationCompletionPage",loader:()=>r.e(411).then(r.bind(r,62174)),prerenderLoader:e=>r(62174)},hi={name:"VerifyEmailCtaPage",loader:()=>r.e(9195).then(r.bind(r,21801)),prerenderLoader:e=>r(21801)},mi={name:"WalletPage",loader:()=>Promise.all([r.e(8397),r.e(9562),r.e(6415)]).then(r.bind(r,26488)),prerenderLoader:e=>r(26488)},vi={name:"YourSkillsFormPage",loader:()=>r.e(6342).then(r.bind(r,19687)),prerenderLoader:e=>r(19687)},gi={name:"ProfileRootPage",loader:()=>r.e(9329).then(r.bind(r,48006)),prerenderLoader:e=>r(48006)};var yi=function(){return u.createElement(d.Router,{useAuth:E.a},u.createElement(V.Ah,null,u.createElement(d.Private,{unauthenticated:"login"},u.createElement(d.Set,{wrap:[Tr,gt]},u.createElement(d.Route,{path:"/",page:On,name:"home"}),u.createElement(d.Route,{path:"/products/{id:String}",page:Yn,name:"product"}),u.createElement(d.Route,{path:"/products/{id:String}/reviews",page:Kn,name:"productReviews"}),u.createElement(d.Route,{path:"/review/{id:String}",page:si,name:"review"}),u.createElement(d.Route,{path:"/progress/task/{productId:String}",page:fi,name:"taskProgress"}),u.createElement(d.Route,{path:"/reward/{id:String}",page:li,name:"reward"}),u.createElement(d.Route,{path:"/app-ad",page:vn,name:"appAd"}),u.createElement(d.Route,{path:"/prograd-survey/{id:String}",page:ti,name:"progradSurvey"})),u.createElement(d.Set,{wrap:[Tr,Lt,gt,Pt]},u.createElement(d.Route,{path:"/earn",page:kn,name:"earn"}),u.createElement(d.Route,{path:"/earn/{categorySlug:String}",page:En,name:"earnCategory"}),u.createElement(d.Route,{path:"/wallet",page:mi,name:"wallet"}),u.createElement(d.Route,{path:"/cashout",page:bn,name:"cashout"})),u.createElement(d.Set,{wrap:[Tr,gt,Pt]},u.createElement(d.Route,{path:"/more",page:qn,name:"more"}),u.createElement(d.Route,{path:"/profile",page:gi,name:"profile"}),u.createElement(d.Route,{path:"/profile/builder",page:Jn,name:"profileBuilder"}),u.createElement(d.Route,{path:"/profile/builder/your-skills",page:vi,name:"yourSkillsForm"}),u.createElement(d.Route,{path:"/profile/builder/you",page:ei,name:"profileYouForm"}),u.createElement(d.Route,{path:"/profile/builder/preferences",page:Xn,name:"profilePreferencesForm"})),u.createElement(d.Set,{wrap:[Tr,jt,gt]},u.createElement(d.Route,{path:"/guides",page:Cn,name:"guides"}),u.createElement(d.Route,{path:"/dashboard",page:xn,name:"dashboard"}),u.createElement(d.Route,{path:"/surveys",page:di,name:"surveys"}),u.createElement(d.Route,{path:"/investment-simulator/onboarding",page:jn,name:"invSimOnboarding"}),u.createElement(d.Route,{path:"/leaderboard/{id:String}",page:Un,name:"leaderboard"}),u.createElement(d.Route,{path:"/leaderboard/user/{userId:String}/round/{roundId:String}",page:Vn,name:"leaderboardUser"})),u.createElement(d.Set,{wrap:[Tr,jt,gt,Pt]},u.createElement(d.Route,{path:"/rewards",page:ui,name:"rewards"}),u.createElement(d.Route,{path:"/redemptions/{id:String}",page:oi,name:"redemption"}),u.createElement(d.Route,{path:"/campaigns/{id:String}",page:yn,name:"campaign"}),u.createElement(d.Route,{path:"/spin-the-wheel",page:ci,name:"spinTheWheel"}),u.createElement(d.Route,{path:"/bonus-rewards",page:gn,name:"bonus
2Rewards"})),u.createElement(d.Set,{wrap:[Tr,gt,Pt]},u.createElement(d.Route,{path:"/quests",page:ii,name:"quests"}),u.createElement(d.Route,{path:"/quest/{id:String}",page:ni,name:"quest"})),u.createElement(d.Set,{wrap:[Tr,jt,gt,Rt]},u.createElement(d.Route,{path:"/jobs",page:Zn,name:"proJobsHome"}),u.createElement(d.Route,{path:"/jobs/matches",page:Wn,name:"proJobsMatches"}),u.createElement(d.Route,{path:"/jobs/preferences",page:Qn,name:"proJobsPreferences"}),u.createElement(d.Route,{path:"/jobs/{id:String}",page:$n,name:"proJobsJobPost"})),u.createElement(d.Set,{wrap:[Tr,jt,It,gt]},u.createElement(d.Route,{path:"/investment-simulator",page:Rn,name:"invSimHome"}),u.createElement(d.Route,{path:"/investment-simulator/deposit",page:In,name:"invSimDeposit"}),u.createElement(d.Route,{path:"/investment-simulator/withdraw",page:Fn,name:"invSimWithdraw"}),u.createElement(d.Route,{path:"/investment-simulator/withdraw/transaction",page:Bn,name:"invSimWithdrawTransaction"}),u.createElement(d.Route,{path:"/investment-simulator/history",page:Nn,name:"invSimHistory"}),u.createElement(d.Route,{path:"/investment-simulator/assets",page:Pn,name:"invSimAssets"}),u.createElement(d.Route,{path:"/investment-simulator/assets/{symbol:String}",page:Ln,name:"invSimSingleAsset"}),u.createElement(d.Route,{path:"/investment-simulator/assets/{symbol:String}/buy",page:An,name:"invSimBuyAsset"}),u.createElement(d.Route,{path:"/investment-simulator/assets/{symbol:String}/buy/confirm",page:Tn,name:"invSimBuyAssetConfirmation"}),u.createElement(d.Route,{path:"/investment-simulator/assets/{symbol:String}/sell",page:Dn,name:"invSimSellAsset"}),u.createElement(d.Route,{path:"/investment-simulator/assets/{symbol:String}/sell/confirm",page:Mn,name:"invSimSellAssetConfirmation"})),u.createElement(d.Route,{path:"/community/circle/oauth",page:wn,name:"circleCommunityAuth"}),u.createElement(d.Route,{path:"/rewards/verification/complete",page:pi,name:"userIdentityVerificationCompletion"}),u.createElement(d.Set,{wrap:[gt,Pt]},u.createElement(d.Route,{path:"/verify",page:hi,name:"verifyEmailCta"}))),u.createElement(d.Set,{wrap:wt},u.createElement(d.Route,{path:"/onboarding",page:mn,name:"onboarding"}),u.createElement(d.Route,{path:"/login",page:zn,name:"login"}),u.createElement(d.Route,{path:"/oauth/launch",page:Wr,name:"oauthLaunch"}),u.createElement(d.Route,{path:"/callback",page:Gn,name:"oauthCallback"}),u.createElement(d.Route,{path:"/forgot-password",page:_n,name:"forgotPassword"}),u.createElement(d.Route,{path:"/reset-password",page:ai,name:"resetPassword"})),u.createElement(d.Route,{path:"/verify/{code:String}",page:Sn,name:"emailVerification"}),u.createElement(d.Set,{wrap:Mt},u.createElement(d.Route,{path:"/quests/{id:String}/outcome",page:ri,name:"questOutcome"})),u.createElement(d.Route,{notfound:!0,page:Hn})))},bi=r(36448),wi=r(22951),xi=r(91976),Ei=[],ki=Ei.forEach,Si=Ei.slice,_i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Ci={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var r=function(e){for(var t="".concat(e,"="),r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null}(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};r&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+60*r*1e3)),n&&(i.domain=n),document.cookie=function(e,t,r){var n=r||{};n.path=n.path||"/";var i=encodeURIComponent(t),o="".concat(e,"=").concat(i);if(n.maxAge>0){var a=n.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(a))}if(n.domain){if(!_i.test(n.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(n.domain)}if(n.path){if(!_i.test(n.path))throw new TypeError("option path is invalid");o+="; Path=".concat(n.path)}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw new TypeError("option expires is invali
2d");o+="; Expires=".concat(n.expires.toUTCString())}if(n.httpOnly&&(o+="; HttpOnly"),n.secure&&(o+="; Secure"),n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o}(e,encodeURIComponent(t),i)}(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},Oi={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var n=r.substring(1).split("&"),i=0;i<n.length;i++){var o=n[i].indexOf("=");o>0&&n[i].substring(0,o)===e.lookupQuerystring&&(t=n[i].substring(o+1))}}return t}},Pi=null,Ti=function(){if(null!==Pi)return Pi;try{Pi="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){Pi=!1}return Pi},Ai={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&Ti()){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&Ti()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},Ii=null,Ni=function(){if(null!==Ii)return Ii;try{Ii="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){Ii=!1}return Ii},Ri={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&Ni()){var r=window.sessionStorage.getItem(e.lookupSessionStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&Ni()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},ji={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)t.push(navigator.languages[r]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},Mi={name:"htmlTag",lookup:function(e){var t,r=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return r&&"function"==typeof r.getAttribute&&(t=r.getAttribute("lang")),t}},Di={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace("/","")}else t=r[0].replace("/","")}return t}},Li={name:"subdomain",lookup:function(e){var t="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,r="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[t]}},Fi=!1;try{document.cookie,Fi=!0}catch(i){}var Bi=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Fi||Bi.splice(1,1);var Ui=function(){return(0,xi.Z)(function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,wi.Z)(this,e),this.type="languageDetector",this.detectors={},this.init(t,r)},[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=function(e){return ki.call(Si.call(arguments,1),function(t){if(t)for(var r in t)void 0===e[r]&&(e[r]=t[r])}),e}(t,this.options||{},{order:Bi,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(e){return e.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(Ci),this.addDetector(Oi),this.addDetector(Ai),this.addDetector(Ri),this.addDetector(ji),this.addDetector(Mi),this.addDetector(Di),this.addDetector(Li)}},{key:"addDetector",value:function(e){return this.detectors[e.name]=e,this}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var r=[];return e.forEach(function(e){if(t.detectors[e]){var n=t.detectors[e].lookup(t.options);n&&"string"==typeof n&&(n=[n]),n&&(r=r.concat(n))}}
2),r=r.map(function(e){return t.options.convertDetectedLanguage(e)}),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var r=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(function(t){r.detectors[t]&&r.detectors[t].cacheUserLanguage(e,r.options)}))}}])}();Ui.type="languageDetector";var Vi=JSON.parse('{"storybook-test-button-label":"Click me!","submit":"Submit","loading":"Loading","close":"Close","amount":"Amount","salary":"Salary","email":"Email address","password":"Password","sign-in":"Sign In","sign-up":"Sign Up","login":"Log in","proceed":"Proceed","more-details":"More details","apply-now":"Apply now","apply":"Apply","coming-soon":"Coming soon","cancel":"Cancel","edit":"Edit","save":"Save Changes","get-started":"Get started","reset":"Reset","find":"Find","from":"From","delete":"Delete","flat":"Flat","continue":"Continue","back":"Back","invalid-credentials":"Invalid credentials","title":{"mr":"Mr","mrs":"Mrs","miss":"Miss","ms":"Ms","dr":"Dr","other":"Other"},"marital-status":{"single":"Single","married":"Married","partner":"Partner","co-habiting":"Co-Habiting","separated":"Separated","divorced":"Divorced","civil-union":"Civil Union","widowed":"Widowed"},"education-level":{"apprenticeship":"Apprenticeship","university":"University","school-16":"School (aged 16)","school-18":"School (aged 18)","school (aged 16)":"School (aged 16)","school (aged 18)":"School (aged 18)"},"product-type":{"bnpl":"Buy Now Pay Later","credit_builder":"Credit Builder","credit_card":"Credit Card","credit_line":"Credit Line","flex_work":"Flex Work","loan":"Loan","other":"Other","saving":"Saving","vehicle_finance":"Vehicle Finance"},"password-strength":{"too-short":"too short","weak":"weak","okay":"okay","good":"good","strong":"strong"},"inputs":{"title":{"label":"Title"},"given-names":{"label":"Given name(s)","placeholder":"e.g. Brooklyn"},"first-name":{"label":"First name","label-alt":"Enter your First Name","placeholder":"First Name"},"last-name":{"label":"Surname","placeholder":"e.g. Doe","placeholder-alt":"Last Name"},"username":{"label":"Username","label-alt":"Username","placeholder":"Enter your username"},"gender":{"label":"Gender","label-alt":"Gender","placeholder":"e.g. Male"},"pronouns":{"label":"How do you prefer to be referred to?","label-alt":"Pronouns","placeholder":"e.g. He/Him"},"date-of-birth":{"label":"Date of birth"},"age":{"label":"Age","label-alt":"Age","placeholder":"Please enter your age"},"date":{"label":"Date"},"marital-status":{"label":"Marital Status","placeholder":"Select your marital status"},"email":{"label":"Your email address","label-alt":"Email address","placeholder":"e.g. [email protected]","placeholder-alt":"Enter your email"},"phone":{"label":"Your phone number","label-alt":"Phone number","placeholder":"e.g. 07498956761","placeholder-alt":"07123456123"},"set-password":{"label":"Set a password","placeholder":"at least 8 characters"},"password":{"label":"Password","placeholder":"Enter your password","placeholder-alt":"Set up your password"},"referral-code":{"label":"Got a referral code from your friend?","placeholder":"Enter your referral code","placeholder-alt":""},"new-password":{"label":"New password"},"email-opt-in":{"label":"Count me in for exclusive emails on side hustles & money gigs"},"terms":{"label":"I agree to the <1>T&C\'s</1> and <5>Privacy Policy</5>"},"amount":{"label":"Amount","placeholder":"Amount","placeholder-alt":"Enter the amount"},"goal-amount":{"label":"Amount","label-alt":"My Goal","placeholder":"e.g. {{currencySymbol}}250","placeholder-alt":"Enter the amount"},"salary":{"label":"Salary","label-alt":"Income","placeholder":"Yearly salary before tax"},"goal-type":{"label":"Goal type","placeholder":"ð¥ Select your goal"},"custom-goal-type":{"label":"Custom goal type","placeholder":"Enter your goal"},"grind":{"label":"Grind","label-alt":"Grind","placeholder":"What is your 9 to 5?"},"employment-status":{"label":"Employment Status"},"employment-industry":{"label":"Employment Industry"},"employer-name":{"label":"Employer name"},"job-title":{"label":"Job title","placeholder":"Job title"},"employment-start-date":{"label":"Employment start date"},"gross-annual-income":{"label":"Gross annual income"},"monthly-housing-expenses":{"label":"How much do you spend each month on your rent or mortgage?","label-alt":"Monthly housing expenses","placeholder":"Rent/Mortgage monthly"},"monthly-other-expenses":{"label":"How much do you spend each month on other things?","label-alt":"Monthly other expenses"}
2,"dependants":{"label":"How many dependants do you have?","label-alt":"Dependants"},"region":{"label":"Region","label-alt":"Region","placeholder":"Select your region"},"postcode":{"label":"Postcode","placeholder":"eg. N16TH"},"get-address-response":{"label":"Please select your address","label-alt":"Address"},"building-number":{"label":"Building number"},"building-name":{"label":"Building name"},"flat":{"label":"Flat"},"street":{"label":"Street"},"city":{"label":"City"},"county":{"label":"County"},"country":{"label":"Country"},"residential-status":{"label":"Residential Status"},"move-in-date":{"label":"What date did you move in?","label-alt":"Move in date"},"highest-education-level":{"label":"Highest education level"},"university-name":{"label":"University name"},"course":{"label":"Course"},"degree-level":{"label":"Degree level"},"mode-of-study":{"label":"Mode of study"},"grade":{"label":"Grade"},"apprenticeship-subject-area":{"label":"Apprenticeship subject area"},"apprenticeship-level":{"label":"Apprenticeship level"},"training-provider":{"label":"Training provider name"},"apprenticeship-postcode":{"label":"Home postcode at time of apprenticeship"},"pre-employed":{"label":"Did you work for your apprenticeship employer before starting the apprenticeship"},"starting-salary":{"label":"Salary at start of apprenticeship","label-alt":"Apprenticeship starting salary"},"training-time-percentage":{"label":"Percentage of time spent training vs working","label-alt":"Training time percentage"},"graduation-year":{"label":"Graduation year"},"pfp-seed":{"label":"PFP Seed"}},"form-validation":{"input-required":"Please enter a valid {{name}}","select-required":"Please select an option for {{name}}","input-too-low":"{{name}} value cannot be lower than {{value}}","input-too-high":"{{name}} value cannot be higher than {{value}}","password-length":"Password must be at least 8 characters long","password-format":"Password must contain at least one uppercase letter, one lowercase letter, one number and one special character"},"nav-links":{"how-it-works":"How it works","community":"Community","pro-tools":"Pro Tools ð","explore":"Explore","my-journey":"My Journey","dashboard":"Your Dashboard","profile":"Your Profile","logout":"Log out"},"screen-reader-labels":{"open-main-menu":"Open main menu","open-user-menu":"Open user menu"},"toast-messages":{"submitted":"Submitted!","saved":"Saved!","generic-error":"Something went wrong, please try again later"},"footer":{"copyright":"© {{year}} Prograd uk, Inc. All rights reserved.","copy2":"Prograd Limited is registered in England and Wales, Registration Number 13001496. Registered office is Hallswelle House, 1 Hallswelle Road, London, NW11 0DH.","copy3":"Got a question? Visit our ","contactCenter":"Contact Center","copy4":"If you want to make a complaint, please read our complaints policy <2>here</2>","copy5":"Please read our <2>Terms and Conditions</2> and <6>Privacy Policy</6> for more information. We use cookies to give you the best experience. By using our website you agree to our use of cookies in accordance with our Cookie Policy. Want to manage your cookies? Do so at any time by clicking <9>Manage Cookies</9>."},"home-page":{"main":{"cta-section":{"title":"Money goals made easy.","disclaimer":"We help you find ways to <1>earn</1>, <4>save</4> or <7>borrow</7> to achieve your life goals. Whatever they are.","form-heading":"My goal is","value-props":["100+ strategies to build wealth","Tailored to your profile","No credit score impact and 100% free"]},"stories-carousel":{"personal-info-title":"Hi, I\'m...","goal-info-title":"I\'m looking for..."},"providers-disclaimer":"80+ providers are ready to support your goal"},"how-to-money":{"title":"How to money.","copy":"Learn about money. Find ways to make more. Understand how to multiply it. Become aware of the risks before you make a choice. All in one place, tailor-made for you.","section1":{"title":"Get your bread up.","copy":"Based on your skills and circumstances, we help you handpick the best paths to fulfil your goal. On our platform you will find 100+ of products that help you build a better life.","products":["From side-hustles to jobs","Discounts","Saving accounts","Reward credit cards"]},"section2":{"title":"Hit your life goals faster.","copy":"We track your progress and check on you so you can supercharge your goals. We let you know how you are doing compared to your peers and give you the best content to learn how to make smarter money moves without us.","goals":["Go on holiday ð´","Buy a new car ð","Build more wealth ð¸"]},"section3":{"title":"NO money jargon.","copy1":"We like to keep things as simple as possible.","copy2":"So, we\'ve put together interactive short videos and LOOOTS of other content to explain every single finance word on our platform.","terms":["ISA","EAPR","Credit Limit"]},"section4":{"title":"Your best friend when it comes to money.","copy1":"You deserve to have someone fighting behind the scenes to preventing you from making silly money choices. School should do this but is not. And neither is your bank.","copy2":"That\'s why we are here."}},"testimonials":{"title":"Don\'t just take our word for it.","copy":"If in doubt, check out our Trustpilot reviews to learn how Prograd has got your back when it comes to all things money.","cta":"More reviews"},"community":{"title":"Community is everything","copy":"At Prograd, we\'ve created one of the fastest growing communities for young people to speak and learn about finance stuff.","signature1":"Ethan & Marco","signature2":"Founders @Prograd","thumbnail1-alt":"Interest free right education video thumbnail","thumbnail2-alt":"Late payment fee video thumbnail","thumbnail3-alt":"Interest free right education video thumbnail","thumbnail4-alt":"Grace peri
2od education video thumbnail"},"faq":{"title":"Frequently asked questions","copy":"Something else? Chat to our friendly team via the chatbox below!","items":[{"question":"Who is Prograd?","answer":"Prograd is the only platform helping young people understand finance and empowering you to make better financial decisions. We were founded in 2021 by Marco Logiudice and Ethan Fraenkel, two Masters\' students in the UK."},{"question":"Do I need to pay to use prograd?","answer":"Absolutely not. Free. Gratis. Zilch."},{"question":"How does prograd make money?","answer":"Prograd act as broker and we may be paid a fee based on our partners\' products you take through prograd. You will not pay more as a result of our commission arrangements."},{"question":"Does prograd impact my credit score?","answer":"No. We only run soft credit checks in case you are interested in credit products but this will never leave a mark on your credit history."},{"question":"How old do I need to be to use prograd?","answer":"You\'d need to be 18+"}]},"how-does-it-work":{"title":"How does it work?","copy":"Let us help you understand the different options available to you. You will be surprised by what we can find.","steps":[{"emoji":"ð¸","name":"Step 1","title":"We will ask a few questions","disclaimer":"Tell us about your goals so that we can come up with a strategy to help you get there"},{"emoji":"ð¥","name":"Step 2","title":"Find ways to get to your goal","disclaimer":"And find you tailored ways to earn, save or borrow the money you need."},{"emoji":"ð","name":"Step 3","title":"Track your progress","disclaimer":"When you join prograd, you can set a budget and track your progress towards your goal, comparing with other users!"}]},"coming-next":{"title":"What\'s coming next?","copy":"At Prograd, we work day n\' nite (just like Kid Kudi ð) to make you happier and wealthier. Check out below some of the features we will release soon!","instagram-cta-text":"Follow us on instagram","carousel-items":[{"name":"Ask Prograd anything","title":"The Google of Money","description":"Search anything about money through our smart search feature & get accurate answers to any money question."},{"name":"Connect your bank account","title":"Keep your budget in check","description":"We tell you where you are overspending, notify you if we find better deals for your subscriptions so that you can keep in tip-top shape. You won\'t have to do a thing."},{"name":"Community","title":"Weekly challenges and rewards","description":"We reward you for making progress towards your goal or for learning through our content."}],"cta":{"title":"Every big goal starts with a small step forward.","disclaimer":"We know it is not easy to break free of the money rat race. But we are here to help you do just that.","button-text":"Get started - it\'s free"}}},"onboarding-page":{"progress-card":{"status":{"interval1":"At the starting line... ð¦","interval2":"Setting a good pace ð","interval3":"You are flying along ðª","interval4":"Crushing the course ðª","interval5":"Almost done ð¤","interval6":"At the finishing line ð","interval7":"Nice work. You are ready to be rewarded ð
"},"sections":{"signup":{"alt-label":"Sign Up"},"crafting":{"alt-label":"Crafting"}},"question-categories":{"account":{"title":"This is me..."},"personal-details":{"title":"My details..."},"prefs":{"title":"I want to be a..."}},"disclaimer":"Complete your profile & earn your exclusive Prograd Token!"},"questions":{"amount":{"question":"Let\'s get your money up! How much are you looking to earn?","suffix-1":"We all want stacks in the bank. To get there we have to break it down into achievable steps.","suffix-2":"On average, Prograd users make an extra {{currencySymbol}}200-300 a month - depending on how much free time they have!","action":"Show me the money!"},"personalisation":{"question":"So, what shall we call you? ð¤","suffix":"Choose how you\'ll represent yourself in the Pro universe.","action":"Good to go!"},"referral":{"title":"Registration","question":"Got a referral code from your friend? Add it here (Optional)","disclaimer":"You get to earn more Pro Points when you\'re referred. <1>Learn more</1>."},"account":{"question":"Sign up for free","suffix-1":"Using the right email address is critical to accessing your account. Make sure there aren\'t any typos!","suffix-2":"We promise to never spam you! If you need any help, email us at <1>[email protected]</1>","action":"Sign up"},"date-of-birth":{"question":"When is your birthday? ð","suffix":"We only ask because some side-hustles have different age policies.","action":"You got it. Don\'t forget to send a card."}
2,"region":{"question":"What\'s your basecamp? ð¡","suffix":"This helps us provide better recommendations with opportunities that are close to where you are.","label":"I am based around...","action":"That\'s where I call home."},"grind":{"question":"What\'s your 9 to 5? ð¼","suffix":"We understand your time availability to recommend the best hustles","action":"Yep, that\'s my grind."},"salary":{"question":"What\'s your ballpark annual income? ð¸","suffix":"A rough idea helps us tailor your financial game plan","action":"Psst, now keep that quiet"},"verification":{"title":"Registration","question":"Verify your phone number âï¸","suffix":"One last step before you\'re in. We\'ll send a verification code to your phone.","action":"Continue"}},"preferences-step":{"message":"Let\'s get your money up! What will work the best for you?","suffix":"Tell us how important each topic is to you.","inputs":{"quickCash":{"label":"I want to earn quickly, even if its only a little.","rangeLabel":{"min":"That\'s not me","max":"Quick cash all the way!"}},"highEffort":{"label":"I don\'t mind the grind, the payoff is worth it!","rangeLabel":{"min":"That\'s too much work","max":"oh yessss!"}},"wantsToLearn":{"label":"I want to learn & become a master of money.","rangeLabel":{"min":"I know enough","max":"Teach me wise one!"}},"wantsToInvest":{"label":"I want to be an savvy investor, where do I start?","rangeLabel":{"min":"Not interested, at all","max":"Give me the power!"}}},"action":"That feels about right"},"intro-step":{"chat-0":{"prefix":"","message":"Hey {{name}} ð\\n\\n We\'ll start earning you extra money in just 2 minutes!","suffix":"We help to make money work for you, whilst you make extra money with us in ProPoints","response":"Hmm, but how exactly?"},"chat-1":{"prefix":"","message":"We tailor earning activities specifically for you ðª","suffix":"To make it even better... we sprinkle on ProPoints as an extra reward for the things you do!","response":"Sounds pretty good, but what activities?"},"chat-2":{"prefix":"","message":"Regular task drops. Access to learning paths, games & tools. Everything to level-up your earning ð¤","suffix":"The more we understand about you the better we get at recommending the best activities for you.","response":"Great stuff, I get it now."}},"outro-step":{"chat-0":{"prefix":"Thanks, we\'re all done.","message":"Congrats {{name}}! you are earning already ð¥³","response":"Uh, how\'s that then?"},"chat-1":{"message":"Our tailored drops will guide you to a better financial future ðª"},"chat-2":{"message":"You will be rewarded with ProPoints as you progress ð","suffix":"You don\'t need to do anything extra to get your hands on ProPoints. We add them to your account automatically, so you can sit back & earn.","response":"Points are cool but cash would be better"},"chat-3":{"suffix":"To get you started, we\'ve rewarded you {{points}} points! A little bonus, just for joining our community!","response":"Let\'s go ð"}},"already-have-an-account":"Already have an account?"},"onboarding":{"stages":{"work-and-finance":"Work & Finance","address-history":"Address history"},"work-and-finance":{"steps":{"initial":{"title":"Proconcierge","question":"Thinking about exploring your credit options?","disclaimer1":"Let me help you","disclaimer2":"I will listen to your circumstances, screen out products that are not affordable and present you with your tailored options in less than 2 minutes."},"name":{"title":"Work & Finance","question":"What\'s your name?"},"job":{"title":"Work & Finance","question1":"What is your job title?","disclaimer1":"We will check for lenders that lend specifically to people with your job title.","question2":"And when did you start?","disclaimer2":"Let us know when did you start working as a {{jobTitle}}"},"housing-expenses":{"title":"Work & Finance","question":"What\'s your monthly rent/mortgage?","disclaimer":"We will make sure to screen out options that are not affordable based on your expenses."},"family-info":{"title":"Work & Finance","question1":"Are you married?","disclaimer1":"Some lenders will want to consider your partner\'s income as well before making a decision.","question2":"Do you have any dependants?","disclaimer2":"Lenders will look at the number of people that depend on you to decide if you can afford credit"},"phone":{"title":"Work & Finance","question":"What is your phone number?","disclaimer":"We promise not to spam you with messages. This will be used only to verify your identity or contact you if your application is successful."},"final":{"paragraph1":"Great!","paragraph2":"That sounds like a solid financial situation, {{name}}."}}},"address-history":{"steps":{"step1":{"title":"Proconcierge","question":"Last step! Let\'s add your 3 years address history","disclaimer":"This will be used solely to verify your identity. I know it\'s a bit painful but this is just the last step that lenders require before showing you their offers."},"step2":{"title":"Address history","question":"What is your address?","disclaimer":"We will verify your identity in the meanwhile."},"step2-alt":{"title":"Address history","question":"Where did you live before?","disclaimer":"Please, provide {{monthsCount}} additional months of address history to prove your identity"},"step3":{"title":"Address history","question1":"When did you move in?","question2":"Are you renting or owning?"},"step6":{"paragraph1":"That\'s it â
","paragraph2":"You can proceed to view your credit options ð³"}}}},"login-page":{"title":"Sign in to your account","no-account":"Don\'t have an account? Join now!","forgot-password":"Forgot your password?"},"forgot-password-page":{"title":"Forgot Your Password?"},"reset-password-page":{"title":"Reset Your Password"},"profile-page":{"root":{"title":"Welcome to your profile, <1>{{name}}</1>","more-links":{"title":"More","link1":"Privacy Policy","link2":"Terms and Conditions","link3":"Contact us"}},"info":{"title":"Profile Information","disclaimer":"Manage your account details","tabs":{"basic-info":"Basic info","work-and-finance":"Work & Finance","addresses":"Addresses","education":"Education","profile-picture":"Profile Picture","delete-account":"Delete Account"},"basic":{"title":"Tell us a few basic details about you"},"work":{"title":"We need some deets about your finances"},"address":{"title":"Let us know your recent address history","no-addresses-text":"Please add your first address!","cta":"+ add Address","submit":"Save Address ð","current":"Current Address","previous":"Previous Addresses","show-detail
2s":"Show details","hide-details":"Hide details","delete-modal":{"title":"Delete address","text":"Are you sure you want to delete this address?"}},"education":{"title":"Tell us some info about your education"},"picture":{"title":"Generate profile picture","cta":"Regenerate ð±"},"delete-account":{"title":"Do you really want to delete your Prograd account? ð","cta":"Yes, please!","modal-title":"Are you sure?","modal-disclaimer":"We\'ll delete all your data in our app and you will lose all your progress"}},"rewards":{"title":"My Rewards","disclaimer":"History of your rewards earned so far"},"accounts-and-security":{"title":"Accounts & Security","disclaimer":"Password and update other info"},"communication":{"title":"Communication","disclaimer":"Notifications and alerts you receive"}},"pro-tools-page":{"title":"Pro Tools ð","disclaimer":"Simple tools to help you understand your options and the best way to manage your journey.","lrc":{"title":"Loan Repayment Calculator","card":{"description":"Understand the total cost of your loan in just a few clicks"},"description":"The loan calculator helps you work out how much you need to pay back and when you have to pay. Just enter the amount of the loan, how many years and months the loan will be paid over, the annual interest rate and your loan start date."},"lrc-card":{"title":"Loan Repayment Calculator","description":"Understand the total cost of your loan in just a few clicks"},"fpe-card":{"title":"Future Potential Engine","description":"See how far a university degree could take you. How much you could earn and where you may end up working ð®"},"thpc-card":{"title":"Take Home Pay Calculator","description":"Understand how much of your salary you\'ll actually take home each month"},"fpt-card":{"title":"Financial Personality Test","description":"Time to find our what you\'re really like with your money."}},"goal-page":{"add-my-progress":{"cta-text":"Add my progress","modal-amount-question":"Hey {{userName}}! How much of your goal have you managed to finance with {{lenderName}}?","modal-experience-question":"How was your overall experience?"},"connect-bank-account-cta":{"title":"Connect your bank account quickly & securely","features":["Track progress towards your goal","View your progress analytics","Receive personalised suggestions on ways to earn, save and borrow"],"cta":"Connect now"}},"404-page":{"title":"Sorry! We can\'t find the page you\'re looking for.","description":"Click below to get back on track to your goal","cta":"Go to Pro Home"},"truelayer-badge":{"secured-with":"Secured with"},"welcome-card":{"save-daily":{"copy":"Save {{amount}} a day to hit your goal on time","description":"Daily saving suggestions may change based on your current progress"},"new-user-message":"Hi {{name}}!","returning-user-message":"Welcome back {{name}}!","cta":"Pick a solution"},"welcome-banner":{"title":"Let\'s go!","copy":"Get started with your goal by choosing a way to earn, save or borrow. We\'ll help you reach your target, step by step!"},"campaigns":{"giveaway":{"progress":{"default":{"title":"Only {{distance}} to go, will you be the winner?","sub-title":"What are gems? How does this all work?"},"tomorrow":{"title":"Be quick! The winner will be chosen in {{distance}}!","sub-title":"What are gems? How does this all work?"},"final-day":{"title":"Ends in {{distance}}! Don\'t miss your chance to win!","sub-title":"What are gems? How does this all work?"},"start":{"title":"You have {{distance}}, how many times will you enter?","sub-title":"What are gems? How does this all work?"}}}},"activity-detail":{"continue-playing":"Keep Playing","next-win-card":{"instant-cashback":"Instant Cashback Win","biggest-quick-win":"Biggest Quick Win","your-next-win":"Your Next Win","play-and-earn":"Play & Earn","pro-tip":"<bold>Pro Tip:</bold> Users who make optional in-app purchases help complete levels faster, and earn more rewards."}},"task-card":{"play-and-earn":"Play & Earn ->"},"questionnaire":{"title":"Personalize Earning Opportunities","progress":"Question {{current}} of {{total}}","prefer-not-to-say":"Prefer not to say","next":"Next","device":{"question":"Which device do you use?","ios":"iOS","android":"Android"},"success":{"title":"You are Ready to Earn!","subtitle":"Let\'s maximize your earnings toward 10⬠in the next 60+ min!","cta":"Start earning"}},"product-page":{"outbound-modal":{"headline":"This task will now take you outside of the Prograd universe","body":"We are redirecting you to our partner to take your next step to earn","sign-off":"We look forward to welcoming you back shortly!","cta":"Proceed to {{partnerName}}","verify-notice":"Once completed, this task is typically verified in","redirect-notice":"Automatically redirecting in {{redirectCountdown}} seconds..."}}}');bi.ZP.use(Ui).use(Be.Db).init({interpolation:{escapeValue:!1},fallbackLng:"en",resources:{en:{translation:Vi}}});var zi=function(){return(0,u.useEffect)(function(){(0,Lr.yr)()},[]),u.createElement(s.FatalErrorBoundary,{page:c.default},u.createElement(s.RedwoodProvider,{titleTemplate:"%AppTitle: %PageTitle"},u.createElement(E.H,null,u.createElement(l.RedwoodApolloProvider,{useAuth:E.a,graphQLClientConfig:{httpLinkConfig:{credentials:"include",headers:{platform:"web"}},cacheConfig:{possibleTypes:{Suggestion:["StaticSuggestion","DynamicSuggestion"]}}}},u.createElement(a.ZP.Provider,null,u.createElement(yi,null))))))}},73169:function(e,t,r){"use strict";r.d(t,{H:function(){return a},a:function(){return s}});var n=r(16926),i=(0,n.createDbAuthClient)({fetchConfig:{credentials:"include"}}),o=(0,n.createAuth)(i),a=o.AuthProvider,s=o.useAuth},6128:function(e,t,r){"use strict";r.d(t,{Z:function(){return w}});var n=r(27378),i=r(57735),o=r(98773),a=(r(74413),r(57637),r(54370),r(5153),r(67506),r(80566),r(50870),r(75397),r(18829),r(95498),r(51429),r(61842),r(25376),r(38333),r(95864),r(63990),r(94565),r(95073),r(65204),r(47072),r(98391),r(24338),r(22727),r(2002),r(19647),r(79583)),s=["android","ios","web"],l=function(e){var t,r=e.platforms,i=e.className,l=(t=r,Array.from(new Set(t)).sort(function(e,t){return s.indexOf(e)-s.indexOf(t)}));return 0===l.length?null:n.createElement("div",{className:(0,o.m)("inline-flex items-center gap-1 rounded-[5px] border border-[#D8D8D8] bg-white px-1.5 py-[2px]",i)},l.map(function(e){return n.createElement(a.Z,{key:e,platform:e,size:"small",className:"h-5 w-5 rounded-none bg-transparent p-0"})}))}
2,u=r(16944),c=r(40176),d=r(22595),f=r(92488),p=r(88031),h=function(e){return n.createElement("svg",e,n.createElement("path",{d:"M54.301 106.449C25.4162 106.449 2.00041 83.0674 2.00041 54.2246C2.00041 25.3817 25.4162 2 54.301 2C83.1858 2 106.602 25.3817 106.602 54.2246C106.602 83.0674 83.1858 106.449 54.301 106.449Z",fill:"#FEF5DB",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M60.4528 106.461C31.568 106.461 8.15227 83.079 8.15227 54.2361C8.15227 25.3933 31.568 2.01154 60.4528 2.01154C89.3377 2.01154 112.753 25.3933 112.753 54.2361C112.753 83.079 89.3377 106.461 60.4528 106.461Z",fill:"#FEF5DB",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M50.9283 95.1257C28.3085 89.8738 14.2354 67.3059 19.495 44.7191C24.7546 22.1322 47.3553 8.07949 69.975 13.3315C92.5947 18.5834 106.668 41.1513 101.408 63.7381C96.1487 86.325 73.548 100.378 50.9283 95.1257Z",fill:"#FEF5DB",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M21.4746 13.9429H25.4619",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M16.393 18.6562H19.3066",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M9.84194 25.9175H13.1123",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M6.22127 34.9896H10.5859",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M2.94396 44.7589H6.94385",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M2.93074 65.4399H7.29541",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M20.0083 90.0885H16.3858",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M26.187 94.8104H22.1997",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M32.7227 99.8892H28.7228",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M28.3553 8.8642H34.5312",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M65.3087 44.9007C65.3087 45.4894 65.7859 45.9666 66.3746 45.9666L77.9217 45.9666C78.6007 45.9666 79.2233 46.3444 79.5368 46.9466C79.8504 47.5488 79.8028 48.2755 79.4135 48.8317L59.206 77.6996C58.7502 78.3507 57.9248 78.6309 57.1668 78.392C56.4088 78.1531 55.8934 77.4501 55.8934 76.6553L55.8934 62.2214C55.8934 61.9387 55.7811 61.6676 55.5812 61.4677C55.3813 61.2678 55.1102 61.1555 54.8275 61.1555H43.2803C42.6014 61.1555 41.9788 60.7778 41.6653 60.1756L40.7198 60.6678L41.6653 60.1756C41.3517 59.5733 41.3993 58.8467 41.7886 58.2904L61.9961 29.4226C62.4519 28.7715 63.2773 28.4912 64.0353 28.7302L64.3557 27.7136L64.0353 28.7302C64.7933 28.9691 65.3087 29.6721 65.3087 30.4668V44.9007Z",fill:"#FFE03F",stroke:"#867000",strokeWidth:"2.1318",strokeLinecap:"round",strokeLinejoin:"round"}))};h.defaultProps={width:"115",height:"108",viewBox:"0 0 115 108",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var m=function(e){return n.createElement("svg",e,n.createElement("mask",{id:"mask0_355_2598",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16"},n.createElement("rect",{x:"0.815674",y:"0.81579",width:"14.3684",height:"14.3684",fill:"#5E4806"})),n.createElement("g",{mask:"url(#mask0_355_2598)"},n.createElement("path",{d:"M8.62854 14.144V12.752C8.96061 12.7045 9.2858 12.6171 9.6041 12.4898C9.9225 12.3625 10.2252 12.1952 10.5122 11.9881L11.472 12.9707C11.0505 13.3043 10.6014 13.5708 10.1245 13.7701C9.64756 13.9694 9.1489 14.0941 8.62854 14.144ZM7.43118 14.144C6.02078 13.962 4.84965 13.3532 3.9178 12.3178C2.98595 11.2824 2.52002 10.0657 2.52002 8.66764C2.52002 7.9097 2.66221 7.19742 2.94658 6.53078C3.23096 5.86405 3.61691 5.28218 4.10444 4.78517C4.59197 4.28806 5.16431 3.89378 5.82146 3.60232C6.47852 3.31076 7.18482 3.16498 7.94036 3.16498H8.01594L7.15952 2.30497L8.11218 1.32957L10.6214 3.8388L8.11218 6.34804L7.15952 5.39538L8.02791 4.52699H7.92958C6.79318 4.52699 5.83449 4.93359 5.0535 5.74681C4.27252 6.56002 3.88203 7.53363 3.88203 8.66764C3.88203 9.69109 4.21649 10.5891 4.88542 11.3616C5.55445 12.1341 6.40304 12.5976 7.43118 12.752V14.144ZM12.3401 12.1062L11.3539 11.1499C11.5611 10.863
211.7283 10.5609 11.8556 10.2437C11.9829 9.92657 12.0715 9.60079 12.1214 9.26632H13.5098C13.4599 9.78189 13.3353 10.2769 13.1359 10.7515C12.9365 11.226 12.6713 11.6775 12.3401 12.1062ZM13.5098 8.06895H12.1214C12.0691 7.73449 11.9793 7.40751 11.852 7.08801C11.7247 6.76851 11.5575 6.46523 11.3503 6.17816L12.3401 5.23269C12.6737 5.6362 12.9382 6.07958 13.1338 6.56281C13.3294 7.04605 13.4547 7.5481 13.5098 8.06895Z",fill:"#5E4806"})))};m.defaultProps={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var v=function(e){var t=e.amount,r=e.rewardDisplayMode,i=(0,f.Rm)({pointsValue:t,displayMode:r});return n.createElement("div",{"data-testid":"direct-install-task-card-cashout-bonus",className:"relative flex h-[37px] items-center gap-2 overflow-hidden rounded-[8px] bg-[linear-gradient(90deg,#472DF3_0%,#A82DF3_100%)] px-1"},n.createElement("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 opacity-30 [background-image:repeating-linear-gradient(115deg,transparent_0_10px,rgba(255,255,255,0.16)_10px_18px)]"}),n.createElement("span",{className:"relative z-[1] flex h-[29px] items-center rounded-[8px] border border-[#E0A63C] bg-first-cashout-gold-fill px-3 text-lg font-bold leading-none tracking-[-0.36px] text-ebonyGrey"},i),n.createElement("span",{"aria-hidden":"true",className:"relative z-[1] text-lg"},"â¡"),n.createElement("span",{className:"relative z-[1] text-lg font-bold leading-none tracking-[-0.36px] text-white"},"For Next Cashout"))},g=function(e){var t=e.rewardPoints,r=e.rewardDisplayMode,i=e.boost,a=(0,f.Rm)({pointsValue:t,displayMode:r}),s="tracking-[-0.32px]";if("boosted"===i)return n.createElement("span",{className:(0,o.m)("rounded-[5px] bg-[#E9FFFD] px-2.5 py-[5px] text-base font-bold leading-normal text-[#E76969] line-through",s)},a);if("points"===r)return n.createElement("span",{className:(0,o.m)("rounded-[5px] bg-[#E9FFFD] px-2.5 py-[5px] text-base font-bold leading-normal text-[#263238]",s)},a);var l=(0,f.Mt)(a),u=l.symbol,c=l.amount;return u?n.createElement("span",{className:"inline-flex items-center gap-1 rounded-[5px] bg-[#E9FFFD] px-2.5 py-[5px]"},n.createElement("span",{className:(0,o.m)("text-base font-bold leading-normal text-[#05b379]",s)},u),n.createElement("span",{className:(0,o.m)("text-base font-bold leading-normal text-[#263238]",s)},c)):n.createElement("span",{className:(0,o.m)("rounded-[5px] bg-[#E9FFFD] px-2.5 py-[5px] text-base font-bold leading-normal text-[#263238]",s)},c)},y=function(e){var t=e.reward,r=e.rewardDisplayMode,i=void 0===r?f.B7:r,o=(0,f.Rm)({pointsValue:t,displayMode:i});return n.createElement("span",{className:"flex items-center gap-1 rounded-md border border-[#FFDD42] bg-[#FFDD42] px-[6px] py-[6px] text-base font-bold leading-none text-ebonyGrey"},n.createElement(h,{className:"h-4 w-4 flex-shrink-0"}),n.createElement("span",{className:"leading-none"},o))},b=function(){return n.createElement("div",{className:"rounded-md bg-black/20 p-1"},n.createElement("div",{title:"In Progress",className:"flex h-4 w-4 items-center justify-center rounded-full border border-[#5E4806] bg-[#FFF1C1]"},n.createElement(m,null)))},w=function(e){var t=e.id,r=e.image,a=e.reward,s=e.boostedReward,h=e.isRewardBoosted,m=e.rewardDisplayMode,w=void 0===m?f.B7:m,x=e.status,E=e.platforms,k=void 0===E?[]:E,S=e.name,_=e.title,C=e.rating,O=e.installBooster,P=e.cashoutBonus,T=e.className,A=e.onSeeRewardsPress,I=e.onInstallNowClick,N=_?(0,p.a)(_,{maxLength:150}):null,R=(0,d.$)(null==O?void 0:O.expiresAt),j=R.isExpired,M=R.formattedTimeRemaining,D=R.isUrgent,L=!!O&&!j,F="number"==typeof P&&P>0;return n.createElement("article",{className:(0,o.m)("flex min-w-32 flex-col overflow-hidden border-[4.16px] border-[rgba(5,179,121,0.1)] bg-white","rounded-[13.906px]",L&&!F&&"border-[#FFBE5C]",F&&"border-transparent [background:linear-gradient(#FFFFFF,#FFFFFF)_padding-box,linear-gradient(90deg,#FFBE5C_0%,#FFE03F_35%,#FFBE5C_65%,#FFE03F_100%)_border-box]",T)},n.createElement("header",{className:(0,o.m)("relative flex aspect-[7/3] flex-row items-start justify-between space-y-0 bg-[image:var(--image-url)] bg-cover bg-center bg-no-repeat px-2 py-3","rounded-t-[13.906px]",!r&&"bg-[url('./components/tasks/ExperimentalTaskCard/assets/fallback-hero.png')]"),style:r?{"--image-url":"url(".concat(r,")")}:void 0},"number"==typeof C?n.createElement("div",{className:"flex items-center gap-[2px] rounded-[3px] bg-[#181818]/55 p-1"},n.createElement(i.Z,{className:"h-4 w-4 text-maize"}),n.createElement("span",{className:"text-xs font-bold leading-none tracking-[-0.24px] text-white"},C.toFixed(1))):n.createElement("div",null),("inProgress"===x||k.length>0)&&n.createElement("div",{className:"flex items-center gap-1"},k.length>0&&n.createElement(l,{platforms:k}),"inProgress"===x&&n.createElement(b,null))),n.createElement("div",{className:"flex flex-grow flex-col gap-2 px-3 pb-3 pt-2"}
2,n.createElement("div",{className:"flex-grow space-y-1 pb-0.5"},n.createElement("h5",{className:"text-base font-bold tracking-[-0.32px] text-[#263238]"},S),N&&!L&&!F&&n.createElement("p",{className:"text-xs leading-5 text-[#263238]"},N),F&&n.createElement(v,{amount:P,rewardDisplayMode:w}),O&&!j&&n.createElement(c.Z,{formattedTimeRemaining:M,rewardAmount:O.rewardAmount,rewardDisplayMode:w,isUrgent:D})),n.createElement("div",{className:"mt-0.5 flex items-center justify-between gap-2 border-t border-[#D8E9E3] pt-3"},n.createElement("div",{className:"flex min-w-0 flex-1 items-center gap-2"},n.createElement(g,{rewardDisplayMode:w,rewardPoints:a,boost:h?"boosted":"standard"}),h&&n.createElement(y,{reward:s,rewardDisplayMode:w}),n.createElement("button",{type:"button","data-testid":"direct-install-task-card-".concat(t,"-see-rewards"),onClick:A,className:"font-brownStd shrink-0 text-base tracking-[-0.32px] text-[#263238] underline"},"Rewards")),n.createElement("div",{className:"shrink-0"},n.createElement(u.Z,{as:"button",variant:L||F?"boosted":"compact","data-testid":"direct-install-task-card-".concat(t,"-install"),onClick:I},L&&"â¡ ","Install Now â")))))}},3484:function(e,t,r){"use strict";r.d(t,{T:function(){return s}});var n=r(27378),i=r(39027),o=r(54557),a=r(14252);function s(e){var t,r,s,l,u,c,d,f,p=e.task,h=e.source,m=void 0===h?"earn_page":h,v=(0,o._)().liteMode,g=(0,i.P)({product:{id:p.productId,redirectUrl:null!==(t=p.productRedirectUrl)&&void 0!==t?t:"",pgFeatureKey:null!==(r=p.productPgFeatureKey)&&void 0!==r?r:null,brand:{id:null!==(s=p.productBrandId)&&void 0!==s?s:"",name:p.brandName},liked:!1,isFeatured:null!==(l=p.productIsFeatured)&&void 0!==l&&l,displayName:null!==(u=p.productDisplayName)&&void 0!==u?u:null,title:null!==(c=p.productTitle)&&void 0!==c?c:void 0,type:null!==(d=p.productType)&&void 0!==d?d:void 0,category:p.productCategorySlug?{id:"",name:"",slug:p.productCategorySlug}:null},pointsReward:p.reward.points,reward:p.reward,offerPosition:null!==(f=p.position)&&void 0!==f?f:null}).handleOutbound;return{handleClick:(0,n.useCallback)(function(e){var t,r;(0,a.tH)({game_id:p.productId,pdp_skip_variant:!0,source:m,lite_mode_arm:null!==(t=null==v?void 0:v.arm)&&void 0!==t?t:null,lite_mode_stage:null!==(r=null==v?void 0:v.stage)&&void 0!==r?r:null}),g(e)},[p.productId,g,m,null==v?void 0:v.arm,null==v?void 0:v.stage])}}},16944:function(e,t,r){"use strict";var n=r(27378),i=r(10347),o=r(98773),a=["as","variant","children","icon","className"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(null,arguments)}var l=(0,i.j)("group relative inline-flex h-12 min-h-12 cursor-pointer items-center justify-center overflow-hidden rounded-[9px] bg-[linear-gradient(180deg,#8BDF8E_0%,#E0E054_100%)] p-[3px] text-center font-bold leading-none text-white transition-transform duration-300 ease-out will-change-transform hover:scale-105 active:scale-[0.8] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary",{variants:{variant:{full:"w-full text-xl",compact:"w-[135px] text-base",boosted:"h-10 min-h-10 max-w-full animate-heartBeatLoop rounded-lg bg-none bg-[#FFBE5C] text-base font-bold tracking-[-0.32px] text-[#263238] motion-reduce:animate-none hover:scale-100 active:scale-100",cashoutBonus:"h-10 min-h-10 w-[144.5px] bg-[linear-gradient(90deg,#FFBE5C_0%,#FFE03F_35%,#FFBE5C_65%,#FFE03F_100%)] text-base font-bold text-black shadow-[0_4px_10px_0_rgba(255,190,92,0.29)] hover:scale-100 active:scale-100"}},defaultVariants:{variant:"full"}});t.Z=function(e){var t=e.as,r=e.variant,i=e.children,u=e.icon,c=e.className,d=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({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,a),f=null!=t?t:"span",p="boosted"===r,h="cashoutBonus"===r;return n.createElement(f,s({className:(0,o.m)(l({variant:r}),c)},d),n.createElement("span",{"aria-hidden":"true",className:(0,o.m)("absolute inset-[3px] rounded-[6px] bg-[#126A4D] shadow-[inset_0_5px_5px_0_#58DEB2] transition-colors duration-300 ease-out group-hover:bg-[#105F45]",p&&"bg-repeat shadow-none [background-color:#FFD847] [background-image:url('./components/shared/MagicMoment/assets/lightning-bolt-bg.svg')] [background-size:25px] group-hover:[background-color:#F5CB33]",h&&"rounded-[7px] bg-[#FFD847] shadow-none group-hover:bg-[#F5CB33]")}),(p||h)&&n.createElement("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-x-[3px] top-[3px] h-2 rounded-t-[6px] bg-[#FFE9A0] opacity-50"}),p&&n.createElement("svg",{"aria-hidden":"true","data-testid":"game-cta-snake-border",className:"pointer-events-none absolute inset-0 h-full w-full",viewBox:"0 0 100 48",preserveAspectRatio:"none"},n.createElement("rect",{x:"1.5",y:"1.5",width:"97",height:"45",rx:"8",ry:"8",pathLength:100,fill:"none",stroke:"rgba(255,255,255,0.85)",strokeWidth:"2.5",strokeLinejoin:"round",strokeLinecap:"round",className:"animate-snakeBorder motion-reduce:animate-none",style:{strokeDasharray:"28 72",strokeDashoffset:0}})),n.createElement("span",{"aria-hidden":"true",className:(0,o.m)("pointer-events-none absolute -bottom-[18px] -top-[18px] w-10 rotate-[18deg] animate-gameCtaShine bg-[linear-gradient(90deg,transparent,rgba(255,255,255,0.55),transparent)] motion-reduce:animate-none",p&&"w-12 bg-[linear-gradient(90deg,transparent,rgba(255,255,255,0.45),rgba(255,255,255,0.95),rgba(255,255,255,0.45),transparent)]")}),n.createElement("span",{className:"relative z-10 flex items-center justify-center gap-2 whitespace-nowrap px-3"},u&&n.createElement("span",{className:"inline-flex shrink-0 items-center"},u),i))}},58348:function(e,t,r){"use strict";r.d(t,{Fv:function(){return a},hA:function(){return l},kS:function(){return s},rA:function(){return u},wO:function(){return d}}),r(63517),r(74413),r(62285),r(69108);var n=r(49687),i=["setup","standard","speed-bonus","booster"],o={setup:1,standard:2,"speed-bonus":1,booster:1},a={setup:"Install",standard:"Rewards","speed-bonus":"Speed Bonus Rewards",booster:"Boosted Rewards"},s={standard:"Earn these rewards as you progress through the game.","speed-bonus":"Extra rewards for hitting these goals before the deadline.",booster:"Limited-time rewards worth more than usual."};function l(e){var t=(0,n.RU)(c(e));return i.reduce(function(e,r){var i,a=t[r];if(null==a||!a.length)return e;var s="setup"===r?[null!==(i=a.find(n.ur))&&void 0!==i?i:a[0]]:a;return e.push({groupType:r,steps:s.slice(0,o[r])}),e},[])}function u(e){return c(e).length}function c(e){return e.filter(function(e){return!("survey"===e.triggerType&&"success"!==e.triggerState||e.burning)})}function d(e){if(!e||e<=0)return null;try{var t=(0,n.cd)(e);return t>0?t:null}catch(e){return null}}},40757:function(e,t,r){"use strict";r.d(t,{Qq:function(){return D},ZP:function(){return B}});var n,i,o,a=r(31786),s=(r(63517),r(74413),r(62285),r(20779),r(57637),r(94621)),l=r(27378),u=r(917),c=r(98889),d=r(67452),f=r(54557),p=r(84186),h=r(73487),m=r(32150),v=r(98773),g=r(94119),y=(0,s.ZP)(n||(i=["\n query TriggerRewardCellQuery($type: String!, $eventName: String) {\n trigger(type: $type, eventName: $eventName) {\n id\n reward {\n points\n }\n }\n }\n"],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}})))),b=(0,a.createCell)({QUERY:y,Loading:function(e){var t=e.className;return l.createElement(g.Z,{reward:0,size:"large",className:(0,v.m)("animate-pulse",t)})},Empty:function(){return l.createElement(l.Fragment,null)},Failure:function(){return l.createElement(l.Fragment,null)},Success:function(e){var t=e.trigger,r=e.className,n=e.onLoad;return(0,l.useEffect)(function(){t.reward.points>0&&n&&n(t.reward.points)},[t.reward.points,n]),0===t.reward.points?l.createElement(l.Fragment,null):l.createElement(g.Z,{reward:t.reward.points,size:"large",className:r})},displayName:"TriggerRewardCell"}),w=r(71453),x=r(13899),E=r(14252);function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}
2finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return S(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)?S(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var _=p.ZP.create(function(e){var t=e.userStatus,r=void 0===t?"notStarted":t,n=(0,d.P)(function(e){return e.actions}),i=(0,d.P)(function(e){return e.incentive}),o=(0,p.dd)(),a=o.hide,s=o.visible,u=k((0,m.j)(),2),f=u[0],v=u[1].loading,g=O[r];return l.createElement(x.Z.Root,{isOpen:s,onClose:a},l.createElement(x.Z.Backdrop,null),l.createElement(x.Z.Layout,null,l.createElement(x.Z.Panel,{className:"space-y-4 rounded-t-3xl pb-10 text-center tablet:rounded-3xl laptop:min-h-max"},l.createElement("header",{className:"space-y-6"},l.createElement("h2",{className:"text-[#579880]"},g.headline),l.createElement("h3",{className:"text-xl font-bold"},g.title)),l.createElement("section",{className:"space-y-10"},l.createElement("p",{className:"text-lg text-slateGrey"},g.copy),l.createElement(b,{onLoad:function(e){return n.setIncentive(e)},type:"prograd-internal",eventName:"onboarding_started",className:"mx-auto inline-flex"})),l.createElement("footer",{className:"space-y-4"},l.createElement(w.Z,{variant:"secondary",kind:"button",onClick:function(){return f({variables:{input:{action:"started"}},onCompleted:function(e){var t=e.updateUserOnboardingStatus,r=t.message,i=t.success,o=t.rewardIds;if(!i)return a(),h.toast.error(r),(0,c.navigate)(c.routes.earn());a();var s=k(o,1)[0];return s?(n.startOnboardingReward(),(0,c.navigate)(c.routes.reward({id:s}))):(n.startTour(),(0,c.navigate)(c.routes.earn()))},onError:function(){return a(),h.toast.error("Something went wrong")}})},loading:v,disabled:v,className:"mx-auto block max-w-80"},g.primaryCtaText),l.createElement(w.Z,{variant:"tertiary",kind:"button",onClick:function(){return f({variables:{input:{action:"skipped"}},onCompleted:function(e){var t=e.updateUserOnboardingStatus,r=t.message;return t.success?((0,E.PL)("skipped",{stageSkippedAt:"intro",incentive:i}),a(),(0,c.navigate)(c.routes.earn())):(a(),h.toast.error(r))},onError:function(){return a(),h.toast.error("Something went wrong")}})},loading:v,disabled:v,className:"mx-auto block max-w-80"},g.secondaryCtaText)))))}),C={headline:"Welcome back",title:"Seems like you didn't complete the tour.",copy:"Explore Prograd and get a little gift from us to get you started on your your money making journey.",primaryCtaText:"Complete The Tour",secondaryCtaText:"Skip"},O={notStarted:{headline:"Welcome to Prograd",title:"Want a quick tour?",copy:"Explore Prograd and get a little gift from us to get you started on your money making journey.",primaryCtaText:"Take Tour & Claim Reward",secondaryCtaText:"Skip"},skipped:C,inProgress:C},P=r(7740),T=r(71637);function A(e){return A="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},A(e)}var I,N=["onClick"];function R(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 j(e,t,r){return(t=function(e){var t=function(e){if("object"!=A(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
2).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},M.apply(null,arguments)}var D=(0,s.ZP)(I||(I=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n query ProductTourQuery {\n user {\n id\n onboardingStatus\n }\n }\n"])));function L(e){var t=e.isLastStep,r=e.step,n=e.primaryProps,i=(n.onClick,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({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(n,N)),o=(0,T.jf)().next;return l.createElement(P.Z,{className:"max-w-sm border-none"},r.title&&l.createElement(P.Z.Header,null,l.createElement("h4",{className:"text-center text-lg font-bold text-ebonyGrey"},r.title)),l.createElement(P.Z.Content,{className:"text-center text-slateGrey [&>b]:text-ebonyGrey [&>p>b]:text-ebonyGrey [&>p>strong]:text-ebonyGrey [&>p]:mb-2 [&>strong]:text-ebonyGrey "},r.content),!r.hideFooter&&l.createElement(P.Z.Footer,null,l.createElement(w.Z,M({variant:"secondary",kind:"button"},i,{onClick:o}),t?"Let's go!":"Next")))}var F=function(e){var t=e.steps,r=(0,T.jf)(),n=r.isProductTourActive,i=r.areComponentsReady,o=r.stepIndex,a=r.steps,s=r.handleCallback,c=r.setSteps,d=r.onboardingStage;return(0,l.useEffect)(function(){t.length&&c(t.map(function(e){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach(function(t){j(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({disableBeacon:!0,disableOverlayClose:!0,position:"bottom"},e)}))},[t,c]),"tour"!==d?null:l.createElement(u.ZP,{callback:s,tooltipComponent:L,continuous:!0,run:i&&n,stepIndex:o,steps:a,hideCloseButton:!0,showProgress:!0,disableScrolling:!0,scrollToFirstStep:!0,disableCloseOnEsc:!0,styles:{overlay:{backgroundColor:"rgba(0, 0, 0, 0.3)"}}})},B=(0,a.createCell)({QUERY:D,Loading:function(){return l.createElement(l.Fragment,null)},Empty:function(){return l.createElement(l.Fragment,null)},Failure:function(){return l.createElement(l.Fragment,null)},Success:function(e){var t=e.user.onboardingStatus,r=((0,p.dd)(_),(0,d.P)(function(e){return e.actions}),(0,c.useLocation)().pathname),n=(0,f._)(),i=n.isLiteMode,o=n.loading;(0,l.useEffect)(function(){},[t,r,i,o]);var a=[{key:"wallet",target:"#wallet-balance",content:l.createElement(l.Fragment,null,"This is the ",l.createElement("b",null,"balance")," in your ",l.createElement("b",null,"wallet"),". You can use it to cashout real money on the ",l.createElement("b",null,"cashout page")),data:{path:"/earn",next:"/cashout"}},{key:"cashout",target:"#cashout-buttons",content:l.createElement("div",{className:"space-y-2"},l.createElement("p",{className:"text-ebonyGrey"},"You can trade the ",l.createElement("b",null,"balance")," in your wallet for real money using these ",l.createElement("b",null,"cashout methods"),".")),data:{path:"/cashout",next:"/earn"}},{key:"featured_tasks",target:"#featured-side-hustles",content:l.createElement("div",{className:"space-y-2"},l.createElement("p",{className:"font-bold text-ebonyGrey"},"You get rewarded for completing different types of online tasks, we call side hustles"),l.createElement("p",null,"Click the card for the side hustle you would like to get started with")),spotlightClicks:!0,data:{path:"/earn",next:"/products/[id]"},hideFooter:!0,styles:{options:{zIndex:100}}},{key:"activity-details-summary",target:"#activity-details-summary",content:"Each side hustle will have a description & reward for completing it.",data:{path:"/products/[id]"}},{key:"activity-details-steps",target:"#activity-details-steps",content:l.createElement(l.Fragment,null,"The side-hustles are broken into ",l.createElement("b",null,"steps"),", that you must"," ",l.createElement("b",null,"complete over time")," each with a reward tied to it's completion."),data:{path:"/products/[id]"}},{key:"activity-details-cta",target:"#activity-details-cta",content:"You can start an side hustle here",data:{path:"/products/[id]"}}];return l.createElement(F,{steps:a})},displayName:"ProductTourCell"})},71637:function(e,t,r){"use strict";r.d(t,{e2:function(){return a},jf:function(){return s}}),r(63517);var n=r(27378),i=r(917),o=r(67452);r(32150);var a=function(e){var t=(0,o.P)(function(e){return{isProductTourActive:e.isProductTourActive,productTourActions:e.actions}}),r=t.isProductTourActive,i=t.productTourActions;(0,n.useEffect)(function(){r&&e&&i.announceComponentReady(e)},[e,r])},s=function(){var e,t=(0,o.P)(function(e){return{isProductTourActive:e.isProductTourActive,areComponentsReady:e.areComponentsReady,stepIndex:e.stepIndex,steps:e.steps,actions:e.actions,onboardingStage:e.onboardingStage,productPath:e.productPath}}),r=t.isProductTourActive,n=t.areComponentsReady,a=t.stepIndex,s=t.steps,l=t.actions,u=t.onboardingStage,c=t.productPath,d=null===(e=s[a]
2)||void 0===e?void 0:e.target,f="string"==typeof d?d.replace("#",""):null;return{isProductTourActive:r,areComponentsReady:n,stepIndex:a,steps:s,setSteps:l.setSteps,handleCallback:function(e){var t=e.status;t!==i.Q_.FINISHED?t!==i.Q_.SKIPPED||l.reset():l.completeTour()},onboardingStage:u,currentTarget:f,next:l.next,productPath:c,setProductPath:l.setProductPath}}},51728:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}}),r(63517),r(68983),r(74413),r(62285),r(20779),r(50112),r(50785);var n=r(81006),i=r(27378),o=r(98773),a=r(71453),s=r(66746),l=r(25277),u=r(44173),c=r(14252),d=r(21982),f=r(27090),p=r(73280),h=function(e){var t=e.className;return i.createElement("svg",{className:(0,o.m)("fill-[#BABABA]",t),viewBox:"0 0 24 24"},i.createElement("path",{d:"M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09l.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z"}))},m=function(e){var t=e.className;return i.createElement("svg",{className:t,viewBox:"0 0 24 24"},i.createElement("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),i.createElement("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),i.createElement("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),i.createElement("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"}))};function v(e){return v="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},v(e)}function g(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var l=n&&n.prototype instanceof s?n:s,u=Object.create(l.prototype);return y(u,"_invoke",function(r,n,i){var o,s,l,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return o=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&u&&!i&&t<c.length;t++){var i,o=c[t],p=f.p,h=o[2];r>3?(i=h===n)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=r<2&&p<o[1])?(s=0,f.v=n,f.n=o[1]):p<h&&(i=r<3||o[0]>n||n>h)&&(o[4]=r,o[5]=n,f.n=h,s=0))}if(i||r>1)return a;throw d=!0,n}return function(i,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(r,i,o),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(y(t={},n,function(){return this}),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,y(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,y(d,"constructor",u),y(u,"constructor",l),l.displayName="GeneratorFunction",y(u,i,"GeneratorFunction"),y(d),y(d,i,"Generator"),y(d,n,function(){return this}),y(d,"toString",function(){return"[object Generator]"}),(g=function(){return{w:o,m:f}})()}function y(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}y=function(e,t,r,n){function o(t,r){y(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},y(e,t,r,n)}function b(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 w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?b(Object(r),!0).forEach(function(t){x(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function x(e,t,r){return(t=function(e){var t=function(e){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function k(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){E(o,n,i,a,s,"next",e)}function s(e){E(o,n,i,a,s,"throw",e)}a(void 0)})}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var _=function(e){var t,r,v=(t=(0,i.useState)(null),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,r)||function(e,t){if(e){if("string"==typeof e)return S(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)?S(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=v[0],b=v[1],x=function(){var t=k(g().m(function t(r,n){var i,o,a,l,c,h,m,v,y;return g().w(function(t){for(;;)switch(t.n){case 0:return a=(0,d.YU)(),t.n=1,(0,s.Zc)();case 1:return l=t.v,c=w(w(w(w({intent:n,signUpUrl:window.location.href,provider:r,platform:f.yu,startedAt:(0,p.Hb)()},l?{fingerprint:l}:{}),a.gclid&&{gclid:a.gclid}),a.gbraid&&{gbraid:a.gbraid}),null!==(i=null===(o=e.getState)||void 0===o?void 0:o.call(e))&&void 0!==i?i:{}),sessionStorage.setItem(u.cS,JSON.stringify(c)),sessionStorage.setItem(u.Zi,n),h=encodeURIComponent(btoa(JSON.stringify(c))),m="localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname,v=m?"http://localhost:8910":"".concat(window.location.origin).replace(/\/$/,""),(y=new URL("/callback",v)).searchParams.set(u.vc,h),t.a(2,y.toString())}},t)}));return function(e,r){return t.apply(this,arguments)}}(),E=function(){var t=k(g().m(function t(r,i){var o,a,s,d,f,h,m,v,y;return g().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,b(r),null===(o=e.onStart)||void 0===o||o.call(e),i===u.f&&((0,p.h)(),(0,c.d$)(),(0,c.d_)(r)),t.n=1,x(r,i);case 1:if(a=t.v,console.info("[OAuth]",{origin:window.location.origin,redirectTo:a}),r!==u.oY){t.n=3;break}return t.n=2,l.O.auth.signInWithOAuth({provider:r,options:{redirectTo:a,queryParams:{prompt:"login"===i?"select_account":"consent"}}});case 2:if(s=t.v,!(d=s.error)){t.n=3;break}throw d;case 3:if(r!==u.Aq){t.n=5;break}return t.n=4,l.O.auth.signInWithOAuth({provider:r,options:{redirectTo:a,scopes:"name email"}});case 4:if(f=t.v,!(h=f.error)){t.n=5;break}throw h;case 5:t.n=7;break;case 6:t.p=6,y=t.v,v=y instanceof Error?y.message:"Failed to sign in with ".concat(r),i===u.f&&(0,c.TA)({signupMethod:r,failureReason:/cancel|popup|closed|denied/i.test(v)?"sso_cancelled":"other"}),n.toast.error(v),null===(m=e.onError)||void 0===m||m.call(e,v),b(null);case 7:return t.a(2)}},t,null,[[0,6]])}));return function(e,r){return t.apply(this,arguments)}}(),_=function(e){return y===e};return i.createElement("div",{className:(0,o.m)("flex items-center justify-center gap-4",e.className)},i.createElement(a.Z,{variant:"outlined",kind:"button",onClick:function(){return E(u.oY,e.method)},disabled:null!==y,loading:_(u.oY),className:"flex items-center justify-center px-4 text-base text-ebonyGrey"},i.createElement(m,{className:"mr-3 h-5 w-5"}),i.createElement("span",null,"Google")),i.createElement(a.Z,{variant:"outlined",kind:"button",onClick:function(){return E(u.Aq,e.method)},disabled:null!==y,loading:_(u.Aq),className:"flex items-center justify-center px-4 text-base text-ebonyGrey"},i.createElement(h,{className:"mr-3 h-5 w-5"}),i.createElement("span",null,"Apple")))}},74891:function(e,t,r){"use strict";var n=r(27378),i=r(57735),o=r(98773),a=r(32935),s=r(94119),l=r(19451);
2t.Z=function(e){var t=e.heroImage,r=e.displayName,u=e.platforms,c=e.rating,d=e.reward,f=e.className,p=function(e){return 0===e?"5.0":"number"==typeof e?e.toFixed(1):"string"==typeof e?e:null}(c),h=d.isBoosted?d.boostedPoints:d.points;return n.createElement("div",{className:(0,o.m)("overflow-hidden rounded-xl border border-[#ebebeb]",f)},n.createElement("div",{className:"relative h-[91px]"},null!=t&&t.url?n.createElement("img",{src:t.url,alt:t.alt||r,className:"h-full w-full object-cover"}):n.createElement("div",{className:"flex h-full w-full items-center justify-center bg-[#EEF4F4]"},n.createElement("span",{className:"text-lg font-bold text-slateGrey"},r)),p&&n.createElement("div",{className:"absolute left-3 top-3 flex items-center gap-1 rounded-md bg-black/60 px-2 py-1"},n.createElement(i.Z,{className:"h-4 w-4 text-maize"}),n.createElement("span",{className:"text-sm font-medium text-white"},p)),u.length>0&&n.createElement(a.Z,{platforms:u,className:"absolute right-3 top-3 bg-white"})),n.createElement("div",{className:"space-y-1 p-3"},n.createElement("h3",{className:"text-xs font-bold text-ebonyGrey"},r),(h>0||d.tokens>0)&&n.createElement("div",{className:"flex gap-2 border-t border-lilyGrey pt-3"},h>0&&n.createElement(s.Z,{reward:h,isRewardBoosted:d.isBoosted}),d.tokens>0&&n.createElement(l.Z,{variant:"outlined",size:"small"},d.tokens))))}},39565:function(e,t,r){"use strict";r.d(t,{Z:function(){return H}}),r(63517),r(20779),r(74413),r(62285),r(69108),r(59889),r(57637),r(67551);var n=r(94621),i=r(84186),o=r(27378);function a({title:e,titleId:t,...r},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?o.createElement("title",{id:t},e):null,o.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",clipRule:"evenodd"}))}var s,l=o.forwardRef(a),u=r(31786),c=r(98773),d=r(3484),f=r(71453),p=r(13899),h=r(87403),m=r(23462),v=(r(54370),r(5153),r(67506),r(80566),r(50870),r(75397),r(18829),r(95498),r(51429),r(61842),r(25376),r(38333),r(95864),r(63990),r(94565),r(95073),r(65204),r(47072),r(98391),r(24338),r(22727),r(2002),r(19647),r(94117));function g(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){if(e){if("string"==typeof e)return b(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)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var w,x,E,k=(0,n.ZP)(s||(x=["\n fragment NextAvailableGameFields on Task {\n id\n position\n productId\n productDisplayName\n productTitle\n platforms\n reward {\n points\n boostedPoints\n tokens\n isBoosted\n }\n image {\n url\n alt\n }\n productActivatedBefore\n status\n # Outbound attribution fields â let the modal outbound a suggested game\n # directly (no PDP hop). Still a strict subset of TaskFeedCellQuery.\n productRedirectUrl\n productPgFeatureKey\n productIsFeatured\n productCategorySlug\n productType\n productBrandId\n brandName\n }\n\n query NextAvailableGameQuery($userPlatform: Platform) {\n taskGroups(userPlatform: $userPlatform, progradClient: webApp) {\n id\n position\n tasks {\n ...NextAvailableGameFields\n }\n lockedTasks {\n ...NextAvailableGameFields\n }\n }\n }\n"],E||(E=x.slice(0)),s=Object.freeze(Object.defineProperties(x,{raw:{value:Object.freeze(E)}})))),S=function(e){var t,r,n,i,o,a,s,l,u,c;return{productId:e.productId,position:null!==(t=e.position)&&void 0!==t?t:null,title:e.productDisplayName||e.productTitle||null,image:e.image,platforms:e.platforms,reward:e.reward,productRedirectUrl:null!==(r=e.productRedirectUrl)&&void 0!==r?r:null,productPgFeatureKe
vendor: 4,797 bytes, line 2
2y:null!==(n=e.productPgFeatureKey)&&void 0!==n?n:null,productIsFeatured:null!==(i=e.productIsFeatured)&&void 0!==i?i:null,productCategorySlug:null!==(o=e.productCategorySlug)&&void 0!==o?o:null,productType:null!==(a=e.productType)&&void 0!==a?a:null,productBrandId:null!==(s=e.productBrandId)&&void 0!==s?s:null,brandName:null!==(l=e.brandName)&&void 0!==l?l:"",productDisplayName:null!==(u=e.productDisplayName)&&void 0!==u?u:null,productTitle:null!==(c=e.productTitle)&&void 0!==c?c:null}},_=r(14252),C=r(74891);function O(e){return O="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},O(e)}function P(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var l=n&&n.prototype instanceof s?n:s,u=Object.create(l.prototype);return T(u,"_invoke",function(r,n,i){var o,s,l,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return o=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&u&&!i&&t<c.length;t++){var i,o=c[t],p=f.p,h=o[2];r>3?(i=h===n)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=r<2&&p<o[1])?(s=0,f.v=n,f.n=o[1]):p<h&&(i=r<3||o[0]>n||n>h)&&(o[4]=r,o[5]=n,f.n=h,s=0))}if(i||r>1)return a;throw d=!0,n}return function(i,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(r,i,o),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(T(t={},n,function(){return this}),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,T(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,T(d,"constructor",u),T(u,"constructor",l),l.displayName="GeneratorFunction",T(u,i,"GeneratorFunction"),T(d),T(d,i,"Generator"),T(d,n,function(){return this}),T(d,"toString",function(){return"[object Generator]"}),(P=function(){return{w:o,m:f}})()}function T(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}T=function(e,t,r,n){function o(t,r){T(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},T(e,t,r,n)}function A(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function I(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){A(o,n,i,a,s,"next",e)}function s(e){A(o,n,i,a,s,"throw",e)}a(void 0)})}}function N(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||L(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(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 j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach(function(t){M(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function M(e,t,r){return(t=function(e){var t=function(e){if("object"!=O(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==O(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}
2finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||L(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){if(e){if("string"==typeof e)return F(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)?F(e,t):void 0}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var B=(0,n.ZP)(w||(w=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n mutation ReassignInstallBooster($boosterId: String!, $nextProductId: String) {\n reassignInstallBooster(\n boosterId: $boosterId\n nextProductId: $nextProductId\n ) {\n id\n productId\n rewardAmount\n expiresAt\n }\n }\n"]))),U={productId:"",brandName:"",reward:{points:0}},V=i.ZP.create(function(e){var t,r,n,a=e.product,s=e.taskReward,l=e.reviewsStats,c=e.boosterId,b=e.onNo,w=e.onOutboundStarted,x=(0,i.dd)(),E=x.visible,O=x.hide,T=D((0,m.Jm)({update:function(e,t){var r=t.data,n=null==r?void 0:r.setProductActivatedBefore;if(n){var i=n.id,o=n.activatedBefore;e.updateQuery({query:k,variables:{userPlatform:(0,v.P)()}},function(e){var t;if(null==e||!e.taskGroups)return e;if(!o){var r=function(e){return e.map(function(e){return e.productId===i?j(j({},e),{},{productActivatedBefore:!1}):e})};return j(j({},e),{},{taskGroups:e.taskGroups.map(function(e){return j(j({},e),{},{tasks:r(e.tasks),lockedTasks:r(e.lockedTasks)})})})}var n=e.taskGroups.findIndex(function(e){return e.tasks.some(function(e){return e.productId===i})}),a=-1===n?null:null!==(t=e.taskGroups.flatMap(function(e){return e.lockedTasks}).find(function(e){return e.productId!==i&&!0!==e.productActivatedBefore}))&&void 0!==t?t:null;return j(j({},e),{},{taskGroups:e.taskGroups.map(function(e,t){var r=e.tasks.filter(function(e){return e.productId!==i});return j(j({},e),{},{tasks:t===n&&a?[].concat(N(r),[a]):r,lockedTasks:e.lockedTasks.filter(function(e){return e.productId!==i&&e.productId!==(null==a?void 0:a.productId)})})})})})}}}),1)[0],A=D((0,o.useState)(null!=c?c:null),2),R=A[0],M=A[1],L=D((0,u.useMutation)(B),1)[0],F=D((0,o.useState)(1),2),V=F[0],H=F[1],G=D((0,o.useState)([]),2),$=G[0],W=G[1],Z=D((0,o.useState)("question"),2),Q=Z[0],Y=Z[1],K=(0,o.useRef)(!1),J=D((0,o.useState)({product:a,taskReward:s,rating:null!==(t=null==l?void 0:l.averageRating)&&void 0!==t?t:null,isNextGame:!1,outboundTask:null}),2),X=J[0],ee=J[1],te=function(e){var t=e.currentProductId,r=e.excludeProductIds,n=void 0===r?[]:r,i=e.enabled,a=void 0===i||i,s=(0,u.useQuery)(k,{variables:{userPlatform:(0,v.P)()},fetchPolicy:"cache-first",skip:!a}),l=s.data,c=s.loading,d=s.error,f=s.refetch,p=(0,o.useMemo)(function(){var e;if(null==l||!l.taskGroups)return{nextGame:null,allGames:[]};var r,i=new Set([t].concat(g(n))),o=new Set,a=[],s=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=y(e))){t&&(e=t);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==t.return||t.return()}finally{if(a)throw i}}}}([].concat(g(l.taskGroups.flatMap(function(e){var t;return null!==(t=e.tasks)&&void 0!==t?t:[]})),g(l.taskGroups.flatMap(function(e){var t;return null!==(t=e.lockedTasks)&&void 0!==t?t:[]}))));try{for(s.s();!(r=s.n()).done;){var u=r.value;i.has(u.productId)||o.has(u.productId)||!0!==u.productActivatedBefore&&(o.add(u.productId),a.push(S(u)))}}catch(e){s.e(e)}finally{s.f()}return{nextGame:null!==(e=a[0])&&void 0!==e?e:null,allGames:a}},[l,t,n]);return{nextGame:p.nextGame,allGames:p.allGames,isLoading:c,error:null!=d?d:null,refetch:f}}({currentProductId:X.product.id,excludeProductIds:$,enabled:E}),re=te.nextGame,ne=te.isLoading,ie=(0,d.T)({task:null!==(r=X.outboundTask)&&void 0!==r?r:U}).handleClick;(0,o.useEffect)(function(){var e;E&&(K.current=!1,H(1),W([]),Y("question"),M(null!=c?c:null),ee({product:a,taskReward:s,rating:null!==(e=null==l?void 0:l.averageRating)&&void 0!==e?e:null,isNextGame:!1,outboundTask:null}))},[E,a,s,l,c]),(0,o.useEffect)(function(){E&&!K.current&&(K.current=!0,(0,_.ox)({productId:X.product.id,productName:X.product.displayName||X.product.name,isNextGame:X.isNextGame,gamesShownCount:V}))},[E,X,V]);var oe=(0,o.useCallback)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"dismiss";(0,_.f_)({productId:X.product.id,gamesShownCount:V,closedBy:e}),O()},[X.product.id,V,O]),ae=(0,o.useCallback)(I(P().m(function e(){var t,r,n,i,o;return P().w(function(e){for(;;)switch(e.p=e.n){case 0:if(T({variables:{input:{productId:X.product.id,activatedBefore:!0}}}),(0,_.pX)({productId:X.product.id,productName:X.product.displayName||X.product.name,response:"yes",gamesShownCount:V,nextGameAvailable:!!re}),!(V>
2=10)){e.n=1;break}return(0,_.VG)({totalGamesShown:V,finalAction:"max_games_reached",finalProductId:X.product.id}),Y("no-games"),e.a(2);case 1:if(!R){e.n=5;break}return e.p=2,e.n=3,L({variables:{boosterId:R,nextProductId:null!==(t=null==re?void 0:re.productId)&&void 0!==t?t:null}});case 3:i=e.v,o=i.data,M(null!==(r=null==o||null===(n=o.reassignInstallBooster)||void 0===n?void 0:n.id)&&void 0!==r?r:null),e.n=5;break;case 4:e.p=4,e.v,M(null);case 5:W(function(e){return[].concat(N(e),[X.product.id])}),re?(ee({product:{id:re.productId,displayName:re.title,name:re.title,title:null,heroImage:re.image,platforms:re.platforms},taskReward:re.reward,rating:null,isNextGame:!0,outboundTask:re}),H(function(e){return e+1}),K.current=!1):(Y("no-games"),(0,_.VG)({totalGamesShown:V,finalAction:"all_installed",finalProductId:X.product.id}));case 6:return e.a(2)}},e,null,[[2,4]])})),[X,R,V,re,T,L]),se=(0,o.useCallback)(function(){(0,_.pX)({productId:X.product.id,productName:X.product.displayName||X.product.name,response:"no",gamesShownCount:V,nextGameAvailable:!!re}),(0,_.VG)({totalGamesShown:V,finalAction:"proceed",finalProductId:X.product.id}),T({variables:{input:{productId:X.product.id,activatedBefore:!1}}}),O(),null==w||w(X.product.id),X.isNextGame?ie():b()},[X,V,re,O,b,w,T,ie]),le=X.product.displayName||X.product.name;return o.createElement(p.Z.Root,{isOpen:E,onClose:function(){return oe("escape")}},o.createElement(p.Z.Backdrop,null),o.createElement(p.Z.Layout,null,o.createElement(p.Z.Panel,{className:"w-full max-w-full rounded-t-2xl bg-white p-6 tablet:max-w-[480px] tablet:rounded-2xl tablet:p-8"},o.createElement("div",{className:"mb-4 flex items-start justify-end"},o.createElement(p.Z.Close,{onClick:function(){return oe("dismiss")},className:"w-auto"})),"question"===Q&&o.createElement(o.Fragment,null,o.createElement(z,{isNextGame:X.isNextGame}),o.createElement("div",{className:"my-6"},o.createElement(C.Z,{heroImage:X.product.heroImage,displayName:le,platforms:X.product.platforms,rating:null!==(n=X.rating)&&void 0!==n?n:5,reward:X.taskReward})),o.createElement("div",{className:"mb-6 text-center"},o.createElement("p",{className:"mb-2 text-slateGrey"},"Before you go..."),o.createElement("h2",{className:"text-xl font-bold text-ebonyGrey"},"Have you installed this game before?")),o.createElement("div",{className:"space-y-3"},o.createElement(f.Z,{kind:"button",variant:"tertiary",onClick:ae,className:"w-full",disabled:ne},ne?o.createElement(h.Z,{className:"h-5 w-5"}):"Yes"),o.createElement(f.Z,{kind:"button",variant:"tertiary",onClick:se,className:"w-full"},"No"))),"no-games"===Q&&o.createElement(q,{onClose:O}))))}),z=function(e){var t=e.isNextGame;return o.createElement("div",{className:(0,c.m)("flex items-center gap-2 rounded-xl px-4 py-3",t?"bg-[#E8F4FD]":"bg-[#FEF9E7]")},o.createElement(l,{className:"h-5 w-5 flex-shrink-0 text-[#F5A623]"}),o.createElement("p",{className:"text-sm text-ebonyGrey"},t?"You can't earn from games you've installed in the past. You'll love this one:":"You cannot earn if you have installed it before"))},q=function(e){var t=e.onClose;return o.createElement("div",{className:"space-y-4 py-8 text-center"},o.createElement("div",{className:"text-4xl"},"ð®"),o.createElement("h3",{className:"text-lg font-bold text-ebonyGrey"},"No more games available"),o.createElement("p",{className:"text-sm text-slateGrey"},"You've seen all available games. Check back later for new offers!"),o.createElement(f.Z,{kind:"button",variant:"secondary",onClick:t,className:"w-full"},"Close"))},H=V},78397:function(e,t,r){"use strict";r.d(t,{A:function(){return o}});var n=r(84186),i=r(39565),o=function(){return(0,n.dd)(i.Z)}},79583:function(e,t,r){"use strict";var n=r(27378),i=r(98773),o=function(e){return n.createElement("svg",e,n.createElement("path",{d:"M5.22705 0C5.10616 0 4.98526 0.0467578 4.89317 0.139826C4.70901 0.325962 4.70901 0.628583 4.89317 0.814719L6.13091 2.0657C4.72566 3.10792 3.81038 4.7849 3.81038 6.68182H15.1437C15.1437 4.7849 14.2284 3.10792 12.8232 2.0657L14.0609 0.814719C14.2451 0.627629 14.2451 0.326917 14.0609 0.139826C13.8768 -0.0463104 13.5773 -0.0463104 13.3932 0.139826L11.9931 1.55487C11.2343 1.17367 10.382 0.954545 9.47705 0.954545C8.57209 0.954545 7.7198 1.17367 6.96099 1.55487L5.56093 0.139826C5.46884 0.0467578 5.34794 0 5.22705 0ZM6.64372 3.81818H7.588
216V4.77273H6.64372V3.81818ZM11.3659 3.81818H12.3104V4.77273H11.3659V3.81818ZM1.9215 7.63636C1.40016 7.63636 0.977051 8.064 0.977051 8.59091V14.3182C0.977051 14.8451 1.40016 15.2727 1.9215 15.2727C2.44283 15.2727 2.86594 14.8451 2.86594 14.3182V8.59091C2.86594 8.064 2.44283 7.63636 1.9215 7.63636ZM3.81038 7.63636V15.2727C3.81038 15.7996 4.2335 16.2273 4.75483 16.2273H5.69927V19.5682C5.69927 20.3585 6.33394 21 7.11594 21C7.89794 21 8.53261 20.3585 8.53261 19.5682V16.2273H10.4215V19.5682C10.4215 20.3585 11.0562 21 11.8382 21C12.6202 21 13.2548 20.3585 13.2548 19.5682V16.2273H14.1993C14.7206 16.2273 15.1437 15.7996 15.1437 15.2727V7.63636H3.81038ZM17.0326 7.63636C16.5113 7.63636 16.0882 8.064 16.0882 8.59091V14.3182C16.0882 14.8451 16.5113 15.2727 17.0326 15.2727C17.5539 15.2727 17.9771 14.8451 17.9771 14.3182V8.59091C17.9771 8.064 17.5539 7.63636 17.0326 7.63636Z",fill:"black"}))};o.defaultProps={width:"18",height:"21",viewBox:"0 0 18 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var a=function(e){return n.createElement("svg",e,n.createElement("path",{d:"M16.4683 6.48065C16.3755 6.53357 14.1672 7.65045 14.1672 10.1268C14.2712 12.951 16.954 13.9414 17 13.9414C16.954 13.9943 16.595 15.2906 15.5315 16.6494C14.6876 17.8199 13.7508 19 12.3284 19C10.9753 19 10.4896 18.2199 8.92837 18.2199C7.25175 18.2199 6.77735 19 5.49367 19C4.07122 19 3.06509 17.7567 2.17512 16.5972C1.0189 15.0796 0.0361588 12.6981 0.00146484 10.4114C-0.0219159 9.19965 0.233009 8.00854 0.880127 6.99682C1.79348 5.58439 3.4241 4.6256 5.20481 4.59398C6.56918 4.55205 7.78347 5.44762 8.61613 5.44762C9.41409 5.44762 10.9059 4.59398 12.5939 4.59398C13.3224 4.59467 15.2653 4.79468 16.4683 6.48065ZM8.50073 4.35205C8.25788 3.24548 8.92837 2.13891 9.55287 1.43304C10.3508 0.579402 11.6111 0 12.6979 0C12.7673 1.10657 12.3276 2.19183 11.5417 2.98224C10.8365 3.83588 9.62225 4.47851 8.50073 4.35205Z",fill:"black"}))};a.defaultProps={width:"17",height:"19",viewBox:"0 0 17 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var s=function(e){return n.createElement("svg",e,n.createElement("mask",{id:"mask0_596_769",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"21"},n.createElement("rect",{x:"0.046875",y:"0.0236816",width:"20.9526",height:"20.9526",fill:"#D9D9D9"})),n.createElement("g",{mask:"url(#mask0_596_769)"},n.createElement("path",{d:"M7.0321 18.358V17.485L8.77816 15.739H3.54C3.05983 15.739 2.64878 15.568 2.30685 15.2261C1.96491 14.8841 1.79395 14.4731 1.79395 13.9929V4.38961C1.79395 3.90944 1.96491 3.49839 2.30685 3.15646C2.64878 2.81452 3.05983 2.64355 3.54 2.64355H17.5084C17.9886 2.64355 18.3996 2.81452 18.7416 3.15646C19.0835 3.49839 19.2545 3.90944 19.2545 4.38961V13.9929C19.2545 14.4731 19.0835 14.8841 18.7416 15.2261C18.3996 15.568 17.9886 15.739 17.5084 15.739H12.2703L14.0163 17.485V18.358H7.0321Z",fill:"#1C1B1F"})))};s.defaultProps={width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var l={android:o,ios:a,web:s};t.Z=function(e){var t=e.platform,r=e.size,o=void 0===r?"default":r,a=e.className,s=l[t];return n.createElement("div",{className:(0,i.m)("flex h-8 w-8 items-center justify-center rounded-sm bg-white p-1","small"===o&&"h-4 w-4",a)},n.createElement(s,null))}},32935:function(e,t,r){"use strict";var n=r(27378),i=(r(74413),r(57637),r(54370),r(5153),r(67506),r(80566),r(50870),r(75397),r(18829),r(95498),r(51429),r(61842),r(25376),r(38333),r(95864),r(63990),r(94565),r(95073),r(65204),r(47072),r(98391),r(24338),r(22727),r(2002),r(19647),r(98773)),o=r(79583);t.Z=function(e){var t=e.platforms,r=e.size,a=void 0===r?"default":r,l=e.className,u=s(t);return n.createElement("div",{className:(0,i.m)("inline-flex items-center gap-[6px] rounded-md bg-black/20 px-2 py-1","small"===a&&"px-1",l)},u.map(function(e){return n.createElement(o.Z,{key:e,platform:e,size:a})}))};var a=["android","ios","web"];function s(e){return Array.from(new Set(e)).sort(function(e,t){return a.indexOf(e)-a.indexOf(t)})}},78048:function(e,t,r){"use strict";r.d(t,{Qq:function(){return qe},ZP:function(){return Ye}});var n,i,o,a=r(31786),s=(r(66066),r(63517),r(74413),r(62285),r(69108),r(20779),r(57637),r(94621)),l=r(78229),u=r(57735),c=r(98889),d=r(64083),f=r(47663),p=r(520),h=r(72099),m=r(27378),v=r(98773),g=r(73169),y=r(16944),b=r(63862),w=r(50804),x=r(44232),E=(0,s.ZP)(n||(i=["\n query LiteModeRewardPreviewQuery($taskId: String!) {\n task(id: $taskId) {\n id\n steps {\n id\n title\n triggerType\n triggerKind\n triggerState\n triggerTimeLimitAfterReferenceMinutes\n burning {\n isExpired\n }\n reward {\n points\n boostedPoints\n isBoosted\n }\n }\n }\n }\n"],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}})))),k=r(49793),S=r(92488),_=function(e){var t=e.totalReward,r=e.rewardCount,n=e.isBoosted,i=void 0!==n&&n,o=i?"text-gemPurple":"text-primaryLight",a=(0,S.Mt)(null!=t?t:""),s=a.symbol,l=a.amount;return m.createElement("div",{"data-testid":"lite-mode-product-unlock-card",className:(0,v.m)("flex min-h-[230px] flex-col items-center justify-center gap-[15px] overflow-hidden rounded-[11px] border border-[#
2EAEAEA] py-5",i?"bg-[linear-gradient(241.61deg,rgba(214,174,255,0.43)_1.96%,#FFFFFF_100%)]":"bg-[linear-gradient(241.61deg,#EBFFF8_1.96%,#FFFFFF_100%)]")},m.createElement("div",{className:(0,v.m)("flex h-8 w-8 items-center justify-center rounded-[10px]",i?"bg-white":"bg-[#E6FFF7]")},m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,className:(0,v.m)("h-[22px] w-[22px]",o)},m.createElement("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-.53 14.03a.75.75 0 001.06 0l3-3a.75.75 0 10-1.06-1.06l-1.72 1.72V8.25a.75.75 0 00-1.5 0v5.69l-1.72-1.72a.75.75 0 00-1.06 1.06l3 3z",clipRule:"evenodd"}))),m.createElement("div",{className:"flex flex-col items-center"},m.createElement("p",{className:"font-brownStd text-center text-base leading-[1.206] tracking-[-1px]"},m.createElement("span",{className:(0,v.m)("font-bold",o)},"Install and Play for 5 minutes"),m.createElement("br",null),function(e){var t=e.rewardCount,r=e.hasTotal,n=1===t?"1 reward":t?"all ".concat(t," rewards"):"all rewards";return r?"to unlock ".concat(n," and earn up to"):"to unlock ".concat(n)}({rewardCount:r,hasTotal:!!l})),!!l&&m.createElement("p",{"data-testid":"lite-mode-product-unlock-total",className:"font-brownStd text-center text-[26px] font-bold leading-[1.486] tracking-[-1px]"},!!s&&m.createElement("span",{className:(0,v.m)("tracking-[4px]",o)},s),l)))},C=r(58348);function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O.apply(null,arguments)}var P=function(e){var t=e.groupType,r=e.steps,n=e.isTreatment,i=C.Fv[t],o=C.kS[t],a="lite-mode-reward-preview-".concat(t);return m.createElement("section",{"data-testid":"lite-mode-reward-preview-group-".concat(t)},m.createElement("div",{className:"flex items-center gap-1 py-2"},m.createElement("h5",{className:"font-brownStd text-base font-bold leading-[23px] tracking-[-0.64px]"},i),o&&m.createElement(m.Fragment,null,m.createElement(b.Z,{"data-tooltip-id":a,className:"h-4 w-4 cursor-pointer"}),m.createElement(w.u,{id:a,opacity:1,openEvents:{click:!0,mouseover:!0},globalCloseEvents:{escape:!0,clickOutsideAnchor:!0},className:"!max-w-60 !rounded-lg !bg-white !shadow-xl"},m.createElement("div",{className:"text-ebonyGrey"},m.createElement("h5",{className:"font-bold"},i),m.createElement("p",null,o))))),r.map(function(e,r){return m.createElement("div",{key:e.id,"data-testid":"lite-mode-reward-preview-row",className:(0,v.m)("flex items-center gap-3 py-2",r>0&&"border-t border-lilyGrey")},"setup"===t?m.createElement(T,null):m.createElement(A,{step:e,groupType:t,isTreatment:n}),m.createElement("p",{className:"line-clamp-2 flex-1 text-sm leading-[18px] tracking-[0.067px] text-[#263238]"},e.title.trim()),"setup"===t?n&&m.createElement(N,{step:e}):m.createElement(N,{step:e}))}))},T=function(){return m.createElement("span",{className:"flex h-[18px] w-[18px] shrink-0 items-center justify-center rounded-full border border-[rgba(0,0,0,0.44)] bg-[#474747] text-[10px] font-bold text-white"},"1")};function A(e){var t=e.step,r=e.groupType,n=e.isTreatment,i=(0,C.wO)(t.triggerTimeLimitAfterReferenceMinutes);return i?n?m.createElement(x.Z,{days:i,groupType:r}):m.createElement(I,{days:i,groupType:r}):m.createElement("span",{className:"w-[60px] shrink-0"})}function I(e){var t=e.days,r=e.groupType;return m.createElement("span",{"data-testid":"lite-mode-reward-preview-day-pill",className:(0,v.m)("flex h-6 w-[60px] shrink-0 items-center justify-center rounded-[5px] text-sm font-bold tracking-[-0.28px]","speed-bonus"===r?"bg-[rgba(217,222,255,0.36)] text-[rgba(0,47,255,0.72)]":"bg-[#F1F1F1] text-[rgba(38,50,56,0.58)]")},t," ",1===t?"Day":"Days")}var N=function(e){var t,r=e.step.reward,n=null!==(t=null!=r&&r.isBoosted?null==r?void 0:r.boostedPoints:null==r?void 0:r.points)&&void 0!==t?t:0,i=(0,S.Rm)({pointsValue:n}),o=(0,S.Mt)(i),a=o.symbol,s=o.amount;return n?m.createElement("span",{"data-testid":"lite-mode-reward-preview-reward",className:"flex h-6 shrink-0 items-center justify-center rounded-[5px] bg-[#E9FFFD] px-2 text-sm font-bold tracking-[-0.28px] text-[#263238]"},!!a&&m.createElement("span",{className:"text-primaryLight"},a,"Â "),s):null},R=function(e){var t,r,n=e.taskId,i=e.totalPoints,o=e.isInstallBoosterActive,s=void 0!==o&&o,l=e.className,u=function(e){return(0,a.useQuery)(E,{variables:{taskId:null!=e?e:""},skip:!e})}(n),c=u.data,d=(0,k.J)(),f=d.isTreatment,p=d.isLoading,h=(0,S.Rm)({pointsValue:i}),g=(null!==(t=null==c||null===(r=c.task)||void 0===r?void 0:r.steps)&&void 0!==t?t:[]).filter(function(e){return!!e}),y=(0,C.hA)(g);return m.createElement("div",{"data-testid":"lite-mode-reward-preview",className:(0,v.m)("space-y-4",l)},!p&&y.length>0&&m.createElement("div",{className:"space-y-3"},y.map(function(e){return m.createElement(P,O({key:e.groupType},e,{isTreatment:f}))})),m.createElement(_,{isBoosted:s,rewardCount:(0,C.rA)(g),totalReward:i>0?h:void 0}))},j=r(32935);function M({title:e,titleId:t,...r},n){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?m.createElement("title",{id:t},e):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m12.75 15 3-3m0 0-3-3m3 3h-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}var D,L=m.forwardRef(M),F=r(6385),B=r(68443),U=r(57856),V=r(71453),z=r(77967),q=r(710
250),H=r(93520);function G(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var l=n&&n.prototype instanceof s?n:s,u=Object.create(l.prototype);return $(u,"_invoke",function(r,n,i){var o,s,l,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return o=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&u&&!i&&t<c.length;t++){var i,o=c[t],p=f.p,h=o[2];r>3?(i=h===n)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=r<2&&p<o[1])?(s=0,f.v=n,f.n=o[1]):p<h&&(i=r<3||o[0]>n||n>h)&&(o[4]=r,o[5]=n,f.n=h,s=0))}if(i||r>1)return a;throw d=!0,n}return function(i,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(r,i,o),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):($(t={},n,function(){return this}),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,$(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,$(d,"constructor",u),$(u,"constructor",l),l.displayName="GeneratorFunction",$(u,i,"GeneratorFunction"),$(d),$(d,i,"Generator"),$(d,n,function(){return this}),$(d,"toString",function(){return"[object Generator]"}),(G=function(){return{w:o,m:f}})()}function $(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}$=function(e,t,r,n){function o(t,r){$(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},$(e,t,r,n)}function W(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Q(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)?Q(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Y,K=(0,s.ZP)(D||(D=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n query ProductFeedCellQuery($productId: String!) {\n productFeed(productId: $productId) {\n surveyId\n entryLink\n loi\n cpi\n conversionRate\n }\n }\n"]))),J=(0,a.createCell)({QUERY:K,Loading:function(e){var t=e.className;return m.createElement(U.tq,{spaceBetween:16,slidesPerView:"auto",freeMode:!0,modules:[B.Rv],className:(0,v.m)("",t)},(0,H.R)(6).map(function(e,t){return m.createElement(U.o5,{key:"skeleton-".concat(t),className:"h-full w-auto min-w-28"},m.createElement(q.Z,{loading:!0,className:"w-full"},m.createElement("div",{className:"h-24"})))}))},Failure:function(e){var t=e.error,r=e.className;return m.createElement(z.Z,{message:null==t?void 0:t.message,className:r})},Success:function(e){var t=e.productFeed,r=e.onItemClick,n=e.className,i=e.queryResult.refetch,o=Z((0,m.useState)(null),2),a=o[0],s=o[1],l=Z((0,m.useState)(!1),2),u=l[0],c=l[1];(0,m.useEffect)(function(){if(null!=t&&t.length&&!a){var e=setTimeout(function(){s(t[0])},15e3);return function(){return clearTimeout(e)}}},[t,a]);var d=function(){var e,t=(e=G().m(function e(){return G().w(function(e){for(;;)switch(e.n){case 0:return c(!0),e.n=1,i();case 1:c(!1),s(null);case 2:return e.a(2)}},e)}),function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){W(o,n,i,a,s,"next",e)}function s(e){W(o,n,i,a,s,"throw",e)}a(void 0)})});return function(){return t.apply(this,arguments)}}();return a?m.createElement("div",{className:(0,v.m)("w-full",n)},m.createElement("div",{className:"flex flex-col items-center justify-center gap-y-4 rounded-lg bg-[#F8F8F9] p-4"},m.createElement("h3",{className:"text-center text-xl text-slateGrey"},"We have some new surveys for you..."),m.createElement(V.Z,{kind:"button",className:"px-4",variant:"secondary",onClick:d,loading:u}
2,m.createElement("span",null,"Load Latest Surveys")))):m.createElement(U.tq,{spaceBetween:16,slidesPerView:"auto",freeMode:!0,modules:[B.Rv],className:(0,v.m)("",n)},t.map(function(e){return m.createElement(U.o5,{key:"product-feed-".concat(e.surveyId),className:"h-full w-auto min-w-28"},m.createElement("a",{href:e.entryLink,target:"_blank",rel:"noopener noreferrer",onClick:function(){s(e),r()}},m.createElement("div",{className:"space-y-2 rounded-xl bg-[#D0FAEC] p-2 text-[#19674D]"},m.createElement("div",{className:"flex flex-col items-center gap-2 rounded-xl bg-white p-2"},m.createElement(L,{className:"h-6 w-6 stroke-[2] text-[#19674D]"}),m.createElement("span",{className:"font-bold leading-none"},"Start")),m.createElement("div",null,m.createElement("div",{className:"flex items-center gap-[2px]"},m.createElement(F.Z,{className:"h-4 w-4"}),m.createElement("span",{className:"text-xs leading-none"},e.loi," min"))))))}))},displayName:"ProductFeedCell"}),X=r(94119),ee=r(71637),te=r(14121),re=r(58155),ne=r(19451),ie=r(40176),oe=r(43665),ae=r(19091),se=r(54557),le=(0,s.ZP)(Y||(Y=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n query ProductLeaderboardCtaQuery($productId: String!) {\n productLeaderboardCTA(productId: $productId) {\n isEligible\n gameRoundId\n roundTitle\n prizePool\n userPosition\n userPoints\n hasEntered\n roundEndDate\n }\n }\n"]))),ue=r(14252),ce=r(62008),de=r(22595),fe=r(20303),pe=function(e){var t=e.children,r=e.className;return m.createElement("div",{className:(0,v.m)("inline-flex items-center gap-3 rounded-lg bg-lightBlueGrey px-3 py-2",r)},m.createElement(b.Z,{className:"h-6 w-6 flex-shrink-0 text-[#95ADC4]"}),m.createElement("div",{className:"text-sm text-[#37474F]"},t))},he=(r(39565),r(78397)),me=(r(74891),r(29610));const ve=(0,me.Z)("Gem",[["path",{d:"M6 3h12l4 6-10 13L2 9Z",key:"1pcd5k"}],["path",{d:"M11 3 8 9l4 13 4-13-3-6",key:"1fcu3u"}],["path",{d:"M2 9h20",key:"16fsjt"}]]),ge=(0,me.Z)("Gamepad2",[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]]);var ye=r(64133),be=function(e){var t=e.position;return m.createElement("div",{className:"relative flex h-12 w-12 flex-shrink-0 items-center justify-center"},m.createElement(u.Z,{className:"h-full w-full text-[#FAD96D]"}),m.createElement("span",{className:"absolute text-sm font-bold text-[#20293A]"},null!=t?t:"?"))},we=function(e){var t=e.title,r=e.onEnterClick,n=e.hasEntered,i=e.userPosition,o=e.userPoints,a=e.avatarSeed,s=e.className,l=(0,S.Rm)({pointsValue:Number(null!=o?o:0),displayMode:S.B7});return m.createElement("div",{className:(0,v.m)("relative flex min-h-[120px] flex-col overflow-hidden rounded-xl",s)},m.createElement(ve,{className:"text-purple-400 absolute -left-1 -top-1 h-12 w-12 -rotate-12 opacity-80"}),m.createElement(ge,{className:"text-purple-400 absolute -right-2 -top-2 h-14 w-14 rotate-12 opacity-80"}),m.createElement("div",{className:"flex flex-1 items-center justify-center bg-aquaMint px-4 py-3"},m.createElement("p",{className:"font-brownStd text-center text-sm font-bold leading-[28.734px] tracking-[-0.28px] text-ebonyGrey"},t)),m.createElement("div",{className:"flex items-center justify-center bg-seafoamGreen px-4 py-3"},n?m.createElement("div",{className:"flex w-full items-center gap-3"},m.createElement(be,{position:i}),a&&m.createElement(ye.Z,{seed:a,className:"h-10 w-10 border-2 border-white"}),m.createElement("p",{className:"flex-1 truncate font-bold text-ebonyGrey"},"You"),m.createElement("span",{className:"text-lg font-bold text-[#269B74]"},l)):m.createElement("button",{onClick:r,className:"font-brownStd flex h-8 items-center justify-center gap-2 whitespace-nowrap rounded-[38px] border border-black/[0.11] bg-white px-5 py-3 text-[15px] font-normal leading-6 tracking-[-0.3px] text-ebonyGrey transition-transform hover:scale-105 active:scale-95"},"Enter Challenge")))},xe=r(84186),Ee=r(13899),ke=r(87403),Se=r(2900),_e=xe.ZP.create(function(e){var t,r,n=e.prizePool,i=e.daysRemaining,o=e.onEarnClick,a=(0,xe.dd)(),s=a.visible,l=a.hide,u=(0,Se.z)("leaderboard"),d=u.data,f=u.loading,p=u.error,h=null==d||null===(t=d.currentActiveCampaign)||void 0===t?void 0:t.imageUrl,v=(null==d||null===(r=d.currentActiveCampaign)||void 0===r?void 0:r.id)||null,g=function(){l()};return m.createElement(Ee.Z.Root,{isOpen:s,onClose:g},m.createElement(Ee.Z.Backdrop,null),m.createElement(Ee.Z.Layout,null,m.createElement(Ee.Z.Panel,{className:"w-full max-w-full rounded-t-2xl bg-white p-6 tablet:max-w-[480px] tablet:rounded-2xl tablet:p-8"},m.createElement("div",{className:"mb-6 flex items-start justify-end"},m.createElement(Ee.Z.Close,{onClick:g,className:"w-auto"})),f||p?m.createElement("div",{className:"flex h-64 items-center justify-center"},f?m.createElement(ke.Z,null):m.createElement("p",{className:"text-slateGrey"},"Unable to load campaign details")):m.createElement(m.Fragment,null,m.createElement("div",{className:"relative mb-8 overflow-hidden rounded-xl"},h?m.createElement("div",{style:{backgroundImage:"url(".concat(h,")")},className:"h-[180px] w-full bg-cover bg-center"}):m.createElement("div",{className:"relative flex h-[180px] w-full items-center justify-center overflow-hidden bg-[linear-gradient(124deg,#269B74_29.9%,#5CDCB1_106.28%)]"},m.createElement(ve,{className:"text-purple-400 absolute -bottom-2 -left-2 h-16 w-16 -rotate-12 opacity-60"}),m.createElement(ge,{className:"text-purple-400 absolute -bottom-2 -right-2 h-16 w-16 rotate-12 opacity-60"}),m.createElement("div",{className:"z-10 text-center"},m.createElement("p",{className:"text-5xl font-bold text-white"},"£",n),m.createElement("p",{className:"text-xl font-bold text-white"},"Weekly Challenge"))),null!==i&&m.createElement("div",{className:"absolute right-2 top-2 rounded-lg bg-[#E8F5E9] px-3 py-1.5 text-sm text-ebonyGrey"},i<=1?m.createElement(m.Fragment,null,"Ends ",m.createElement("span",{className:"font-bold"},"today")):m.createElement(m.Fragment,null,"Ends in"," ",m.createElement("span",{className:"font-bold"},i," days")))),m.createElement("div",{className:"mb-8 text-center"},m.createElement("h2",{className:"mb-2 text-xl font-bold text-ebonyGrey tablet:text-2xl"},"Earning on this offer enters you into a weekly leaderboard challenge."),m.createElement("p",{className:"text-base text-slateGrey"},"Whoever racks up the most points wins. Good luck!")),m.createElement("div",{className:"flex flex-col gap-3"},v&&m.createElement("button",{onClick:function(){v?(g(),(0,c.navigate)(c.routes.leaderboard({id:v}))):g()},className:"w-full rounded-lg border border-lilyGrey bg-white px-6 py-3 text-center font-semibold text-ebonyGrey transition-colors hover:bg-gray-50"},"View Leaderboard"),m.createElement(V.Z,{kind:"button",variant:"secondary",onClick:function(e){o(e),g()},className:"block w-full"},"Earn"))))))});function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}
2finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Oe(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)?Oe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r(67551);var Pe,Te=function(){try{var e="__storage_test__";return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),sessionStorage}catch(e){try{var t="__storage_test__";return localStorage.setItem(t,t),localStorage.removeItem(t),localStorage}catch(e){return null}}},Ae=function(e,t){return"".concat("game-install-state-").concat(e,"-").concat(t)},Ie=function(e,t,r){var n=Te();if(n)try{var i=Ae(e,t);n.setItem(i,r)}catch(e){}},Ne=function(e,t){return"".concat("game-outbound-ts-").concat(e,"-").concat(t)},Re=r(39027),je=r(86665),Me=r(7668),De=function(e){var t=e.onClick,r=e.className;return m.createElement("button",{onClick:t,className:(0,v.m)("flex w-full items-center gap-4 roun
2ded-xl bg-[#F0FDF4] p-4 text-left",r)},m.createElement("div",{className:"flex-1"},m.createElement("p",{className:"flex items-center gap-1 font-medium italic text-emerald-600"},m.createElement(je.Z,{className:"h-5 w-5"}),"Installed"),m.createElement("p",{className:"text-sm text-slateGrey"},"Open the app on your phone to keep earning.")),m.createElement(Me.Z,{className:"h-5 w-5 text-slateGrey"}))},Le=function(e){var t=e.onYes,r=e.onNo,n=e.className;return m.createElement("div",{className:(0,v.m)("rounded-xl bg-[#F8F8F9] px-3 py-6 laptop:px-8 laptop:py-5",n)},m.createElement("p",{className:"mb-4 text-center font-medium italic"},"Did you install this game?"),m.createElement("div",{className:"flex gap-3"},m.createElement(V.Z,{kind:"button",variant:"tertiary",onClick:r,className:"flex-1"},"No"),m.createElement(V.Z,{kind:"button",variant:"secondary",onClick:t,className:"flex-1"},"Yes")))},Fe=r(52127);function Be(e){return Be="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},Be(e)}function Ue(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 Ve(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(r),!0).forEach(function(t){ze(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ue(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ze(e,t,r){return(t=function(e){var t=function(e){if("object"!=Be(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Be(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Be(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var qe=(0,s.ZP)(Pe||(Pe=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n query ProductCellQuery($id: String!) {\n product: product(id: $id) {\n id\n availabilityStatus\n type\n name\n displayName\n title\n incentiveType\n liked\n rating\n storeAppIconUrl\n storeScreenshotUrls\n category {\n id\n name\n slug\n }\n heroImage {\n id\n url\n alt\n }\n heroVideo {\n id\n url\n alt\n }\n appIcon {\n id\n url\n alt\n }\n platforms\n brand {\n id\n name\n logo {\n id\n url\n alt\n }\n }\n progradSurveys {\n id\n name\n isComplete\n }\n isUserEligible\n activatedBefore\n isActivated\n redirectUrl\n isFeatured\n }\n reviewsStats(productId: $id) {\n id\n averageRating\n count\n }\n task(productId: $id) {\n id\n title\n tier\n isLocked\n isCompleted\n categories {\n id\n title\n slug\n }\n }\n taskReward(id: $id) {\n points\n boostedPoints\n tokens\n isBoosted\n streak\n }\n userTaskCompletionStats {\n id\n standard\n minStandardTasksCompletionsForProOffersAccess\n }\n activeBoost: activePointsModifierForProduct(productId: $id) {\n id\n type\n value\n expiresAt\n createdAt\n }\n activeInstallBoosterForProduct(productId: $id) {\n id\n rewardAmount\n expiresAt\n }\n }\n"]))),He=function(e){var t,r,n,i=e.product,o=e.reviewsStats,s=e.task,l=e.taskReward,c=e.userTaskCompletionStats,d=e.activeBoost,f=e.activeInstallBoosterForProduct,y=e.className,b=(0,m.useRef)(null);(0,m.useEffect)(function(){null!=i&&i.id&&b.current!==i.id&&(b.current=i.id,(0,ue.m8)({game_id:i.id}))},[null==i?void 0:i.id]);var w,x=(0,g.a)().currentUser,E=(0,Fe.m)(),k=E.ctaRef,S=E.shouldDisplayFixedCta,_=!(w=(0,te.b)({cacheOnly:!0}).gate)||"shown"!==w.status||w.rewardAmount<=0?null:w.rewardAmount,C=l.isBoosted&&d&&!(null!=s&&s.isCompleted),O=C?l.boostedPoints:l.points,P=(0,Re.P)({product:i,pointsReward:O,reward:Ve(Ve({},l),{},{isBoosted:Boolean(C)})}).handleOutbound,T=function(e){var t,r,n,i=e.task,o=e.product,a=(0,g.a)().currentUser,s=null==a?void 0:a.id,l=null==o?void 0:o.id,u=Ce((0,m.useState)("idle"),2),c=u[0],d=u[1],f=null!==(t=null==i||null===(r=i.categories)||void 0===r?void 0:r.some(function(e){return"games"===e.slug}))&&void 0!==t&&t,p=Ce((0,m.useState)(!1),2),h=p[0],v=p[1];(0,m.useEffect)(function(){if(!s||!l)return d("idle"),void v(!1);var e=function(e,t){var r=Te();if(!r)return{state:null,storageAvailable:!1};var n=Ae(e,t),i=r.getItem(n);return"prompt"===i||"installed"===i||"idle"===i?{state:i,storageAvailable:!0}:{state:null,storageAvailable:!0}}(s,l),t=e.state,r=e.storageAvailable;d(null!=t?t:"idle"),v(r&&null===t)},[s,l]);var y=(0,m.useCallback)(function(){s&&l&&(Ie(s,l,"prompt"),function(e,t){var r=Te();if(r)try{r.setItem(Ne(e,t),String(Date.now()))}catch(e){console.error("Failed to write outbound timestamp",e)}}(s,l),d("prompt"),v(!1))},[s,l]),b=(0,m.useCallback)(function(e){if(s&&l){var t=e?"installed":"idle";if(Ie(s,l,t),d(t),f){var r,n,i=function(e,t){var r=Te();if(!r)return null;var n=Ne(e,t),i=r.getItem(n);if(null==i)return null;try{r.removeItem(n)}catch(e){console.error("Failed to clear outbound timestamp",e)}var o=Number.parseInt(i,10);return Number.isFinite(o)?o:null}(s,l);(0,ue.Dg)({offerId:l,timeAwaySeconds:null!=i?Math.round((Date.now()-i)/1e3):null,activated:e,advertiserId:null!==(r=null==o||null===(n=o.brand)||void 0===n?void 0:n.id)&&void 0!==r?r:null})}}},[s,l,f,null==o||null===(n=o.brand)||void 0===n?void 0:n.id]);return{isGamesCategory:f,shouldShowPrompt:h,installState:c,handleInstallResponse:b,showPrompt:y}}({task:s,product:i}),A=T.shouldShowPrompt,I=T.handleInstallResponse,N=T.showPrompt,M=(0,he.A)().show,D=(0,m.useCallback)(function(e){(0,ue.tH)({game_id:i.id,pdp_skip_variant:!1,source:"product_details_page"}),P(e),A&&N()},[i.id,P,A,N]),L=(0,m.useCallback)(function(){M({product:{id:i.id,displayName:i.displayName,name:i.name,title:i.title,heroImage:i.heroImage,heroVideo:i.heroVideo,platforms:i.platforms},taskReward:l,reviewsStats:o,boosterId:null==f?void 0:f.id,onNo:function(){D()}})},[M,i,l,o,null==f?void 0:f.id,D]),F=null==i.activatedBefore&&!i.isActivated,B=(0,ee.jf)().currentTarget;(0,ee.e2)(B&&["activity-details-summary","activity-details-steps","activity-details-cta"].includes(B)?B:null);var U,V=i.heroImage,z=i.heroVideo,q=i.isUserEligible,H=i.storeScreenshotUrls,G=i.storeAppIconUrl||(null===(t=i.appIcon)||void 0===t?void 0:t.url),$=(U=i.id,(0,a.useQuery)(le,{variables:{productId:U}})).data,W=null==$?void 0:$.productLeaderboardCTA,Z=(0,xe.dd)(_e).show,Q=(0,m.useMemo)(function(){if(null==W||!W.roundEndDate)return null;var e=new Date,t=new Date(W.roundEndDate).getTime()-e.getTime();return t<=0?null:Math.ceil(t/864e5)},[null==W?void 0:W.roundEndDate]),Y=(0,se._)().isLiteMode,K="direct"!==i.incentiveType,J=!!s&&"pro"===s.tier&&s.isLocked;return m.createElement("article",{className:(0,v.m)("space-y-8 bg-white",y)},m.createElement("header",{className:"space-y-5"},m.createElement("div",{className:"flex items-center gap-2"},G&&m.createElement("img",{src:G,alt:i.storeAppIconUrl?i.displayName||i.name:(null===(r=i.appIcon)||void 0===r?void 0:r.alt)||i.displayName||i.name,className:"h-8 w-8 shrink-0 rounded-lg object-contain","data-testid":"pdp-header-icon"}),m.createElement("h2",{className:"flex-1 truncate text-xl font-bold tracking-[-0.4px]"},i.displayName||i.name),!!i.rating&&m.createElement("div",{"data-testid":"pdp-rating-pill",role:"img","aria-label":"Rated ".concat(i.rating.toFixed(1)," out of 5"),className:"inline-flex h-[21px] shrink-0 items-center justify-center gap-[2px] rounded-[3px] bg-[#181818]/65 px-[5px]"},m.createElement(u.Z,{className:"h-[9px] w-[9px] shrink-0 text-maize"}),m.createElement("span",{className:"text-xs font-bold leading-none tracking-[-0.24px] text-white"},i.rating.toFixed(1))),i.platforms.length>0&&m.createElement(j.Z,{platforms:i.platforms,size:"small"})),H.length>0?m.createElement("div",{className:"no-scrollbar flex snap-x gap-3 overflow-x-auto","data-testid":"pdp-screenshot-gallery"},H.map(function(e,t){return m.createElement("img",{key:e,src:e,alt:"".concat(i.displayName||i.name," screenshot ").
2concat(t+1),className:"h-72 w-auto shrink-0 snap-start rounded-2xl border border-lilyGrey bg-[#EEF4F4] object-contain"})})):m.createElement("div",{className:"relative flex aspect-[7/3] items-center justify-center overflow-hidden rounded-2xl border border-lilyGrey bg-[#EEF4F4]"},z?m.createElement("video",{src:z.url,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"auto",className:"absolute inset-0 h-full w-full object-cover"},m.createElement("track",{kind:"captions"})):V?m.createElement("div",{style:{backgroundImage:"url(".concat(V.url,")")},className:"absolute inset-0 bg-cover bg-center bg-no-repeat"}):null),m.createElement("div",{id:"activity-details-summary",className:"flex flex-col items-center gap-4"},(f||_)&&m.createElement("p",{className:"font-brownStd text-center text-[16px] font-normal leading-[120.6%] tracking-[-1px] text-[#20293A]"},"â¡ You have unlocked"," ",m.createElement("span",{className:"font-bold"},f?"instant rewards":"first cashout bonus")," ","- Install & Play ",i.displayName||i.name," to claim them. â¡"),m.createElement(Ge,{taskReward:l,isIncentiveDisabled:K,className:"empty:hidden"}))),m.createElement("div",{ref:k,id:"activity-details-cta"},m.createElement($e,{product:i,onClick:D,userTaskCompletionStats:c,taskReward:l,isLockedProOffer:J,isIncentiveDisabled:K,activeBoost:d,activeInstallBoosterForProduct:f,cashoutBonus:_,isTaskCompleted:null==s?void 0:s.isCompleted,onGameInstallResponse:I,shouldShowGameInstalledModal:F,onShowGameInstalledModal:L})),Y?m.createElement(R,{taskId:null==s?void 0:s.id,totalPoints:O,isInstallBoosterActive:!!f}):m.createElement(m.Fragment,null,(null==W?void 0:W.isEligible)&&m.createElement("section",null,m.createElement(we,{title:W.roundTitle,hasEntered:W.hasEntered,userPosition:W.userPosition,userPoints:W.userPoints,avatarSeed:null==x||null===(n=x.profile)||void 0===n?void 0:n.pfpSeed,onEnterClick:W.hasEntered?void 0:function(){Z({productId:i.id,productName:i.name,prizePool:W.prizePool,daysRemaining:Q,onEarnClick:D})}})),m.createElement("section",{id:"activity-details-steps"},s&&q&&m.createElement(ae.ZP,{taskId:s.id,isInstallBoosterActive:!!f}))),m.createElement(p.M,null,S&&m.createElement(h.E.div,{initial:{opacity:0}
2,animate:{opacity:1},exit:{opacity:0}},m.createElement($e,{product:i,onClick:D,userTaskCompletionStats:c,taskReward:l,isLockedProOffer:J,isIncentiveDisabled:K,activeBoost:d,activeInstallBoosterForProduct:f,cashoutBonus:_,isTaskCompleted:null==s?void 0:s.isCompleted,onGameInstallResponse:I,shouldShowGameInstalledModal:F,onShowGameInstalledModal:L,className:"fixed bottom-0 left-0 z-50 w-full rounded-b-none laptop:left-auto laptop:right-0 laptop:w-[calc(100%-224px)]"}))))},Ge=function(e){var t=e.isIncentiveDisabled,r=e.taskReward,n=e.className;return t?m.createElement("div",{className:n}):r.isBoosted?m.createElement("div",{className:(0,v.m)("flex h-12 items-center justify-center gap-2",n)},r.boostedPoints>r.points&&m.createElement(X.Z,{reward:r.points,size:"large",className:"h-full border-transparent bg-transparent px-0 text-2xl [&_span]:text-[#FF2727] [&_span]:line-through"}),m.createElement(X.Z,{reward:r.boostedPoints,isRewardBoosted:r.isBoosted,size:"large",className:"h-full text-2xl"}),r.tokens>0&&m.createElement(ne.Z,{size:"large",variant:"outlined",className:"h-full"},m.createElement("span",{className:"text-2xl leading-none"},r.tokens))):m.createElement("div",{className:(0,v.m)("flex h-12 items-center justify-center gap-2",n)},r.points>0&&m.createElement(X.Z,{reward:r.points,size:"large",className:"h-full text-2xl"}),r.tokens>0&&m.createElement(ne.Z,{size:"large",variant:"outlined",className:"h-full"},m.createElement("span",{className:"text-2xl leading-none"},r.tokens)))},$e=function(e){var t,r=e.product,n=e.taskReward,i=e.userTaskCompletionStats,o=e.activeBoost,a=e.activeInstallBoosterForProduct,s=e.isLockedProOffer,l=e.isIncentiveDisabled,u=e.isTaskCompleted,d=e.cashoutBonus,f=e.className,p=e.onClick,h=e.gameInstallState,g=e.onGameInstallResponse,b=e.shouldShowGameInstalledModal,w=e.onShowGameInstalledModal,x=(0,m.useCallback)(function(){b&&w?w():p()},[b,w,p]);if("prompt"===h)return m.createElement(Le,{onYes:function(){return null==g?void 0:g(!0)},onNo:function(){return null==g?void 0:g(!1)},className:f});if("installed"===h)return m.createElement(De,{onClick:p,className:f});var E,k,S=null===(t=r.progradSurveys)||void 0===t?void 0:t.find(function(e){return!e.isComplete});return S?m.createElement("div",{className:"flex flex-col items-center gap-4 roun
2ded-xl bg-[#F8F8F9] p-4"},m.createElement("p",null,"ð You haven't unlocked this level"),m.createElement(V.Z,{kind:"link",to:c.routes.progradSurvey({id:S.id,productId:r.id}),variant:"secondary"},"Complete survey to unlock")):r.isUserEligible?s?m.createElement(oe.Z,{completionCount:null!==(E=null==i?void 0:i.standard)&&void 0!==E?E:0,proOffersThreshold:null!==(k=null==i?void 0:i.minStandardTasksCompletionsForProOffersAccess)&&void 0!==k?k:3,layout:"vertical",className:f},m.createElement(V.Z,{kind:"externalLink",variant:"secondary",target:"_blank",rel:"noopener noreferrer",href:c.routes.earn(),className:"inline-block"},"See Available Offers")):"temporarilyDisabled"===r.availabilityStatus?null:l?m.createElement("div",{className:(0,v.m)("rounded-xl bg-[#F8F8F9] px-3 py-6 laptop:px-8 laptop:py-5",f)},m.createElement(V.Z,{kind:"button",variant:"secondary",className:"block px-14",onClick:x},"Get it!")):"feed"===r.type?m.createElement("section",{className:"space-y-4"},m.createElement("div",null,m.createElement("h2",{className:"text-xl font-bold"},"Available Surveys"),m.createElement("p",{className:"text-sm text-slateGrey"},"Select one to start/continue with this offer")),m.createElement(J,{productId:r.id,onItemClick:p})):n.isBoosted&&o&&!u?m.createElement(We,{onClick:p,taskReward:n,activeBoost:o,className:f,shouldShowGameInstalledModal:b,onShowGameInstalledModal:w}):b?a?m.createElement(Qe,{installBooster:a,onClick:x,className:f}):d?m.createElement(Ze,{bonusAmount:d,onClick:x,className:f}):m.createElement("div",{className:(0,v.m)("rounded-xl bg-[#F8F8F9] px-3 py-6 laptop:px-8 laptop:py-5",f)},m.createElement(y.Z,{as:"button",variant:"full",onClick:x},m.createElement("span",null,"Install Now â"))):a?m.createElement(Qe,{installBooster:a,onClick:p,className:f}):d?m.createElement(Ze,{bonusAmount:d,onClick:p,className:f}):m.createElement("div",{className:(0,v.m)("rounded-xl bg-[#F8F8F9] px-3 py-6 laptop:px-8 laptop:py-5",f)},m.createElement(y.Z,{as:"button",variant:"full",onClick:p},m.createElement("span",null,"Install Now â"))):m.createElement("div",{className:(0,v.m)("flex flex-col items-center gap-4 roun
2ded-xl border border-lilyGrey p-4",f)},m.createElement(pe,{className:"w-full"},"You are not eligible for this product, please try another."))},We=function(e){var t=e.activeBoost,r=e.className,n=e.onClick,i=e.shouldShowGameInstalledModal,o=e.onShowGameInstalledModal,a=new Date,s=null!=t&&t.expiresAt?new Date(null==t?void 0:t.expiresAt):(0,d.Z)(a,3),u=(0,fe.M)({from:(null==t?void 0:t.createdAt)||a.toISOString(),to:s.toISOString()}).timer,c=(0,ce.B)(u.expiresInSeconds),p=(0,S.Rm)({pointsValue:null==t?void 0:t.value}),h="multiplier"===(null==t?void 0:t.type)?"".concat(null==t?void 0:t.value,"x"):"+".concat(p);return m.createElement("div",{className:(0,v.m)("space-y-3 rounded-xl border border-[#B58A49] bg-[#FEDD40] bg-opacity-10 px-3 py-3 laptop:px-8",r)},m.createElement("div",{className:"flex flex-col items-center gap-[2px] text-center"},m.createElement("span",{className:"flex items-center gap-[2px] text-sm"},m.createElement(l.Z,{className:"h-4 w-4"})," Bonus ends in"," ",m.createElement("span",{className:"font-bold"},c.hours,":",c.minutes,":",c.seconds)),m.createElement("span",{className:"text-xs text-slateGrey"},"Earn ",h," if you complete in"," ",(0,f.Z)(s))),i?m.createElement(y.Z,{as:"button",variant:"full",onClick:function(){i&&o?o():n()}},m.createElement("span",null,"Install Now â")):m.createElement(y.Z,{as:"button",variant:"full",onClick:n},m.createElement("span",null,"Install Now â")))},Ze=function(e){var t=e.bonusAmount,r=e.onClick,n=e.className,i=(0,S.Rm)({pointsValue:t});return m.createElement("div",{"data-testid":"cashout-gate-cta",className:(0,v.m)("overflow-hidden rounded-lg",n)},m.createElement("div",{className:"flex items-center gap-2 border-b border-black/30 bg-[linear-gradient(90deg,#472DF3_0%,#A82DF3_100%)] px-3 py-2"},m.createElement("span",{className:"rounded-lg border border-[#E0A63C] bg-[#FFD24F] px-3 py-1 text-lg font-bold leading-none text-ebonyGrey"},i),m.createElement("span",{className:"text-lg leading-none"},"â¡"),m.createElement("span",{className:"text-lg font-bold leading-none text-white"},"For Next Cashout")),m.createElement("div",{className:"bg-[#A62DF2] px-3 py-2"},m.createElement(y.Z,{as:"button",variant:"boosted",onClick:r,className:"w-full"},m.createElement("span",null,"Install Now â"))))},Qe=function(e){var t=e.installBooster,r=e.onClick,n=e.className,i=(0,de.$)(t.expiresAt),o=i.formattedTimeRemaining,a=i.isExpired,s=i.isUrgent;return a?null:m.createElement("div",{className:(0,v.m)("overflow-hidden rounded-lg",n)},m.createElement(ie.Z,{formattedTimeRemaining:o,rewardAmount:t.rewardAmount,isUrgent:s,className:"rounded-none border-b border-black/30 bg-[linear-gradient(90deg,#A82DF3_0%,#6926DD_100%)]"}),m.createElement("div",{className:"bg-[#A62DF2] px-3 py-2"},m.createElement(y.Z,{as:"button",variant:"boosted",onClick:r,className:"w-full"},m.createElement("span",null,"Install Now â"))))},Ye=(0,a.createCell)({QUERY:qe,Loading:function(){return m.createElement("div",{className:"space-y-4 px-4 py-4"},m.createElement(q.Z,{loading:!0},m.createElement("div",{className:"h-32"})),m.createElement(q.Z,{loading:!0},m.createElement("div",{className:"h-32"})),m.createElement(q.Z,{loading:!0},m.createElement("div",{className:"h-32"})),m.createElement(q.Z,{loading:!0},m.createElement("div",{className:"h-32"})))},Failure:function(e){var t=e.error;return m.createElement(z.Z,{message:null==t?void 0:t.message})},Success:function(e){var t=e.product,r=e.reviewsStats,n=e.task,i=e.taskReward,o=e.userTaskCompletionStats,a=e.activeBoost,s=e.activeInstallBoosterForProduct,l=e.className;return t?m.createElement(He,{product:t,reviewsStats:r,task:n,taskReward:i,userTaskCompletionStats:o,activeBoost:a,activeInstallBoosterForProduct:s,className:l}):m.createElement("div",{className:"flex items-center justify-center p-4 laptop:p-10"},m.createElement(re.Z,null))},displayName:"ProductCell"})},52127:function(e,t,r){"use strict";r.d(t,{k:function(){return a},m:function(){return s}}),r(63517),r(50785);var n=r(27378);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}
2finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e){var t=e.redirectUrl,r=e.pgFeatureKey,n=e.pgFeatureValue;if(!r||!n)return t;try{var i=new URL(t);return i.searchParams.append(r,n),i.toString()}catch(e){return t}}function s(){var e=(0,n.useRef)(null),t=i((0,n.useState)(!1),2),r=t[0],o=t[1];return(0,n.useEffect)(function(){var t=e.current;if(t){var r=new IntersectionObserver(function(e){var t=i(e,1)[0];o(!t.isIntersecting)},{threshold:0});return r.observe(t),function(){r.unobserve(t)}}},[]),{ctaRef:e,shouldDisplayFixedCta:r}}},94119:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(27378),i=r(75083),o=r(10347),a=r(98773),s=r(92488),l=function(e){return n.createElement("svg",e,n.createElement("path",{d:"M13.6547 26.997C20.844 26.997 26.6721 21.1774 26.6721 13.9985C26.6721 6.81963 20.844 1 13.6547 1C6.46537 1 0.637268 6.81963 0.637268 13.9985C0.637268 21.1774 6.46537 26.997 13.6547 26.997Z",fill:"#D0FAEC",stroke:"#19674D",strokeWidth:"0.626664",strokeLinejoin:"round"}),n.createElement("path",{d:"M14.3453 27C21.5346 27 27.3627 21.1803 27.3627 14.0014C27.3627 6.82256 21.5346 1.00293 14.3453 1.00293C7.15598 1.00293 1.32788 6.82256 1.32788 14.0014C1.32788 21.1803 7.15598 27 14.3453 27Z",fill:"#D0FAEC",stroke:"#19674D",strokeWidth:"0.626664",strokeLinejoin:"round"}),n.createElement("path",{d:"M16.7162 24.1778C22.3462 22.8706 25.8489 17.2536 24.5398 11.6318C23.2307 6.00998 17.6055 2.51231 11.9755 3.81951C6.34555 5.12671 2.84279 10.7438 4.15189 16.3656C5.46099 21.9873 11.0862 25.485 16.7162 24.1778Z",fill:"#D0FAEC",stroke:"#19674D",strokeWidth:"0.626664",strokeLinejoin:"round"}),n.createElement("path",{d:"M18.7881 13.8875C18.7881 16.3478 16.7793 18.3458 14.2971 18.3458C11.8149 18.3458 9.80619 16.3478 9.80619 13.8875C9.80619 11.4271 11.8149 9.42918 14.2971 9.42918C16.7793 9.42918 18.7881 11.4271 18.7881 13.8875Z",stroke:"#19674D",strokeWidth:"0.591512"}),n.createElement("path",{d:"M15.1947 12.9961H13.4994V11.6095H16.5908V14.6798H15.1947V12.9961Z",fill:"#05B379"}),n.createElement("path",{d:"M11.9035 14.977H13.1999V16.2645H14.596V13.5904H11.9035V14.977Z",fill:"#05B379"}))};l.defaultProps={width:"20",height:"20",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var u=(0,o.j)("flex items-center justify-center gap-[2px] rounded font-bold leading-none bg-[#E9FFFD] border border-primary text-ebonyGrey",{variants:{variant:{row:"flex-row",column:"flex-col"},size:{small:"text-sm",large:"text-2xl rounded-xl"}},compoundVariants:[{variant:"row",size:"small",class:"p-1"},{variant:"row",size:"large",class:"px-3 py-2 gap-1"},{variant:"column",size:"small",class:"p-2"},{variant:"column",size:"large",class:"p-3 py-2 gap-1"}],defaultVariants:{variant:"row",size:"small"}}),c=function(e){var t=e.reward,r=e.rewardDisplayMode,o=void 0===r?s.B7:r,c=e.variant,d=void 0===c?"row":c,f=e.size,p=void 0===f?"small":f,h=e.isEarned,m=e.className,v=(0,s.Rm)({displayMode:o,pointsValue:t});return h?n.createElement("div",{className:(0,a.m)("inline-flex flex-col items-center gap-1 rounded bg-[#E9FFFD] px-[6px] py-1",m)},n.createElement("span",{className:"flex h-[10px] w-[10px] items-center justify-center rounded-full bg-primary"},n.createElement(i.Z,{className:"h-2 w-2 stroke-white stroke-[3]"})),n.createElement("div",{className:"flex items-center gap-[2px]"},n.createElement(l,{className:"h-2 w-2"}),n.createElement("span",{className:"text-[10px] font-bold leading-none text-primary"},v))):n.createElement("div",{className:(0,a.m)(u({variant:d,size:p}),m)},n.createElement(l,{className:(0,a.m)("flex-shrink-0","small"===p?"h-3 w-3":"h-6 w-6")}),n.createElement("span",{className:"leading-none"},v))},d=function(e){return n.createElement("svg",e,n.createElement("path",{d:"M54.301 106.449C25.4162 106.449 2.00041 83.0674 2.00041 54.2246C2.00041 25.3817 25.4162 2 54.301 2C83.1858 2 106.602 25.3817 106.602 54.2246C106.602 83.0674 83.1858 106.449 54.301 106.449Z",fill:"#FEF5DB",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M60.4528 106.461C31.568 106.461 8.15227 83.079 8.15227 54.2361C8.15227 25.3933 31.568 2.01154 60.4528 2.01154C89.3377 2.01154 112.753 25.3933 112.753 54.2361C112.753 83.079 89.3377 106.461 60.4528 106.461Z",fill:"#FEF5DB",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M50.9283 95.1257C28.3085 89.8738 14.2354 67.3059 19.495 44.7191C24.7546 22.1322 47.3553 8.07949 69.975 13.3315C92.5947 18.5834 106.668 41.1513 101.408 63.7381C96.1487 86.325 73.548 100.378 50.9283 95.1257Z",fill:"#FEF5DB",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M21.4746 13.9429H25.4619",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M16.393 18.6562H19.3066",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M9.84194 25.9175H13.1123",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M6.22127 34.9896H10.5859",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M2.94396 44.7589H6.94385",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M2.93074 65.4399H7.29541",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M20.0083 90.0885H16.3858",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M26.187 94.8104H22.1997",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M32.7227 99.8892H28.7228",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M28.3553 8.8642H34.5312",stroke:"#867000",strokeWidth:"2.51777",strokeLinejoin:"round"}),n.createElement("path",{d:"M65.3087 44.9007C65.3087 45.4894 65.7859 45.9666 66.3746 45.9666L77.9217 45.9666C78.6007 45.9666 79.2233 46.3444 79.5368 46.9466C79.8504 47.5488 79.8028 48.2755 79.4135 48.8317L59.206 77.6996C58.7502 78.3507 57.9248 78.6309 57.1668 78.392C56.4088 78.1531 55.8934 77.4501 55.8934 76.6553L55.8934 62.2214C55.8934 61.9387 55.7811 61.6676 55.5812 61.4677C55.3813 61.2678 55.1102 61.1555 54.8275 61.1555H43.2803C42.6014 61.1555 41.9788 60.7778 41.6653 60.1756L40.7198 60.6678L41.6653 60.1756C41.3517 59.5733 41.3993 58.8467 41.7886 58.2904L61.9961 29.4226C62.4519 28.7715 63.2773 28.4912 64.0353 28.7302L64.3557 27.7136L64.0353 28.7302C64.7933 28.9691 65.3087 29.6721 65.3087 30.4668V44.9007Z",fill:"#FFE03F",stroke:"#867000",strokeWidth:"2.1318",strokeLinecap:"round",strokeLinejoin:"round"}))};d.defaultProps={width:"115",height:"108",viewBox:"0 0 115 108",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var f=(0,o.j)("flex items-center justify-center gap-[2px] rounded font-bold leading-none bg-[#FFDD42] text-[#3C3C3C]",{variants:{variant:{row:"flex-row",column:"flex-col"},size:{small:"text-sm",large:"text-2xl"}},compoundVariants:[{variant:"row",size:"small",class:"p-1"},{variant:"row",size:"large",class:"px-3 py-2 gap-1"},{variant:"column",size:"small",class:"p-2"},{variant:"column",size:"large",class:"p-3 py-2 gap-1"}],defaultVariants:{variant:"row",size:"small"}}),p=function(e){var t=e.reward,r=e.rewardDisplayMode,o=void 0===r?s.B7:r,l=e.variant,u=void 0===l?"row":l,c=e.size,p=void 0===c?"small":c,h=e.isEarned,m=e.className,v=(0,s.Rm)({displayMode:o,pointsValue:t});return h?n.createElement("div",{className:(0,a.m)("inline-flex flex-col items-center gap-1 rounded bg-[#FFF9DE] px-[6px] py-1",m)},n.createElement("span",{className:"flex h-[10px] w-[10px] items-center justify-center rounded-full bg-[#F9CC00]"},n.createElement(i.Z,{className:"h-2 w-2 stroke-white stroke-[3]"})),n.createElement("div",{className:"flex items-center gap-[2px]"},n.createElement(d,{className:"h-2 w-2"}),n.createElement("span",{className:"text-[10px] font-bold leading-none text-ebonyGrey"},v))):n.createElement("div",{className:(0,a.m)(f({variant:u,size:p}),m)},n.createElement(d,{className:(0,a.m)("flex-shrink-0","small"===p?"h-3 w-3":"h-6 w-6")}),n.createElement("div",{className:"leading-none"},v))},h=function(e){var t=e.reward,r=e.rewardDisplayMode,i=e.isRewardBoosted,o=e.variant,a=void 0===o?"row":o,s=e.size,l=void 0===s?"
2small":s,u=e.isEarned,d=e.className;return i?n.createElement(p,{rewardDisplayMode:r,reward:t,variant:a,size:l,isEarned:u,className:d}):n.createElement(c,{rewardDisplayMode:r,reward:t,variant:a,size:l,isEarned:u,className:d})}},39027:function(e,t,r){"use strict";r.d(t,{P:function(){return S}}),r(63517),r(74413),r(62285),r(20779);var n=r(98889),i=r(27378),o=r(73169),a=r(78048),s=r(23462),l=r(14252),u=r(21687),c=r(55757),d=r(98739),f=r.n(d);function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return m(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)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r(66066),r(50785);var v=["{idfa}","%7Bidfa%7D","{advertising_id}","%7Badvertising_id%7D"];var g=r(52127);function y(e){return y="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},y(e)}var b=["pg_feature","id"];function w(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 x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach(function(t){E(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function E(e,t,r){return(t=function(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var S=function(e){var t,r,d,m,y=e.product,w=e.pointsReward,E=e.reward,S=e.offerPosition,_=e.pgFeature,C=e.pgMetadata,O=null!==(t=null==(r=(0,i.useContext)(n.ParamsContext))?void 0:r.params)&&void 0!==t?t:{},P=O.pg_feature,T=(O.id,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({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(O,b)),A=(0,c.x)(),I=A.clientId,N=A.sessionId,R=(0,o.a)().currentUser,j=(d=(0,s.Kr)({refetchQueries:[{query:a.Qq,variables:{id:null==y?void 0:y.id}}]}),m=1,function(e){if(Array.isArray(e))return e}(d)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(d,m)||function(e,t){if(e){if("string"==typeof e)return k(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)?k(e,t):void 0}}
2(d,m)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],M=null!=_?_:P,D=null!=C?C:T,L=(0,g.k)({redirectUrl:y.redirectUrl,pgFeatureKey:y.pgFeatureKey,pgFeatureValue:M}),F=(0,i.useCallback)(function(e){var t,r,n,i,o;e&&e.preventDefault();var a=function(e){var t=f()();return{url:e.replaceAll("%7Bclick_id%7D",t).replaceAll("{click_id}",t),clickId:t}}(function(e){try{var t,r=new URL(e),n=[],i=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=h(e))){t&&(e=t);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==t.return||t.return()}finally{if(a)throw i}}}}(r.searchParams.entries());try{for(i.s();!(t=i.n()).done;){var o=p(t.value,2),a=o[0],s=o[1];v.includes(s)&&n.push(a)}}catch(e){i.e(e)}finally{i.f()}if(0===n.length)return e;for(var l=0,u=n;l<u.length;l++){var c=u[l];r.searchParams.delete(c)}return r.toString()}catch(t){return e}}(L)),s=a.url,c=a.clickId;window.open(s,"_blank","noopener,noreferrer"),(0,l.Nv)(y,M);var d=E?(0,l.P6)(E):{value:null!=w?w:0,currency:"points"},m=null!==(t=T.user_task_position)&&void 0!==t?t:T.task_position,g=null!=S?S:null!=m&&""!==m?Number(m):null;(0,l.Ht)({offerId:y.id,offerName:y.displayName||y.name||y.title||null,offerType:null!==(r=y.type)&&void 0!==r?r:null,advertiserId:(null===(n=y.brand)||void 0===n?void 0:n.id)||null,advertiserName:null!==(i=null===(o=y.brand)||void 0===o?void 0:o.name)&&void 0!==i?i:null,offerPosition:Number.isFinite(g)?g:null,offerFeature:M,userOutboundNumber:(0,l.$S)(null==R?void 0:R.id),expectedRewardValue:d.value,expectedRewardCurrency:d.currency}),j({variables:{input:{productId:y.id,pgFeature:M,pgMetadata:x(x({},D),{},{points_reward:null!=w?w:0}),gaClientId:I,gaSessionId:N,clickUrl:s,clickId:c}}}),(0,u.V)({eventName:"outboundTriggered",context:{destination:s,product:{id:y.id,brand:y.brand.name},reward:{points:w},sessionId:N},userData:{email:(null==R?void 0:R.email)||"",external_id:(null==R?void 0:R.id)||""}})},[y,M,j,I,N,L,w,E,S,T,D,null==R?void 0:R.email,null==R?void 0:R.id]);return{formattedRedirectUrl:L,handleOutbound:F}}},32150:function(e,t,r){"use strict";r.d(t,{j:function(){return h}}),r(63517),r(74413),r(62285),r(20779);var n,i=r(94621),o=r(31786),a=r(40757);function s(e){return s="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},s(e)}function l(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 u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e,t,r){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d,f,p=(0,i.ZP)(n||(d=["\n mutation UpdateUserOnboardingStatusMutation(\n $input: UpdateUserOnboardingStatusInput!\n ) {\n updateUserOnboardingStatus(input: $input) {\n success\n message\n rewardIds\n }\n }\n"],f||(f=d.slice(0)),n=Object.freeze(Object.defineProperties(d,{raw:{value:Object.freeze(f)}}))));function h(e){return(0,o.useMutation)(p,u(u({},e||{}),{},{refetchQueries:(null==e?void 0:e.refetchQueries)||[{query:a.Qq}]}))}},14121:function(e,t,r){"use strict";r.d(t,{b:function(){return b}}),r(63517);var n,i,o,a,s=r(94621),l=r(31786),u=r(27378),c=r(14252);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}
2finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(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)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var h=(0,s.ZP)(n||(n=p(["\n query CashoutGateQuery {\n cashoutGate {\n id\n status\n rewardAmount\n gamesInstalledCountAtTrigger\n isFirstView\n dismissedAt\n tappedOfferId\n tappedOfferName\n tappedOfferImageUrl\n }\n }\n"]))),m=(0,s.ZP)(i||(i=p(["\n mutation TapCashoutGateOffer($productId: String!) {\n tapCashoutGateOffer(productId: $productId) {\n id\n status\n dism
2issedAt\n tappedOfferId\n tappedOfferName\n tappedOfferImageUrl\n }\n }\n"]))),v=(0,s.ZP)(o||(o=p(["\n mutation WaiveCashoutGate($surface: CashoutGateWaiveSurface!) {\n waiveCashoutGate(surface: $surface) {\n id\n status\n }\n }\n"]))),g=(0,s.ZP)(a||(a=p(["\n mutation DismissCashoutGateCard {\n dismissCashoutGateCard {\n id\n status\n dismissedAt\n }\n }\n"]))),y=null,b=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.skip,n=void 0!==r&&r,i=t.cacheOnly,o=void 0!==i&&i,a=(0,l.useQuery)(h,{fetchPolicy:o?"cache-only":"cache-first",skip:n,onCompleted:function(e){var t=null==e?void 0:e.cashoutGate;t&&"shown"===t.status&&t.isFirstView&&y!==t.id&&(y=t.id,c.co.track("cashout_gate_shown",{games_installed_count_at_trigger:t.gamesInstalledCountAtTrigger,bonus_amount:t.rewardAmount}))}}),s=a.data,f=a.loading,p=null!==(e=null==s?void 0:s.cashoutGate)&&void 0!==e?e:null,b=d((0,l.useMutation)(m),1)[0],w=d((0,l.useMutation)(v,{refetchQueries:[h]}),1)[0],x=d((0,l.useMutation)(g),1)[0],E=d((0,u.useState)(!0),2),k=E[0],S=E[1],_=(0,u.useCallback)(function(){return S(function(e){return!e})},[]),C=(0,u.useCallback)(function(){return S(!1)},[]),O=(0,u.useCallback)(function(e,t){c.co.track("cashout_gate_install_tapped",{offer_id:e,offer_name:null!=t?t:null})},[]),P=(0,u.useCallback)(function(e){return b({variables:{productId:e}})},[b]),T=(0,u.useCallback)(function(e){c.co.track("cashout_gate_dropped",{surface:e})},[]),A=(0,u.useCallback)(function(e){return T(e),w({variables:{surface:e}})},[T,w]),I=(0,u.useCallback)(function(){return x()},[x]);return{gate:p,loading:f,isExpanded:k,toggle:_,collapse:C,trackInstallTap:O,recordInstallStarted:P,trackDropped:T,waive:A,dismissCard:I}}},9962:function(e,t,r){"use strict";var n,i=r(31786),o=r(94621),a=r(27378),s=r(98889),l=r(98773),u=r(71637),c=r(54557),d=r(92488),f=function(e){return a.createElement("svg",e,a.createElement("path",{d:"M13.6547 26.997C20.844 26.997 26.6721 21.1774 26.6721 13.9985C26.6721 6.81963 20.844 1 13.6547 1C6.46537 1 0.637268 6.81963 0.637268 13.9985C0.637268 21.1774 6.46537 26.997 13.6547 26.997Z",fill:"#D0FAEC",stroke:"#19674D",strokeWidth:"0.626664",strokeLinejoin:"round"}),a.createElement("path",{d:"M14.3453 27C21.5346 27 27.3627 21.1803 27.3627 14.0014C27.3627 6.82256 21.5346 1.00293 14.3453 1.00293C7.15598 1.00293 1.32788 6.82256 1.32788 14.0014C1.32788 21.1803 7.15598 27 14.3453 27Z",fill:"#D0FAEC",stroke:"#19674D",strokeWidth:"0.626664",strokeLinejoin:"round"}),a.createElement("path",{d:"M16.7162 24.1778C22.3462 22.8706 25.8489 17.2536 24.5398 11.6318C23.2307 6.00998 17.6055 2.51231 11.9755 3.81951C6.34555 5.12671 2.84279 10.7438 4.15189 16.3656C5.46099 21.9873 11.0862 25.485 16.7162 24.1778Z",fill:"#D0FAEC",stroke:"#19674D",strokeWidth:"0.626664",strokeLinejoin:"round"}),a.createElement("path",{d:"M18.7881 13.8875C18.7881 16.3478 16.7793 18.3458 14.2971 18.3458C11.8149 18.3458 9.80619 16.3478 9.80619 13.8875C9.80619 11.4271 11.8149 9.42918 14.2971 9.42918C16.7793 9.42918 18.7881 11.4271 18.7881 13.8875Z",stroke:"#19674D",strokeWidth:"0.591512"}),a.createElement("path",{d:"M15.1947 12.9961H13.4994V11.6095H16.5908V14.6798H15.1947V12.9961Z",fill:"#05B379"}),a.createElement("path",{d:"M11.9035 14.977H13.1999V16.2645H14.596V13.5904H11.9035V14.977Z",fill:"#05B379"}))};f.defaultProps={width:"20",height:"20",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var p,h,m=(0,o.ZP)(n||(p=["\n query WalletBalanceCellQuery {\n rewardAccount {\n id\n balance\n }\n }\n"],h||(h=p.slice(0)),n=Object.freeze(Object.defineProperties(p,{raw:{value:Object.freeze(h)}})))),v=function(e){var t=e.id,r=e.balance,n=e.variant,i=void 0===n?"default":n,o=e.rewardDisplayMode,p=void 0===o?d.B7:o,h=e.className;(0,u.e2)(t||null);var m=(0,c._)().isLiteMode,v=(0,d.Rm)({displayMode:p,pointsValue:r}),g=a.createElement(a.Fragment,null,a.createElement("div",{className:(0,l.m)("flex items-center justify-center bg-[#19674D] p-2","compact"===i&&"p-1")},a.createElement(f,{className:(0,l.m)("","compact"===i&&"h-3 w-3")})),a.createElement("span",{className:(0,l.m)("flex items-center bg-[#ECFFDF] px-1 text-lg font-bold leading-none text-[#19674D]","compact"===i&&"text-sm")},v));return m?a.createElement("div",{id:t,className:(0,l.m)("flex overflow-hidden rounded",h)},g):a.createElement(s.Link,{id:t,to:s.routes.wallet(),className:(0,l.m)("flex overflow-hidden rounded",h)},g)};t.ZP=(0,i.createCell)({QUERY:m,Loading:function(e){var t=e.id,r=e.variant,n=e.rewardDisplayMode,i=e.className;return a.createElement(v,{id:t,balance:0,rewardDisplayMode:n,variant:r,className:i})},Empty:function(){return a.createElement(a.Fragment,null)},Failure:function(){return a.createElement(a.Fragment,null)},Success:function(e){var t=e.id,r=e.rewardAccount,n=e.rewardDisplayMode,i=void 0===n?d.B7:n,o=e.variant,s=e.className;return a.createElement(v,{id:t,balance:r.balance,rewardDisplayMode:i,variant:o,className:s})},displayName:"WalletBalanceCell"})},27688:function(e,t,r){"use strict";r.d(t,{Q:function(){return a},Z:function(){return s}});var n=r(27378),i=r(98773),o={apple:{logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATIAAABfCAYAAABr20v1AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABTWSURBVHgB7Z0xbB1FE4DPVoQEKZKCtGBK0pBI1CF0dElEQxQBSQUdgTpSgkQf6NIRQNg0waSCLolbhAgNlHHqRCIpQAiJ+N/vfo81Hs/d7b3nd2/veT5p/fzu3e3t7u3Ozc7O7i5VGayvrx/9559/TiwtLZ1JX1e2traOVkEQBDMgyZknz549u5c+758/f/5u1jVtP66tra2kyD7677//LqbPEF5BEAzN5vLy8udJebqdhNpm00mNgiwJsavp4mv62OPHj6vNzc3q77//roIgCGbBsWPHqpdeeqk6fPiwPryZ5NGnFy5cuOlds0eQoYWlC9bTvyf4/tdff1U//fRTtbGxUT169KgKgiAYguPHj1enTp2qg4B29s4773xsz90lyLaF2J307wrfEWC3bt2qhVkQBME8QEO7cuVK/QnJzHUzdTMv6XOW9RctxL755pvq66+/DiEWBMFcoSf40UcfVT/++GP9Pcmpi9999911fc6OIFtdXeWHFf5HiMlFQRAEJYBcwsQFaVTzcpJZZ+W3WpDRpUwfl/mf7mQIsSAISoRe4sOHD+XrdVzD+Ec0sqv8QYXDJhYEQVAieEygmW2zkr7XCtjytoH/Il++//77sIkFQVA0v//+e/XHH3/U/2876VfLqa95Wp8QBEFQOqrneAJlbFkkGhIu/MSCIBgDOOZL7zH1KM8upz8rfFEGtCAIgqLBVqYUrxWM/Sv8F9pYEARjgimTkHqVR5ZlMngY+YMgGBNqzvfKchUEQTByQpAFQTB6QpAFQTB6QpAFQTB6QpDNiZWVFfxf3PDgwYPqzp071cWLF6sxQx7ID3ktBcqUNI2hbI8ePVqXHZ8W6ggh+D8hyArg7t27uwLOfqdPn66+/PLLurKeOHGiCg4eZ8+erZ//5cuXq6CdQ1UwVxBab7755p7jvImpwKzDhGZz8uTJ+twgCPaykBoZqjhdh+vXr1djBaGFIPviiy/q/KCdBUHgs1CCjO4Y2suff/5ZN/xFUMmvXbtWf5I3aytBa5P8in3t119/3WP/kXLxyoNy4jfO8eLWLwO+kx75Te7J/a9evVrlQj44n26Ttgu2xWHPJ3jpFtBk9fleueTilXOTDZNj/MY1pME+mxwzAeVDHFIe77///k7Zd6VN6r5nV5Nyt2lqKsNRsbq6ukU4derUVvo62pAa3JZHqelNFbBOX2psneemylafmxrBzjH+TxWyPp4q8laq5Fvr6+s7+U4VdufcVIHde0ka4PPPP9/1W2qQ9XE+
25Zjci3j45BoC34E06Dg4B7iPTovkh/TbOPiNc7xnK+frvHIs53xJi9xb56st9ClnAr9DEib1dXx2pderG9xL0irlnV5EO+dwTAdbjpSBjlOXuzy7mzdv7uQjCcuZ1PNZhg8//LCWXWtra3dGL8h4QFJJLTy4UtPdR5BJI9CNTyqsrtwSr/yW3rQ7xz2hkozJuxqKjocGaM8XrMDiHBqozYt3T4mXPNkGLQ1Lxy/l5D1LGqMtF50nfV8CZSXkCjIpS3u+5NmWswgyfrP3l/TaZ9YU5GViy1uni3K07YF7E/RxEe7esyOuHAFbWtCCbPRdS9ToJtX4/v371SLw9OnTXd8ZzaJLkRp+lRrHrt+wrWFXA7okwu3bt3euFSg3zv/qq6/2dF35LiOoFu5r70nIcbOg6/XkyZPq448/rj81dH05RpdM0sIn9/v000/3xOWlTfLM+fZ3yoo85UJapZy9PEuadDkLP/zww577y729bt+kUI4ayo9nLa4bcj/yQnps91Tqi5wzVkYtyOjv64ZpoYEuAkeOHKk/peGL4BbhZJFGpwW8HDtz5szOsTfeeKP67bffdhqYnI8dh0bgxd8k3KxQ8pD479271xgHLx/dCPl+6dKlWjAAx3nmMqJrkevkfEtTmXmIPatPObfdJ6eM+iAvkC7IB2XKuQgrG4TXXnutGiujdb+gwnrGT0F8shYBaZxSaeWN3tQwOG41JI5RHlKpgf95GyMs+J0GiQCQhtkkDCZF7ouxuQlZF89qh7y0dNpF6FktUIRPW9n0TW9XXJ6Gtd9CaxokfZRjm2G/JMflvoxWkHWpwbzFFwEqF41TGq6mrYvCdbYxoSVQkbVAECHGJxoaoLXxfb/91nIat2ifAmllVI5r6cqJRsh36oBtmLld3D50dQVLEloekj404baXf+n5aGO0XUvdRbJ49pGxIkPwWjsSgdb0dpXjVvBJHHTNxD4m5yDkpEvJb1T6/aYr3SAalZwr+T937lxt4xLBC56AkefedA8R1n3S2+QyIfcova5JPpKtf88sEnkxNE2FGgujFGQUeFPlQoi1vXXGAnnEh0uM49rYjW2GYxiZPe1DbEfWRkiFpeLSmMU+Jkhll2utcXs/kO6tzFrw0s1vnNMmrPT5Fsmz55NG3H0M2lIGki6L3KN0W6yUe1PXknrEoFl0LQfGE2IyEjaLBjhLaKha8NK14hhaE5/kiylM+q0vgg1BR7dLNFDOp9FRWRFMXlmgaUkDlNFNEOGBgNGa2n7DMxJHW4zLCAHSjWCVUUttFiC95IfzZYSOBqeFONeKZkGepQzW19d38kid4Tjx52oeUs6UV99y3g/kGcioKN8ntVtKuUuZiP2YsqP+SdmNljH6keG3I4iT4th8YLQzqge+PV354nfxJ9J4PlrefbWDLUH8vvD18q6V8vZ+k2u9Y9afSvu6aTjfpol8NJ2r64H1PdPOnrauQK4fWVs54xdmy1ni175ltt56fmFesHnXz0UcYb3rJO+23CnbprK0544haD+yJf5JB6sbN25UGxsb1bzhbSdvzDbbgxizPQMlv2k1WdtVSqJJlW/KVxNoBlIeulvWdV9bvlL2beXqXaev1b95xzRik+McnlGbFih+bgTtAkIcBDQVm2YZKNHxd+WxCTFndJVzThn2vbeUu76u77PQSH2BJneaMZAEWZUUMDYfuVuERsabCs9j+7bA25i3BW/PLo2LOGRaiAdx8/sY3zwRIkTYG4qZooTwaZpeZJF5a1plRygx161JeDURAi1ChPEHLcjmZuzHeNtndQqZQiGjeIRJR1nE/wij8qI4zQbBQWYu7hfTLrGjp7BMiix/0jbFKQiCcTC4IBPfqFJoWrspCILxMKggQ4CVttghvkFjnpoRBMHADrF9VhEdAhxNw0YWBONnMI1M1nYqBTydQ4gFwWIwmCArSRvzFiQMgmC8DNK1FI/oUvBWGw0WFzvTA0qd7RFMxiCC7HRBu7SgjY1lSgauIXZLOxogS9oE7VDnmGwtk+89ZNrSIi37dFAZRJD1WQNq1oxp+WvWXLOahKwXFvY9H7R/hH/Oy1PmaWK/xdQQI9jjZRAbWUndyrFsSNK2GURJGm5JyP6Pk5QPbkHs8VhSXQ3yOVCCTJZIHgNtMw68BQUPOmhWmA28bqSsGYbGRfB2OALqaduO7vy+pTYIJsRLpQwG6VqG53x/vC3GBMozupe7YcFAC+WDm02TFo7Gy2i6ftFSrmhnMao9Lka/r+UiInYwjbXttQm6g4bs86lB68Lhuc2UgJbGOVZLL81xO+hmEEFWSnduLJqhFWLeBrFto3EHDa97ZzeubUJvaCy07QkRlMmBE2RjsGlYjYAdjuyKpLKu/34iq4rMyqYpce+3ALYby+ZuXCt4a9UPIcikPGZRJjr+HPSzH+MLchBBVtJIYemCzDoPI7xkwwmrOfTpXj548GBX0A0VWxGjfWycK79jyGYUj9+6Kjb2JB23ti+RF9whdNzy/6x27unbEBF6dDF1kDKnvki6KSMLtjmd966Xi1fWUiaUd26ZYMfzylwGLHT8TaPfnMtLUz8T+Z9APKMZzBhihVhvI4h5wWqyJW9Uwuq1Gr3hhN5sQ8jNi4W4WCU3Z4Velgm3m4K0PV9Jcxpd3cqBVX6nKTM2W/Hytx/PwyvzNpo2NSEeb+OPJlj6vWvjGY2seuzdw0tT7rMByrfEFZX1CrEHTiPjbV3aUkIa+wakWyl4G0VMurabLCyZ88blXLSFPl1Z3vS5I39sR9bm9tCFt5kwmlIp696Jf1sf7ZM6yjV9tMvce1DWfUZlee590z80g7hflOYmQCOj61Cac6ze3QZ0t1Jg9FLb0PD+n8RVwLodeDsTWWgAlFmX/WnFbISr8+GNyALns2HwJHnBxkV+dKPnf9KLEKHMJt0tiGtkbq7sZ2nv/fDhw53vtk6RX88GR5mQLtknEzuffVHwDBDIdHW78EwS3h6elJMV8PJ85IVAXHZWCf+TlpMnT1ZFMtTmI303CJk1qOClqctt3cqqpavT1u2T0FYOXjcsNarGPTPtuW2mg6RZ7Dl/pWHfyWm6/dyni6RV1l028jbJs19x9iLt6sJ6Zdi0r2VT19ArQ9u11Hm0aZIy9dLP+U1l4d0jd0/OIcJcdlEqyU4mUGn6bNQ6y0Bls8K+qZHYyp5TuZry39ag+c17AVlh0/RsvQaoAxvcWqZpKE2NuwkRbLlCra8go271zZ8nzHgGOXklP21x2xcl9+l6cdhn5KVlXmEugqyv0XRIStgezlb6pl2kvUqcU7k8cgziXoOxAsoTZE27levgCe+2fOfWsz5GdSFnt+2+gswOQuTmzdMu7X2859L1UuqT9rZntF8DKdOGwY39UPL6T9gM5r2bknWlaLMrWpvLJP5x2GZybJfYrOxzy7lXziojYifSTOvHRp5eeeWV2q4kNqgcxM1iP736bTnl2op5vrbMu+on57fl1do8c58/8Vq7X4nOwoOt2S+VttQJz9aoPiQ5U5I0Ugn1NVT0PoMqejS0DZ4b8eqGZB1Qm67JgXK3dYKGMu36YNxf0iCDFxiwuxb5ZAT16dOnU8+15D7W0N6nzMm/Fhhdwr1LSbDCh/Mn9RHrev7zYNDNR3jTlCjIJh3R2i9shZKK3FZ5eUvq69DoaIS5Wm+fEVs9KgddjapPWXrn7rdnuSygKJqsvDjsyK3AcU8r6oOXhz7lwgiuFj7TCg+bT+L2HHwniasEBp00TmUqccWGeS99bYU7jcB64ttgfeFmOT+wb4Puc/4Qgsy7J4KKLqg3J3M/fA29PMzTtPLyyy9Xi8ygGhkgNEqa9qC7IPOAt9t+CSA0ibEt7TPveX1iA7QOuYs2adxq1eJnNgkl2roHF2Q0NOYMltLFvHTpUjVP9nOWgdhlcipaHwFiuxJd8ffpenjnDt3NRztjPqguk2m7cl4e+tj+jhw50hnfNNA7ynG0HQuDCzLAloNNZ95vYwTqPG1jgAFag6D3ptx4WE9zWR47x1CNVpxr0LaNusu+Jiso5AhUT/Pp88Ynv3bEd5IGam2O02odTSvQ5mLLhQGIaSB/upwWbQmouQgyKgmakLeq51BQ0RCo88ROSQKEa58RVDuVJHfKEhvC5Agbr+uLIboLNM2c8vVW8OjbPbamiklWz+2rdXbhDdjkPhtvZHXaUXVv6lTuy2YMzG2FWB6MXZZmSNhSbd4P0TZib25lF9ZNg0ac87blnByfKe+cnDSiKXalA5eOSX2t2s63W+h1gVZnBUeOsIa2PHrPJsc+7JldprV9euvZ5frMsWCAHmgqZTL+Loby7K8avIaZVjE0pcwXsx7oOd7wNngzJrz8NdE2jYjldSyed3rTFKW2eXzMD81dcqYreEsR5S49Q/l507C8az3v+La6RP32yq8tXV6Ze/XCevbnzBrwZgOkl2nrNV56SpmjPJcpSk2haaLsrKDRlfAQvHl4TGaeJC5bfl6lboOGIuuTEUhH0zplnqCxgkwLBpnPiuAibu5D4/CEx6TTk5qmvxGf5E3PKeT/tjy2vVBsuvlO/ohTgj7fEx5SJlogkEY7F1Li9wTHJIKMtHltzZuix/Py0jPJy3ZWoShBRsgVZjxUKh8TWXmQBN68uYKwFCFGsPPwppmM6zUWOx/OwmTpvjRVYivIeEY5CzZqmhpsbshZ/SIHtMi2idRd+fIE/TS9jiYNdRJBRkBANa1Ew3HiaWpPpa0YU5wgIzQt7QJUBCpqWwXjAXG995A41rUSw9B5tUzzpvM0EoS9PsdCA/G0wiZowE3l7wmyPpo2zydnKaKuwDOeZrmotjy2lbXGEzzE2Xf1F9H0mtIxqSCTttK3F9RmJphXKFKQ6Yoi2hYVs+9Me+k2cC1xiNpfQt4keAJk2hUFupZ+sUgj6arUOS8BT5DJs+hqwDmrTvQJbS/EtjT0KX/KrqnM2oRP23WanNVYphFkfcqJ51/SGmQ6aEG2xD/pYHXjxo1qY2OjCmaP53bhrSI6bZyMLspIVaqTu37D/UXfU0bUZCoLnuCMdOWsWkI8egSW67Qvl8xtxK0AR098omSa0KxGjvU98YNjlE5GGGWXJUYmJY+TIPFLvDLq3OWbyDXyvMTxlTIhHfqZdcWh3WImGfEGWTmFuPQ0Jsqm1CmFQhJkVVLAqqWlpbvFaWQRZhP6aA59Q5NGFiHCLMNc1iMLgiCYFSHIgiAYPSHIgiAYPSHIgiAYPcvJNrsYs0aDIDiwHEpDlwiyo8eOHauCxcWuu7afw+q4Uej4FmVFhaBslMzaRJBtJq1sJQTZYjOtn1obY1uVNlgMXnzxxfrz2bNnD5fTn3q9ktdff70KgiAYAyheonwdOnTo/nKidgd+4YUXquPHj1dBEASloxWv55577u7y+fPn74rB/+23366CIAhK56233qo/k2ns5rlz556I+0W9VOurr74aWlkQBEWDwqVs+vVejrUg+/fff1lIfJP/P/jggyoM/0EQlAgT26XniDaWepSb/F8LsjQ0/yQdrMfnEWKffPJJCLMgCIoCIXblyhX5ullta2OwpE9cXV29nD7qnRsePXpUffbZZ/VnEATBPGG5nnfffbc6fPgwS7k8SYOUJ0UbgyV7wbfffnstaWdX5futW7fqdcpCoAVBMDRoYe+9915tv4ftgck3L1y4sGsRuSXv4qSZna3+r5mtyLFffvml+vnnn6vHjx+HUAuCYGZg1kKA4WIhAmyb+0nJOqc1MWGpKbK1tTUWlr+W/n2/CoIgmBPbWtgXSQu71nTOUkccItDOJkl4Jn2eroIgCGbMth3sfvq8/fzzz9e+Ym3ndwoyS7KhnUg36N7KOgiCYDI2ve5jG/8DATXTZgtIfUUAAAAASUVORK5CYII=",alt:"Download on the App Store",description:"Download on the App Store"},google:{logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATIAAABfCAYAAABr20v1AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABy+SURBVHgB7Z0NcFTXdcfPWz5swEXglDRNGhCdJrUxCeA6SRu7gN3GsZNJg
2LgzMWFipGYGqTOdCBE3cQy2hOvU7uQDSJoUMk0kTJD8ERBkOmNnPAGJGGgzaYAkQNLGkWQax0EYSWDABrQv93/fO2/vPt23+/ZL2pXOD67efry9u+/r/84995x7HYpBR0fHjNdff32h4zjL1NNq13VnkCAIQglQOjOQTCa71PLoypUrO2N9JtOb7e3t1aqyhqGhoRq1FPESBGGk6VGG08ZEItGpRK0naiWrkPkWWIOqoNl8/cyZM9TT00MXL14kQRCEUjBr1iyaPXs2TZs2zXxZC9qqVatabZ8ZJmSwwtQHOtTDhXh+4cIFeu655+jAgQPU19dHgiAII8G8efNo8eLFujCqZdisLLON4XXThMwXsf3qYTWeQ8B27dqlxUwQBGE0gIW2YcMGvQRKzFqVmNWa6wRChubkpUuXjpAvYjt27KBnn32WBEEQyoH6+vrAOlM+s8333ntvI7+X4AdKxJpIREwQhDJl69at2sUFVK/mWtWCXMrvaSFDk1It1uIxmpIiYoIglCNPPPFE4KtXbrAWtCTxOOG/sAlLrAAhEwRBKEcQMbFt2zZ+Wq1akjV4kPCtseV4snv3bhIEQShnTpw4QSdPntSP/SB9SihrbDmv8OMf/5gEQRDKHW45Kv1aCmMMTcsleAEKJ2EWgiBUAgjMZ5Tjfykssmo8gbkmCIJQCcBXxmKmmpcLYZFV44lE7QuCUEkgZRIoIatKSDK4IAiViJnznSBBEIQKR4RMEISKZyIJo0J1dbUuAE5LsxcmvF42BgYG9HLGjPhegmzfh/dRXzHqNEF9+A6ut7OzM3Jd87dkqg8F+4D3gzAOaWtrc1EWL17sqqdFKRNueLM7teXj7vSf3+9e9/wa99ov3OUm3lZVtPoruTQ0NLj9/f1umCNHjrgLFy4ctn53d7ebjebmZl1yQYmE9fcxeFysOlGU2LhNTU3Dth3bh9fD66MuZunSpZH1tra26nVqamrK4vhKGblSX1+vtau9vb2l+BbZ26rJ/bddNOGt3yeH+inx1uk0efl8mrTsJrr874fpja8fovGKumBJiYO2HLZs2UJHjx7Vr6sLlVavXk1KzOj222+3WilYP8riiLJqUCesGnWxU29vb9p7cawXW7351rl//35SQq2tq+3bt+ttx/Nly5bpfYI6a2trrZ/dtGkTLVq0iAQhkqJbZPc1uHQy6SZOvuped/wL7vTj96cVWGiTVswfFQUfzQJriy0Qm+UCi4LfN19niyyTtRNVlHhktWjCxbTIilWnEiL9mY6ODm2Zme9hu2CNgrVr16a9bgLr0Fa3WGTjt5gWWfGd/e9ZqhdJmkkXE/XqG2em3nNU78KfTKdr/+Uuum7fGppw45tpvABrDGzcuNHq84GFAwsIlgkstLECtkcJlH7c2Ng4zGrDvsDrgPeRCSw3fAbvwYITBBvFF7LpVcFDiNkFFjPH0TKKJQTNedt0mvq91XTtv96txK2KxjosTnv27IlcByKH5lUcp3mlwOKzd+/eyO2CgEOw4LQPixVEDPsFoIkpCDZKHn7BYpakGd54tBCxhBI1B/ahSxPvuYmmdq6hyQ3vJ2f6tTQW4V46XMiZ/Ei4oGGZjSUhYwHP1DsJjh07ppc2q2vz5s3686iLrTtBMBmR8AvdzHTqaYqzlSY4A9oycxxPzHiw7clrb6WJfzefrnz1EF155uc0luBQg0LCA2CN2D7f1dWlxa9cibvtLN5R4SawVNEZgiYmrNqxJPZC4YxYHBnE7JJbT1PdbcoiO6tEzGtiwirTVpp67rxd9XB+6W6a1Ph+euMzz9LQ4VM0Fsh0MaPHLgwuVO7RZJYvX05RlLOQFQsIF3puIWQtLS26d1cQmBENiNWWWbKOpiS26dAM4ASCRr6lpsrbq+jaZ1Yqy+xndOUrh8g9NUiVTCZrw+bgxvphIZs7d+64t0Ig+gjX4CYmmpyCAEY8RUlbZkN1eslNS9dxA9+Z50fzmp0TPz6fpvyojiY9cocWt0rHFiUPgeKSqSOgUombdbBgwQK9DAt4GI41ww0gTtaDMD4YlVzLpDuTXr9ap3sztZiRE3QEuL6wuZ59pv9PXPMXdM3ue2nCvfOpEmEnv61XjtOTUAYHK9vytMFOflhSmYiTjgQgdOjFxL5EE1MQwKgljUPMLl2GmF3vC5fXtPRwdBPT9f9pPZtTRZO+ejdd85M6SnzoHVRpwL8DGhoaaDwBIYOIozkYZUHhPY76z2aRATQpsS4+l00ghfHBqI5+4ULMXl+jHl2vhUtbZTo0ww06AzwfmhM0PZ3ZVTR5xwqa9PW79eNKARcfLuiamprIEII5c+bQWMOMA+vo6BgmZnjOlhWvF6dObmLmktQujF1GffQLT8zq6Jqp25SGoQPAt8v8JmcysNOcIFQDzc/EJ95Fk1UZav85DT1+kNyXyrtZhosPPW3IOUQoBSwJhE6AqqoqLXAca2aLuYoKvwDlHoIBEYfFhTxNbD+sLsSNQbjRG4vthojlsg3YR7Byx5uFK9gpi2F83ORMeuOiErNpSswSA16z0m9ahuPNgqBav6dzwifm04TbZtPVx1+gobbyjj/DBYzkZ/S+4aI2U5HYcmHLLUym8AtQ7iEYEGqID5z02BbeHryGJPJ8fj/3YorTX3CQdIkH5nTkBbF9H9F7l1I+OIl+uua6beRM9C5k7s0kM+YskbLMAvx+AVhlsM7KXdAYvgDH21haMoaYUAzq6+tp8eLFMHZay2qEWG2ZvVanlyxgOlDWCMsATljJ8BSap3xmE7/xIZq0c0VF+M+4t3K8XczY3vG43ULpKLuhrrWYnVtDyeQMbYElue+Sm5dsmfndnBhxBsKm8zddz5+W+PA7aPKxOiVqldUhIAhCfpTlmP0Qs8vn6tQD1ZuZSBhhGRSIVcpX5gSvO4bFBmGboDoDJv3nvTThH24hQRDGLmU7+Yg7pMRsYI1apkbNMIUrbV220MgTNP3PFzxYZJMe/xua/NM63TEgCMLYo6xnUdJi1r+GKDkz9IZlZV/frEKXdD1B+8aHad2Od1L1W0kQhDFE2U8Hp8XsVWWZXU0faTa1gr9wU1ZYKE0g6AxYf/YgffmGX1F3R4JaHnKo+o9JEIQxQEXMawkxu3IWYpaK4nZ4yAzusfR7OP03g9d53Q0Dh2jD2dTEJzUfdugnrQ41fcohQRAqm4qZoNcTszq91M9dL8YssMJs+Bq1vv9gmoj5FdCM61xqriXqfsahmrtJEIQKpaJmGtdi9qpnmTl+aD+PZxbElhlWGNCW2OChIGzDdXkwRyeIS6t+C1HLAw4d+Q9HPxYEobKouJnG2TKb9KZvkjOhP/UGNyX9JbICHho8TOshYi5bbqlQWrbkUvacSwv/zKHuNodanyPa+IRLPa/QiMMzcSM3sbraSyL3Akh7Y48OIQjjjYoTMsCWWSBmLgUhF46fXA4rbL0SMtY2x0mg+zLkOzO1T7dT9eur73Ro9Qcc2rjDE7RSA/FC7uHq1fdpAcs0ogMnlW/f/kTWCT2EFOFhhKKS80sNH+u4cBZEnBsYzh1zvDt8diwO1mmjIoUMDBMzBiJ2XjUnzx/2ks7J1y2vTenbZK6XdO4aueicAuW6/sAbLjXdp3xndxLdfj+VzDrD6A3NzU2xh6PBxYgEbBScpI2N62QijhjU1KzWifoMRGy0hKyl5duUKyy8Gzc+Enm8ly9fljZ0OtYbL0JWUT6yMIHPzO8AgL9sw2uHacO5w2nrBXnnnAXgv5rWXxlEbjjBEEJgzh85tO9LjuoYoKICQdq/fx9t3rwp7zG1cGfv7v61ddx/YWzBN7AjR35Ca9fK0EVhKlrIAIsZqSVEbP25g/4w2cY6oWdhP5npW0tfz3th7ltcbZkVC5j/OCEzzSiOZgGaEzx5baYEa1h0KMLYBzc9jE0nN690KrZpaQIx+8dvv4keeN9RcmY5nqvLz71EVH/aun5zknMzPS1z0ZL0RtswEtG5CQqKZZFBxGCJ2awwiBZm5N6zxz4rNz6Lu/GSJUvS/D2eL2QvCZUJmn+2GxUPd2S74eHGNTg4oCz6LSSMESFrfPJpamh/jvr23kqzvnCQJv7hRa8tmWSxcoMOAdJ2lptmgDm+7cUNT2eYdeZQ57HCnf4Qn46O3cNELDWoYuaTEpZZT
2U2trgcnMnw+3sizd0hvZgWzZctXM/rrzONtAqustXW7DIdEY6Bp2dj+tC6Qmaunp9Lp9e+nq31TA9Eyuyi96P9hg82mhM1NyRnp5967zarnsvMYFQwssfBoprC8Fi26Oac7Kz4DQWtsbBQRGwfw8eYJbBjcEMVf5lHRQrZOWWLrnno6zZF/9fQ0Or3hVhpSopZy65MfS2YRK0p91vFNMW5uDirDrvaLCMGggoGj1iZiEKJ8ex0hfiJi44e1axuHnStwMwgVLGTrnnxKF0Oh9OuQIlhmfQ/fpi0zxneBBWLF0zalLDHGUQLmaPGau8ql1u9TUWhqenjYa4WImDA+wfwGJuF5UscrFSlkn3nqKfrM00+lsoxS2UaaQMya/lovvZQko4cyCH510ywyAOFatAbNSeW7eo2Kgs0aw2QbImJCriDDw0Smw/OoOGf//U97IgaSlOpddP28S9+v74vZFOprvo1mPfyC7gBwfec/GeuwRdZ1VFlhLcoXVoKWGiL2wyCwcbThmc/NSVCKkQbFPW18kRWrXvxOswev1NH5tv2DbRjNG9CMGcUbut3cPqTDcSrcaG9jPlSUkN3/9JN0/1NPBhFeZoBrEKkfBIl5CzQvTz9yG70ZYvami7onE/Bq3a+49Mi3lIX0bOG9kjZs3ee4+EbzRMHvQVM3Kh0qThR5pnqj4uNQF3rZ0DzKpV5YtLgZ2OpFPd6cmNuHdaasWPGxvMQTdXjT1i2z7h/UCcc7vnOkWbJkadrzfM4jbB8ySpDtEGXR2bYR64ZDh7Ae9nOc78RnTXCO1db+PRWDimla/pMSMRTd80iGr8tPKQpCJ7xFCrXekBazW/3eTO/t/vPKKvqWSzfXQsSoZNh8GIgVGw04mBInlGkxhck1ihz1IKyE642CwwiwHi6ibPDJj5SeqHp5pnKsU10917cuvJJPswsXOLY700WOY4rvxL4cSfC9EFeTXC1ShHDwcc20f3gbTeGCxYZz19zHPMFyNnBjMD+Hsnfv96hYVIRF9tlnlCWmCo8/lvJp+fLlW2JQ5VQoBb/nPR/qm0Z9j6pm5voX6Dv/dYEaN7k0cJ5KTtg3Bo4ejR/LEfdECRNudvHdNBfnMAtfVZU3E7gNFhvbdkbB4jNnTnXR6oXwFgoutlwyJCAGCxcu0J02pQbHDTeLMBg8IC44l1pbWygXcAPBccA2QsjQUx7OKsB+aG7emKWe9N7VYueBlr2QffaZdi1kru//MrLAKaFeSwbC5qYi88l7P+wP+2HvBdpy3wQ6dKY0zUgbNp9GLgGMDQ2fzmjlRIE7pylkECSbiOGEwrr4TQsWLEjzCTGZoshxcdnEBt997NixoF6bBYh6sY7thI4SMbNehB7ks29sQAhtIobvQVMYS/z+8Mzm+H7sW8T05QvEMAp8F7bTZsGiwygXi2zTpq8Me41HyOjt7dXbx8cq/fctDMQK6+M7zXVgxeLciDqvbZ1dUTewvMFM4yiLFy/mVldhZfs+l04mi1I+98873Vff/RH3DMq7Pur2zf+IKh91T89f5v7upmXuK/NUuWm5Wq5wX75xufsblBuWu///5yvcU7p8zH3pnR9zD869y/2rqbOKs305FnUCKKMwmVbUQY39eXVBD/t8nILPcR3qRBr2fn//WVedjNbvVBe0dX11oqetp+7Mw9br7v61tV5s8+bNm0pSL96z7QNzfWWJRO4fFFsdOHa2/ROuC0Vd7LGOJ35vPsfTtj/C51H4uGEd832cB+b5hOMR3vcoynIbtj/M44T9Gv49Smhjn8Oo2/a9uZb6+nqtXe3t7S1l6yP73Hfb6XPPtGm3vucTo1Q3o78tniHmTf+W8pOxw9+lc8nLtPnsSbq79wd0+GIfjQYDA4PDXhvp2J9wDBvunMgmiLqb484bvmPaosjDVgIH+NrqxXsI6MwWne7553KrF9tSSOeJzWKAhRWVbWFz8tviBEsFHOz5xCDCgsPn5s79U30ccDxsVhQstLAT3uy0sg2BFE6fYsI9zfz5YqdVlWXT8oHvttEDu56kpHbsp/u6gjHE0vxlHI3vvYGXvnX2RfrKmV8oMbtCo4ntZOORX+MAkz/OCcsJxmHCAwoCiFS2OiFm4aabN3aaJ3BwOudTLy6ecPPMjE63/d5sY67hosCFF+4Vi0s4PAYXmk3E4GOKaupz07mUeY+oGwKUzR+VDb6p8CCP5vnohckcC0ZdMW+6aAKzGwC+OXM/4DFKWOBsnUWlCD0qOyH7/C5lie1qIwhSwnFSQ1SzbyzhCxg788mPJfM8/cryOkNf7vsFHVLLcsDW/Y8LOW5uJXLs4tDR0ZHWozU46FmCYScriBs2gIvGPFk57gjbFL6YObQibr1mj58pAtg34XrjOIX5Lp9Px0h4W8zoedQHAc/Uy8ejluRLNpHG/u7qOhA5SkauZAuTAdnCVmDdwedm7hOcf2EhCx/PUgWCl5WQfV4JGIobOOl9M8vTMmI1038dDob1OgFOXb5IDS8foUMXykPAGJtzlOO3inn3Dlt5fCKGrZtczPrOzq5hr+GujLrhFDaBAz4utnrxO1FveDtyqRdiEtXEicLWoYCg0GwXOx/XbCNXxAHWZCkDe03i9szGcX/ghmT2YGLfc4cAsFntufSy5kLZ+Mge3N1GD3a0+aNTuGkzhzv8mNygWclLNB2/pCyw9/zf82UnYkz4bl3sUQtwsoRPPJtY5EouQtvf3x973aixt7xl+qzyo5EUnykmjodcgp8JgaAjJUDFINfwkmyEeypxDE3/5urVNWnrlzIToyyE7MHdO3Xh/EffzvIFLJkaesehNKf+N8+8SDf/8nn64ulfUjljGzMKzZVcYq8yEY7rYWvBRi5NL9u6ts6LXCn0N0SBeLdiEDXoJRzlM2den2Z1VAocjBwGoszbhQl6sMTzcHK6DQ5NMeGmpBcsu2zYd5WKUReyDUrANihLLAE3l5OapzIQLW5OOtxz6WrL6+Zf/oDW//Y4nRsaXWd+HNhJa2JL98gHWGLhXj7TpxS+4HKJeLc1L7g+dEKY5BLPZauXLa+wBRZuwmYil04UBlZClCix9cUXdyVZX2FsLQD09kKUTXcD3wThm42zvWG/KDv9C/Gh5sOoCtmGjp20fs/OtJErPIvMCLkILDNX+8E++uJh+ogqL6nHlQTM8LCTM5+oeJOoaG+zVyg8BLbXU7WM4hD2N5mWXrjpautmjwI9fyammHR1daa9Z7sobNia13GxNV8RfoHmYyVaXzbCNwTulYwi7vHkeSVM0AscDkeJY+EVwqgJ2UNKxB7a851ApILYMO0fc8iMFRscukoP/uYEvfvEPnrhtVepEsHFAJ9K+KLgMfzj5B6aoGlqE8FwCITNuY8ew2zi6U05F23p2XrQkO+YzdrD7x7uz+sMHtvu2raI9DD5TLHGRPU4ZhMw5CxiXxZqVY8EuboE4uxzJhxOYR+2agwK2UPKCnto73f8Z26wdByjKUle0/Kxl/+X3nV8H32jr5sqHdy9EBMVhnMPWdCiLgzuJIiaRg7122KMopq1UWIGsbGdyOYJa2suoz5c3Jnqxe828Zpvmetly9NWrzdPZEtOTdswNh8mBCqqQ8bMW8U62WbEKgd6e3vSnuP32ixY3p+5TCKczbobibH3Rjz84mElYFrE/Bix1GxFqbHE4CvrOv8q1ff8jHovX6KxBA4qCMfgAG5GqfMoGBOKY6NsOZAmHO1tA+IGJ6x54qIuzIkJy6qrq0vfsZEXivVsF6Ut2BXNZTQ/zd/F9WI7vZzIQT9/b4n1wrHVy7/XrBcXFj6PiwYxVQD1ZhL+uHBAbbiZDjGD+HrDDvVGfqd3I/q2boqWK3AxYFtMIMDh45Tv/sQ+imraj8jYeyOZa9n0+Hb36l9+wL3yvjt1ufzeO9033vtB93WU93zQvXTLB93/vulWd/EfXF+c31LGJVOOYK5FXYBZc9cK+T7kFpaiXuQGRtWL3EXk9xWyX3LJtUSx5Zjmm/eYaX9l+p2FlGy5ljhPctmu8P7PdLxw/tmOl20/F6uMSq5l094d2hoLZjLiQp5fbED1Pn721C/ofccP0oHzZ2msAysEd/BCuqRhScApbfO92b4vnxmX0MzLlF2Q7wQq+N2ZUm3wO3PJofQs2F4qBFuOaTY4LKPUTadiAKsz7vHHfsglW8HmEgCldvIzIyJkELGm7+1QwpUuquzIf/TlF+mGn/6Qvva7wk7ESgQXDwQtl5PMG73V+1yu08hBHPBd2S48vkCRkxenXt6GOPXGnf6Of2+mHE4OkSjWmGB8PLJdgHwTqaQJZHiwgGz7k28yPEQ5l2w3S4wvZ1LqkAsTB6YZHmzdupUOHDhABfO1DqK/TXXvQ8AgZF6EhecX83xhCeo6d5Y+9eJx6nljbPnBCoHDCJAKBF9FVVWVzpv0TqbenFKMsoHvge8K3zNnzhw/Qb234Jw+z5G8QG8Lfn+x6vX8ZAv0b8U+QXKzWWd3d3daLFmhsV/mseDvNJOqKx3PJ7skeM7blc8xsoUS1dbWllTIVNOSlEsMrbzW4gvZ51Wv1H2eUxEi1qxEDOBLvIEOXdo/2E8bT/1aCVn8tBZByATEWPlo0l6DZVUp1lKlg5CLcAhMqfe/KWTFb1r+wGtXwwpjEWMGrlyhml+doDuO/4+ImJARM9QkTi9aOFyAm0XCyBAOgB3p6Q6LH37xo05a+ul7qOnC+SDEYvDqVdry25do829P0cDV8k8pEkYPiBZyR80wADzPNpR0+EIq5njwQmbsQ1mPQMiFQUniyDqf76A7qmZS9TVT9PM9Z08rAbtKgpANWFLsH2RgmbFTPwxPkDJSw8UIwwmnnKG3c6St4ZIFxHYOoukozUchd9D7iWBNU8wwcgOsNAR28hhlUQGctqGYhdJgyxDIpSe9WFTcTOPC2Ad3c8TGhYeuhtWVbRw3fLZYk74K2QkPLFDKMcfCTJ06NXgMZ38PHkybNo0EoVzgeLNcmij5BucK+YEbS3hggVKOORbG1KyEcsbroBHEyQhCOcH5ozyvZBTsPyt0NiUhNyBiZsAsjtdIBcCC2bNn62Uymex1du7cudlxnIa+vr5hSaWCUC7wdGTmZLbexBxjIzhVyA0YXo899ph+rPTr9omJRGKPssoaZs2aRfPmzaMTJ06QIJQbPCO2hFUIAIGwPgMrV67sTOAPNy/vueceEgRBKGfgG7vlllv0Y2WN6TsbR/br/tIbb7xRW2WCIAjlyl133UVoQfro3gUtZJcvX95Mfu9lXV2duZIgCELZAEOLW47IsVQtyh481kJWW1s7oF7Ug05BxNatWyfhGIIglBVw8Bupaj3kW2Mgbf6itra2tWqhB1VHL+ajjz6ql4IgCKMJnPuf/OQntYEFn77qpFzE1hhwwh/Yu
2XNns7LOmvj5rl279PA+ImiCIIw03JSE/x74HZO3r1q1Km0UUsf24fb29hr1AYhZNb8GMUNoxpkzZ0TUBEEoGXBvoRmJnkkWMJ+jyshaYVpijBNVmRIzzJLQrB6uJkEQhFHCt8K2KCusOWodJ0sdLGjLlRIuU8ulJAiCUGJ8P9hRtdw7ZcqU1hUrVmQcfzurkIVRPrSF6gvKf2plQRAqlR5b8zETvwe3axMCtqIVNAAAAABJRU5ErkJggg==",alt:"Get it on Google Play",description:"Get it on Google Play"}},a="https://prograd.onelink.me/kljz/vsr4wytd",s=function(e){var t=e.variant,r=e.className,s=e.href,l=void 0===s?a:s,u=e.onClick,c=o[t],d=c.logo,f=c.alt,p=c.description;return n.createElement("a",{href:l,target:"_blank",rel:"noopener noreferrer",onClick:u,className:(0,i.m)("inline-block h-12",r)},n.createElement("img",{src:d,alt:f,className:"h-full w-full"}),n.createElement("span",{className:"sr-only"},p))}},71453:function(e,t,r){"use strict";var n=r(27378),i=r(98773),o=r(74857),a=r(14252),s=["variant","kind","children","className","loading"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(null,arguments)}var u=function(e){return n.createElement("svg",e,n.createElement("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),n.createElement("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}))};u.defaultProps={viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var c={primary:"bg-primary text-white hover:bg-primary/80",secondary:"bg-secondary-800 text-white hover:bg-secondary-600",tert
2iary:"bg-white border border-secondary-900 hover:bg-secondary-100",outlined:"text-white",danger:"bg-danger text-white hover:bg-danger/80"},d={primary:"bg-primary",secondary:"bg-secondary-800",tertiary:"bg-white",outlined:"bg-white",danger:"bg-white"},f={button:"button",submit:o.Submit,link:a.$X,externalLink:"a"};t.Z=function(e){var t=e.variant,r=e.kind,o=e.children,a=e.className,p=e.loading,h=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({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,s),m=f[r];return n.createElement(m,l({className:(0,i.m)(c[t],p&&"pointer-events-none","relative w-full cursor-pointer rounded-lg border py-2 text-center font-bold transition-all disabled:pointer-events-none disabled:border-none disabled:bg-lilyGrey disabled:text-[#A6A9A0] tablet:py-3",a)},h),o,p&&n.createElement("div",{className:(0,i.m)(d[t],"absolute inset-0 flex h-full w-full items-center justify-center rounded-lg")},n.createElement(u,{className:"h-5 w-5 animate-spin fill-primary text-white/80","data-testid":"spinner"})))}},7740:function(e,t,r){"use strict";var n=r(27378),i=r(98773),o=r(94717),a=["className"],s=["className"],l=["className","hasHeader"],u=["className"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(null,arguments)}function d(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({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var f=n.forwardRef(function(e,t){var r=e.className,s=d(e,a);return n.createElement(o.s.Provider,{value:{}},n.createElement("div",c({ref:t,className:(0,i.m)("overflow-hidden rounded-xl border border-lilyGrey bg-white",r)},s)))}),p=n.forwardRef(function(e,t){var r=e.className,a=d(e,s);return(0,o.y)({name:"Card"}),n.createElement("div",c({ref:t,className:(0,i.m)("flex flex-col space-y-1.5 p-4",r)},a))}),h=n.forwardRef(function(e,t){var r=e.className,a=e.hasHeader,s=d(e,l);return(0,o.y)({name:"Card"}),n.createElement("div",c({ref:t,className:(0,i.m)("p-4",a&&"pt-0",r)},s))}),m=n.forwardRef(function(e,t){var r=e.className,a=d(e,u);return(0,o.y)({name:"Card"}),n.createElement("div",c({ref:t,className:(0,i.m)("flex items-center p-4 pt-0",r)},a))});f.Header=p,f.Content=h,f.Footer=m,f.displayName="Card",f.Header.displayName="CardHeader",f.Content.displayName="CardContent",f.Footer.displayName="CardFooter",t.Z=f},9243:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(27378);function i({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 3v1.5M3 21v-6m0 0 2.77-.693a9 9 0 0 1 6.208.682l.108.054a9 9 0 0 0 6.086.71l3.114-.732a48.524 48.524 0 0 1-.005-10.499l-3.11.732a9 9 0 0 1-6.085-.711l-.108-.054a9 9 0 0 0-6.208-.682L3 4.5M3 15V4.5"}))}var o=n.forwardRef(i),a=r(98773),s=r(27090),l=r(4387),u=function(e){var t=e.children,r=e.className;return l.rY?n.createElement("button",{onClick:l.p7,className:(0,a.m)("flex items-center gap-1 rounded-lg bg-[#EEEFEF] p-[6px] text-xs text-slateGrey",r)},n.createElement(o,{className:"h-3 w-3 text-slateGrey"}),t):n.createElement("a",{href:"mailto:".concat(s.Dt.UK),className:(0,a.m)("flex items-center gap-1 rounded-lg bg-[#EEEFEF] p-[6px] text-xs text-slateGrey",r)},n.createElement(o,{className:"h-3 w-3 text-slateGrey"}),t)}},77967:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(27378),i=r(98773),o=r.p+"static/media/error.b6f02bfc.png",a=function(e){var t=e.message,r=void 0===t?"Something went wrong":t,a=e.className;return n.createElement("div",{className:(0,i.m)("mx-auto my-4 flex max-w-xs flex-col items-center gap-3 text-center",a)},n.createElement("img",{src:o,alt:""}),n.createElement("p",{className:"text-sm"},"Error: ",r))}},53646:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}}),r(74413),r(57637);var n=r(27378),i=r(98773),o=r(74857),a=r(46942),s=["labelText","lightswitch","className"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
2).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(null,arguments)}var u=function(e){var t=e.labelText,r=e.lightswitch,u=void 0!==r&&r,c=e.className,d=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({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,s);return u?n.createElement(o.Label,{name:d.name,className:(0,i.m)("text-md flex flex-col gap-2 font-bold",c)},t,n.createElement("div",{className:"relative mt-2 inline-flex cursor-pointer items-center"},n.createElement(o.CheckboxField,l({className:"peer sr-only"},d)),n.createElement("div",{className:"peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 peer-checked:bg-blue-600 peer flex h-[60px] rounded-md bg-gray-200 px-2 ring-primary/50 after:absolute after:left-[8px] after:top-[8px] after:h-11 after:w-[162px] after:rounded-md after:bg-primary after:transition-all after:content-[''] peer-checked:after:translate-x-full peer-checked:after:border-white peer-focus:outline-none peer-focus:ring-2 dark:border-gray-600 dark:bg-gray-200 peer-checked:[&>.no]:text-black peer-checked:[&>.yes]:text-white"},n.createElement("span",{className:"no relative z-10 flex w-[162px] items-center justify-center text-white"},"No"),n.createElement("span",{className:"yes relative z-10 flex w-[162px] items-center justify-center text-black"},"Yes")))):n.createElement("div",{className:(0,i.m)("flex items-center gap-2",c)},n.createElement(o.CheckboxField,l({},d,{className:"h-5 w-5 rounded border-gray-300 text-primary focus:ring-primary"})),n.createElement(a.Z,{name:d.name,text:t,errorClassName:"text-error-default text-sm",className:"mb-0"}))},c=r(66205),d=r(2383),f=r(20984),p=r(59794);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(null,arguments)}var m=function(e){var t=e.inputs;return n.createElement(n.Fragment,null,t.map(function(e,t){return n.createElement(n.Fragment,{key:"form-input-".concat(e.name,"-").concat(t)},n.createElement(v,e))}))},v=function(e){switch(e.input){case"select":return e.multiple?n.createElement(d.Z,e):n.createElement(p.Z,e);case"checkbox":return n.createElement(u,e);case"range":return n.createElement(f.Z,e);default:return n.createElement(c.Z,h({isCurrencyInput:"currency"===e.input},e,{type:"currency"===e.input?"number":e.input}))}};m.Input=v;var g=m},66547:function(e,t,r){"use strict";var n=r(27378),i=r(98773),o=function(e){return n.createElement("svg",e,n.createElement("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),n.createElement("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}))};o.defaultProps={viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.Z=function(e){var t=e.className,r=e.text;return r?n.createElement("div",{className:(0,i.m)("flex flex-col items-center",t)},n.createElement(o,{className:"mb-4 h-20 w-20 animate-spin fill-primary text-gray-200/80"}),r&&n.createElement("p",{className:"animate-bounce"},r)):n.createElement(o,{className:(0,i.m)("h-20 w-20 animate-spin fill-primary text-gray-200/80",t)})}},88631:function(e,t,r){"use strict";r(74413),r(57637);var n=r(27378),i=r(72099),o=r(25086),a=r(98773),s=r(71453),l=r(7740),u=r(1461);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
2).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(null,arguments)}var d=function(e){var t=e.children,r=e.className;return n.createElement(u.g,null,n.createElement("div",{className:(0,a.m)("relative flex h-full min-h-screen flex-col items-center justify-center overflow-hidden",r)},t))};d.Background=function(e){var t=e.children,r=e.className;return n.createElement("div",{className:(0,a.m)("absolute left-1/2 top-1/2 z-0 w-full -translate-x-1/2 -translate-y-1/2",r)},t)},d.Hero=function(e){var t=e.children,r=e.className,o=(0,u.l)(),s=o.controls,l=o.completeAnimation,c=o.timeline;return(0,n.useEffect)(function(){s.hero.start({opacity:1,scale:1,y:0,translateY:0,transition:{delay:c.hero.appear,scale:{type:"spring"},y:{delay:c.hero.slideUp,type:"spring"},translateY:{delay:c.hero.slideUp,type:"spring"}}})},[s.hero,c.hero.appear,c.hero.slideUp]),n.createElement(i.E.header,{initial:{opacity:0,scale:0,y:"50vh",translateY:"-50%"},animate:s.hero,className:(0,a.m)("flex min-h-[310px] w-full grow flex-col items-center justify-center gap-3 px-4 py-10","text-center font-bold text-black",r),onAnimationComplete:function(){return l("hero")}},t)},d.Content=function(e){var t=e.children,r=e.className,o=(0,u.l)(),s=o.controls,l=o.completed,c=o.completeAnimation;return(0,n.useEffect)(function(){l.hero&&s.content.start({opacity:1,y:0,transition:{duration:.3}})},[s.content,l.hero]),n.createElement(i.E.section,{initial:{opacity:0,y:"100%"},animate:s.content,className:(0,a.m)("mx-auto grid w-full max-w-7xl",r),onAnimationComplete:function(){return c("content")}},t)},d.Footer=function(e){var t=e.children,r=e.className,o=(0,u.l)(),s=o.controls,l=o.completed,c=o.completeAnimation;return(0,n.useEffect)(function(){l.content&&s.footer.start({opacity:1,y:0,transition:{duration:.3}})},[s.footer,l.content]),n.createElement(i.E.footer,{initial:{opacity:0,y:"100%"},animate:s.footer,className:(0,a.m)("fixed bottom-0 flex w-full items-center justify-center bg-white p-4 shadow-[0px_-6px_7.1px_3px_rgba(0,_0,_0,_0.10)] laptop:p-8",r),onAnimationComplete:function(){return c("footer")}},n.createElement("div",{className:"flex w-full max-w-lg items-center justify-between gap-4"},t))},d.Card=function(e){var t=e.children,r=e.className;return n.createElement(l.Z,{className:(0,a.m)("h-full rounded-b-none rounded-t-3xl border-none pb-20 pt-6",r)},n.createElement(l.Z.Content,{className:"h-full p-0"},t))},d.RewardGraphic=function(e){var t=e.children,r=e.className,o=(0,u.l)().timeline;return n.createElement(i.E.div,{initial:{scale:1.4},animate:{scale:1,transition:{delay:o.hero.slideUp}},className:(0,a.m)("mx-auto",r)},t)},d.RewardValue=function(e){var t=e.children,r=e.className,i=e.countUpAnimation,s=void 0!==i&&i,l=e.innerClassName,u=e.value,c=e.valueClassName;return n.createElement("div",{className:(0,a.m)("flex items-center gap-1 text-left uppercase leading-none",r)},n.createElement("span",{className:(0,a.m)("text-7xl",c)},s?n.createElement(o.ZP,{end:Number(u),duration:1,delay:.5,startVal:1}):u),n.createElement("span",{className:(0,a.m)("text-2xl",l)},t))},d.Buttons=function(e){var t=e.buttons,r=void 0===t?[{variant:"secondary",kind:"link",to:"/",children:"Keep earning ð¸"}]:t,i=e.queryParams;return n.createElement(n.Fragment,null,r.map(function(e,t){return"externalLink"!==e.kind&&"link"!==e.kind||(e.href=e.href&&i?"".concat(e.href,"?").concat(i.toString()):void 0),n.createElement(s.Z,c({key:t},e,{className:(0,a.m)(null==e?void 0:e.className,"outlined"===(null==e?void 0:e.variant)&&"border-none text-slateGrey")}))}))},t.Z=d},66248:function(e,t,r){"use strict";r.d(t,{I:function(){return s}});var n=r(27378),i=r(72099),o=r(98773),a=r(1461),s=function(e){var t=e.className,r=(0,a.l)().timeline;return n.createElement(i.E.div,{initial:{scale:1,y:0},animate:{scale:2,y:"-10vh",transition:{scale:{duration:2},y:{delay:r.hero.slideUp,duration:1}}},className:"h-[100vw] w-screen"},n.createElement(i.E.div,{initial:{rotate:0},animate:{rotate:360,transition:{duration:30,repeat:1/0,repeatType:"reverse"}},className:(0,o.m)("h-[100vw] w-screen bg-cover",t)}))}},1461:function(e,t,r){"use strict";r.d(t,{g:function(){return d},l:function(){return f}}),r(63517),r(74413),r(62285),r(20779);var n=r(27378),i=r(91988);function o(e){return o="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},o(e)}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 s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?a(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l(e,t,r){return(t=function(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var c=(0,n.createContext)(null),d=function(e){var t,r,o=e.children,a={hero:(0,i._)(),content:(0,i._)(),footer:(0,i._)()},d=(t=(0,n.useState)({hero:!1,content:!1,footer:!1}),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,r)||function(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=d[0],p=d[1],h=(0,n.useCallback)(function(e){return p(function(t){return s(s({},t),{},l({},e,!0))})},[]);return n.createElement(c.Provider,{value:{controls:a,completed:f,completeAnimation:h,timeline:{hero:{appear:.2,slideUp:1}}}},o)},f=function(){var e=(0,n.useContext)(c);if(!e)throw new Error("useMagicMomentAnimations must be used within MagicMomentAnimationProvider");return e}},13899:function(e,t,r){"use strict";var n=r(84186),i=r(38224),o=r(66691),a=r(82558),s=r(27378),l=r(98773),u=r(94717);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(null,arguments)}var d={enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"},f={enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-full scale-0",enterTo:"opacity-100 translate-y-0 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 scale-100",leaveTo:"opacity-0 translate-y-full scale-0"},p=function(){return(0,u.y)({name:"Modal.Root"})},h=(0,s.forwardRef)(function(e,t){var r=e.isOpen,a=e.onClose,c=e.children,d=e.className,f=e.dismissible,p=void 0===f||f,h=(0,s.useRef)(null),m=t||h,v=(0,n.dd)();return s.createElement(u.s.Provider,{value:{modal:v,focusRef:m}},s.createElement(i.u.Root,{show:void 0===r?v.visible:r,as:s.Fragment},s.createElement(o.V,{as:"div",className:(0,l.m)("relative z-50",d),onClose:function(){p&&(v.hide(),null==a||a())},initialFocus:m},c)))}),m=function(e){var t=e.children,r=e.className;return(0,u.y)({name:"Modal.Root"}),s.createElement("div",{className:"fixed inset-0 z-50 overflow-hidden"},s.createElement("div",{className:(0,l.m)("flex min-h-full items-end justify-center tablet:items-center tablet:p-0 laptop:justify-center",r)},t))},v=(0,s.forwardRef)(function(e,t){var r=e.children,n=e.className,a=e.animationProps,u=void 0===a?f:a,d=p(),h=d.modal,m=d.focusRef;return s.createElement(i.u.Child,c({as:s.Fragment},u,{afterLeave:function(){return h.remove()}}),s.createElement(o.V.Panel,{className:(0,l.m)("absolute transform bg-white p-6 pt-8 transition-all laptop:rounded-3xl laptop:pt-6","max-h-[calc(100vh-64px)] w-full max-w-3xl laptop:max-h-[90vh] laptop:min-h-[50vh]","no-scrollbar overflow-hidden overflow-y-auto",n)},s.createElement("div",{ref:t||m}),r))}),g=function(e){var t=e.animationProps,r=void 0===t?d:t,n=e.className;return p(),s.createElement(i.u.Child,c({as:s.Fragment},r),s.createElement("div",{className:(0,l.m)("fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity",n)}))},y=function(e){var t=e.onClick,r=e.className;return p(),s.createElement("div",{className:(0,l.m)("flex w-full justify-end",r)},s.createElement("button",{onClick:t,className:"flex items-center space-x-0 rounded-md bg-lightBlueGrey p-2 font-semibold text-slateGrey"},s.createElement(a.Z,{className:"h-5 w-5"}),s.createElement("span",{className:"sr-only"},"Close")))},b=function(e){var t=e.animationProps,r=e.children,n=e.isOpen,i=e.onClose;return s.createElement(h,{isOpen:n,onClose:i},s.createElement(g,null),s.createElement(m,null,s.createElement(v,{animationProps:t},s.createElement(y,{onClick:i}),r)))};b.Root=h,b.Layout=m,b.Panel=v,b.Backdrop=g,b.Close=y,t.Z=b},58155:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(27378),i=r(93076),o=r(98773),a=r(98889),s=r.p+"static/media/proconcierge.dea5f4ff.png",l=r(71453),u=r(32190),c=function(e){var t=e.children,r=e.className,c=(0,i.$G)().t;return n.createElement("div",{className:(0,o.m)("max-w-md text-center",r)},n.createElement("img",{src:s,alt:"Proconcierge",className:"mb-10"}),t||n.createElement(n.Fragment,null,n.createElement("h1",{className:"mb-4 text-2xl font-bold laptop:mb-6 laptop:text-3xl"},c((0,u.e)("404-page","title"))),n.createElement("p",{className:"mb-10 text-slateGrey"},c((0,u.e)("404-page","description")))),n.createElement(l.Z,{kind:"link",to:a.routes.home(),variant:"primary",className:"inline-block w-auto px-8 py-[14px]"},c((0,u.e)("404-page","cta"))))}},46285:function(e,t,r){"use strict";r(63517),r(74413),r(57637);var n=r(52186),i=r(7668),o=r(27378),a=r(68443),s=r(57856),l=r(98773);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}
2finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var d=function(e){var t=e.direction,r=e.onDark,a=e.disabled,s=e.onClick,u=e.testId,c="prev"===t?n.Z:i.Z;return o.createElement("button",{type:"button","data-testid":u,"aria-label":"prev"===t?"Previous offer":"Next offer",disabled:a,onClick:s,className:(0,l.m)("absolute top-1/2 z-10 hidden h-9 w-9 -translate-y-1/2 items-center justify-center rounded-full border-2 border-ebonyGrey shadow-md transition-opacity laptop:flex","prev"===t?"left-1":"right-1",r?"bg-white/90 text-ebonyGrey":"bg-white text-ebonyGrey",a&&"pointer-events-none opacity-0")},o.createElement(c,{className:"h-5 w-5"}))};t.Z=function(e){var t=e.items,r=e.renderItem,n=e.testId,i=void 0===n?"offer-carousel":n,c=e.paginationTestId,f=e.dotTestIdPrefix,p=e.onDark,h=void 0!==p&&p,m=e.className,v=(0,o.useRef)(null),g=(0,o.useRef)(null),y=u((0,o.useState)(359),2),b=y[0],w=y[1],x=u((0,o.useState)(0),2),E=x[0],k=x[1];(0,o.useEffect)(function(){var e=v.current;if(e){var t=function(){return w((t=e.clientWidth,Math.min(Math.max(t-40-28,0)||359,359)));var t};if(t(),"undefined"!=typeof ResizeObserver){var r=new ResizeObserver(t);return r.observe(e),function(){return r.disconnect()}}}},[]);var S=function(e){var t;return null===(t=g.current)||void 0===t?void 0:t.slideTo(e)};if(0===t.length)return null;var _=t.length>1;return o.createElement("div",{ref:v,className:(0,l.m)("relative",m),"data-testid":i},o.createElement(s.tq,{slidesPerView:"auto",spaceBetween:17,freeMode:{enabled:!0,sticky:!0},modules:[a.Rv],grabCursor:!0,onSwiper:function(e){g.current=e},onSlideChange:function(e){return k(e.activeIndex)},className:"!px-5"},t.map(function(e,t){return o.createElement(s.o5,{key:e.key,style:{width:b},className:"!h-auto"},r(e,t))})),_&&o.createElement(o.Fragment,null,o.createElement(d,{direction:"prev",onDark:h,disabled:0===E,onClick:function(){return S(E-1)},testId:"".concat(i,"-prev")}),o.createElement(d,{direction:"next",onDark:h,disabled:E>=t.length-1,onClick:function(){return S(E+1)},testId:"".concat(i,"-next")}),o.createElement("div",{"data-testid":null!=c?c:"".concat(i,"-pagination"),className:"mt-3.5 flex flex-row items-center justify-center gap-1.5"},t.map(function(e,t){return o.createElement("button",{key:e.key,type:"button","aria-label":"Go to offer ".concat(t+1),"aria-current":t===E,onClick:function(){return S(t)},"data-testid":"".concat(null!=f?f:"".concat(i,"-dot"),"-").concat(t),className:(0,l.m)("h-1.5 rounded-full transition-all",t===E?"w-4":"w-1.5",h?t===E?"bg-white":"bg-white/40":t===E?"bg-ebonyGrey":"bg-lilyGrey")})}))))}},292:function(e,t,r){"use strict";r.d(t,{Qq:function(){return O},ZP:function(){return P}});var n=r(31786),i=r(27378),o=r(79529),a=r(84186),s=(r(63517),r(74413),r(62285),r(20779),r(27688)),l=r(13899),u=r(14252),c=r(59619),d=r(54311),f=r(98773);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(null,arguments)}var h=function(e){return i.createElement("svg",p({width:"46",height:"56",viewBox:"0 0 814 1000","aria-hidden":"true"},e),i.createElement("path",{fill:"#20293A",d:"M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z"}))},m=function(e){return i.createElement("svg",p({width:"52",height:"56",viewBox:"0 0 24 24","aria-hidden":"true"},e),i.createElement("path",{fill:"#3DDC84",d:"M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8 2 8.67 2 9.5v7c0 .83.67 1.5 1.5 1.5S5 17.33 5 16.5v-7C5 8.67 4.33 8 3.5 8zm17 0c-.83 0-1.5.67-1.5 1.5v7c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5zm-4.97-5.84l1.3-1.3c.2-.2.2-.51 0-.71-.2-.2-.51-.2-.71 0l-1.48 1.48C13.85 1.23 12.95 1 12 1c-.96 0-1.86.23-2.66.63L7.85.15c-.2-.2-.51-.2-.71 0-.2.2-.2.51 0 .71l1.31 1.31C6.97 3.26 6 5.01 6 7h12c0-1.99-.97-3.75-2.47-4.84zM10 5H9V4h1v1zm5 0h-1V4h1v1z"}))},v=function(e){var t=e.label,r=e.glyph,n=e.selected,o=e.onSelect;return i.createElement("button",{type:"button",role:"radio","aria-checked":n,"aria-label":t,onClick:o,className:(0,f.m)("relative flex min-h-[136px] flex-1 cursor-pointer flex-col items-center justify-center gap-3.5 rounded-[14px] border-2 px-3.5 pb-5 pt-[22px] transition-[border-color,background-color,box-shadow] duration-150",n?"border-primary bg-[#E9FFFD] shadow-[0_0_0_4px_rgba(38,155,116,0.10)]":"border-platinumGrey bg-lightBlueGrey")},i.createElement("span",{"aria-hidden":"true",className:(0,f.m)("absolute right-3 top-3 flex h-[22px] w-[22px] items-center justify-center rounded-full border-2 transition-[background-color,border-color] duration-150",n?"border-primary bg-primary":"border-platinumGrey bg-transparent")},n&&i.createElement("span",{className:"text-[12px] font-bold leading-none text-white"},"â")),i.createElement("span",{className:"text-[15px] font-bold text-ebonyGrey"},t),r)},g=function(e){var t=e.selected,r=e.onSelect,n=e.onContinue,o=e.loading;return i.createElement("div",null,i.createElement("div",{className:"mb-[22px] flex gap-1.5"},i.createElement("div",{className:"h-1.5 flex-1 rounded-full bg-primary"}),i.createElement("div",{className:"h-1.5 flex-1 rounded-full bg-lilyGrey"})),i.createElement("h2",{className:"text-center text-[18px] font-bold leading-[1.25] tracking-[-0.01em] text-ebonyGrey"},"Let's personalise your offers"),i.createElement("p",{className:"mb-[18px] mt-6 text-center text-[16px] font-bold text-ebonyGrey"},"Which device do you use?"),i.createElement("fieldset",{disabled:o,className:"flex gap-[14px]",role:"radiogroup","aria-label":"Which device do you use?"},i.createElement(v,{label:"iOS",glyph:i.createElement(h,null),selected:"ios"===t,onSelect:function(){return r("ios")}}),i.createElement(v,{label:"Android",glyph:i.createElement(m,null),selected:"android"===t,onSelect:function(){return r("android")}})),i.createElement("button",{type:"button",onClick:n,disabled:o,className:"mt-5 w-full rounded-[10px] bg-primary p-[15px] text-[16px] font-bold text-white shadow-[0_6px_16px_rgba(38,155,116,0.30)] transition-opacity duration-150 hover:opacity-90 disabled:opacity-50"},o?"Savingâ¦":"Continue"))},y=r(13248),b=r(52431);function w(e){return w="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},w(e)}function x(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 E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?x(Object(r),!0).forEach(function(t){k(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function k(e,t,r){return(t=function(e){var t=function(e){if("object"!=w(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==w(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _(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)?_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var C=a.ZP.create(function(e){var t=e.surface,r=e.detectedPlatform,n=e.mixpanelAcquisition,o=(0,a.dd)(),f=o.visible,p=o.hide,h="mobile_web"===t&&null!=r,m=S((0,i.useState)(h?2:1),2),v=m[0],w=m[1],x=S((0,i.useState)(null!=r?r:"android"),2),k=x[0],_=x[1],C=E({surface:t},(0,d.J)(n)),O=(0,b.v)({onCompleted:function(){u.co.track("platform_selected",E(E({},C),{},{selected_platform:k,detection:h?"auto":"manual"})),w(2)},onError:function(e){console.error("Failed to persist selected platform",e)}}),P=S(O,2),T=P[0],A=P[1],I=A.loading,N=A.error;(0,i.useEffect)(function(){"mobile_web"===t&&null!=r?T({variables:{platform:r}}):u.co.track("platform_select_shown",C)},[]),(0,i.useEffect)(function(){2===v&&u.co.track("app_install_qr_shown",E(E({},C),{},{selected_platform:k}))},[v,k]);var R=(0,c.f)(s.Q,"undefined"!=typeof window?window.location.search:""),j=function(){T({variables:{platform:k}})},M=function(){u.co.track("app_install_dismissed",E(E({},C),{},{selected_platform:k})),p()};return i.createElement(l.Z.Root,{isOpen:f,onClose:M,dismissible:2===v},i.createElement(l.Z.Backdrop,{className:"bg-[rgba(32,41,58,0.46)]"}),i.createElement(l.Z.Layout,null,i.createElement(l.Z.Panel,{className:"max-w-none rounded-t-[20px] px-6 pb-6 pt-7 tablet:max-w-[392px] tablet:rounded-[20px] laptop:min-h-max laptop:rounded-[20px] laptop:pt-7"},2===v&&i.createElement(l.Z.Close,{onClick:M,className:"mb-4"}),N&&i.createElement("div",{role:"alert",className:"mb-4 text-center text-red-600"},i.createElement("p",null,"We couldnât save your platform. Please try again."),2===v&&i.createElement("button",{type:"button",disabled:I,onClick:j,className:"mt-2 underline"},"Retry")),1===v?i.createElement(g,{selected:k,onSelect:_,onContinue:j,loading:I}):i.createElement(y.Z,{surface:t,platform:k,installLink:R,onDismiss:M,onDownloadClick:function(){return u.co.track("app_install_link_clicked",E(E({},C),{},{selected_platform:k}))}}))))}),O={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PlatformGateQuery"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"selectedPlatform"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"userMixpanelAcquisition"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ua_source"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ua_campaign"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ua_medium"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ua_sub_id_1"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ua_sub_id_2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ua_sub_id_3"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:222,source:{body:"\n query PlatformGateQuery {\n user {\n id\n selectedPlatform\n }\n userMixpanelAcquisition {\n ua_source\n ua_campaign\n ua_medium\n ua_sub_id_1\n ua_sub_id_2\n ua_sub_id_3\n }\n }\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}}
vendor: 6,335 bytes, line 2
2,P=(0,n.createCell)({QUERY:O,Loading:function(){return i.createElement(i.Fragment,null)},Empty:function(){return i.createElement(i.Fragment,null)},Failure:function(){return i.createElement(i.Fragment,null)},Success:function(e){var t=e.user,r=e.userMixpanelAcquisition,n=(0,a.dd)(C),s=(0,i.useRef)(!1),l=(0,i.useMemo)(function(){return(0,o.u)("undefined"!=typeof navigator?navigator.userAgent:"")},[]);return(0,i.useEffect)(function(){null!=(null==t?void 0:t.selectedPlatform)||s.current||(s.current=!0,n.show({surface:l.surface,detectedPlatform:l.platform,mixpanelAcquisition:r}))},[t,r,n,l]),i.createElement(i.Fragment,null)},displayName:"PlatformGateCell"})},13248:function(e,t,r){"use strict";r.d(t,{Z:function(){return P}});var n,i=r(27378),o=Object.defineProperty,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,u=(e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c=(e,t)=>{for(var r in t||(t={}))s.call(t,r)&&u(e,r,t[r]);if(a)for(var r of a(t))l.call(t,r)&&u(e,r,t[r]);return e},d=(e,t)=>{var r={};for(var n in e)s.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&a)for(var n of a(e))t.indexOf(n)<0&&l.call(e,n)&&(r[n]=e[n]);return r};(e=>{const t=class t{constructor(e,r,n,o){if(this.version=e,this.errorCorrectionLevel=r,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(n);if(this.drawCodewords(s),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const r=this.getPenaltyScore();r<e&&(o=t,e=r),this.applyMask(t)}}i(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(r,n){const i=e.QrSegment.makeSegments(r);return t.encodeSegments(i,n)}static encodeBinary(r,n){const i=e.QrSegment.makeBytes(r);return t.encodeSegments([i],n)}static encodeSegments(e,n,o=1,s=40,l=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=s&&s<=t.MAX_VERSION)||l<-1||l>7)throw new RangeError("Invalid value");let c,d;for(c=o;;c++){const r=8*t.getNumDataCodewords(c,n),i=a.getTotalBits(e,c);if(i<=r){d=i;break}if(c>=s)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&d<=8*t.getNumDataCodewords(c,e)&&(n=e);let f=[];for(const t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(c),f);for(const e of t.getData())f.push(e)}i(f.length==d);const p=8*t.getNumDataCodewords(c,n);i(f.length<=p),r(0,Math.min(4,p-f.length),f),r(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.length<p;e^=253)r(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach((e,t)=>h[t>>>3]|=e<<7-(7&t)),new t(c,n,h,l)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let r=0;r<t;r++)for(let n=0;n<t;n++)0==r&&0==n||0==r&&n==t-1||r==t-1&&0==n||this.drawAlignmentPattern(e[r],e[n]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let r=t;for(let e=0;e<10;e++)r=r<<1^1335*(r>>>9);const o=21522^(t<<10|r);i(o>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,n(o,e));this.setFunctionModule(8,7,n(o,6)),this.setFunctionModule(8,8,n(o,7)),this.setFunctionModule(7,8,n(o,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,n(o,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,n(o,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,n(o,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){const r=n(t,e),i=this.size-11+e%3,o=Math.floor(e/3);this.setFunctionModule(i,o,r),this.setFunctionModule(o,i,r)}}drawFinderPattern(e,t){for(let r=-4;r<=4;r++)for(let n=-4;n<=4;n++){const i=Math.max(Math.abs(n),Math.abs(r)),o=e+n,a=t+r;0<=o&&o<this.size&&0<=a&&a<this.size&&this.setFunctionModule(o,a,2!=i&&4!=i)}}drawAlignmentPattern(e,t){for(let r=-2;r<=2;r++)for(let n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,1!=Math.max(Math.abs(n),Math.abs(r)))}setFunctionModule(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0}addEccAndInterleave(e){const r=this.version,n=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(r,n))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][r],a=t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][r],s=Math.floor(t.getNumRawDataModules(r)/8),l=o-s%o,u=Math.floor(s/o);let c=[];const d=t.reedSolomonComputeDivisor(a);for(let r=0,n=0;r<o;r++){let i=e.slice(n,n+u-a+(r<l?0:1));n+=i.length;const o=t.reedSolomonComputeRemainder(i,d);r<l&&i.push(0),c.push(i.concat(o))}let f=[];for(let e=0;e<c[0].length;e++)c.forEach((t,r)=>{(e!=u-a||r>=l)&&f.push(t[e])});return i(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let r=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let i=0;i<this.size;i++)for(let o=0;o<2;o++){const a=t-o,s=t+1&2?i:this.size-1-i;!this.isFunction[s][a]&&r<8*e.length&&(this.modules[s][a]=n(e[r>>>3],7-(7&r)),r++)}}i(r==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let r=0;r<this.size;r++){let n;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}}getPenaltyScore(){let e=0;for(let r=0;r<this.size;r++){let n=!1,i=0,o=[0,0,0,0,0,0,0];for(let a=0;a<this.size;
vendor: 1,704 bytes, line 2
2a++)this.modules[r][a]==n?(i++,5==i?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,o),n||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),n=this.modules[r][a],i=1);e+=this.finderPenaltyTerminateAndCount(n,i,o)*t.PENALTY_N3}for(let r=0;r<this.size;r++){let n=!1,i=0,o=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][r]==n?(i++,5==i?e+=t.PENALTY_N1:i>5&&e++):(this.finderPenaltyAddHistory(i,o),n||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),n=this.modules[a][r],i=1);e+=this.finderPenaltyTerminateAndCount(n,i,o)*t.PENALTY_N3}for(let r=0;r<this.size-1;r++)for(let n=0;n<this.size-1;n++){const i=this.modules[r][n];i==this.modules[r][n+1]&&i==this.modules[r+1][n]&&i==this.modules[r+1][n+1]&&(e+=t.PENALTY_N2)}let r=0;for(const e of this.modules)r=e.reduce((e,t)=>e+(t?1:0),r);const n=this.size*this.size,o=Math.ceil(Math.abs(20*r-10*n)/n)-1;return i(0<=o&&o<=9),e+=o*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let r=[6];for(let n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let r=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;r-=(25*t-10)*t-55,e>=7&&(r-=36)}return i(208<=r&&r<=29648),r}static getNumDataCodewords(e,r){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let r=[];for(let t=0;t<e-1;t++)r.push(0);
2r.push(1);let n=1;for(let i=0;i<e;i++){for(let e=0;e<r.length;e++)r[e]=t.reedSolomonMultiply(r[e],n),e+1<r.length&&(r[e]^=r[e+1]);n=t.reedSolomonMultiply(n,2)}return r}static reedSolomonComputeRemainder(e,r){let n=r.map(e=>0);for(const i of e){const e=i^n.shift();n.push(0),r.forEach((r,i)=>n[i]^=t.reedSolomonMultiply(r,e))}return n}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let r=0;for(let n=7;n>=0;n--)r=r<<1^285*(r>>>7),r^=(t>>>n&1)*e;return i(r>>>8==0),r}finderPenaltyCountPatterns(e){const t=e[1];i(t<=3*this.size);const r=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(r&&e[0]>=4*t&&e[6]>=t?1:0)+(r&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};function r(e,t,r){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let n=t-1;n>=0;n--)r.push(e>>>n&1)}function n(e,t){return!!(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;const o=class e{constructor(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}static makeBytes(t){let n=[];for(const e of t)r(e,8,n);return new e(e.Mode.BYTE,t.length,n)}static makeNumeric(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");let n=[];for(let e=0;e<t.length;){const i=Math.min(t.length-e,3);r(parseInt(t.substring(e,e+i),10),3*i+1,n),e+=i}return new e(e.Mode.NUMERIC,t.length,n)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");let n,i=[];for(n=0;n+2<=t.length;n+=2){let o=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n));o+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n+1)),r(o,11,i)}return n<t.length&&r(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n)),6,i),new e(e.Mode.ALPHANUMERIC,t.length,i)}static makeSegments(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let n=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)r(t,8,n);else if(t<16384)r(2,2,n),r(t,14,n);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,n),r(t,21,n)}return new e(e.Mode.ECI,0,n)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let r=0;for(const n of e){const e=n.mode.numCharCountBits(t);if(n.numChars>=1<<e)return 1/0;r+=4+e+n.bitData.length}return r}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let r=0;r<e.length;r++)"%"!=e.charAt(r)?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t}};o.NUMERIC_REGEX=/^[0-9]*$/,o.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,o.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let a=o;e.QrSegment=o})(n||(n={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})(t=e.QrCode||(e.QrCode={}))})(n||(n={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})(t=e.QrSegment||(e.QrSegment={}))})(n||(n={}));var f=n,p={L:f.QrCode.Ecc.LOW,M:f.QrCode.Ecc.MEDIUM,Q:f.QrCode.Ecc.QUARTILE,H:f.QrCode.Ecc.HIGH},h=128,m="L",v="#FFFFFF",g="#000000",y=!1,b=1;function w(e,t=0){const r=[];return e.forEach(function(e,n){let i=null;e.forEach(function(o,a){if(!o&&null!==i)return r.push(`M${i+t} ${n+t}h${a-i}v1H${i+t}z`),void(i=null);if(a!==e.length-1)o&&null===i&&(i=a);else{if(!o)return;null===i?r.push(`M${a+t},${n+t} h1v1H${a+t}z`):r.push(`M${i+t},${n+t} h${a+1-i}v1H${i+t}z`)}})}),r.join("")}function x(e,t){return e.slice().map((e,r)=>r<t.y||r>=t.y+t.h?e:e.map((e,r)=>(r<t.x||r>=t.x+t.w)&&e))}function E({value:e,level:t,minVersion:r,includeMargin:n,marginSize:o,imageSettings:a,size:s,boostLevel:l}){let u=i.useMemo(()=>{const n=(Array.isArray(e)?e:[e]).reduce((e,t)=>
2(e.push(...f.QrSegment.makeSegments(t)),e),[]);return f.QrCode.encodeSegments(n,p[t],r,void 0,void 0,l)},[e,t,r,l]);const{cells:c,margin:d,numCells:h,calculatedImageSettings:m}=i.useMemo(()=>{let e=u.getModules();const t=function(e,t){return null!=t?Math.max(Math.floor(t),0):e?4:0}(n,o),r=e.length+2*t,i=function(e,t,r,n){if(null==n)return null;const i=e.length+2*r,o=Math.floor(.1*t),a=i/t,s=(n.width||o)*a,l=(n.height||o)*a,u=null==n.x?e.length/2-s/2:n.x*a,c=null==n.y?e.length/2-l/2:n.y*a,d=null==n.opacity?1:n.opacity;let f=null;if(n.excavate){let e=Math.floor(u),t=Math.floor(c);f={x:e,y:t,w:Math.ceil(s+u-e),h:Math.ceil(l+c-t)}}return{x:u,y:c,h:l,w:s,excavation:f,opacity:d,crossOrigin:n.crossOrigin}}(e,s,t,a);return{cells:e,margin:t,numCells:r,calculatedImageSettings:i}},[u,s,a,n,o]);return{qrcode:u,margin:d,cells:c,numCells:h,calculatedImageSettings:m}}var k=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();i.forwardRef(function(e,t){const r=e,{value:n,size:o=h,level:a=m,bgColor:s=v,fgColor:l=g,includeMargin:u=y,minVersion:f=b,boostLevel:p,marginSize:S,imageSettings:_}=r,C=d(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:O}=C,P=d(C,["style"]),T=null==_?void 0:_.src,A=i.useRef(null),I=i.useRef(null),N=i.useCallback(e=>{A.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]),[R,j]=i.useState(!1),{margin:M,cells:D,numCells:L,calculatedImageSettings:F}=E({value:n,level:a,minVersion:f,boostLevel:p,includeMargin:u,marginSize:S,imageSettings:_,size:o});i.useEffect(()=>{if(null!=A.current){const e=A.current,t=e.getContext("2d");if(!t)return;let r=D;const n=I.current,i=null!=F&&null!==n&&n.complete&&0!==n.naturalHeight&&0!==n.naturalWidth;i&&null!=F.excavation&&(r=x(D,F.excavation));const a=window.devicePixelRatio||1;e.height=e.width=o*a;const u=o/L*a;t.scale(u,u),t.fillStyle=s,t.fillRect(0,0,L,L),t.fillStyle=l,k?t.fill(new Path2D(w(r,M))):D.forEac
2h(function(e,r){e.forEach(function(e,n){e&&t.fillRect(n+M,r+M,1,1)})}),F&&(t.globalAlpha=F.opacity),i&&t.drawImage(n,F.x+M,F.y+M,F.w,F.h)}}),i.useEffect(()=>{j(!1)},[T]);const B=c({height:o,width:o},O);let U=null;return null!=T&&(U=i.createElement("img",{src:T,key:T,style:{display:"none"},onLoad:()=>{j(!0)},ref:I,crossOrigin:null==F?void 0:F.crossOrigin})),i.createElement(i.Fragment,null,i.createElement("canvas",c({style:B,height:o,width:o,ref:N,role:"img"},P)),U)}).displayName="QRCodeCanvas";var S=i.forwardRef(function(e,t){const r=e,{value:n,size:o=h,level:a=m,bgColor:s=v,fgColor:l=g,includeMargin:u=y,minVersion:f=b,boostLevel:p,title:k,marginSize:S,imageSettings:_}=r,C=d(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:O,cells:P,numCells:T,calculatedImageSettings:A}=E({value:n,level:a,minVersion:f,boostLevel:p,includeMargin:u,marginSize:S,imageSettings:_,size:o});let I=P,N=null;null!=_&&null!=A&&(null!=A.excavation&&(I=x(P,A.excavation)),N=i.createElement("image",{href:_.src,height:A.h,width:A.w,x:A.x+O,y:A.y+O,preserveAspectRatio:"none",opacity:A.opacity,crossOrigin:A.crossOrigin}));const R=w(I,O);return i.createElement("svg",c({height:o,width:o,viewBox:`0 0 ${T} ${T}`,ref:t,role:"img"},C),!!k&&i.createElement("title",null,k),i.createElement("path",{fill:s,d:`M0,0 h${T}v${T}H0z`,shapeRendering:"crispEdges"}),i.createElement("path",{fill:l,d:R,shapeRendering:"crispEdges"}),N)});S.displayName="QRCodeSVG";var _=r(27688),C=r.p+"static/media/app-install-reward.af3580a6.png",O={ios:{appName:"iPhone App",store:"apple"},android:{appName:"Android App",store:"google"}},P=function(e){var t=e.surface,r=e.platform,n=e.installLink,o=e.onDismiss,a=e.onDownloadClick,s=e.showProgress,l=void 0===s||s,u=e.showDismiss,c=void 0===u||u,d=O[r],f=d.appName,p=d.store;return i.createElement("div",{className:"animate-fade"},l?i.createElement("div",{"data-testid":"step2-progress",className:"mb-3.5 flex gap-1.5"},i.createElement("div",{className:"h-1.5 flex-1 rounded-full bg-primary"}),i.createElement("div",{className:"h-1.5 flex-1 rounded-full bg-primary"})):null,i.createElement("h2",{className:"text-center text-[26px] leading-tight tracking-[-1px] text-black"},"Players make ",i.createElement("span",{className:"font-bold text-primaryLight"},"3Ã")," on the ",i.createElement("span",{className:"block text-[36px] font-bold"},f)),"desktop_web"===t?i.createElement("div",{className:"my-5 flex justify-center"},i.createElement("button",{type:"button",onClick:a,className:"flex h-[208px] w-[208px] items-center justify-center rounded-[18px] border border-lilyGrey bg-white p-4 shadow-[0_8px_24px_rgba(32,41,58,0.10)]"},i.createElement(S,{value:n,title:"Scan to download Prograd",fgColor:"#20293A",bgColor:"#FFFFFF",level:"M",className:"h-full w-full"}))):i.createElement(i.Fragment,null,i.createElement("img",{src:C,alt:"",className:"mx-auto my-2 h-[256px] w-[256px]"}),i.createElement(_.Z,{variant:p,href:n,onClick:a,className:"mx-auto block h-[65px] w-[211px]"})),i.createElement("div",{className:"mt-4 flex justify-center"},i.createElement("p",{className:"rounded-full bg-[#E9FFFD] px-[13px] py-2.5 text-[18px] font-bold tracking-[-1px] text-black"},i.createElement("span",{className:"text-maize"},"â
")," 4.7 · 6k+ Players")),c&&o?i.createElement("div",{className:"mt-5 flex min-h-[29px] items-center justify-center"},i.createElement("button",{type:"button",onClick:o,className:"animate-fade text-[17px] font-bold tracking-[-1px] text-black/40 underline underline-offset-2"},"No thank you, earn less on the web")):null)}},59619:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){var r,i=new URLSearchParams(t);if(0===(r=i,function(e){if(Array.isArray(e))return n(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||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}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).length)return e;var o=new URL(e);
2return i.forEach(function(e,t){o.searchParams.append(t,e)}),o.toString()}r.d(t,{f:function(){return i}}),r(50785)},79529:function(e,t,r){"use strict";function n(e){var t=null!=e?e:"",r=/Mobi/i.test(t);return/iPhone|iPod/i.test(t)?{surface:"mobile_web",platform:"ios"}:/Android/i.test(t)&&r?{surface:"mobile_web",platform:"android"}:/iPad/i.test(t)||/Android/i.test(t)?{surface:"desktop_web",platform:null}:r?{surface:"mobile_web",platform:null}:{surface:"desktop_web",platform:null}}r.d(t,{u:function(){return n}})},54311:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{J:function(){return o}});var i=["ua_source","ua_campaign","ua_medium","ua_sub_id_1","ua_sub_id_2","ua_sub_id_3"];function o(e){if(!e)return{};var t,r={},o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=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))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw a}}}}(i);try{for(o.s();!(t=o.n()).done;){var a=t.value,s=e[a];"string"==typeof s&&s.length>0&&(r[a]=s)}}catch(e){o.e(e)}finally{o.f()}return r}},52431:function(e,t,r){"use strict";r.d(t,{v:function(){return u}}),r(63517),r(74413),r(62285),r(20779);var n=r(31786);function i(e){return i="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},i(e)}function o(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){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"PlatformGateSetSelectedPlatform"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"platform"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Platform"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"setSelectedPlatform"},arguments:[{kind:"Argument",name:{kind:"Name",value:"platform"},value:{kind:"Variable",name:{kind:"Name",value:"platform"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"selectedPlatform"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:157,source:{body:"\n mutation PlatformGateSetSelectedPlatform($platform: Platform!) {\n setSelectedPlatform(platform: $platform) {\n id\n selectedPlatform\n }\n }\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}};function u(e){return(0,n.useMutation)(l,a(a({},e),{},{refetchQueries:["TaskFeedCellQuery"],awaitRefetchQueries:!0}))}},634:function(e,t,r){"use strict";var n=r(27378),i=(r(63517),r(50785),r(98889)),o=["to"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
2).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(null,arguments)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}t.Z=function(e){var t,r,l=e.to,u=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({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,o),c=(0,i.useLocation)(),d=new URLSearchParams(c.search),f=(t=l.split("?"),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,r)||function(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=f[0],h=f[1];new URLSearchParams(void 0===h?"":h).forEach(function(e,t){d.set(t,e)});var m=d.toString(),v=m?"".concat(p,"?").concat(m):p;return n.createElement(i.Link,a({to:v},u))}},37303:function(e,t,r){"use strict";var n=r(27378),i=r(72099),o=r(98773);t.Z=function(e){var t=e.progress,r=e.className,a=e.barClassName,s=Math.max(0,Math.min(100,t));return n.createElement("div",{className:(0,o.m)("relative h-1 w-full overflow-hidden rounded-sm bg-white/50",r)},n.createElement(i.E.div,{style:{width:"".concat(s,"%")},className:(0,o.m)("absolute h-full rounded-sm bg-primary",a),layout:!0}))}},71050:function(e,t,r){"use strict";var n=r(27378),i=r(93076),o=r(67649);t.Z=function(e){var t=e.className,r=e.children,a=e.loading,s=(0,i.$G)().t;return a?n.createElement("div",{className:(0,o.A)("relative",t),"aria-label":s("loading")},n.createElement("span",{className:"absolute inset-0 h-full w-full animate-pulse rounded-lg bg-gray-300"}),n.createElement("div",{className:"pointer-events-none opacity-0"},r)):n.createElement(n.Fragment,null,r)}},87403:function(e,t,r){"use strict";var n=r(27378),i=r(98773),o=function(e){return n.createElement("svg",e,n.createElement("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),n.createElement("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}))};o.defaultProps={viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.Z=function(e){var t=e.className;return n.createElement(o,{className:(0,i.m)("h-5 w-5 animate-spin fill-primary text-white/80",t),"data-testid":"spinner"})}},19451:function(e,t,r){"use strict";var n=r(27378),i=r(75083),o=r(10347),a=r(98773),s=function(e){return n.createElement("svg",e,n.createElement("path",{d:"m20.5 6.92307-10 12.30763-10-12.30763 5.38461-6.153844h9.23079z",fill:"#bf38ff"}),n.createElement("path",{d:"m15.1154.769226 5.3846 6.153844h-20l5.38461-6.153844z",fill:"#ba63ff"}),n.createElement("path",{d:"m20.5 6.92307-10 12.30763v-18.461474h4.6154z",fill:"#a82df3"}),n.createElement("path",{d:"m20.5 6.92307h-10v-6.153844h4.6154z",fill:"#bd53fe"}),n.createElement("path",{d:"m.500009 6.92307 9.999991 12.30763-5.1282-12.30763 5.1282-6.153844h-4.61538z",fill:"#9d46f3"}),n.createElement("path",{d:"m6.14103.769226-5.641021 6.153844h4.871791l5.1282-6.153844z",fill:"#a168ff"}),n.createElement("path",{d:"m.500009 6.92307 9.999991 12.30763-8.20512-12.30763 5.38461-6.153844h-1.79487z",fill:"#c67eff"}),n.createElement("path",{d:"m5.8853.769226-5.384606 6.153844h1.794866l5.38462-6.153844z",fill:"#d6aeff"}),n.createElement("path",{d:"m20.5 6.92307-10 12.30763 5.1282-12.30763-5.1282-6.153844h4.6154z",fill:"#b353fe"}),n.createElement("path",{d:"m15.1154.769226 5.3846 6.153844h-4.8718l-5.1282-6.153844z",fill:"#c387ff"}),n.createElement("path",{d:"m20.5 6.92307-10 12.30763 8.2051-12.30763-5.3846-6.153844h1.7949z",fill:"#a82df3"}),n.createElement("path",{d:"m15.1147.769226 5.3846 6.153844h-1.7949l-5.3846-6.153844z",fill:"#a852fe"}))};
2s.defaultProps={fill:"none",viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg"};var l=(0,o.j)("inline-flex items-center justify-center gap-1 px-4 py-2 rounded-lg",{variants:{variant:{default:"",outlined:"border border-gemPurple bg-white"},size:{small:"px-2 py-1",medium:"px-3 py-2",large:"px-4 py-3"}},defaultVariants:{variant:"default",size:"medium"}}),u=(0,o.j)("",{variants:{size:{small:"h-4 w-4",medium:"h-6 w-6",large:"h-8 w-6"}},defaultVariants:{size:"medium"}}),c=(0,o.j)("",{variants:{size:{small:"text-base",medium:"text-2xl",large:"text-2xl"}},defaultVariants:{size:"medium"}});t.Z=function(e){var t=e.children,r=e.className,o=e.size,d=e.variant;return e.isEarned?n.createElement("div",{className:(0,a.m)("inline-flex flex-col items-center gap-1 rounded bg-[#F0E1FF] px-[6px] py-1",r)},n.createElement("span",{className:"flex h-[10px] w-[10px] items-center justify-center rounded-full bg-gemPurple"},n.createElement(i.Z,{className:"h-2 w-2 stroke-white stroke-[3]"})),n.createElement("div",{className:"flex items-center gap-[2px]"},n.createElement("span",{className:"text-[10px] leading-none text-gemPurple"},t),n.createElement(s,{className:"h-2 w-2"}))):n.createElement("span",{className:(0,a.m)(l({size:o,variant:d}),r)},n.createElement(s,{className:(0,a.m)("flex-shrink-0",u({size:o}))}),t?n.createElement("span",{className:(0,a.m)("font-bold",c({size:o}))},t):null)}},64133:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(27378),i=r(98773);function o(e){return"https://api.dicebear.com/7.x/open-peeps/svg?seed=".concat(e)}var a=function(e){var t=e.seed,r=e.imgSrc,a=e.className;return n.createElement("div",{className:(0,i.m)("flex items-center justify-center overflow-hidden rounded-full border-2 text-sm focus:outline-none",a)},n.createElement("img",{src:r||o(t),alt:"User Avatar",className:"object-cover"}))}},66205:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(27378),i=r(98773),o=r(74857),a=r(67649),s=["id","type","className","children","disabled","readOnly"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(null,arguments)}var u=function(e){var t=e.id,r=e.type,i=void 0===r?"text":r,u=e.className,c=e.children,d=e.disabled,f=e.readOnly,p=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({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,s);return n.createElement(o.InputField,l({name:t,type:i,className:(0,a.A)("w-full rounded-md border-accent/50 px-4 py-3 transition-shadow duration-500 hover:shadow-md focus:border-primary focus:ring-primary",u,(d||f)&&"bg-gray-200 text-gray-600 hover:shadow-none"),errorClassName:(0,a.A)("rounded-md border-accent/50 focus:border-primary px-4 py-3 transition-shadow duration-500 hover:shadow-md w-full focus:ring-primary",u,"border-error-default/50 text-error-default"),disabled:d,readOnly:f},p),c)},c=r(71050),d=r(717),f=r(46942),p=["labelText","name","isCurrencyInput","isPhoneInput","className","loading","inputClassName","labelClassName","children"];function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(null,arguments)}var m=function(e){var t=e.labelText,r=e.name,s=e.isCurrencyInput,l=e.isPhoneInput,m=e.className,v=e.loading,g=e.inputClassName,y=e.labelClassName,b=e.children,w=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({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,p);return n.createElement("div",{className:(0,a.A)("relative",m)},t&&n.createElement(c.Z,{loading:v},n.createElement(f.Z,{name:r,text:t,className:y,errorClassName:"text-error-default text-sm"})),n.createElement(c.Z,{loading:v},n.createElement("div",{className:"w-full"},n.createElement("div",{className:(0,i.m)("relative",(s||l)&&"block before:absolute before:left-4 before:top-1/2 before:z-10 before:block before:-translate-y-1/2 before:content-['$']",l&&"before:content-['+44']",l&&(0,d.Ag)("US")&&"before:content-['+1']")},n.createElement(u,h({name:r,className:(0,i.m)((s||l)&&"pl-10",l&&(0,d.Ag)("UK")&&"pl-12",g)},w)),b))),!v&&n.createElement(o.FieldError,{name:r,className:"ml-auto text-sm leading-5 text-error-default"}))}},46942:function(e,t,r){"use strict";var n=r(27378),i=r(98773),o=r(74857),a=["text","className"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
2).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(null,arguments)}t.Z=function(e){var t=e.text,r=e.className,l=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({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,a);return n.createElement(o.Label,s({className:(0,i.m)("mb-1 block text-sm leading-5 text-slateGrey",r)},l),t)}},2383:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}}),r(63517),r(74413),r(62285),r(69108),r(20779),r(57637);var n=r(27378),i=r(18054),o=r(38224);function a({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",clipRule:"evenodd"}))}var s=n.forwardRef(a),l=r(51147),u=r(98773),c=r(74857),d=r(71050),f=r(46942);function p(e){return p="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},p(e)}var h=["name","options","defaultValue","labelText","loading","icon","centered","className","shouldDisplayErrorMessage","onChange","rules","validation"];function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m.apply(null,arguments)}function v(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 g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t,r){return(t=function(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=function(e){var t=e.name,r=e.options,a=e.defaultValue,p=e.labelText,v=e.loading,y=e.icon,b=e.centered,w=e.className,x=(e.shouldDisplayErrorMessage,e.onChange),E=e.rules,k=e.validation,S=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({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,h);return n.createElement(c.Controller,m({name:t,defaultValue:a||[],rules:g(g({},E),k)},S,{render:function(e){var h=e.field;return n.createElement("div",{className:(0,u.m)("relative text-ebonyGrey",w)},p&&n.createElement(d.Z,{loading:v},n.createElement(f.Z,{name:t,text:p,errorClassName:"text-error-default"})),n.createElement(d.Z,{loading:v},n.createElement(i.R,m({},h,{multiple:!0,defaultValue:a,onChange:function(e){h.onChange(e),x&&x(e)}}),n.createElement("div",{className:"relative"},n.createElement(i.R.Button,{className:(0,u.m)("relative flex w-full cursor-pointer items-center justify-between overflow-hidden rounded-md border border-lilyGrey bg-white px-4 py-3 shadow-sm transition-shadow duration-500 hover:shadow-md focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75 focus-visible:ring-offset-2 focus-visible:ring-offset-primary",b&&"justify-center gap-3")},function(e){var t=e.value,i=e.open;return n.createElement(n.Fragment,null,n.createElement("span",{className:"flex w-4/5 items-center gap-3"},y&&n.createElement(y,{className:"h-5 w-5 text-slateGrey"}),n.createElement("span",{className:(0,u.m)("truncate",!t&&"text-slateGrey")},function(e,t){return 0===e.length?"No option selected":e.map(function(e){var r=t.find(function(t){return t.value===e});return null==r?void 0:r.label}).join(", ")}(t,r))),n.createElement("span",{className:"pointer-events-none"},n.createElement(l.Z,{className:(0,u.m)("h-5 w-5",i&&"rotate-180 transform"),"aria-hidden":"true"})))}),n.createElement(o.u,{as:n.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0"},n.createElement(i.R.Options,{className:"absolute z-20 mt-2 max-h-60 w-full overflow-auto rounded-lg border border-lilyGrey bg-white shadow-sm"},r.map(function(e){var t=e.value,r=e.label;return n.createElement(i.R.Option,{key:t,className:(0,u.m)("relative flex cursor-pointer select-none items-center gap-3 border-b border-lilyGrey p-4 text-sm",!t&&"hidden"),value:t},function(e){var t=e.selected,i=e.active;return n.createElement(n.Fragment,null,n.createElement("span",{className:(0,u.m)("flex h-5 w-5 items-center justify-center rounded border border-platinumGrey shadow-sm",t&&"bg-primary",!t&&i&&"border-primary")},n.createElement(s,{className:(0,u.m)("h-4 w-4 text-white",!t&&"hidden")})),n.createElement("span",{className:(0,u.m)("block truncate leading-none",t?"font-extrabold":"font-normal")},r))})})))))),!v&&n.createElement(c.FieldError,{name:t,className:"ml-auto text-sm leading-5 text-error-default"}))}}))}},20984:function(e,t,r){"use strict";var n=r(27378),i=r(98773),o=r(74857),a=r(94717),s=["children","className","inputClassName","barColor","backgroundColor"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
2).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(null,arguments)}var u=function(e){var t=e.children,r=e.className,u=e.inputClassName,c=e.barColor,d=void 0===c?"#269B74":c,f=e.backgroundColor,p=void 0===f?"#EBEEED":f,h=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({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,s),m=(0,o.useWatch)({name:h.name,defaultValue:h.defaultValue}),v=h.min?Number(h.min):0,g=h.max?Number(h.max):100,y=Number(100*(m-v))/(g-v);return n.createElement(a.s.Provider,{value:{name:h.name,value:m,progress:y}},n.createElement("div",{className:(0,i.m)("relative",r)},n.createElement(o.InputField,l({},h,{type:"range",className:(0,i.m)("h-1 w-full cursor-pointer appearance-none rounded-full border bg-primary","[&::-webkit-slider-thumb]:h-3 [&::-webkit-slider-thumb]:w-3 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border [&::-webkit-slider-thumb]:border-solid [&::-webkit-slider-thumb]:border-black/10 [&::-webkit-slider-thumb]:bg-white [&::-webkit-slider-thumb]:shadow-md","[&::-moz-range-thumb]:h-3 [&::-moz-range-thumb]:w-3 [&::-moz-range-thumb]:appearance-none [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border [&::-moz-range-thumb]:border-solid [&::-moz-range-thumb]:border-black/10 [&::-moz-range-thumb]:bg-white [&::-moz-range-thumb]:shadow-md",u),style:{background:"linear-gradient(to right, ".concat(d," ").concat(y,"%, ").concat(p," ").concat(y,"%)")}})),t))},c=function(e){var t=e.children,r=e.thumbSize,o=void 0===r?12:r,s=e.className,l=(0,a.y)({name:"WrappedRangeInput"}),u=l.value,c=l.name,d=l.progress,f=o/2-d*(o/100);return n.createElement("output",{htmlFor:c,className:(0,i.m)("absolute left-0 top-0 -translate-x-1/2 -translate-y-full rounded-lg bg-primary p-1 text-center text-lg text-white","after:absolute after:-bottom-[5px] after:left-1/2 after:h-[8px] after:w-[14px] after:-translate-x-1/2 after:bg-primary after:[clip-path:polygon(100%_0%,50%_100%,0%_0%)]",s),style:{left:"calc(".concat(d,"% + ").concat(f,"px)")}},null!=t?t:u)};c.displayName="RangeInputBubble",u.Bubble=c,u.displayName="RangeInput",t.Z=u},59794:function(e,t,r){"use strict";r(63517),r(74413),r(62285),r(69108),r(20779),r(57637);var n=r(27378),i=r(18054),o=r(38224),a=r(51147),s=r(98773),l=r(74857),u=r(71050),c=r(46942);function d(e){return d="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},d(e)}var f=["name","options","optionsClassName","defaultValue","labelText","loading","icon","centered","className","shouldDisplayErrorMessage","onChange","rules","validation","placeholder"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(null,arguments)}function h(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 m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e,t,r){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.Z=function(e){var t=e.name,r=e.options,d=e.optionsClassName,h=e.defaultValue,v=e.labelText,g=e.loading,y=e.icon,b=e.centered,w=e.className,x=(e.shouldDisplayErrorMessage,e.onChange),E=e.rules,k=e.validation,S=e.placeholder,_=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({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,f);return n.createElement(l.Controller,p({name:t,defaultValue:h,rules:m(m({},E),k)},_,{render:function(e){var f=e.field;return n.createElement("div",{className:(0,s.m)("relative text-ebonyGrey",w)},v&&n.createElement(u.Z,{loading:g},n.createElement(c.Z,{name:t,text:v,errorClassName:"text-error-default"})),n.createElement(u.Z,{loading:g},n.createElement(i.R,p({},f,{disabled:_.disabled,defaultValue:h,onChange:function(e){f.onCh
2ange(e),x&&x(e)}}),n.createElement("div",{className:"relative"},n.createElement(i.R.Button,{className:(0,s.m)("relative flex w-full cursor-pointer items-center justify-between overflow-hidden rounded-md border border-lilyGrey bg-white px-4 py-3 shadow-sm transition-shadow duration-500 hover:shadow-md focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75 focus-visible:ring-offset-2 focus-visible:ring-offset-primary",b&&"justify-center gap-3")},function(e){var t=e.value,i=e.open;return n.createElement(n.Fragment,null,n.createElement("span",{className:"flex items-center gap-3"},y&&n.createElement(y,{className:"h-5 w-5 text-slateGrey"}),n.createElement("span",{className:(0,s.m)("truncate",!t&&"text-slateGrey")},t?function(e,t){var r;return(null===(r=t.find(function(t){return t.value===e}))||void 0===r?void 0:r.label)||""}(t,r):S)),n.createElement("span",{className:"pointer-events-none"},n.createElement(a.Z,{className:(0,s.m)("h-5 w-5",i&&"rotate-180 transform"),"aria-hidden":"true"})))}),n.createElement(o.u,{as:n.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0"},n.createElement(i.R.Options,{className:(0,s.m)("absolute z-20 mt-2 max-h-60 w-full overflow-auto rounded-lg border border-lilyGrey bg-white shadow-sm",d)},r.map(function(e,t){var r=e.value,o=e.label;return n.createElement(i.R.Option,{key:"".concat(r,"-option-").concat(t),className:(0,s.m)("relative flex cursor-pointer select-none items-center gap-3 border-b border-lilyGrey p-4 text-sm",!r&&"hidden"),value:r},function(e){var t=e.selected,r=e.active;return n.createElement(n.Fragment,null,n.createElement("span",{className:(0,s.m)("h-5 w-5 rounded-full border border-platinumGrey shadow-sm",t&&"border-4 border-primary",!t&&r&&"border-4 border-primary/50")}),n.createElement("span",{className:(0,s.m)("block truncate leading-none",t?"font-extrabold":"font-normal")},o))})})))))),!g&&n.createElement(l.FieldError,{name:t,className:"ml-auto text-sm leading-5 text-error-default"}))}}))}},40176:function(e,t,r){"use strict";var n=r(27378),i=r(78229),o=r(98773),a=r(94119),s=r(92488);t.Z=function(e){var t=e.formattedTimeRemaining,r=e.rewardAmount,l=e.rewardDisplayMode,u=void 0===l?s.B7:l,c=e.isUrgent,d=void 0!==c&&c,f=e.className;return n.createElement("div",{"data-testid":"booster-badge",className:(0,o.m)("rounded-lg bg-[linear-gradient(90deg,#472DF3_0%,#A82DF3_100%)]",f)},n.createElement("div",{className:"flex items-center gap-1.5 overflow-hidden bg-[url('./components/magic-moment/PointsBoostCountdownHeader/assets/thunder-texture-gray.png')] bg-contain px-2 py-1 text-white"},n.createElement(a.Z,{reward:r,isRewardBoosted:!0,rewardDisplayMode:u,className:"shrink-0"}),n.createElement("div",{className:"flex min-w-0 flex-1 items-center justify-between gap-1"},n.createElement("span",{className:"truncate leading-none"},"â¡ Instant on install"),n.createElement("div",{"data-testid":"booster-badge-timer",className:(0,o.m)("flex shrink-0 items-center gap-1",d&&"text-[#FF8A8A]")},n.createElement(i.Z,{className:"h-4 w-4 shrink-0"}),n.createElement("span",{className:"min-w-[3rem] text-right text-lg font-bold tabular-nums"},t)))))}},44232:function(e,t,r){"use strict";var n=r(27378),i=r(98773),o={"speed-bonus":{pill:"bg-[rgba(217,222,255,0.36)]",text:"text-[rgba(0,47,255,0.72)]"},booster:{pill:"bg-[#E7F8E4]",text:"text-[#1F8A3C]"},standard:{pill:"bg-[#F1F1F1]",text:"text-[rgba(38,50,56,0.58)]"}};t.Z=function(e){var t=e.days,r=e.groupType,a=o[r];return n.createElement("span",{"data-testid":"activity-task-step-day-pill-".concat(r),className:(0,i.m)("flex h-6 w-[57px] shrink-0 items-center justify-center rounded-[5px] text-sm font-bold tracking-[-0.28px]",a.pill,a.text)},t," ",1===t?"Day":"Days")}},47023:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(27378),i=r(98889),o=r(93076),a=r(98773),s=r(54557),l=function(e){return n.createElement("svg",e,n.createElement("g",{id:"autoplay"},n.createElement("mask",{id:"mask0_0_4",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20"},n.createElement("rect",{id:"Bounding box",width:"19.6316",height:"19.6316",fill:"#D9D9D9"})),n.createElement("g",{mask:"url(#mask0_0_4)"},n.createElement("path",{id:"autoplay_2",d:"M7.7512 13.6043V6.0273L13.6433 9.81579L7.7512 13.6043ZM9.81579 18.931C8.36619 18.931 7.00377 18.6058 5.72854 17.9553C4.4533 17.305 3.38134 16.3911 2.51264 15.2137V17.3048H0.651727V12.0546H5.90195V13.9155H3.87335C4.55896 14.9054 5.42213 15.6786 6.46288 16.2351C7.50376 16.7918 8.6214 17.0701 9.81579 17.0701C11.3934 17.0701 12.8171 16.6088 14.0869 15.6862C15.3567 14.7636 16.2376 13.5478 16.7296 12.0391L18.53 12.4804C17.9328 14.403 16.8333 15.9588 15.23
212 17.1476C13.6291 18.3365 11.8239 18.931 9.81579 18.931ZM0.687719 8.95875C0.779878 8.0257 1.00046 7.13349 1.34947 6.28211C1.69847 5.43059 2.17617 4.65037 2.78257 3.94145L4.09973 5.25861C3.68297 5.78825 3.34316 6.36349 3.08032 6.98434C2.81747 7.60533 2.64542 8.26346 2.56417 8.95875H0.687719ZM5.27905 4.07437L3.95699 2.75231C4.68609 2.13937 5.47373 1.65744 6.31994 1.30652C7.16628 0.955608 8.04915 0.746069 8.96857 0.677903V2.53881C8.2895 2.61679 7.64214 2.78803 7.02647 3.05251C6.41067 3.31699 5.82819 3.65761 5.27905 4.07437ZM14.3533 4.08419C13.8204 3.65761 13.2435 3.31208 12.6227 3.0476C12.0018 2.78312 11.3454 2.61352 10.6534 2.53881V0.677903C11.583 0.75643 12.4744 0.96856 13.3276 1.31429C14.1806 1.66003 14.9681 2.13937 15.6901 2.75231L14.3533 4.08419ZM17.083 8.96366C17.005 8.26837 16.8337 7.61106 16.5693 6.99171C16.3048 6.37249 15.9642 5.79806 15.5474 5.26842L16.8648 3.94145C17.4677 4.64382 17.9429 5.41913 18.2903 6.26738C18.6377 7.11563 18.8555 8.01439 18.9439 8.96366H17.083Z",fill:"#1C1B1F"}))))};function u(e){var t=e.className,r=(0,s._)().isLiteMode,u=(0,o.$G)().t;return r?null:n.createElement(i.Link,{to:i.routes.wallet(),className:(0,a.m)("flex shrink-0 items-center gap-[6px] rounded-lg border border-[#cdcdcd] bg-white px-2.5 py-1.5 text-sm font-bold leading-[17px] tracking-[-0.28px] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary",t)},n.createElement(l,{className:"h-5 w-5","aria-hidden":"true",focusable:"false"}),u("activity-detail.continue-playing"))}l.defaultProps={preserveAspectRatio:"none",overflow:"visible",width:"19.6316",height:"19.6316",viewBox:"0 0 19.6316 19.6316",fill:"none",xmlns:"http://www.w3.org/2000/svg",display:"block"}},43665:function(e,t,r){"use strict";var n=r(27378),i=r(6843),o=r(98773),a=r(7740),s=r(37303);t.Z=function(e){var t=e.children,r=e.layout,l=void 0===r?"horizontal":r,u=e.completionCount,c=e.proOffersThreshold,d=e.className,f=u/c*100,p=f>100?100:f;return n.createElement(a.Z,{className:(0,o.m)("space-y-2 border-[#84B8CE] bg-[#E0F5FE] px-6 py-3 text-center","horizontal"===l&&"laptop:flex laptop:items-center laptop:gap-10 laptop:space-y-0 laptop:text-left",d)},n.createElement(a.Z.Header,{className:"space-y-3 p-0"},n.createElement("div",{className:(0,o.m)("mx-auto flex items-center gap-2","horizontal"===l&&"laptop:mx-0")},n.createElement("div",{className:"flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full bg-[#84D5F8]"},n.createElement(i.Z,{className:"h-3 w-3 [&>path]:stroke-[2]"})),n.createElement("h4",{className:"text-lg font-bold"},"Seasoned Hustlers Only")),n.createElement("p",{className:"text-slateGrey"},"Complete ",c," side-hustles to unlock more PRO Offers")),n.createElement(a.Z.Content,{className:(0,o.m)("space-y-5 p-0","horizontal"===l&&"laptop:flex-grow")},n.createElement("div",{className:(0,o.m)("space-y-3 rounded-lg bg-white p-4","horizontal"===l&&"laptop:flex laptop:items-center laptop:gap-6 laptop:space-y-0")},n.createElement(s.Z,{progress:p,barClassName:"rounded-full",className:(0,o.m)("mx-auto h-3 w-36 rounded-full bg-[#E2E2E2]","horizontal"===l&&"laptop:order-1 laptop:mx-0 laptop:w-full")}),n.createElement("p",{className:(0,o.m)("text-xs text-slateGrey","horizontal"===l&&"laptop:flex-shrink-0 laptop:text-base laptop:font-bold")},u,"/",c," side hustles completed")),t))}},19091:function(e,t,r){"use strict";r.d(t,{ZP:function(){return lt}});var n=r(31786),i=(r(63517),r(74413),r(62285),r(57637),r(98704),r(67551),r(94621)),o=r(63862),a=r(27378);function s({title:e,titleId:t,...r},n){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?a.createElement("title",{id:t},e):null,a.createElement("path",{fillRule:"evenodd",d:"M4.5 5.653c0-1.427 1.529-2.33 2.779-1.643l11.54 6.347c1.295.712 1.295 2.573 0 3.286L7.28 19.99c-1.25.687-2.779-.217-2.779-1.643V5.653Z",clipRule:"evenodd"}))}var l=a.forwardRef(s),u=r(47663),c=r(1738),d=r(20564),f=r(42601),p=r(50804),h=r(98773),m=r(16944),v=r(39027),g=r(94119),y=r(7740),b=r(37303),w="font-brownStd text-base font-bold leading-[23px] tracking-[-0.64px] text-black",x="font-brownStd text-[14px] leading-[18px] tracking-[0.067px] text-[#263238]",E="flex h-4 w-4 items-center justify-center rounded-full border-[0.3px]";function k(){return a.createElement("span",{"data-testid":"activity-task-step-group-icon-playtime",className:(0,h.m)(E,"border-[#263238] bg-[#F5E4FF]")},a.createElement("svg",{width:10,height:10,viewBox:"0 0 10 10",fill:"none"},a.createElement("path",{d:"M2.08333 9.16667C1.85417 9.16667 1.65799 9.08507 1.49479 8.92187C1.3316 8.75868 1.25 8.5625 1.25 8.33333V2.5C1.25 2.27083 1.3316 2.07465 1.49479 1.91146C1.65799 1.74826 1.85417 1.66667 2.08333 1.66667H2.5V0.833333H3.33333V1.66667H6.66667V0.833333H7.5V1.66667H7.91667C8.14583 1.66667 8.34201 1.74826 8.50521 1.91146C8.6684 2.07465 8.75 2.27083 8.75 2.5V8.33333C8.75 8.5625 8.6684 8.75868 8.50521 8.92187C8.34201 9.08507 8.14583 9.16667 7.91667 9.16667H2.08333ZM2.08333 8.33333H7.91667V4.16667H2.08333V8.33333Z",fill:"#1C1B1F"})))}function S(){return a.createElement("span",{"data-testid":"activity-task-step-group-icon-speed-bonus",className:(0,h.m)(E,"border-[#00293A] bg-[#B2E8FF]")},a.createElement("svg",{width:8.662,height:9.762,viewBox:"0 0 8.66191 9.76157",fill:"none"},a.createElement("path",{d:"M3.53278 0.732764C3.4356 0.732764 3.3424 0.694163 3.27369 0.625453C3.20497 0.556743 3.16637 0.463553 3.16637 0.366382C3.16637 0.269211 3.20497 0.176021 3.27369 0.107311C3.3424 0.0386008 3.4356 0 3.53278 0H5.26025C5.35743 0 5.45063 0.0386008 5.51934 0.107311C5.58806 0.176021 5.62666 0.269211 5.62666 0.366382C5.62666 0.463553 5.58806 0.556743 5.51934 0.625453C5.45063 0.694163 5.35743 0.732764 5.26025 0.732764H3.53278ZM1.83754 0.95357C1.90616 1.02227 1.9447 1.11539 1.9447 1.21248C1.9447 1.30957 1.90616 1.402
269 1.83754 1.47139L0.616192 2.69266C0.546734 2.75738 0.454865 2.79261 0.359941 2.79094C0.265017 2.78926 0.174449 2.75081 0.107318 2.68369C0.0401859 2.61656 0.00173191 2.526 5.70845e-05 2.43108C-0.00161774 2.33616 0.0336173 2.2443 0.0983391 2.17484L1.31969 0.95357C1.38839 0.884959 1.48152 0.84642 1.57862 0.84642C1.67571 0.84642 1.76884 0.884959 1.83754 0.95357Z",fill:"#263238"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.50931 1.45688C3.40798 1.45688 2.35175 1.89436 1.57299 2.67307C0.794225 3.45179 0.356721 4.50795 0.356721 5.60921C0.356721 6.71048 0.794225 7.76664 1.57299 8.54535C2.35175 9.32407 3.40798 9.76154 4.50931 9.76154C5.61065 9.76154 6.66688 9.32407 7.44564 8.54535C8.2244 7.76664 8.6619 6.71048 8.6619 5.60921C8.6619 4.50795 8.2244 3.45179 7.44564 2.67307C6.66688 1.89436 5.61065 1.45688 4.50931 1.45688ZM6.94713 3.26974C6.98281 3.22274 7.00027 3.16441 6.99628 3.10554C6.99229 3.04666 6.96711 2.99122 6.92542 2.94947C6.88372 2.90771 6.82831 2.88246 6.76944 2.87838C6.71056 2.87431 6.65221 2.89168 6.60515 2.9273L5.05403 4.13294L4.04031 4.8574C3.9574 4.91647 3.88835 4.99291 3.83799 5.08139C3.78763 5.16987 3.75716 5.26827 3.7487 5.36972C3.74024 5.47118 3.754 5.57326 3.78902 5.66885C3.82404 5.76445 3.87948 5.85126 3.95147 5.92325C4.02346 5.99524 4.11028 6.05067 4.20589 6.08569C4.30149 6.12071 4.40357 6.13447 4.50504 6.12601C4.6065 6.11755 4.7049 6.08709 4.79338 6.03673C4.88187 5.98637 4.95831 5.91733 5.01739 5.83442L5.74141 4.82027L6.94713 3.26974Z",fill:"#263238"})))}function _(){return a.createElement("span",{"data-testid":"activity-task-step-group-icon-booster"},a.createElement("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"none"},a.createElement("rect",{x:.15,y:.15,width:15.7,height:14.7,rx:7.35,fill:"#D3FFCD"}),a.createElement("rect",{x:.15,y:.15,width:15.7,height:14.7,rx:7.35,stroke:"#263238",strokeWidth:.3}),a.createElement("path",{d:"M3.5 7.03201L5.46376 5.06758C5.56964 4.96206 5.69087 4.88744 5.82746 4.84371C5.96406 4.79999 6.10552 4.79276 6.25187 4.82203L7.01884 4.9814C6.61449 5.47612 6.28457 5.9235 6.0291 6.32354C5.77362 6.72358 5.51815 7.20927 5.26267 7.7806L3.5 7.03201ZM5.73586 7.91015C5.97146 7.36448 6.25386 6.84229 6.58305 6.3436C6.91188 5.84562 7.28769 5.38523 7.71047 4.96242C8.38728 4.28557 9.12317 3.77856 9.91814 3.4414C10.7131 3.10424 11.5706 2.96023 12.4906 3.00938C12.5397 3.92944 12.3961 4.78698 12.0597 5.582C11.7233 6.37702 11.2168 7.11296 10.5404 7.78981C10.1198 8.21009 9.65942 8.58411 9.15931 8.91188C8.65919 9.23965 8.13578 9.52134 7.58905 9.75695L5.73586 7.91015ZM9.08017 6.40973C9.23916 6.56873 9.43176 6.64823 9.65797 6.64823C9.88418 6.64823 10.0768 6.56873 10.2358 6.40973C10.3948 6.25072 10.4743 6.05974 10.4743 5.83677C10.4743 5.6138 10.3948 5.42281 10.2358 5.26381C10.0768 5.10481 9.88418 5.0253 9.65797 5.0253C9.43176 5.0253 9.23898 5.10481 9.07963 5.26381C8.92027 5.42281 8.84077 5.6138 8.84114 5.83677C8.8415 6.05974 8.92099 6.25054 9.07963 6.40918M8.45033 12L7.69746 10.2372C8.26875 9.98209 8.75495 9.72497 9.15605 9.46587C9.55751 9.20676 10.0056 8.87502 10.5003 8.47064L10.6569 9.23766C10.6858 9.38365 10.6802 9.52549 10.6401 9.66318C10.
26 9.80122 10.527 9.92318 10.4211 10.0291L8.45033 12ZM4.28377 9.66589C4.49588 9.45412 4.75299 9.34932 5.05508 9.35149C5.35717 9.35366 5.61427 9.46099 5.82638 9.67347C6.03849 9.88524 6.14455 10.1424 6.14455 10.4448C6.14455 10.7473 6.03849 11.0044 5.82638 11.2162C5.64209 11.4005 5.34669 11.5582 4.94017 11.6894C4.53365 11.8206 4.06299 11.9113 3.52819 11.9615C3.57805 11.427 3.67038 10.9569 3.80516 10.5511C3.93995 10.1452 4.09948 9.85019 4.28377 9.66589Z",fill:"#263238"})))}function C(e){var t=e.type;return"playtime"===t?a.createElement(k,null):"speed-bonus"===t?a.createElement(S,null):a.createElement(_,null)}var O=r(92488),P=function(e){var t=e.pointsValue,r=(0,O.Mt)(t),n=r.symbol,i=r.amount;return a.createElement("span",{"data-testid":"reward-chip",className:"text-charcoalGray flex h-6 shrink-0 items-center justify-center self-start rounded-[5px] bg-[#E9FFFD] px-2 text-sm font-bold tracking-[-0.28px]"},!!n&&a.createElement("span",{className:"text-primaryLight"},n,"Â "),i)};function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var A,I,N,R=function(e){var t,r,n=e.threshold,i=e.currentDays,o=e.rewardDisplayMode,s=e.isTreatment,l=e.showTopDivider,u=void 0!==l&&l,c=null!==(t=n.reward)&&void 0!==t&&t.isBoosted?n.reward.boostedPoints:null===(r=n.reward)||void 0===r?void 0:r.points,d=(0,O.Rm)({pointsValue:null!=c?c:0,displayMode:o}),f=Math.min(i,n.threshold),p=Math.min(i,n.threshold),m=0===n.threshold?0:p/n.threshold*100;return a.createElement("div",{className:(0,h.m)("space-y-2",s?"py-4":"py-3",s&&u&&"border-t border-[#eaeaea]")},a.createElement("div",{className:"flex items-start gap-2"},a.createElement("span",{className:(0,h.m)("min-w-0 flex-1 text-sm",s?"font-bold ".concat(x):"text-ebonyGrey")},s?"Played ".concat(f,"/").concat(n.threshold," Days"):a.createElement(a.Fragment,null,"Play ",n.threshold," ",a.createElement("span",{className:"font-bold"},"days"))),n.reward&&(null!=c?c:0)>0&&(s&&!n.completed?a.createElement(P,{pointsValue:d}):a.createElement(g.Z,{reward:n.reward.points,rewardDisplayMode:o,isRewardBoosted:n.reward.isBoosted,size:"small",isEarned:n.completed,className:"h-6 px-1 text-xs"}))),s?a.createElement(b.Z,{progress:m,barClassName:"rounded-[30px] bg-[#A82DF3]",className:"h-[5px] w-full rounded-[30px] bg-[#D6AEFF]/40"}):a.createElement(j,{segments:n.threshold,filled:p}))},j=function(e){var t=e.segments,r=e.filled;return a.createElement("div",{className:"flex gap-1.5"},Array.from({length:t},function(e,t){return a.createElement("div",{key:t,className:(0,h.m)("h-[7px] flex-1 rounded-full",t<r?"bg-[#A82DF3]":"bg-[#F5E4FF]")})}))},M=function(e){var t,r,n=e.streak,i=e.rewardDisplayMode,s=void 0===i?O.B7:i,l=e.isTreatment,u=void 0!==l&&l,c=e.className,d=null!==(t=n.thresholds)&&void 0!==t?t:[];if(0===d.length)return null;var f,m="retention-streak-".concat(n.triggerId),v=Math.max.apply(Math,(f=d.map(function(e){return e.threshold}),function(e){if(Array.isArray(e))return T(e)}(f)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(f)||function(e,t){if(e){if("string"==typeof e)return T(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)?T(e,t):void 0}}(f)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([1])),g=u?"Playtime Rewards":null!==(r=n.title)&&void 0!==r?r:"Play Streaks",b=a.createElement(a.Fragment,null,u&&a.createElement(C,{type:"playtime"}),a.createElement("h5",{className:u?w:"font-bold"},g),a.createElement(o.Z,{"data-tooltip-id":m,className:"h-4 w-4 cursor-pointer"}),a.createElement(p.u,{id:m,opacity:1,openEvents:{click:!0,mouseover:!0},globalCloseEvents:{escape:!0,clickOutsideAnchor:!0},className:"!max-w-60 !rounded-lg !bg-white !shadow-xl"},a.createElement("div",{className:"text-ebonyGrey"},a.createElement("h5",{className:"font-bold"},g),a.createElement("p",null,"Keep your streak going to unlock rewards. Play ",v," days to earn all rewards.")))
2),x=d.map(function(e,t){var r,i;return a.createElement(R,{key:null!==(r=e.retentionId)&&void 0!==r?r:e.threshold,threshold:e,currentDays:null!==(i=n.currentDays)&&void 0!==i?i:0,rewardDisplayMode:s,isTreatment:u,showTopDivider:t>0})});return u?a.createElement("div",{"data-testid":"playtime-rewards",className:c},a.createElement("div",{className:"flex h-[37px] flex-row items-center justify-start gap-[5px]"},b),a.createElement("div",null,x)):a.createElement(y.Z,{"data-testid":"retention-streak-card",className:(0,h.m)("rounded-lg bg-[#FFF9F0]",c)},a.createElement(y.Z.Header,{className:"flex-row items-center gap-1 space-y-0 px-4 py-3"},b),a.createElement(y.Z.Content,{className:"p-0 px-4 pb-3"},a.createElement("div",{className:"divide-y divide-lilyGrey"},x)))},D=(0,i.ZP)(A||(I=["\n query ProductRetentionProgressQuery($productId: String!) {\n productRetentionProgress(productId: $productId) {\n triggerId\n title\n currentDays\n thresholds {\n retentionId\n threshold\n completed\n reward {\n points\n boostedPoints\n tokens\n isBoosted\n streak\n }\n }\n }\n }\n"],N||(N=I.slice(0)),A=Object.freeze(Object.defineProperties(I,{raw:{value:Object.freeze(N)}})))),L=(0,n.createCell)({QUERY:D,Loading:function(){return null},Empty:function(){return null},Failure:function(){return null},Success:function(e){var t=e.productRetentionProgress,r=e.rewardDisplayMode,n=e.isTreatment;return a.createElement(a.Fragment,null,t.map(function(e,t){return a.createElement(M,{key:"".concat(e.triggerId,"-").concat(t),streak:e,rewardDisplayMode:r,isTreatment:n})}))},displayName:"RetentionStreakCell"}),F=r(9243),B=r(77967),U=r(71050),V=r(66691),z=r(63322),q=[{day:0,amount:"100"},{day:3,amount:"95"}],H=function(e){var t=e.open,r=e.onClose,n=e.decayIntervalHours;return a.createElement(V.V,{open:t,onClose:r,className:"relative z-50"},a.createElement("div",{className:"fixed inset-0 bg-black/50","aria-hidden":"true","data-testid":"burning-rewards-info-backdrop"}),a.createElement("div",{className:"fixed inset-0 flex items-end justify-center tablet:items-center"},a.createElement(V.V.Panel,{"data-testid":"burning-rewards-info-modal",className:"w-full max-w-md overflow-hidden rounded-t-2xl bg-white tablet:rounded-2xl"},a.createElement("div",{className:"flex items-center justify-between bg-[#F7F7F8] px-4 py-4"},a.createElement(V.V.Title,{className:"font-bold text-ebonyGrey"},"Burning Reward"),a.createElement("button",{type:"button","aria-label":"Close","data-testid":"burning-rewards-info-close",onClick:r,className:"flex h-9 w-9 items-center justify-center rounded bg-white"},a.createElement(z.Z,{className:"h-[18px] w-[18px] text-[#162131]"}))),a.createElement("div",{className:"flex flex-col items-center gap-4 px-6 py-8"},a.createElement("span",{"data-testid":"burning-rewards-sheet-icon",className:"flex h-8 w-8 items-center justify-center rounded-full border-[0.3px] border-[#7A3B00] bg-[#FFB020] text-lg"},"ð¥"),a.createElement("h4",{className:"text-2xl font-bold text-black"},"Burning Rewards"),a.createElement("p",{className:"text-center text-base text-[#474747]"},"We will reward you more for completing tasks faster!".concat(n?" Every ".concat(n," hours the"):" The"," rewards will slightly decrease because the tasks are easier to achieve.")),a.createElement("div",{className:"flex w-[74%] flex-col gap-2"},q.map(function(e,t){return a.createElement("div",{key:e.day,className:"flex flex-col gap-2"},t>0&&a.createElement("span",{className:"text-center text-base text-ebonyGrey"},"â"),a.createElement("div",{className:"flex items-center gap-3 rounded-lg bg-[#F7F7F7] px-3 py-3"},a.createElement("span",{className:"flex h-7 items-center justify-center rounded-[5px] bg-[#FDF2DD] px-2 text-sm font-bold text-[#EB9A44]"},"Day ".concat(e.day)),a.createElement("span",{className:"flex-grow text-sm text-ebonyGrey"},"Reach Level 400"),a.createElement("span",{className:"flex h-7 items-center justify-center rounded-[5px] bg-[#EDFEFD] px-2 text-sm font-bold text-ebonyGrey"},a.createElement("span",{className:"text-primaryLight"},"£ "),e.amount)))})),a.createElement("p",{className:"text-center text-xs text-[#8E8E8E]"},"Image is just for illustration purposes, decay amount varies on an offer by offer basis.")))))}
2,G=function(e){var t=e.amount,r=e.displayMode,n=void 0===r?O.B7:r,i=e.className,o=(0,O.Rm)({displayMode:n,pointsValue:t});return a.createElement("div",{className:(0,h.m)("rounded bg-[#FFF1C1] px-[6px] py-1 text-xs text-[#5E4806]",i)},"â³ ",a.createElement("span",{className:"font-bold"},o)," pending")},$=r(75083),W=r(6385);function Z({title:e,titleId:t,...r},n){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?a.createElement("title",{id:t},e):null,a.createElement("path",{fillRule:"evenodd",d:"M9.315 7.584C12.195 3.883 16.695 1.5 21.75 1.5a.75.75 0 0 1 .75.75c0 5.056-2.383 9.555-6.084 12.436A6.75 6.75 0 0 1 9.75 22.5a.75.75 0 0 1-.75-.75v-4.131A15.838 15.838 0 0 1 6.382 15H2.25a.75.75 0 0 1-.75-.75 6.75 6.75 0 0 1 7.815-6.666ZM15 6.75a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Z",clipRule:"evenodd"}),a.createElement("path",{d:"M5.26 17.242a.75.75 0 1 0-.897-1.203 5.243 5.243 0 0 0-2.05 5.022.75.75 0 0 0 .625.627 5.243 5.243 0 0 0 5.022-2.051.75.75 0 1 0-1.202-.897 3.744 3.744 0 0 1-3.008 1.51c0-1.23.592-2.323 1.51-3.008Z"}))}var Q=a.forwardRef(Z),Y=r(58348),K=r(44232),J=r(19451),X=function(e){var t=e.reward,r=e.boostedReward,n=e.tokenReward,i=e.isRewardBoosted,o=e.isInstallBoosterActive,s=e.incentiveHidden,l=e.isCompleted,u=e.isTreatment,c=void 0!==u&&u,d=e.rewardDisplayMode,f=void 0===d?O.B7:d,p=e.className,m=i&&null!=r?r:t,v=(0,O.Rm)({pointsValue:null!=m?m:0,displayMode:f}),y=(0,O.Rm)({pointsValue:null!=t?t:0,displayMode:f});return s?null:l?a.createElement("div",{className:(0,h.m)("flex items-center gap-2",p)},n>0&&a.createElement(J.Z,{variant:"outlined",size:"small",isEarned:!0},a.createElement("span",null,n)),t>0&&a.createElement(g.Z,{reward:t,rewardDisplayMode:f,size:"small",isEarned:!0,isRewardBoosted:i})):a.createElement("div",{className:(0,h.m)("flex items-center gap-2",p)},n>0&&a.createElement(J.Z,{variant:"outlined",size:"small",className:"h-6 rounded px-1"},a.createElement("span",{className:"text-xs"},n)),o&&t>0?a.createElement("div",{"data-testid":"install-booster-reward-badge",className:"font-brownStd flex h-[22px] items-center justify-center rounded-[5px] px-1.5 text-[12px] font-bold leading-none text-[#20293A]",style:{backgroundImage:"linear-gradient(67deg, #FFBE5C 3.57%, #FFE03F 63%, #FFBE5C 79%, #FFE03F 100%)"}},y):c&&m>0?a.createElement(P,{pointsValue:v}):a.createElement(a.Fragment,null,i&&a.createElement(g.Z,{reward:r,rewardDisplayMode:f,isRewardBoosted:i,size:"small",className:(0,h.m)("",!l&&"h-6 border border-[#867000] px-1 text-xs")}),(r>0||t>0)&&a.createElement(g.Z,{reward:t,rewardDisplayMode:f,size:"small",className:(0,h.m)("h-6 px-1 text-xs",i&&"border-transparent bg-transparent px-0 [&_span]:text-[#FF2727] [&_span]:line-through")})))},ee=r(49687),te=["children","title","status","triggerKind","reward","boostedReward","isRewardBoosted","isInstallBoosterActive","tokenReward","rewardState","rewardDisplayMode","incentiveHidden","leading","isTreatment","groupType","triggerTimeLimitAfterReferenceMinutes","className"];function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},re.apply(null,arguments)}var ne=function(e){var t=e.reward,r=e.rewardDisplayMode,n=(0,O.Rm)({pointsValue:null!=t?t:0,displayMode:r});return t?a.createElement("span",{className:"flex h-5 items-center justify-center gap-1 whitespace-nowrap rounded-[3.39px] border border-[#5E4806] bg-[#FFF1C1] px-2 text-[10px]"},a.createElement("span",{"aria-hidden":!0},"â³"),a.createElement("span",{className:"text-xs font-bold leading-none text-[#5E4806]"},n)):null},ie=function(e){var t=e.children,r=e.className,n=e["data-testid"];return a.createElement("div",{"data-testid":n,className:(0,h.m)("flex h-4 w-4 items-center justify-center rounded-full border border-black",r)},t)};function oe(e){var t=e.isTreatment,r=e.groupType,n=e.title,i=e.status,o=e.iconStatus,s=e.triggerKind,l=e.triggerTimeLimitAfterReferenceMinutes,u=e.isPendingVerification;if(!t||"completed"===i||u)return a.createElement(ae,{status:o,triggerKind:s,className:"flex-shrink-0"});if("expired"===i)return null;if((0,ee.ur)({title:n}))return a.createElement("span",{"data-testid":"activity-task-step-install-number",className:"flex h-[18px] w-[18px] shrink-0 items-center justify-center rounded-full border border-[rgba(0,0,0,0.44)] bg-[#474747] text-[10px] font-bold text-white"},"1");if("setup"===r)return null;var c=(0,Y.wO)(l);if(!c)return null;
2var d="speed-bonus"===r||"booster"===r?r:"standard";return a.createElement(K.Z,{days:c,groupType:d})}var ae=function(e){var t=e.status,r=e.triggerKind,n=e.className;return"expired"===t?a.createElement(ie,{className:"border-[#D9D9D9] bg-[#D9D9D9]"},a.createElement(z.Z,{className:"h-3 w-3 stroke-[2] text-[#E79A9A]"})):"completed"===t?a.createElement(ie,{className:(0,h.m)("border-transparent bg-primary",n)},a.createElement($.Z,{className:"h-3 w-3 stroke-[4] text-white"})):"pending"===t?a.createElement(ie,{className:(0,h.m)("border border-[#5E4806] bg-[#FFF1C1] text-[8px]",n)},"â³"):"speed-bonus"===r?a.createElement(ie,{className:(0,h.m)("border-ebonyGrey bg-[#B2E8FF]",n)},a.createElement(W.Z,{className:"h-3 w-3"})):"booster"===r?a.createElement(ie,{className:(0,h.m)("border-ebonyGrey bg-[#D3FFCD]",n)},a.createElement(Q,{className:"h-[10px] w-[10px]"})):a.createElement(ie,{className:n})},se=function(e){var t=e.children,r=e.title,n=e.status,i=e.triggerKind,o=e.reward,s=e.boostedReward,l=e.isRewardBoosted,u=e.isInstallBoosterActive,c=e.tokenReward,d=e.rewardState,f=e.rewardDisplayMode,p=e.incentiveHidden,m=e.leading,v=e.isTreatment,g=void 0!==v&&v,y=e.groupType,b=e.triggerTimeLimitAfterReferenceMinutes,w=e.className,E=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({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,te),k="completed"===n,S=k&&"rejected"===d,_=k&&"pending"===d,C=_?"pending":n,O=_?"Pending verification. This can take up to 7 days":t;return a.createElement("div",re({"data-testid":"activity-task-step-card",className:(0,h.m)("flex gap-2",g?"items-start":"items-center py-2",w)},E),a.createElement("div",{className:(0,h.m)("flex min-w-0 flex-1",g?"items-start gap-[7px]":"items-center gap-3")},null!=m?m:a.createElement(oe,{isTreatment:g,groupType:y,title:r,status:n,iconStatus:C,triggerKind:i,triggerTimeLimitAfterReferenceMinutes:b,isPendingVerification:_}),a.createElement("div",{className:(0,h.m)("min-w-0 flex-1 text-sm text-ebonyGrey","completed"===n&&"font-bold text-primary","expired"===n&&"text-slateGrey",S&&"font-normal text-slateGrey",_&&"font-normal text-black",u&&"font-brownStd text-[14px] font-bold leading-[22px] tracking-[0.067px] text-[#572DF2]")},a.createElement("p",{"data-testid":"activity-task-step-title",className:(0,h.m)(g&&!u&&"line-clamp-2 ".concat(x))},u&&"â¡ ",r),O?a.createElement("p",{className:(0,h.m)("text-[10px] leading-tight text-slateGrey",_&&"text-[#5E4806]")},O):null)),"expired"===n?a.createElement("span",{className:"whitespace-nowrap rounded border border-[#DBDBDB] bg-[#FFF2D7] p-1 text-xs text-[#8B5C00]"},"Time Ran Out!"):S?a.createElement("span",{className:"whitespace-nowrap rounded border border-[#DBDBDB] bg-[#F4F4F4] p-1 text-xs text-slateGrey"},"Not earned"):_?a.createElement(ne,{reward:o,rewardDisplayMode:f}):a.createElement(X,{tokenReward:c,reward:o,boostedReward:s,isRewardBoosted:l,isInstallBoosterActive:u,incentiveHidden:p,isCompleted:k,isTreatment:g,rewardDisplayMode:f,className:"shrink-0"}))},le=r(98889),ue=r(71453),ce=function(e){var t=e.currentDay,r=e.maxDay,n=e.className,i=t/r*100;return i>100?a.createElement(fe,{className:n}):a.createElement(de,{className:n},a.createElement("h3",{className:"text-xl"},a.createElement("span",{className:"font-bold"},"Day ",t,"/"),a.createElement("span",{className:"text-slateGrey"},r)),a.createElement("p",{className:"text-xs text-slateGrey"},"This task has steps that will expire if not completed on time."),a.createElement(b.Z,{progress:i,barClassName:"bg-[#A82DF3] rounded-full",className:"h-2 rounded-full bg-[#F5E4FF]"}))},de=function(e){var t=e.children,r=e.className;return a.createElement("div",{"data-testid":"task-expiration-countdown-card",className:(0,h.m)("space-y-1 rounded border border-lilyGrey bg-white px-2 pb-2 pt-3",r)},t)},fe=function(e){var t=e.className;return a.createElement(de,{className:(0,h.m)("space-y-3",t)},a.createElement("div",{className:"space-y-1"},a.createElement("h3",{className:"font-bold"},"You ran out of time"),a.createElement("p",{className:"text-xs text-slateGrey"},"Unfortunately you didn't complete this offers tasks on time and can't get rewarded for your progress.")),a.createElement(ue.Z,{variant:"secondary",kind:"link",to:le.routes.earn(),className:"inline-block"},"See more offers"))},pe=r(14252),he=r(93520),me=r(73169),ve=(r(69108),r(54370),r(5153),r(67506),r(80566),r(50870),r(75397),r(18829),r(95498),r(51429),r(61842),r(25376),r(38333),r(95864),r(63990),r(94565),r(95073),r(65204),r(47072),r(98391),r(24338),r(22727),r(2002),r(19647),r(62008));function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var ye=new Set(["instant_cashback","biggest_quick_win","your_next_win","holdout"]);function be(e){return!("completed"===e.status||"expired"===e.status||0===e.title.trim().length||!e.reward||e.expiresAt&&e.expiresAt.getTime()-Date.now()<=0)}function we(e){return e.reward?e.reward.isBoosted?e.reward.boostedPoints:e.reward.points:0}var xe=new Set(["playtime","retention"]);function Ee(e){var t;return xe.has(e.triggerKind)||xe.has(null!==(t=e.triggerType)&&void 0!==t?t:"")}function ke(e,t){var r;return"instant_cashback"===e?null!==(r=t.find(function(e){return"booster"===e.triggerKind&&be(e)}))&&void 0!==r?r:null:"biggest_quick_win"===e?function(e){var t,r=Date.now(),n=null,i=-1/0,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return ge(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)?ge(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}
2}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(e);try{for(o.s();!(t=o.n()).done;){var a=t.value;if("speed-bonus"===a.triggerKind&&be(a)&&a.expiresAt&&!(a.expiresAt.getTime()-r>864e6)){var s=we(a);(null===n||s>i)&&(n=a,i=s)}}}catch(e){o.e(e)}finally{o.f()}return n}(t):"your_next_win"===e?function(e){var t;return null!==(t=e.find(function(e){return"standard"===e.triggerKind&&"outbound"!==e.triggerType&&!(0,ee.ur)(e)&&!Ee(e)&&be(e)}))&&void 0!==t?t:null}(t):null}var Se=r(10251);var _e=r(49793),Ce=r.p+"static/media/boosted-rewards-banner.60e294f3.png",Oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAfCAYAAADwbH0HAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAABZBJREFUeAG1V0toXGUYPfc57zwnmWnSJI2VNLVSKrVaFFRwoSh2peBKELpyL1WXrtwILlyr6MKVqPhYtQuRiPjCttZqGtNMxkk6yUzmfZ//f6/nTkQE08xtsR/chJn/cf5zvvN9/x0lFFaIgRFjyi3OV3FHQhk44w4BD2as4xZD2CWguwTpbEI4Em6zDSVzDLn5J6CnxmLvowzOcQh7ew32jR+QlJ/BTDtQtHFIoUD0LHS3G7AaLVibXYyffgmTp1+AomgYxHpfxr61g82l9+Fvf4fC3B/Qc0cQtsrA8DhzxDyqGrSEDtM04OgeKl+9jfbWKuafPAc9kdlv65vn2OtsY/2L1+FWvka++AuSE8cRhirc1g5ltiGly4Ntw+9UEKAHfSgBI8kslJZQOv8WAo7vF3tKLb0e1j49B69+FcP5MvJH74WamKZ6AQLPh1tdQef6Krp/Ouhte8y7RHLKhDY+BmlOINTHUXzgRUyeOINbYlz76UM4lW+YhwqyE2loyel/CsS/cRl+fQNGJovUzAQyC0WYhSHY6zTachU0BDQ9wM7vFyCsenxg4XZR//kDDvhIZj0YQ7O0icqHZmquQPG60FImVMNAqARQklmYUxNIH04hFBrE5hZCtwGl9S06K5/HB25fX0Jg8eTMnJEOyXZs16CBRNjm96qJgLl2eh7sahvCyEAbpSK5PBIFHrCnIKgu05AO2uXLCAI/HrBV/h6aQmFDn8AGFD3Vb0TSbuyyFgKdCktovQZj9ggSuREoCRprcg5BeoRu5iY9gcTMDM+qwK1diwfsNdfIlRRDQRhtdwpNFfrN/rjTdeA3WMvZJGVOw7ME2islSK4SagJqWuEh+fRKXObAqa/GA5auxURHWJJNQuy23QhYcmsZHSmE8HjAHTcSBWYmATOVohkrVEejo1nhBvfp1Zgej2W5FRe4AxFKCKmyTKyotv7u+ZH8EpqpQx814VQ9dK9dpxlduruIVPFAfxyaClWlHalYIHqs80Y8YDUxzgUhGwTgth3IwOqbq5/raJy9zsyayN0zQWUEtpZ+JKsOv0xBVcL+AaOOqZB5YPvs5614wMboPCUUlDmE2xEQnTrLhhslR/qSe10LdombpYeQPXoI+fsWWFoapGVDiVIjRZQb9msdskNfuG484GR+geqK/mOTiN3Y2B3Qk1AJrkWMyMz+dQ1uvYqQ7ES3BdncgPRdqkVTqjQXT+vWy0xNdk/g/1wSo0cew6rUo2STuQGrssErz0PYoVnYOMy0jqG7MghLLpx1GmfY6cuqRPXq9vpMWOq8uajWTg3myBziMR45gNT0/fAixraOFvuxW1uHs8NbSe1AHT4II6FieDaF4btzVFyln3yEDsfcyO5kM65SelaFGyA5uRgPOIr5p16Bb4f9i75ZNdG4eolX4iHWL4VQmMP0ZF9WaonQphLdGjSrB413tFHgFenRZGRtHFjA0MKp+MCjh09i7NgzcB2BVltB5WIb1tYVIJciYBu+xmpmmwxpIIV1r/k+72Vm/2ASVhDA9djh9DSmz5yLHLEn8E3fQLxuE+dffgS9WhkGW2hx1sPco5PQzQx8n2qQsJAG/1NS22bNt1kFdDZt4yOPVOFBHD/7Lo2oxmcchZkdwcOvfQQ1M4WOo6K8rGH1whacVosvBNEM/hEODdhjR7NYaWRtKPBaBrTcIhaffeOmoPsy3o0Q7c01fPnq82hWlmGwjosFgYOn0sgVsgRLsGx9dkY2Gsdl36a7xx7H4nNv0qRF7BcDgaOQ7NsXP34Plz55B7WVK0iydvNTEqMTClJZHYGWobQnMP3QWUydfJotU8OgiAX870+d2g1s/naZbPkSQAXGZg5hqDiDRDq755r/BThexFsz4JfE4J8itwMaA/h2It5hBwDfOan/ApQo0OyxwO7FAAAAAElFTkSuQmCC",Pe=r(93076),Te=r(22595),Ae=r(29876),Ie={green:{track:"bg-[#C3EFE0]",fill:"bg-primaryLight"},purple:{track:"bg-[#EFDEFF]",fill:"bg-gemPurple"},burning:{track:"bg-[#FDF2DD]",fill:"bg-[#EB9A44]"}};function Ne(e){var t=e.progressBar,r=e.tone,n=void 0===r?"green":r,i=e.className,o=(0,Ae.mh)(),s=Ie[n],l="iap"===t.kind?"purchase-total-progress":"ad-revenue-progress";return a.createElement("div",{"data-testid":l,"data-kind":t.kind,"data-progress":t.progress,"data-tone":n,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.displayedPercentage,"aria-label":t.ariaLabel,className:(0,h.m)("flex items-center gap-1",i)},a.createElement("p",{className:"font-brownStd shrink-0 text-center text-xs font-bold tracking-[-0.24px] text-[#80858F]"},t.showAmounts?"".concat(o).concat(t.current,"/").concat(o).concat(t.target):"".concat(t.displayedPercentage,"%")),a.createElement(b.Z,{progress:t.renderedProgress,barClassName:(0,h.m)("rounded-[30px]",s.fill),className:(0,h.m)("h-[9px] w-auto min-w-0 flex-1 rounded-[30px]",s.track)}))}var Re,je={instant_cashback:{gradientClassName:"bg-gradient-to-b from-white to-[#D0FFEF]",eyebrowClassName:"text-[#009362]",eyebrowKey:"activity-detail.next-win-card.instant-cashback"},biggest_quick_win:{gradientClassName:"bg-gradient-to-b from-white to-[rgba(205,215,255,0.72)]",eyebrowClassName:"text-[#002FFF]",eyebrowKey:"activity-detail.next-win-card.biggest-quick-win"},your_next_win:{gradientClassName:"bg-gradient-to-b from-white to-[#F7F9FF]",eyebrowClassName:"text-[#202A2F]/67",eyebrowKey:"activity-detail.next-win-card.your-next-win"}};function Me(e){var t=e.gameId,r=e.branch,n=e.eyebrow,i=e.title,o=e.pointsValue,s=e.remainingSeconds,l=e.ctaLabel,u=e.onCtaPress,c=e.onViewed,d=e.viewedGameIdsRef,f=e.children,p=(0,O.Rm)({pointsValue:o}),m=(0,O.Mt)(p),v=m.symbol,g=m.amount,y=je[r],b=function(e){return e>0&&e<=86400}(s),w=(0,a.useRef)(new Set),x=null!=d?d:w,E=(0,a.useRef)(c);return E.current=c,(0,a.useEffect)(function(){x.current.has(t)||(x.current.add(t),E.current())},[t,x]),a.createElement("div",{className:"flex flex-col gap-2"},a.createElement("div",{"data-testid":"next-win-card",className:"overflow-hidden rounded-[19px] border-2 border-lilyGrey"},a.createElement("div",{className:(0,h.m)("px-[14px] py-4",y.gradientClassName)},a.createElement("div",{className:"flex items-center justify-between gap-3"},a.createElement("p",{"data-testid":"next-win-card-eyebrow",className:(0,h.m)("flex-1 text-base leading-[23px] tracking-[-0.64px]",y.eyebrowClassName)},n),b&&a.createElement("p",{"data-testid":"next-win-card-timer",className:"shrink-0 text-base tracking-[-0.32px] text-[#FF685E]"},function(e){var t=(0,ve.B)(Math.max(0,e)),r=t.hours,n=t.minutes,i=t.seconds;return"".concat(Number(r),"h:").concat(n,"m:").concat(i,"s")}(s))),a.createElement("p",{"data-testid":"next-win-card-title",className:"mt-3 text-[29px] font-bold leading-9 tracking-[-0.58px] text-[#263238]"},i),f,a.createElement("div",{className:"mt-4 flex items-center justify-between gap-3"},a.createElement("button",{type:"button","data-testid":"next-win-card-cta","aria-label":l,onClick:u,className:"flex h-[35px] items-center justify-center gap-1 rounded-lg bg-[#263238] px-2.5 text-base tracking-[-0.32px] text-white"},l,a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},a.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",fill:"white"}))),a.createElement("p",{"data-testid":"next-win-card-reward",className:"text-[29px] font-bold tracking-[-0.58px] text-[#263238]"},!!v&&a.createElement("span",{className:"text-[29px] font-bold tracking-[2.9px] text-primaryLight"}
2,v),g)))),"instant_cashback"===r&&a.createElement("div",{"data-testid":"next-win-card-pro-tip",className:"flex items-center gap-1 overflow-hidden rounded-[19px] border-2 border-lilyGrey bg-[linear-gradient(93deg,#FFFFFF_23%,#FFF9D7_100%)] p-2"},a.createElement("img",{src:Oe,alt:"",className:"h-[31px] w-[30px] shrink-0 object-contain"}),a.createElement("p",{className:"min-w-0 flex-1 text-xs"},a.createElement(Pe.cC,{i18nKey:"activity-detail.next-win-card.pro-tip",components:{bold:a.createElement("strong",null)}}))))}function De(e){var t=e.step,r=e.currentIapSpend,n=e.currentAdRevenueSpend,i=(0,ee.xD)({step:t,task:{currentIapSpend:null!=r?r:0,currentAdRevenueSpend:null!=n?n:0}});return i?a.createElement(Ne,{progressBar:i,tone:Ee(t)?"purple":"green",className:"mt-3"}):null}function Le(e){var t,r,n,i,o,s,l=e.branch,u=e.steps,c=e.gameId,d=e.offerName,f=e.onLaunch,p=e.viewedGameIdsRef,h=e.currentIapSpend,m=e.currentAdRevenueSpend,v=(0,Pe.$G)().t,g=ke(l,u),y=(0,Te.$)(null!==(t=null==g||null===(r=g.expiresAt)||void 0===r?void 0:r.toISOString())&&void 0!==t?t:null).remainingSeconds;if(!g)return null;var b,w=null!==(n=g.reward)&&void 0!==n&&n.isBoosted?g.reward.boostedPoints:null!==(i=null===(o=g.reward)||void 0===o?void 0:o.points)&&void 0!==i?i:0,x={game_id:c,offer_name:d,branch:l,reward_type:(b=null!==(s=g.triggerKind)&&void 0!==s?s:"","speed-bonus"===b?"speed_bonus":"standard"===b?"standard":"booster"),reward_amount:w};return a.createElement(Me,{gameId:c,branch:l,eyebrow:v(je[l].eyebrowKey),title:g.title,pointsValue:w,remainingSeconds:y,ctaLabel:v("activity-detail.next-win-card.play-and-earn"),viewedGameIdsRef:p,onCtaPress:function(){(0,pe.zV)(x),f()},onViewed:function(){(0,pe.As)(x)}},a.createElement(De,{step:g,currentIapSpend:h,currentAdRevenueSpend:m}))}function Fe(e){return function(e){if(Array.isArray(e))return Be(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Be(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)?Be(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r(92243);var Ue,Ve=(0,i.ZP)(Re||(Re=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n query YourEarningProductSummaryQuery($productId: String!) {\n product(id: $productId) {\n id\n name\n redirectUrl\n pgFeatureKey\n isFeatured\n liked\n brand {\n id\n name\n }\n category {\n id\n name\n slug\n }\n }\n }\n"])));function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ze.apply(null,arguments)}function qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return He(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)?He(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function He(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Ge=(0,i.ZP)(Ue||(Ue=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n query YourEarningProgressCellQuery($taskId: String!) {\n task(id: $taskId) {\n id\n productId\n estimatedVerificationMinutes\n isCompleted\n incentiveType\n referenceTriggerId\n currentIapSpend\n currentAdRevenueSpend\n steps {\n id\n title\n isCompleted\n completedAt\n triggerId\n triggerType\n triggerState\n triggerKind\n completesConversion\n purchaseTotalTarget\n adRevenueTotalTarget\n triggerReferenceTimeLimitationsEffectiveFrom\n triggerTimeLimitAfterReferenceMinutes\n reward {\n points\n boostedPoints\n tokens\n isBoosted\n streak\n state\n }\n burning {\n startingPoints\n currentPoints\n percentageRemaining\n windowHours\n decayIntervalHours\n startedAt\n expiresAt\n isExpired\n }\n }\n }\n }\n"]))),$e=function(e){var t=e.className;return e.showProductSummary?a.createElement("div",{"data-testid":"activity-task-steps-loading",className:(0,h.m)("min-h-[520px] animate-fade space-y-3",t)},a.createElement(U.Z,{loading:!0},a.createElement("div",{className:"h-64"}))):a.createElement("div",{"data-testid":"activity-task-steps-loading",className:(0,h.m)("space-y-3",t)},a.createElement("h4",{className:"text-sm font-bold"},"Reward Breakdown"),a.createElement("div",{className:"space-y-3"},(0,he.R)(4).map(function(e,t){return a.createElement(U.Z,{key:t,loading:!0},a.createElement("div",{className:"h-5"}))})),a.createElement("div",{className:"flex items-center justify-center border-t border-t-lilyGrey py-3"},a.createElement(F.Z,null,"Got issues? Contact support")))},We=function(e){var t,r=e.summary,i=e.reward,o=e.rewardDisplayMode,s=e.steps,l=e.nextWinBranch,u=e.viewedGameIdsRef,c=e.positionIndex,d=e.lastSessionAt,f=e.currentIapSpend,p=e.currentAdRevenueSpend,h=(t=r.productId,(0,n.useQuery)(Ve,{variables:{productId:t}})).data,m=null==h?void 0:h.product;return m?a.createElement(Ze,{summary:r,product:m,reward:i,rewardDisplayMode:o,steps:s,nextWinBranch:l,viewedGameIdsRef:u,positionIndex:c,lastSessionAt:d,currentIapSpend:f,currentAdRevenueSpend:p}):null},Ze=function(e){var t=e.summary,r=e.product,n=e.reward,i=e.rewardDisplayMode,o=e.steps,s=e.nextWinBranch,u=e.viewedGameIdsRef,c=e.positionIndex,d=e.lastSessionAt,f=e.currentIapSpend,p=e.currentAdRevenueSpend,h=(0,v.P)({product:r,pointsReward:n,pgFeature:"pending_side_hustles",pgMetadata:{task_tier:t.tier}}).handleOutbound;return a.createElement("div",{className:"mb-4 space-y-4"},a.createElement("div",{className:"flex items-start justify-between gap-3"},a.createElement("h4",{className:"font-brownStd max-w-[70%] text-[22px] font-bold leading-normal tracking-[-0.44px] text-[#263238]"},t.title),a.createElement(Qe,{amount:n,rewardDisplayMode:i})),a.createElement(m.Z,{as:"button",onClick:function(){(0,pe.jw)({game_id:r.id,last_session_at:null!=d?d:null,position_index:null!=c?c:0}),h()},icon:a.createElement(l,{className:"h-4 w-4"}),className:"h-[47px] min-h-[47px] text-base"},"Keep Playing"),"holdout"!==s&&a.createElement(Le,{branch:s,steps:o,gameId:r.id,offerName:t.title,viewedGameIdsRef:u,onLaunch:h,currentIapSpend:f,currentAdRevenueSpend:p}))},Qe=function(e){var t,r,n=e.amount,i=e.rewardDisplayMode,o=(0,O.Rm)({pointsValue:n,displayMode:i}),s=null!==(t=null===(r=o.match(/^\D+/))||void 0===r?void 0:r[0])&&void 0!==t?t:"",l=s?o.slice(s.length):o;return a.createElement("div",{"data-testid":"product-earnings-badge",className:"font-brownStd flex h-10 min-w-[78px] items-center justify-center rounded-[5px] bg-[#E9FFFD] px-3 text-[20px] font-bold leading-none tracking-[-0.4px] text-[#263238]"},s&&a.createElement("span",{className:"text-[#05B379]"},s),a.createElement("span",null,l))},Ye=function(e){return e.reduce(function(e,t){var r,n,i=t.reward;return i?e+(i.isBoosted?null!==(r=i.boostedPoints)&&void 0!==r?r:0:null!==(n=i.points)&&void 0!==n?n:0):e},0)},Ke=function(e){var t=e.estimatedVerificationMinutes,r=e.status,n=e.triggerType,i=e.triggerKind,o=e.stepExpiresAt,s=e.taskReferenceTriggerId,l=e.referenceTriggerCompletionDate,p=e.stepTriggerTimeLimitAfterReferenceMinutes;if("completed"===r||"number"!=typeof t||"expired"===r||"postback"!==n&&"prograd-internal"!==n)return null;if("booster"===i)return null;if(o){var h=(0,u.Z)(o);if("speed-bonus"===i&&l){var m=new Date(l),v=new Date(o),g=new Date,y=(0,c.Z)(m,v),w=(0,c.Z)(m,g),x=100*Math.min(Math.max(w/y,0),1);return a.createElement(b.Z,{progress:x,barClassName:"bg-[#B2E8FF]",className:"mt-1 w-52"})}return a.createElement(a.Fragment,null,"You have ",a.createElement("span",{className:"font-bold"},h)," to claim this reward")}if(p&&s)try{var E=(0,ee.cd)(p);if(E>0)return a.createElement(a.Fragment,null,"Complete in"," ",a.createElement("span",{className:"font-bold"},E," ",1===E?"day":"days")," ","to Qualify")}catch(e){return console.error("Failed to calculate days to complete:",e),null}var k=(0,d.Z)(new Date,(0,f.Z)(new Date,t));return a.createElement(a.Fragment,null,"typically verified in"," ",a.createElement("span",{className:"font-bold"},k))},Je=function(e){var t=e.currentDayFromReferenceTriggerCompletion,r=e.totalDaysFromReferenceTriggerCompletion,n=e.isAnyExpiringStepPending,i=e.className;return t&&r?t<r&&!n?null:a.createElement(ce,{currentDay:t,maxDay:r,className:i}):null},Xe=function(e){var t,r=e.steps,n=e.task,i=e.rewardDisplayMode,s=void 0===i?O.B7:i,l=qe((0,a.useState)(!1),2),u=l[0],c=l[1];return a.createElement(y.Z,{className:"rounded-lg","data-testid":"burning-rewards-section"},a.createElement(y.Z.Header,{className:"flex-row items-center gap-[5px] space-y-0 px-4 py-3"},a.createElement("span",{"data-testid":"burning-rewards-section-icon",className:"flex h-4 w-4 items-center justify-center rounded-full border-[0.3px] border-[#7A3B00] bg-[#FFB020] text-[9px]"},"ð¥"),a.createElement("h5",{className:"font-bold"},"Burning Rewards"),a.createElement("button",{type:"button","aria-label":"Burning Rewards","data-testid":"burning-rewards-info-icon",onClick:function(){return c(!0)}},a.createElement(o.Z,{className:"h-4 w-4 cursor-pointer"}))),a.createElement(y.Z.Content,{className:"divide-y divide-lilyGrey p-0"},r.map(function(e){var t,r,i,o,l,u,c,d,f=(0,ee.xD)({step:e,task:n}),p="completed"!==e.status&&"expired"!==e.status;return a.createElement("div",{key:e.id,className:"px-4 py-3"},a.createElement(se,{status:e.status,title:e.title,triggerKind:e.triggerKind,reward:"completed"===e.status?null!==(t=null===(r=e.reward)||void 0===r?void 0:r.points)&&void 0!==t?t:null===(i=e.burning)||void 0===i?void 0:i.currentPoints:null!==(o=null===(l=e.burning)||void 0===l?void 0:l.currentPoints)&&void 0!==o?o:null===(u=e.reward)||void 0===u?void 0:u.points,tokenReward:null===(c=e.reward)||void 0===c?void 0:c.tokens,rewardState:null===(d=e.reward)||void 0===d?void 0:d.state,rewardDisplayMode:s,incentiveHidden:"direct"!==n.incentiveType,className:"p-0",leading:p&&e.burning?a.createElement("span",{"data-testid":"burning-rewards-day-pill",className:"flex h-6 w-[60
2px] flex-shrink-0 items-center justify-center rounded-[5px] bg-[#FDF2DD] text-sm font-bold tracking-[-0.28px] text-[#EB9A44]"},"".concat((0,ee.Ut)(e.burning)," Days")):void 0}),f&&a.createElement(Ne,{progressBar:f,tone:"burning",className:"mt-2"}))})),a.createElement("div",{className:"border-t border-lilyGrey p-3"},a.createElement("div",{"data-testid":"burning-rewards-pro-tip",className:"flex items-center gap-1 overflow-hidden rounded-[19px] border-2 border-lilyGrey bg-[linear-gradient(93deg,#FFFFFF_23%,#FFF9D7_100%)] p-2 text-xs text-ebonyGrey"},a.createElement("img",{src:Oe,alt:"",className:"h-[31px] w-[30px] shrink-0 object-contain"}),a.createElement("p",{className:"min-w-0 flex-1"},a.createElement("span",{className:"font-bold"},"Pro Tip: "),"Make optional in-app purchases to complete levels faster, and earn these rewards."))),a.createElement(H,{open:u,onClose:function(){return c(!1)},decayIntervalHours:null===(t=r[0])||void 0===t||null===(t=t.burning)||void 0===t?void 0:t.decayIntervalHours}))},et=function(e){var t=e.children,r=e.title,n=e.steps,i=e.task,s=e.rewardDisplayMode,l=void 0===s?O.B7:s,u=e.tooltip,c=e.hint,d=e.className,f=e.isInstallBoosterActive,m=void 0!==f&&f,v=e.isTreatment,g=void 0!==v&&v,b=e.groupType,x=a.createElement("div",{className:(0,h.m)("flex flex-row items-center",g?"h-[37px] justify-start gap-[5px]":"items-center gap-1 px-4 py-3")},g&&("speed-bonus"===b||"booster"===b)&&a.createElement(C,{type:b}),a.createElement("h5",{className:g?w:"font-bold"},r),u&&a.createElement(a.Fragment,null,a.createElement(o.Z,{"data-tooltip-id":r,className:"h-4 w-4 cursor-pointer"}),a.createElement(p.u,{id:r,opacity:1,openEvents:{click:!0,mouseover:!0},globalCloseEvents:{escape:!0,clickOutsideAnchor:!0},className:"!max-w-60 !rounded-lg !bg-white !shadow-xl"},a.createElement("div",{className:"text-ebonyGrey"},a.createElement("h5",{className:"font-bold"},u.title),a.createElement("p",null,u.text))))),E=a.createElement(a.Fragment,null,n.map(function(e,t){var r,n,o,s,u,c=(0,ee.xD)({step:e,task:i}),d=g?m&&(0,ee.ur)(e):m;return a.createElement("div",{key:e.id,className:(0,h.m)(g?"py-4":"px-4 py-3",g&&"booster"===b&&0===t&&"pt-0",g&&t>0&&"border-t border-lilyGrey")},a.createElement(se,{status:e.status,title:e.title,triggerKind:e.triggerKind,reward:null===(r=e.reward)||void 0===r?void 0:r.points,tokenReward:null===(n=e.reward)||void 0===n?void 0:n.tokens,boostedReward:null===(o=e.reward)||void 0===o?void 0:o.boostedPoints,isRewardBoosted:null===(s=e.reward)||void 0===s?void 0:s.isBoosted,isInstallBoosterActive:d,rewardState:null===(u=e.reward)||void 0===u?void 0:u.state,rewardDisplayMode:l,incentiveHidden:"direct"!==i.incentiveType,isTreatment:g,groupType:b,triggerTimeLimitAfterReferenceMinutes:e.triggerTimeLimitAfterReferenceMinutes,className:"p-0"},!g&&a.createElement(Ke,{estimatedVerificationMinutes:i.estimatedVerificationMinutes,status:e.status,triggerType:e.triggerType,triggerKind:e.triggerKind,stepExpiresAt:e.expiresAt,taskReferenceTriggerId:i.referenceTriggerId,referenceTriggerCompletionDate:i.referenceTriggerCompletionDate,stepTriggerTimeLimitAfterReferenceMinutes:e.triggerTimeLimitAfterReferenceMinutes})),c&&a.createElement(Ne,{progressBar:c,tone:"green",className:"mt-2"}))}),t);return g?a.createElement("div",{"data-testid":"activity-task-step-group",className:d},x,"booster"===b&&a.createElement(tt,null),a.createElement("div",null,E)):a.createElement(y.Z,{"data-testid":"activity-task-step-group-card",className:(0,h.m)("rounded-lg",d)},a.createElement(y.Z.Header,{className:"space-y-0 p-0"},x),a.createElement(y.Z.Content,{className:"divide-y divide-lilyGrey p-0"},E),c&&a.createElement("div",{"data-testid":"step-group-hint",className:"rounded-b-lg border-t border-[#EAEAEA] bg-[#FFF0C1] px-4 py-2 text-[10px] leading-4 text-[#20293A]"},a.createElement("span",{className:"font-bold"},"Hint:")," ",c))};function tt(){return a.createElement("img",{"data-testid":"boosted-rewards-banner",src:Ce,alt:"Optional in-app purchases help complete levels faster, and earn 3x more rewards.",className:"my-4 w-full rounded-[9px]"})}var rt={setup:{title:"Install"},"speed-bonus":{title:"Speed Bonus Rewards",tooltip:{title:"Speed Bonus Rewards",text:"Complete these steps before time runs out to claim biggest rewards."},className:"bg-[#EEFAFF]"},booster:{title:"Boosted Rewards",className:"bg-[#F5FFF3]",holdoutHint:function(e){return e?"Purchases and rewarded ads both move you up faster.":"Use in-app purchases to complete levels faster."},holdoutTooltipText:function(e){return e?"Spend in the app or watch rewarded ads, and get some paid back to you, while you reach high levels faster.":"Spend money in app purchases, and get some paid back to you, while you reach high levels faster."}},standard:{title:"Progress Rewards",tooltip:{title:"Progress Rewards",text:"Complete the required game level to earn your rewards."}}},nt=function(e){var t,r,n,i,o,s=e.stepsToDisplay,l=e.allSteps,u=e.task,c=e.rewardDisplayMode,d=e.isInstallBoosterActive,f=e.productId,p=e.isTreatment,h=(0,ee.RU)(s),m=(null!==(t=null===(r=h.setup)||void 0===r?void 0:r.length)&&void 0!==t?t:0)>0,v=l?(null!==(n=null===(i=(0,ee.RU)(l).setup)||void 0===i?void 0:i.length)&&void 0!==n?n:0)>0:m,g=a.createElement(L,{productId:f,rewardDisplayMode:c,isTreatment:p}),y=null!==(o=h.burning)&&void 0!==o&&o.length?a.createElement(Xe,{steps:h.burning,task:u,rewardDisplayMode:c}):null;if(!p){var b,w=Boolean(null===(b=h.booster)||void 0===b?void 0:b.some(function(e){return"number"==typeof e.adRevenueTotalTarget}));return a.createElement(a.Fragment,null,m&&a.createElement(et,{title:"Install",steps:h.setup,task:u,rewardDisplayMode:c,isInstallBoosterActive:d,groupType:"setup"}),y,g,ee.Xc.filter(function(e){var t;return"setup"!==e&&(null===(t=h[e])||void 0===t?void 0:t.length)}).map(function(e){var t,r=rt[e],n=r.holdoutTooltipText?{title:r.title,text:r.holdoutTooltipText(w)}:r.tooltip;return a.createElement(et,{key:e,title:r.title,steps:h[e],task:u,rewardDisplayMode:c,tooltip:n,hint:null===(t=r.holdoutHint)||void 0===t?void 0:t.call(r,w),className:r.className,groupType:e})}))}var x=ee.Xc.filter(function(e){var t;return null===(t=h[e])||void 0===t?void 0:t.length});return a.createElement(a.Fragment,null,y,!m&&v&&g,x.map(function(e,t){var r,n=rt[e],i=Boolean(null===(r=h[e])||void 0===r?void 0:r.some(function(e){return"number"==typeof e.adRevenueTotalTarget}));return a.createElement(a.Fragment,{key:e},a.createElement(et,{title:n.title,steps:h[e],task:u,rewardDisplayMode:c,tooltip:n.holdoutTooltipText?{title:n.title,text:n.holdoutTooltipText(i)}:n.tooltip,isInstallBoosterActive:"setup"===e&&d,isTreatment:!0,groupType:e}),("setup"===e||0===t&&!v)&&g)}))},it=[{id:"available",label:"Available"},{id:"history",label:"History"}];function ot(e){var t=e.activeTab,r=e.onSelect;return a.createElement("div",{"data-testid":"activity-task-steps-tabs",className:"flex gap-6 border-b border-lilyGrey"},it.map(function(e){var n=e.id,i=e.label,o=n===t;return a.createElement("button",{key:n,type:"button","data-testid":"activity-task-steps-tab-".concat(n),role:"tab","aria-selected":o,onClick:function(){return r(n)},className:(0,h.m)("-mb-px border-b-2 py-3 text-base leading-6 tracking-[-0.32px]",o?"border-primary font-bold text-ebonyGrey":"text-ebonyGrey/57 border-transparent font-normal")},i)}))}function at(e){var t=e.steps,r=e.task,n=e.rewardDisplayMode,i=e.isTreatment,o=t.filter(function(e){return"completed"===e.status}),s=t.filter(function(e){return"expired"===e.status});return a.createElement("div",null,o.length>0&&a.createElement(st,{title:"Rewarded",steps:o,task:r,rewardDisplayMode:n,isTreatment:i}),s.length>0&&a.createElement(st,{title:"Expired",steps:s,task:r,rewardDisplayMode:n,isTreatment:i}))}function st(e){var t=e.title,r=e.steps,n=e.task,i=e.rewardDisplayMode,o=e.isTreatment;return a.createElement("div",null,a.createElement("div",{className:"flex h-[37px] flex-row items-center justify-start"},a.createElement("h5",{className:w},t)),r.map(function(e,t){var r,s,l,u,c;return a.createElement("div",{key:e.id,className:(0,h.m)("py-4",t>0&&"border-t border-lilyGrey")},a.createElement(se,{status:e.status,title:e.title,triggerKind:e.triggerKind,reward:null===(r=e.reward)||void 0===r?void 0:r.points,tokenReward:null===(s=e.reward)||void 0===s?void 0:s.tokens,boostedRew
2ard:null===(l=e.reward)||void 0===l?void 0:l.boostedPoints,isRewardBoosted:null===(u=e.reward)||void 0===u?void 0:u.isBoosted,rewardState:null===(c=e.reward)||void 0===c?void 0:c.state,rewardDisplayMode:i,incentiveHidden:"direct"!==n.incentiveType,isTreatment:o,triggerTimeLimitAfterReferenceMinutes:e.triggerTimeLimitAfterReferenceMinutes,className:"p-0"}))}))}var lt=(0,n.createCell)({QUERY:Ge,Loading:$e,Empty:function(){return a.createElement(a.Fragment,null)},Failure:function(e){var t=e.error,r=e.className;return a.createElement(B.Z,{message:null==t?void 0:t.message,className:r})},Success:function(e){var t,r=e.task,i=e.rewardDisplayMode,o=e.showProductSummary,s=void 0!==o&&o,l=e.productSummary,u=e.isInstallBoosterActive,c=e.nextWinViewedGameIdsRef,d=e.productSummaryPositionIndex,f=e.productSummaryLastSessionAt,p=e.className,m=(0,_e.J)(),v=m.isTreatment,g=m.isLoading,y=function(){var e,t,r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],i=(0,me.a)().currentUser,o=null==i?void 0:i.id,s=(0,n.useQuery)(Se.Q,{variables:{key:"next_win_card"},skip:!r||!o,fetchPolicy:"network-only"}),l=s.data,u=s.loading,c=s.error;return(0,a.useEffect)(function(){c&&console.error("next-win-card: feature flag fetch failed",c)},[c]),!r||!o||u||c?"holdout":(t=null==l||null===(e=l.featureFlag)||void 0===e?void 0:e.stringValue)&&ye.has(t)?t:"holdout"}(s),b=(0,ee.Sm)(r),w=b.steps,x=b.hasCompletedAnySteps,E=b.leftToEarn,k=function(e){var t=e.steps,r=e.isTreatment,n=e.surface,i=r&&"my-games"===n?function(e){var t=e.filter(function(e){return"completed"!==e.status&&"expired"!==e.status}),r=[].concat(Fe(e.filter(function(e){return"completed"===e.status})),Fe(e.filter(function(e){return"expired"===e.status})));return{initialTab:e.length>0&&e.every(function(e){return"completed"===e.status})?"history":"available",available:t,history:r}}(t):null;return{tabs:i}}({steps:w,isTreatment:v,surface:s?"my-games":"product-detail"}).tabs,S=qe((0,a.useState)(null),2),_=S[0],C=S[1];if((0,a.useEffect)(function(){C(null)},[r.id]),g)return a.createElement($e,{className:p,showProductSummary:s});var O=_&&_.taskId===r.id?_.tab:null!==(t=null==k?void 0:k.initialTab)&&void 0!==t?t:"available",P="number"==typeof b.currentDayFromReferenceTriggerCompletion&&"number"==typeof b.totalDaysFromReferenceTriggerCompletion&&!v,T=a.createElement("div",{"data-testid":"data-fallback"}),A={task:b,rewardDisplayMode:i,isInstallBoosterActive:u,productId:r.productId,isTreatment:v},I=k?a.createElement(a.Fragment,null,a.createElement(ot,{activeTab:O,onSelect:function(e){return C({taskId:r.id,tab:e})}}),"available"===O?k.available.length?a.createElement(nt,ze({stepsToDisplay:k.available,allSteps:w},A)):T:k.history.length?a.createElement(at,{steps:k.history,task:b,rewardDisplayMode:i,isTreatment:v}):T):a.createElement(nt,ze({stepsToDisplay:w},A)),N=a.createElement(a.Fragment,null,a.createElement("div",{className:"flex items-center justify-between"},!s&&!v&&a.createElement("h4",{"data-testid":"activity-task-steps-rewards-title",className:"font-bold"},"Rewards"),x&&E>0&&a.createElement(G,{amount:E,displayMode:i})),P&&a.createElement(Je,{currentDayFromReferenceTriggerCompletion:b.currentDayFromReferenceTriggerCompletion,totalDaysFromReferenceTriggerCompletion:b.totalDaysFromReferenceTriggerCompletion,isAnyExpiringStepPending:b.isAnyExpiringStepPending,className:"rounded-lg"}),a.createElement("div",{className:"space-y-4"},I),!s&&a.createElement("div",{className:"flex items-center justify-center"},a.createElement(F.Z,null,"Got issues? Contact support")));return s?a.createElement("div",{className:(0,h.m)("min-h-[520px] animate-fade",!v&&"rounded-[14px] border-4 border-[rgba(5,179,121,0.1)] bg-white p-3",p)},l&&a.createElement(We,{summary:l,reward:Ye(w),rewardDisplayMode:i,steps:w,nextWinBranch:y,viewedGameIdsRef:c,positionIndex:d,lastSessionAt:f,currentIapSpend:b.currentIapSpend,currentAdRevenueSpend:b.currentAdRevenueSpend}),a.createElement("div",{className:"space-y-4"},N)):a.createElement("div",{className:(0,h.m)("space-y-4",p)},N)},displayName:"YourEarningProgressCell"})},49687:function(e,t,r){"use strict";r.d(t,{Xc:function(){return w},cd:function(){return y},Ut:function(){return b},xD:function(){return g},RU:function(){return x},ur:function(){return E},Sm:function(){return m}}),r(66066),r(74413),r(62285),r(69108),r(57637),r(98704),r(63517),r(20779),r(67551),r(54370),r(5153),r(67506),r(80566),r(50870),r(75397),r(18829),r(95498),r(51429),r(61842),r(25376),r(38333),r(95864),r(63990),r(94565),r(95073),r(65204),r(47072),r(98391),r(24338),r(22727),r(2002),r(19647);var n=r(26992),i=r(42601),o=r(94762),a=r(32825),s=r(85902),l=r(14964),u=function(e,t){if(!Array.isArray(e))throw new Error("expected an array for first argument");
2if("function"!=typeof t)throw new Error("expected a function for second argument");for(var r={},n=0;n<e.length;n++){var i=e[n],o=t(i),a=r[o];Array.isArray(a)?r[o].push(i):r[o]=[i]}return r},c=["steps"];function d(e){return d="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},d(e)}function f(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 p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){h(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function h(e,t,r){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){var t,r=e.steps.filter(function(e){return!e.isCompleted}).reduce(function(e,t){var r,n;return e+((null===(r=t.reward)||void 0===r?void 0:r.boostedPoints)||(null===(n=t.reward)||void 0===n?void 0:n.points)||0)},0),u=e.steps.some(function(e){return e.isCompleted}),d=null===(t=e.steps.find(function(t){return t.triggerId===e.referenceTriggerId}))||void 0===t?void 0:t.completedAt,f=e.steps,h=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({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,c),m=f.filter(function(e){return!("survey"===e.triggerType&&"success"!==e.triggerState)}),v=e.steps.map(function(e){return function(e){var t=e.step,r=e.allSteps,a=function(e){var t=e.step,r=e.referenceTriggerCompletionDate;if(!r)return null;if(!t.triggerTimeLimitAfterReferenceMinutes)return null;var n=new Date(r);if(!t.triggerReferenceTimeLimitationsEffectiveFrom)return(0,i.Z)(n,t.triggerTimeLimitAfterReferenceMinutes);var a=new Date(t.triggerReferenceTimeLimitationsEffectiveFrom);return(0,o.Z)(n,a)?null:(0,i.Z)(n,t.triggerTimeLimitAfterReferenceMinutes)}({step:t,referenceTriggerCompletionDate:e.referenceTriggerCompletionDate}),s=function(e){var t,r=e.step,i=e.allSteps,o=e.stepExpiresAt;if(null!==(t=r.burning)&&void 0!==t&&t.isExpired)return"expired";var a=i.findIndex(function(e){return e.id===r.id}),s=i.some(function(e){return e.isCompleted}),l=i[a-1];return!r.isCompleted&&o&&(0,n.Z)(new Date,o)||r.isCompleted&&o&&(0,n.Z)(new Date(r.completedAt),o)?"expired":0!==a||s?r.isCompleted?"completed":null!=l&&l.isCompleted?"pending":"inactive":"active"}({step:t,allSteps:r,stepExpiresAt:a});return p(p({},t),{},{status:s,expiresAt:a})}({step:e,allSteps:m,referenceTriggerCompletionDate:d})}),g=v.filter(function(e){return e.expiresAt}),y=g.sort(function(e,t){return function(e,t){(0,s.Z)(2,arguments);var r=(0,a.Z)(e),n=(0,a.Z)(t),i=r.getTime()-n.getTime();return i>0?-1:i<0?1:i}(e.expiresAt,t.expiresAt)})[0],b=g.some(function(e){return"completed"!==e.status&&"expired"!==e.status});return p(p({},h),{},{steps:v,referenceTriggerCompletionDate:d,leftToEarn:r,hasCompletedAnySteps:u,isAnyExpiringStepPending:b,currentDayFromReferenceTriggerCompletion:d?(0,l.Z)(new Date,new Date(d))+1:null,totalDaysFromReferenceTriggerCompletion:d&&null!=y&&y.expiresAt?(0,l.Z)(new Date(y.expiresAt),new Date(d))+1:null})}var v=2;function g(e){var t,r,n,i=e.step,o=e.task;if("completed"===i.status||"expired"===i.status)return null;if("rejected"===(null===(t=i.reward)||void 0===t?void 0:t.state))return null;var a="number"==typeof i.purchaseTotalTarget&&i.purchaseTotalTarget>0?{kind:"iap",target:i.purchaseTotalTarget,current:null!==(r=o.currentIapSpend)&&void 0!==r?r:0,showAmounts:!0,ariaLabel:"Spending progress"}:"number"==typeof i.adRevenueTotalTarget&&i.adRevenueTotalTarget>0?{kind:"ad-revenue",target:i.adRevenueTotalTarget,current:null!==(n=o.currentAdRevenueSpend)&&void 0!==n?n:0,showAmounts:!1,ariaLabel:"Rewarded ads progress"}:null;if(!a)return null;var s=Math.max(0,Math.min(a.current/a.target*100,100));return p(p({},a),{},{progress:s,displayedPercentage:"ad-revenue"===a.kind&&s>0?Math.ceil(s):Math.round(s),renderedProgress:"ad-revenue"===a.kind&&s>0?Math.max(s,v):s})}function y(e){if("number"!=typeof e)throw new Error("calculateDaysToComplete: Expected a number but received ".concat(d(e)));if(isNaN(e))throw new Error("calculateDaysToComplete: Received NaN as input");if(e<=0)throw new Error("calculateDaysToComplete: Expected a positive number but received ".concat(e));return Math.ceil(e/1440)}function b(e){if(!e.expiresAt)return Math.ceil(e.windowHours/24);var t=new Date(e.expiresAt).getTime()-Date.now();return t<=0?0:Math.ceil(t/864e5)}var w=["setup","speed-bonus","booster","standard"];function x(e){var t=e.filter(function(e){return"outbound"===e.triggerType||E(e)}),r=new Set(t.map(function(e){return e.id})),n=e.filter(function(e){return!r.has(e.id)}),i=n.filter(function(e){return Boolean(e.burning)}),o=new Set(i.map(function(e){return e.id}));return p({setup:t,burning:i},u(n.filter(function(e){return!o.has(e.id)}),function(e){return e.triggerKind}))}function E(e){return e.title.toLowerCase().includes("install")}},54557:function(e,t,r){"use strict";r.d(t,{D:function(){return g},_:function(){return y}});var n,i,o,a=r(27378),s=r(94621),l=r(31786),u=r(73169),c=(0,s.ZP)(n||(i=["\n query LiteModeStateQuery($id: String) {\n user(id: $id) {\n liteMode {\n mode\n arm\n stage\n visibleCount\n rewardsUnlocked\n confirmedInstallCount\n uniqueOutboundCount\n magicMomentSeenAt\n }\n }\n }\n"],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}})))),d=2e3,f=8e3,p=500,h=r(46141),m={liteMode:null,isLiteMode:!1,loading:!1,refetch:function(){}},v=(0,a.createContext)(m);function g(e){var t,r,n,i=e.children,o=function(){var e,t,r=(0,u.a)().currentUser,n=(0,l.useQuery)(c,{variables:{id:null==r?void 0:r.id},skip:!(null!=r&&r.id),fetchPolicy:"cache-and-network"}),i=n.data,o=n.loading,a=n.error,s=n.refetch,d=null!==(e=null==i||null===(t=i.user)||void 0===t?void 0:t.liteMode)&&void 0!==e?e:null;return{liteMode:d,isLiteMode:null!==d&&"full"!==d.mode,loading:o,error:a,refetch:s}}();r=o.refetch,n=null===(t=o.liteMode)||void 0===t?void 0:t.mode,(0,a.useEffect)(function(){var e,t,i=0,o=function(){clearInterval(e),clearTimeout(t)},a=function(){if("hidden"!==document.visibilityState){var a=Date.now();a-i<p||(i=a,o(),r(),"lite"===n&&(e=setInterval(r,d),t=setTimeout(o,f)))}},s=function(){"visible"===document.visibilityState?a():(i=0,o())};return window.addEventListener("focus",a),document.addEventListener("visibilitychange",s),function(){o(),window.removeEventListener("focus",a),document.removeEventListener("visibilitychange",s)}},[r,n]);var s=!!h.V.FORCE_LITE_MODE||!o.error&&o.isLiteMode,m={liteMode:h.V.FORCE_LITE_MODE?{mode:"lite",arm:"control",stage:0,visibleCount:3,rewardsUnlocked:!1,confirmedInstallCount:0,uniqueOutboundCount:0,magicMomentSeenAt:null}:o.liteMode,isLiteMode:s,loading:o.loading,refetch:o.refetch};return a.createElement(v.Provider,{value:m},i)}function y(){return(0,a.useContext)(v)}},23462:function(e,t,r){"use strict";r.d(t,{Kr:function(){return _},Jm:function(){return O}
2,Sx:function(){return E}});var n,i,o,a,s,l,u,c,d,f,p,h,m=r(94621),v=r(31786);(0,m.ZP)(n||(o=["\n mutation CreateAddressRecord($input: CreateAddressRecordInput!) {\n createAddressRecord(input: $input) {\n id\n }\n }\n"],a||(a=o.slice(0)),n=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(a)}})))),(0,m.ZP)(i||(i=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n mutation CreateEducationRecord($input: CreateEducationRecordInput!) {\n createEducationRecord(input: $input) {\n id\n }\n }\n"]))),(0,m.ZP)(s||(s=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n mutation CreateFinancialRecord($input: CreateFinancialRecordInput!) {\n createFinancialRecord(input: $input) {\n id\n }\n }\n"]))),(0,m.ZP)(l||(l=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n mutation CreateGoal($input: CreateGoalInput!) {\n createGoal(input: $input) {\n id\n }\n }\n"]))),(0,m.ZP)(u||(u=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n mutation DeleteAccount {\n deleteUser {\n id\n }\n }\n"]))),(0,m.ZP)(c||(c=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n mutation DeleteAddressRecord($id: String!) {\n deleteAddressRecord(id: $id) {\n id\n }\n }\n"]))),(0,m.ZP)(d||(d=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n mutation UpdateEducationRecord($input: UpdateEducationRecordInput!) {\n updateEducationRecord(input: $input) {\n id\n }\n }\n"]))),(0,m.ZP)(f||(f=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n mutation UpdateFinancialRecord($input: UpdateFinancialRecordInput!) {\n updateFinancialRecord(input: $input) {\n id\n }\n }\n"]))),(0,m.ZP)(p||(p=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n mutation UpdateGoal($id: String!, $input: UpdateGoalInput!) {\n updateGoal(id: $id, input: $input) {\n id\n createdAt\n targetAmount\n bankAccountId\n balanceProportion\n startAmount\n }\n }\n"]))),(0,m.ZP)(h||(h=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n mutation UpdateUser($input: UpdateUserInput!) {\n updateUser(input: $input) {\n id\n }\n }\n"])));var g,y,b,w=r(2182),x=(0,m.ZP)(g||(g=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n mutation UpdateUserProfile($input: UpdateUserProfileInput!) {\n updateUserProfile(input: $input) {\n id\n }\n }\n"]))),E=(0,w.Q)(function(e){return(0,v.useMutation)(x,e)});(0,m.ZP)(y||(y=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n mutation ToggleProductLike($productId: String!, $liked: Boolean!) {\n toggleProductLike(productId: $productId, liked: $liked) {\n id\n userId\n productId\n liked\n }\n }\n"])));var k,S=(0,m.ZP)(b||(b=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n mutation ProductOutbound($input: ProductOutboundInput!) {\n outbound(input: $input) {\n id\n userId\n productId\n }\n }\n"]))),_=(0,w.Q)(function(e){return(0,v.useMutation)(S,e)}),C=(0,m.ZP)(k||(k=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n mutation SetProductActivatedBefore($input: SetProductActivatedBeforeInput!) {\n setProductActivatedBefore(input: $input) {\n id\n activatedBefore\n # Not read in the update() handler â returned so Apollo refreshes the\n # normalized Product:<id> entity ProductCell renders from. Answering "Yes"\n # flips isUserEligibleâfalse and redirectUrlâplaceholder (see\n # api/src/lib/product/index.ts:438), so the PDP re-gates its CTA with no refetch.\n isUserEligible\n redirectUrl\n }\n }
2\n'])));function O(e){return(0,v.useMutation)(C,e)}},2900:function(e,t,r){"use strict";r.d(t,{z:function(){return u}});var n,i,o,a=r(94621),s=r(31786),l=(0,a.ZP)(n||(i=["\n query CurrentActiveCampaignQuery($type: CampaignType!) {\n currentActiveCampaign(type: $type) {\n id\n name\n imageUrl\n gameRounds {\n id\n roundNumber\n imageUrl\n startDate\n endDate\n }\n }\n }\n"],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}}))));function u(e){return(0,s.useQuery)(l,{variables:{type:e}})}},81350:function(e,t,r){"use strict";r.d(t,{v:function(){return p}}),r(63517),r(74413),r(62285),r(20779);var n,i=r(94621),o=r(31786);function a(e){return a="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},a(e)}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 l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t,r){return(t=function(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c,d,f=(0,i.ZP)(n||(c=["\n query InvSimOnboardingStatus {\n userInvestmentSimulatorStatus {\n investmentWalletId\n acceptedInvestmentSimulatorTnCsAt\n }\n }\n"],d||(d=c.slice(0)),n=Object.freeze(Object.defineProperties(c,{raw:{value:Object.freeze(d)}}))));function p(){var e,t=(0,o.useQuery)(f,{fetchPolicy:"network-only"}),r=(null==t||null===(e=t.data)||void 0===e?void 0:e.userInvestmentSimulatorStatus)||{},n=r.acceptedInvestmentSimulatorTnCsAt,i=!!r.investmentWalletId&&!!n;return l(l({},t),{},{canUseInvestmentSimulator:i})}},61159:function(e,t,r){"use strict";r.d(t,{Nu:function(){return g},oj:function(){return v},rI:function(){return y}});var n,i,o,a,s=r(94621),l=r(31786),u=r(73169);function c(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var d=(0,s.ZP)(n||(n=c(["\n fragment OnboardingQuestionnaireFields on OnboardingQuestionnaireResult {\n status\n experimentKey\n arm\n assignedAt\n surveyId\n name\n completedAt\n questions {\n question {\n id\n name\n text\n description\n type\n inputType\n allowSkip\n options {\n id\n value\n }\n }\n userAnswer {\n value\n optionIds\n skipped\n }\n }\n }\n"]))),f=(0,s.ZP)(i||(i=c(["\n query MyOnboardingQuestionnaire {\n myOnboardingQuestionnaire {\n ...OnboardingQuestionnaireFields\n }\n }\n ","\n"])),d),p=(0,s.ZP)(o||(o=c(["\n mutation SaveOnboardingAnswer(\n $questionId: String!\n $answer: OnboardingAnswerInput!\n ) {\n saveOnboardingAnswer(questionId: $questionId, answer: $answer) {\n ...OnboardingQuestionnaireFields\n }\n }\n ","\n"])),d),h=(0,s.ZP)(a||(a=c(["\n mutation CompleteOnboardingQuestionnaire {\n completeOnboardingQuestionnaire {\n ...OnboardingQuestionnaireFields\n }\n }\n ","\n"])),d);function m(e,t){t&&e.writeQuery({query:f,data:{myOnboardingQuestionnaire:t}})}function v(){var e=(0,u.a)().currentUser;return(0,l.useQuery)(f,{skip:!(null!=e&&e.id),fetchPolicy:"cache-and-network"})}function g(){return(0,l.useMutation)(p,{update:function(e,t){var r=t.data;m(e,null==r?void 0:r.saveOnboardingAnswer)}})}function y(){return(0,l.useMutation)(h,{update:function(e,t){var r=t.data;m(e,null==r?void 0:r.completeOnboardingQuestionnaire)}})}},6718:function(e,t,r){"use strict";r.d(t,{$:function(){return u},Q:function(){return l}});var n,i,o,a=r(94621),s=r(31786),l=(0,a.ZP)(n||(i=["\n query NotSeenRewardsAndQuestC
2ompletionsQuery {\n notSeenRewardIds {\n rewardIds\n }\n }\n"],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}}))));function u(){return(0,s.useQuery)(l)}},64274:function(e,t,r){"use strict";r.d(t,{H:function(){return v},Q:function(){return m}}),r(63517),r(74413),r(62285),r(20779);var n,i=r(94621),o=r(31786),a=r(27378),s=r(14252),l=r(92023);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(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 d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function f(e,t,r){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p,h,m=(0,i.ZP)(n||(p=["\n query ShouldVerifyEmail {\n user {\n id\n emailVerified\n registeredBeforeEmailVerificationWasRequired\n emailValidationMoment\n }\n }\n"],h||(h=p.slice(0)),n=Object.freeze(Object.defineProperties(p,{raw:{value:Object.freeze(h)}}))));function v(){var e,t=(0,o.useQuery)(m),r=(null==t||null===(e=t.data)||void 0===e?void 0:e.user)||{},n=r.emailVerified,i=r.registeredBeforeEmailVerificationWasRequired,u=r.emailValidationMoment;(0,a.useEffect)(function(){(0,s.qr)(u)},[u]);var c=(0,l.d3)({emailVerified:n,registeredBeforeEmailVerificationWasRequired:i,emailValidationMoment:u});return d(d({},t),{},{shouldVerifyEmail:c})}},73916:function(e,t,r){"use strict";var n;r.d(t,{g:function(){return a}});var i,o,a=(0,r(94621).ZP)(n||(i=["\n mutation SubmitFingerprintEvent($eventId: String!, $visitorId: String!) {\n submitFingerprintEvent(eventId: $eventId, visitorId: $visitorId) {\n id\n }\n }\n"],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}}))))},66746:function(e,t,r){"use strict";function n(){const e=window,t="__fpjs_p_l_b",r=e[t];if(function(e,t){var r;const n=null===(r=Object.getOwnPropertyDescriptor)||void 0===r?void 0:r.call(Object,e,t);(null==n?void 0:n.configurable)?delete e[t]:n&&!n.writable||(e[t]=void 0)}(e,t),"function"!=typeof(null==r?void 0:r.load))throw new Error(u);return r}r.d(t,{Zc:function(){return b},JI:function(){return T}});const i="Blocked by CSP",o="The endpoint parameter is not a valid URL";function a(e){return function(e,t){const r=document,n="securitypolicyviolation";let o;const a=t=>{const r=new URL(e,location.href),{blockedURI:n}=t;n!==r.href&&n!==r.protocol.slice(0,-1)&&n!==r.origin||(o=t,s())};r.addEventListener(n,a);const s=()=>r.removeEventListener(n,a);return Promise.resolve().then(t).then(e=>(s(),e),e=>new Promise(e=>{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(null)}).then(()=>{if(s(),o)return(()=>{throw new Error(i)})();throw e}))}(e,()=>function(e){return new Promise((t,r)=>{if(function(e){if(URL.prototype)try{return new URL(e,location.href),!1}catch(e){if(e instanceof Error&&"TypeError"===e.name)return!0;throw e}}(e))throw new Error(o);const n=document.createElement("script"),i=()=>{var e;return null===(e=n.parentNode)||void 0===e?void 0:e.removeChild(n)},a=document.head||document.getElementsByTagName("head")[0];n.onload=()=>{i(),t()},n.onerror=()=>{i(),r(new Error(l))},n.async=!0,n.src=e,a.appendChild(n)})}(e)).then(n)}const s="API key required";const l="Failed to load the JS script of the agent",u="9319";const c="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js";var d=function(e){var t,r;const{picked:n,rest:d}=function(e,t){const r={},n={};for(const[i,o]of Object.entries(e))t.includes(i)?r[i]=o:n[i]=o;return{picked:r,rest:n}}(e,["scriptUrlPattern","token","apiKey"]),f=n.token,p=null!==(t=n.apiKey)&&void 0!==t?t:f,h=null!==(r=function(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}(e,"scriptUrlPattern"))&&void 0!==r?r:c,[m,v]=function(){const e=[],t=()=>{e.push({time:new Date,state:document.visibilityState})},r=(n=document,i="visibilitychange",o=t,n.addEventListener(i,o,a),()=>n.removeEventListener(i,o,a));var n,i,o,a;return t(),[e,r]}();return Promise.resolve().then(()=>
2{if(!p||"string"!=typeof p)throw new Error(s);return function(e,t){const r=[],[n,a]=function(e){const t=function(e){const t=[...e];return{current:()=>t[0],postpone(){const e=t.shift();void 0!==e&&t.push(e)},exclude(){t.shift()}}}(e),r=function(){let e=0;return()=>Math.random()*Math.min(3e3,100*Math.pow(2,e++))}(),n=new Set;return[t.current(),(e,a)=>{let s;const c=a instanceof Error?a.message:"";if(c===i||c===o)t.exclude(),s=0;else if(c===u)t.exclude();else if(c===l){const r=Date.now()-e.getTime()<50,i=t.current();i&&r&&!n.has(i)&&(n.add(i),s=0),t.postpone()}else t.postpone();const d=t.current();return void 0===d?void 0:[d,null!=s?s:e.getTime()+r()-Date.now()]}]}(e);let s;if(void 0===n)return Promise.reject(new TypeError("The list of script URL patterns is empty"));const c=e=>{const n=new Date,i=t=>r.push({url:e,startedAt:n,finishedAt:new Date,error:t}),o=t(e);return o.then(()=>i(),i),o.catch(e=>{if(null!=s||(s=e),r.length>=5)throw s;const t=a(n,e);if(!t)throw s;const[i,o]=t;return(l=o,new Promise(e=>setTimeout(e,l))).then(()=>c(i));var l})};return c(n).then(e=>[e,r])}(function(e,t){return(Array.isArray(e)?e:[e]).map(e=>function(e,t){const r=encodeURIComponent;return e.replace(/<[^<>]+>/g,e=>"<version>"===e?"3":"<apiKey>"===e?r(t):"<loaderVersion>"===e?r("3.12.9"):e)}(String(e),t))}(h,p),a)}).catch(e=>{throw v(),function(e){return e instanceof Error&&e.message===u?new Error(l):e}(e)}).then(([e,t])=>(v(),e.load({...d,ldi:{attempts:t,visibilityStates:m}})))};function f(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var l=n&&n.prototype instanceof s?n:s,u=Object.create(l.prototype);return p(u,"_invoke",function(r,n,i){var o,s,l,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return o=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&u&&!i&&t<c.length;t++){var i,o=c[t],p=f.p,h=o[2];r>3?(i=h===n)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=r<2&&p<o[1])?(s=0,f.v=n,f.n=o[1]):p<h&&(i=r<3||o[0]>n||n>h)&&(o[4]=r,o[5]=n,f.n=h,s=0))}if(i||r>1)return a;throw d=!0,n}return function(i,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(r,i,o),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(p(t={},n,function(){return this}),t),d=u.prototype=s.prototype=Object.create(c);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,p(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,p(d,"constructor",u),p(u,"constructor",l),l.displayName="GeneratorFunction",p(u,i,"GeneratorFunction"),p(d),p(d,i,"Generator"),p(d,n,function(){return this}),p(d,"toString",function(){return"[object Generator]"}),(f=function(){return{w:o,m:h}})()}function p(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}p=function(e,t,r,n){function o(t,r){p(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},p(e,t,r,n)}function h(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function m(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){h(o,n,i,a,s,"next",e)}function s(e){h(o,n,i,a,s,"throw",e)}a(void 0)})}}var v=null,g=function(e){return v||(v=d({apiKey:e,region:"eu"}).catch(function(e){throw v=null,e})),v},y=function(){var e=m(f().m(function e(t,r){var n,i;return f().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.n=1,b(r);case 1:if(n=e.v){e.n=2;break}return e.a(2);case 2:return e.p=2,e.n=3,t(n);case 3:e.n=5;break;case 4:e.p=4,i=e.v,console.error("[fingerprint-pro] Failed to submit fingerprint event â continuing silently",{err:i});case 5:return e.a(2)}},e,null,[[2,4]])}));return function(t,r){return e.apply(this,arguments)}}(),b=function(){var e=m(f().m(function e(t){var r,n,i,o;return f().w(function(e){for(;;)switch(e.p=e.n){case 0:if(r="dETfD09fTYeQKVHu5er0"){e.n=1;break}return console.error("[fingerprint-pro] Skipping fingerprint submission â public API key is not configured",{reason:"Missing FINGERPRINT_PRO_PUBLIC_API_KEY env var"}),e.a(2,null);case 1:return e.p=1,e.n=2,g(r);case 2:return n=e.v,e.n=3,n.get(t?{linkedId:t}:{});case 3:return i=e.v,e.a(2,{eventId:i.requestId,visitorId:i.visitorId});case 4:return e.p=4,o=e.v,console.error("[fingerprint-pro] Failed to submit fingerprint event â continuing silently",{err:o}),e.a(2,null)}},e,null,[[1,4]])}));return function(t){return e.apply(this,arguments)}}(),w=(r(63517),r(31786)),x=r(27378),E=r(73169),k=r(73916);function S(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var l=n&&n.prototype instanceof s?n:s,u=Object.create(l.prototype);return _(u,"_invoke",function(r,n,i){var o,s,l,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return o=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&u&&!i&&t<c.length;t++){var i,o=c[t],p=f.p,h=o[2];r>3?(i=h===n)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=r<2&&p<o[1])?(s=0,f.v=n,f.n=o[1]):p<h&&(i=r<3||o[0]>n||n>h)&&(o[4]=r,o[5]=n,f.n=h,s=0))}if(i||r>1)return a;throw d=!0,n}return function(i,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");
2if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(r,i,o),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_(t={},n,function(){return this}),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,_(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,_(d,"constructor",u),_(u,"constructor",l),l.displayName="GeneratorFunction",_(u,i,"GeneratorFunction"),_(d),_(d,i,"Generator"),_(d,n,function(){return this}),_(d,"toString",function(){return"[object Generator]"}),(S=function(){return{w:o,m:f}})()}function _(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}_=function(e,t,r,n){function o(t,r){_(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},_(e,t,r,n)}function C(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function O(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){C(o,n,i,a,s,"next",e)}function s(e){C(o,n,i,a,s,"throw",e)}a(void 0)})}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var T=function(){var e=(0,E.a)().currentUser,t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return P(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)?P(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,w.useMutation)(k.g),1)[0];return(0,x.useCallback)(function(){var r=O(S().m(function r(n){var i;return S().w(function(r){for(;;)switch(r.n){case 0:return r.n=1,y(function(){var e=O(S().m(function e(r){var n,i;return S().w(function(e){for(;;)switch(e.n){case 0:return n=r.eventId,i=r.visitorId,e.n=1,t({variables:{eventId:n,visitorId:i}});case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),null!==(i=null!=n?n:null==e?void 0:e.id)&&void 0!==i?i:null);case 1:return r.a(2)}},r)}));return function(e){return r.apply(this,arguments)}}(),[null==e?void 0:e.id,t])}},25277:function(e,t,r){"use strict";r.d(t,{O:function(){return Jr}});var n,i=r(85556);class o extends Error{constructor(e,t="FunctionsError",r){super(e),this.name=t,this.context=r}}class a extends o{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class s extends o{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class l extends o{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}!function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"}(n||(n={}));class u{constructor(e,{headers:t={},customFetch:r,region:i=n.Any}={}){this.url=e,this.headers=t,this.region=i,this.fetch=(e=>e?(...t)=>e(...t):(...e)=>fetch(...e))(r)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return(0,i.mG)(this,arguments,void 0,function*(e,t={}){var r;let n,i;try{const{headers:o,method:u,body:c,signal:d,timeout:f}=t;let p={},{region:h}=t;h||(h=this.region);const m=new URL(`${this.url}/${e}`);let v;h&&"any"!==h&&(p["x-region"]=h,m.searchParams.set("forceFunctionRegion",h)),c&&(o&&!Object.prototype.hasOwnProperty.call(o,"Content-Type")||!o)?"undefined"!=typeof Blob&&c instanceof Blob||c instanceof ArrayBuffer?(p["Content-Type"]="application/octet-stream",v=c):"string"==typeof c?(p["Content-Type"]="text/plain",v=c):"undefined"!=typeof FormData&&c instanceof FormData?v=c:(p["Content-Type"]="application/json",v=JSON.stringify(c)):v=!c||"string"==typeof c||"undefined"!=typeof Blob&&c instanceof Blob||c instanceof ArrayBuffer||"undefined"!=typeof FormData&&c instanceof FormData?c:JSON.stringify(c);let g=d;f&&(i=new AbortController,n=setTimeout(()=>i.abort(),f),d?(g=i.signal,d.addEventListener("abort",()=>i.abort())):g=i.signal);const y=yield this.fetch(m.toString(),{method:u||"POST",headers:Object.assign(Object.assign(Object.assign({},p),this.headers),o),body:v,signal:g}).catch(e=>{throw new a(e)}),b=y.headers.get("x-relay-error");
2if(b&&"true"===b)throw new s(y);if(!y.ok)throw new l(y);let w,x=(null!==(r=y.headers.get("Content-Type"))&&void 0!==r?r:"text/plain").split(";")[0].trim();return w="application/json"===x?yield y.json():"application/octet-stream"===x||"application/pdf"===x?yield y.blob():"text/event-stream"===x?y:"multipart/form-data"===x?yield y.formData():yield y.text(),{data:w,error:null,response:y}}catch(e){return{data:null,error:e,response:e instanceof l||e instanceof s?e.context:void 0}}finally{n&&clearTimeout(n)}})}}var c=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}},d=class{constructor(e){var t,r,n;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=null!==(t=e.shouldThrowOnError)&&void 0!==t&&t,this.signal=e.signal,this.isMaybeSingle=null!==(r=e.isMaybeSingle)&&void 0!==r&&r,this.urlLengthLimit=null!==(n=e.urlLengthLimit)&&void 0!==n?n:8e3,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var r=this;void 0===this.schema||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),"GET"!==this.method&&"HEAD"!==this.method&&this.headers.set("Content-Type","application/json");let n=(0,this.fetch)(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async e=>{let t=null,n=null,i=null,o=e.status,a=e.statusText;if(e.ok){var s,l;if("HEAD"!==r.method){var u;const t=await e.text();""===t||(n="text/csv"===r.headers.get("Accept")||r.headers.get("Accept")&&(null===(u=r.headers.get("Accept"))||void 0===u?void 0:u.includes("application/vnd.pgrst.plan+text"))?t:JSON.parse(t))}const c=null===(s=r.headers.get("Prefer"))||void 0===s?void 0:s.match(/count=(exact|planned|estimated)/),d=null===(l=e.headers.get("content-range"))||void 0===l?void 0:l.split("/");c&&d&&d.length>1&&(i=parseInt(d[1])),r.isMaybeSingle&&"GET"===r.method&&Array.isArray(n)&&(n.length>1?(t={code:"PGRST116",details:`Results contain ${n.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},n=null,i=null,o=406,a="Not Acceptable"):n=1===n.length?n[0]:null)}else{var d;const i=await e.text();try{t=JSON.parse(i),Array.isArray(t)&&404===e.status&&(n=[],t=null,o=200,a="OK")}catch(r){404===e.status&&""===i?(o=204,a="No Content"):t={message:i}}if(t&&r.isMaybeSingle&&(null==t||null===(d=t.details)||void 0===d?void 0:d.includes("0 rows"))&&(t=null,o=200,a="OK"),t&&r.shouldThrowOnError)throw new c(t)}return{error:t,data:n,count:i,status:o,statusText:a}});return this.shouldThrowOnError||(n=n.catch(e=>{var t;let r="",n="",i="";const o=null==e?void 0:e.cause;if(o){var a,s,l,u;const t=null!==(a=null==o?void 0:o.message)&&void 0!==a?a:"",n=null!==(s=null==o?void 0:o.code)&&void 0!==s?s:"";r=`${null!==(l=null==e?void 0:e.name)&&void 0!==l?l:"FetchError"}: ${null==e?void 0:e.message}`,r+=`\n\nCaused by: ${null!==(u=null==o?void 0:o.name)&&void 0!==u?u:"Error"}: ${t}`,n&&(r+=` (${n})`),(null==o?void 0:o.stack)&&(r+=`\n${o.stack}`)}else{var c;r=null!==(c=null==e?void 0:e.stack)&&void 0!==c?c:""}const d=this.url.toString().length;return"AbortError"===(null==e?void 0:e.name)||"ABORT_ERR"===(null==e?void 0:e.code)?(i="",n="Request was aborted (timeout or manual cancellation)",d>this.urlLengthLimit&&(n+=`. Note: Your request URL is ${d} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):"HeadersOverflowError"!==(null==o?void 0:o.name)&&"UND_ERR_HEADERS_OVERFLOW"!==(null==o?void 0:o.code)||(i="",n="HTTP headers exceeded server limits (typically 16KB)",d>this.urlLengthLimit&&(n+=`. Your request URL is ${d} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{error:{message:`${null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"FetchError"}: ${null==e?void 0:e.message}`,details:r,hint:n,code:i},data:null,count:null,status:0,statusText:""}}
2)),n.then(e,t)}returns(){return this}overrideTypes(){return this}},f=class extends d{select(e){let t=!1;const r=(null!=e?e:"*").split("").map(e=>/\s/.test(e)&&!t?"":('"'===e&&(t=!t),e)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:r,foreignTable:n,referencedTable:i=n}={}){const o=i?`${i}.order`:"order",a=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${a?`${a},`:""}${e}.${t?"asc":"desc"}${void 0===r?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:r=t}={}){const n=void 0===r?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${e}`),this}range(e,t,{foreignTable:r,referencedTable:n=r}={}){const i=void 0===n?"offset":`${n}.offset`,o=void 0===n?"limit":`${n}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(o,""+(t-e+1)),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return"GET"===this.method?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:e=!1,verbose:t=!1,settings:r=!1,buffers:n=!1,wal:i=!1,format:o="text"}={}){var a;const s=[e?"analyze":null,t?"verbose":null,r?"settings":null,n?"buffers":null,i?"wal":null].filter(Boolean).join("|"),l=null!==(a=this.headers.get("Accept"))&&void 0!==a?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${o}; for="${l}"; options=${s};`),this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const p=new RegExp("[,()]");var h=class extends f{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const r=Array.from(new Set(t)).map(e=>"string"==typeof e&&p.test(e)?`"${e}"`:`${e}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}notIn(e,t){const r=Array.from(new Set(t)).map(e=>"string"==typeof e&&p.test(e)?`"${e}"`:`${e}`).join(",");return this.url.searchParams.append(e,`not.in.(${r})`),this}contains(e,t){return"string"==typeof t?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return"string"==typeof t?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return"string"==typeof t?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:r,type:n}={}){let i="";"plain"===n?i="pl":"phrase"===n?i="ph":"websearch"===n&&(i="w");const o=void 0===r?"":`(${r})`;return this.url.searchParams.append(e,`${i}fts${o}.${t}`),this}match(e){return Object.entries(e).filter(([e,t])=>void 0!==t).forEach(([e,t])=>{this.url.searchParams.append(e,`eq.${t}`)}),this}not(e,t,r){return this.url.searchParams.append(e,`not.${t}.${r}`),this}or(e,{foreignTable:t,referencedTable:r=t}={}){const n=r?`${r}.or`:"or";return this.url.searchParams.append(n,`(${e})`),this}filter(e,t,r){return this.url.searchParams.append(e,`${t}.${r}`),this}},m=class{constructor(e,{headers:t={},schema:r,fetch:n,urlLengthLimit:i=8e3}){this.url=e,this.headers=new Headers(t),this.schema=r,this.fetch=n,this.urlLengthLimit=i}
2cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:r=!1,count:n}=null!=t?t:{},i=r?"HEAD":"GET";let o=!1;const a=(null!=e?e:"*").split("").map(e=>/\s/.test(e)&&!o?"":('"'===e&&(o=!o),e)).join(""),{url:s,headers:l}=this.cloneRequestState();return s.searchParams.set("select",a),n&&l.append("Prefer",`count=${n}`),new h({method:i,url:s,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}insert(e,{count:t,defaultToNull:r=!0}={}){var n;const{url:i,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),r||o.append("Prefer","missing=default"),Array.isArray(e)){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){const e=[...new Set(t)].map(e=>`"${e}"`);i.searchParams.set("columns",e.join(","))}}return new h({method:"POST",url:i,headers:o,schema:this.schema,body:e,fetch:null!==(n=this.fetch)&&void 0!==n?n:fetch,urlLengthLimit:this.urlLengthLimit})}upsert(e,{onConflict:t,ignoreDuplicates:r=!1,count:n,defaultToNull:i=!0}={}){var o;const{url:a,headers:s}=this.cloneRequestState();if(s.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),void 0!==t&&a.searchParams.set("on_conflict",t),n&&s.append("Prefer",`count=${n}`),i||s.append("Prefer","missing=default"),Array.isArray(e)){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){const e=[...new Set(t)].map(e=>`"${e}"`);a.searchParams.set("columns",e.join(","))}}return new h({method:"POST",url:a,headers:s,schema:this.schema,body:e,fetch:null!==(o=this.fetch)&&void 0!==o?o:fetch,urlLengthLimit:this.urlLengthLimit})}update(e,{count:t}={}){var r;const{url:n,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new h({method:"PATCH",url:n,headers:i,schema:this.schema,body:e,fetch:null!==(r=this.fetch)&&void 0!==r?r:fetch,urlLengthLimit:this.urlLengthLimit})}delete({count:e}={}){var t;const{url:r,headers:n}=this.cloneRequestState();return e&&n.append("Prefer",`count=${e}`),new h({method:"DELETE",url:r,headers:n,schema:this.schema,fetch:null!==(t=this.fetch)&&void 0!==t?t:fetch,urlLengthLimit:this.urlLengthLimit})}};function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t,r){return(t=function(e){var t=function(e){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(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 b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){g(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var w=class e{constructor(e,{headers:t={},schema:r,fetch:n,timeout:i,urlLengthLimit:o=8e3}={}){this.url=e,this.headers=new Headers(t),this.schemaName=r,this.urlLengthLimit=o;const a=null!=n?n:globalThis.fetch;this.fetch=void 0!==i&&i>0?(e,t)=>{const r=new AbortController,n=setTimeout(()=>r.abort(),i),o=null==t?void 0:t.signal;if(o){if(o.aborted)return clearTimeout(n),a(e,t);const i=()=>{clearTimeout(n),r.abort()};return o.addEventListener("abort",i,{once:!0}),a(e,b(b({},t),{},{signal:r.signal})).finally(()=>{clearTimeout(n),o.removeEventListener("abort",i)})}return a(e,b(b({},t),{},{signal:r.signal})).finally(()=>clearTimeout(n))}:a}from(e){if(!e||"string"!=typeof e||""===e.trim())throw new Error("Invalid relation name: relation must be a non-empty string.");
2return new m(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}schema(t){return new e(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}rpc(e,t={},{head:r=!1,get:n=!1,count:i}={}){var o;let a;const s=new URL(`${this.url}/rpc/${e}`);let l;const u=e=>null!==e&&"object"==typeof e&&(!Array.isArray(e)||e.some(u)),c=r&&Object.values(t).some(u);c?(a="POST",l=t):r||n?(a=r?"HEAD":"GET",Object.entries(t).filter(([e,t])=>void 0!==t).map(([e,t])=>[e,Array.isArray(t)?`{${t.join(",")}}`:`${t}`]).forEach(([e,t])=>{s.searchParams.append(e,t)})):(a="POST",l=t);const d=new Headers(this.headers);return c?d.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&d.set("Prefer",`count=${i}`),new h({method:a,url:s,headers:d,schema:this.schemaName,body:l,fetch:null!==(o=this.fetch)&&void 0!==o?o:fetch,urlLengthLimit:this.urlLengthLimit})}},x=class{constructor(){}static detectEnvironment(){var e;if("undefined"!=typeof WebSocket)return{type:"native",constructor:WebSocket};if("undefined"!=typeof globalThis&&void 0!==globalThis.WebSocket)return{type:"native",constructor:globalThis.WebSocket};if(void 0!==r.g&&void 0!==r.g.WebSocket)return{type:"native",constructor:r.g.WebSocket};if("undefined"!=typeof globalThis&&void 0!==globalThis.WebSocketPair&&void 0===globalThis.WebSocket)return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if("undefined"!=typeof globalThis&&globalThis.EdgeRuntime||"undefined"!=typeof navigator&&(null===(e=navigator.userAgent)||void 0===e?void 0:e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const t=globalThis.process;if(t){const e=t.versions;if(e&&e.node){const t=e.node,r=parseInt(t.replace(/^v/,"").split(".")[0]);return r>=22?void 0!==globalThis.WebSocket?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${r} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${r} detected without native WebSocket support.`,workaround:'For Node.js < 22, install "ws" package and provide it via the transport option:\nimport ws from "ws"\nnew RealtimeClient(url, { transport: ws })'}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.constructor)return e.constructor;let t=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(t+=`\n\nSuggested solution: ${e.workaround}`),new Error(t)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return"native"===e.type||"ws"===e.type}catch(e){return!1}}};const E="2.0.0",k=E,S="errored",_="joined",C={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"};class O{constructor(e){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=null!=e?e:[]}encode(e,t){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&"string"==typeof e.payload.event)return t(this._binaryEncodeUserBroadcastPush(e));let r=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(e){var t;return this._isArrayBuffer(null===(t=e.payload)||void 0===t?void 0:t.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){var t,r;const n=null!==(r=null===(t=e.payload)||void 0===t?void 0:t.payload)&&void 0!==r?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,n)}_encodeJsonUserBroadcastPush(e){var t,r;const n=null!==(r=null===(t=e.payload)||void 0===t?void 0:t.payload)&&void 0!==r?r:{},i=(new TextEncoder).encode(JSON.stringify(n)).buffer;return this._encodeUserBroadcastPush(e,this.JSON_ENCODING,i)}_encodeUserBroadcastPush(e,t,r){var n,i;const o=e.topic,a=null!==(n=e.ref)&&void 0!==n?n:"",s=null!==(i=e.join_ref)&&void 0!==i?i:"",l=e.payload.event,u=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},c=0===Object.keys(u).length?"":JSON.stringify(u);if(s.length>255)throw new Error(`joinRef length ${s.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(l.length>255)throw new Error(`userEvent length ${l.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`metadata length ${c.length} exceeds maximum of 255`);const d=this.USER_BROADCAST_PUSH_META_LENGTH+s.length+a.length+o.length+l.length+c.length,f=new ArrayBuffer(this.HEADER_LENGTH+d);let p=new DataView(f),h=0;p.setUint8(h++,this.KINDS.userBroadcastPush),p.setUint8(h++,s.length),p.setUint8(h++,a.length),p.setUint8(h++,o.length),p.setUint8(h++,l.length),p.setUint8(h++,c.length),p.setUint8(h++,t),Array.from(s,e=>p.setUint8(h++,e.charCodeAt(0))),Array.from(a,e=>p.setUint8(h++,e.charCodeAt(0))),Array.from(o,e=>p.setUint8(h++,e.charCodeAt(0))),Array.from(l,e=>p.setUint8(h++,e.charCodeAt(0))),Array.from(c,e=>p.setUint8(h++,e.charCodeAt(0)));var m=new Uint8Array(f.byteLength+r.byteLength);return m.set(new Uint8Array(f),0),m.set(new Uint8Array(r),f.byteLength),m.buffer}decode(e,t){if(this._isArrayBuffer(e))return t(this._binaryDecode(e));if("string"==typeof e){const r=JSON.parse(e),[n,i,o,a,s]=r;return t({join_ref:n,ref:i,topic:o,event:a,payload:s})}return t({})}_binaryDecode(e){const t=new DataView(e),r=t.getUint8(0),n=new TextDecoder;if(r===this.KINDS.userBroadcast)return this._decodeUserBroadcast(e,t,n)}_decodeUserBroadcast(e,t,r){const n=t.getUint8(1),i=t.getUint8(2),o=t.getUint8(3),a=t.getUint8(4);let s=this.HEADER_LENGTH+4;const l=r.decode(e.slice(s,s+n));s+=n;const u=r.decode(e.slice(s,s+i));s+=i;const c=r.decode(e.slice(s,s+o));s+=o;const d=e.slice(s,e.byteLength),f=a===this.JSON_ENCODING?JSON.parse(r.decode(d)):d,p={type:this.BROADCAST_EVENT,event:u,payload:f};return o>0&&(p.meta=JSON.parse(c)),{join_ref:null,ref:null,topic:l,event:this.BROADCAST_EVENT,payload:p}}_isArrayBuffer(e){var t;return e instanceof ArrayBuffer||"ArrayBuffer"===(null===(t=null==e?void 0:e.constructor)||void 0===t?void 0:t.name)}_pick(e,t){return e&&"object"==typeof e?Object.fromEntries(Object.entries(e).filter(([e])=>t.includes(e))):{}}}var P;!function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"}(P||(P={}));const T=(e,t,r={})=>{var n;const i=null!==(n=r.skipTypes)&&void 0!==n?n:[];return t?Object.keys(t).reduce((r,n)=>(r[n]=A(n,e,t,i),r),{}):{}},A=(e,t,r,n)=>{const i=t.find(t=>t.name===e),o=null==i?void 0:i.type,a=r[e];return o&&!n.includes(o)?I(o,a):N(a)},I=(e,t)=>{if("_"===e.charAt(0)){const r=e.slice(1,e.length);return D(t,r)}switch(e){case P.bool:return R(t);case P.float4:case P.float8:case P.int2:case P.int4:case P.int8:case P.numeric:case P.oid:return j(t);case P.json:case P.jsonb:return M(t);case P.timestamp:return L(t);case P.abstime:case P.date:case P.daterange:case P.int4range:case P.int8range:case P.money:case P.reltime:case P.text:case P.time:case P.timestamptz:case P.timetz:case P.tsrange:case P.tstzrange:default:return N(t)}},N=e=>e,R=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},j=e=>{if("string"==typeof e){const t=parseFloat(e);
2if(!Number.isNaN(t))return t}return e},M=e=>{if("string"==typeof e)try{return JSON.parse(e)}catch(t){return e}return e},D=(e,t)=>{if("string"!=typeof e)return e;const r=e.length-1,n=e[r];if("{"===e[0]&&"}"===n){let n;const i=e.slice(1,r);try{n=JSON.parse("["+i+"]")}catch(e){n=i?i.split(","):[]}return n.map(e=>I(t,e))}return e},L=e=>"string"==typeof e?e.replace(" ","T"):e,F=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),""===t.pathname||"/"===t.pathname?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};var B,U,V,z,q=e=>"function"==typeof e?e:function(){return e},H="undefined"!=typeof self?self:null,G="undefined"!=typeof window?window:null,$=H||G||globalThis,W="closed",Z="errored",Q="joined",Y="joining",K="leaving",J="phx_close",X="phx_error",ee="phx_reply",te="phx_leave",re="websocket",ne="base64url.bearer.phx.",ie=class{constructor(e,t,r,n){this.channel=e,this.event=t,this.payload=r||function(){return{}},this.receivedResp=null,this.timeout=n,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:r}){this.recHooks.filter(t=>t.status===e).forEach(e=>e.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},oe=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},ae=class{constructor(e,t,r){this.state=W,this.topic=e,this.params=q(t||{}),this.socket=r,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new ie(this,"phx_join",this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new oe(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Q,this.rejoinTimer.reset(),this.pushBuffer.forEach(e=>e.send()),this.pushBuffer=[]}),this.joinPush.receive("error",e=>{this.state=Z,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,e),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=W,this.socket.remove(this)}),this.onError(e=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,e),this.isJoining()&&this.joinPush.reset(),this.state=Z,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new ie(this,te,q({}),this.timeout).send(),this.state=Z,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(ee,(e,t)=>{this.trigger(this.replyEventName(t),e)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}
2teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=W,this.bindings=[]}onClose(e){this.on(J,e)}onError(e){return this.on(X,t=>e(t))}on(e,t){let r=this.bindingRef++;return this.bindings.push({event:e,ref:r,callback:t}),r}off(e,t){this.bindings=this.bindings.filter(r=>!(r.event===e&&(void 0===t||t===r.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,r=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let n=new ie(this,e,function(){return t},r);return this.canPush()?n.send():(n.startTimeout(),this.pushBuffer.push(n)),n}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=K;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(J,"leave")},r=new ie(this,te,q({}),e);return r.receive("ok",()=>t()).receive("timeout",()=>t()),r.send(),this.canPush()||r.trigger("ok",{}),r}onMessage(e,t,r){return t}filterBindings(e,t,r){return!0}isMember(e,t,r,n){return!(this.topic!==e||n&&n!==this.joinRef()&&(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:r,joinRef:n}),1))}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Y,this.joinPush.resend(e))}trigger(e,t,r,n){let i=this.onMessage(e,t,r,n);if(t&&!i)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let o=this.bindings.filter(n=>n.event===e&&this.filterBindings(n,t,r));for(let e=0;e<o.length;e++)o[e].callback(i,r,n||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===W}isErrored(){return this.state===Z}isJoined(){return this.state===Q}isJoining(){return this.state===Y}isLeaving(){return this.state===K}},se=class{static request(e,t,r,n,i,o,a){if($.XDomainRequest){let r=new $.XDomainRequest;return this.xdomainRequest(r,e,t,n,i,o,a)}if($.XMLHttpRequest){let s=new $.XMLHttpRequest;return this.xhrRequest(s,e,t,r,n,i,o,a)}if($.fetch&&$.AbortController)return this.fetchRequest(e,t,r,n,i,o,a);throw new Error("No suitable XMLHttpRequest implementation found")}static fetchRequest(e,t,r,n,i,o,a){let s={method:e,headers:r,body:n},l=null;return i&&(l=new AbortController,setTimeout(()=>l.abort(),i),s.signal=l.signal),$.fetch(t,s).then(e=>e.text()).then(e=>this.parseJSON(e)).then(e=>a&&a(e)).catch(e=>{"AbortError"===e.name&&o?o():a&&a(null)}),l}static xdomainRequest(e,t,r,n,i,o,a){return e.timeout=i,e.open(t,r),e.onload=()=>{let t=this.parseJSON(e.responseText);a&&a(t)},o&&(e.ontimeout=o),e.onprogress=()=>{},e.send(n),e}static xhrRequest(e,t,r,n,i,o,a,s){e.open(t,r,!0),e.timeout=o;for(let[t,r]of Object.entries(n))e.setRequestHeader(t,r);return e.onerror=()=>s&&s(null),e.onreadystatechange=()=>{if(4===e.readyState&&s){let t=this.parseJSON(e.responseText);s(t)}},a&&(e.ontimeout=a),e.send(i),e}static parseJSON(e){if(!e||""===e)return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let r=[];for(var n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let i=t?`${t}[${n}]`:n,o=e[n];"object"==typeof o?r.push(this.serialize(o,i)):r.push(encodeURIComponent(i)+"="+encodeURIComponent(o))}return r.join("&")}static appendParams(e,t){if(0===Object.keys(t).length)return e;let r=e.match(/\?/)?"&":"?";return`${e}${r}${this.serialize(t)}`}},le=class{constructor(e,t){t&&2===t.length&&t[1].startsWith(ne)&&(this.authToken=atob(t[1].slice(21))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=0,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+re),"$1/longpoll")}endpointURL(){return se.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,r){this.close(e,t,r),this.readyState=0}
2ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return 1===this.readyState||0===this.readyState}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),e=>{if(e){var{status:t,token:r,messages:n}=e;if(410===t&&null!==this.token)return this.onerror(410),void this.closeAndRetry(3410,"session_gone",!1);this.token=r}else t=0;switch(t){case 200:n.forEach(e=>{setTimeout(()=>this.onmessage({data:e}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=1,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${t}`)}})}send(e){"string"!=typeof e&&(e=(e=>{let t="",r=new Uint8Array(e),n=r.byteLength;for(let e=0;e<n;e++)t+=String.fromCharCode(r[e]);return btoa(t)})(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join("\n"),()=>
2this.onerror("timeout"),e=>{this.awaitingBatchAck=!1,e&&200===e.status?this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[]):(this.onerror(e&&e.status),this.closeAndRetry(1011,"internal server error",!1))})}close(e,t,r){for(let e of this.reqs)e.abort();this.readyState=3;let n=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:r});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,"undefined"!=typeof CloseEvent?this.onclose(new CloseEvent("close",n)):this.onclose(n)}ajax(e,t,r,n,i){let o;o=se.request(e,this.endpointURL(),t,r,this.timeout,()=>{this.reqs.delete(o),n()},e=>{this.reqs.delete(o),this.isActive()&&i(e)}),this.reqs.add(o)}},ue=class e{constructor(t,r={}){let n=r.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(n.state,t=>{let{onJoin:r,onLeave:n,onSync:i}=this.caller;this.joinRef=this.channel.joinRef(),this.state=e.syncState(this.state,t,r,n),this.pendingDiffs.forEach(t=>{this.state=e.syncDiff(this.state,t,r,n)}),this.pendingDiffs=[],i()}),this.channel.on(n.diff,t=>{let{onJoin:r,onLeave:n,onSync:i}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(t):(this.state=e.syncDiff(this.state,t,r,n),i())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(t){return e.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,t,r,n){let i=this.clone(e),o={},a={};return this.map(i,(e,r)=>{t[e]||(a[e]=r)}),this.map(t,(e,t)=>{let r=i[e];if(r){let n=t.metas.map(e=>e.phx_ref),i=r.metas.map(e=>e.phx_ref),s=t.metas.filter(e=>i.indexOf(e.phx_ref)<0),l=r.metas.filter(e=>n.indexOf(e.phx_ref)<0);s.length>0&&(o[e]=t,o[e].metas=s),l.length>0&&(a[e]=this.clone(r),a[e].metas=l)}else o[e]=t}),this.syncDiff(i,{joins:o,leaves:a},r,n)}static syncDiff(e,t,r,n){let{joins:i,leaves:o}=this.clone(t);return r||(r=function(){}),n||(n=function(){}),this.map(i,(t,n)=>{let i=e[t];if(e[t]=this.clone(n),i){let r=e[t].metas.map(e=>e.phx_ref),n=i.metas.filter(e=>r.indexOf(e.phx_ref)<0);e[t].metas.unshift(...n)}r(t,i,n)}),this.map(o,(t,r)=>{let i=e[t];if(!i)return;let o=r.metas.map(e=>e.phx_ref);i.metas=i.metas.filter(e=>o.indexOf(e.phx_ref)<0),n(t,i,r),0===i.metas.length&&delete e[t]}),e}static list(e,t){return t||(t=function(e,t){return t}),this.map(e,(e,r)=>t(e,r))}static map(e,t){return Object.getOwnPropertyNames(e).map(r=>t(r,e[r]))}static clone(e){return JSON.parse(JSON.stringify(e))}},ce={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let r=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(r))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[r,n,i,o,a]=JSON.parse(e);return t({join_ref:r,ref:n,topic:i,event:o,payload:a})}},binaryEncode(e){let{join_ref:t,ref:r,event:n,topic:i,payload:o}=e,a=this.META_LENGTH+t.length+r.length+i.length+n.length,s=new ArrayBuffer(this.HEADER_LENGTH+a),l=new DataView(s),u=0;l.setUint8(u++,this.KINDS.push),l.setUint8(u++,t.length),l.setUint8(u++,r.length),l.setUint8(u++,i.length),l.setUint8(u++,n.length),Array.from(t,e=>l.setUint8(u++,e.charCodeAt(0))),Array.from(r,e=>l.setUint8(u++,e.charCodeAt(0))),Array.from(i,e=>l.setUint8(u++,e.charCodeAt(0))),Array.from(n,e=>l.setUint8(u++,e.charCodeAt(0)));var c=new Uint8Array(s.byteLength+o.byteLength);return c.set(new Uint8Array(s),0),c.set(new Uint8Array(o),s.byteLength),c.buffer},binaryDecode(e){let t=new DataView(e),r=t.getUint8(0),n=new TextDecoder;switch(r){case this.KINDS.push:return this.decodePush(e,t,n);case this.KINDS.reply:return this.decodeReply(e,t,n);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,n)}},decodePush(e,t,r){let n=t.getUint8(1),i=t.getUint8(2),o=t.getUint8(3),a=this.HEADER_LENGTH+this.META_LENGTH-1,s=r.decode(e.slice(a,a+n));a+=n;let l=r.decode(e.slice(a,a+i));a+=i;let u=r.decode(e.slice(a,a+o));return a+=o,{join_ref:s,ref:null,topic:l,event:u,payload:e.slice(a,e.byteLength)}},decodeReply(e,t,r){let n=t.getUint8(1),i=t.getUint8(2),o=t.getUint8(3),a=t.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,l=r.decode(e.slice(s,s+n));s+=n;let u=r.decode(e.slice(s,s+i));s+=i;let c=r.decode(e.slice(s,s+o));s+=o;let d=r.decode(e.slice(s,s+a));s+=a;let f=e.slice(s,e.byteLength);return{join_ref:l,ref:u,topic:c,event:ee,payload:{status:d,response:f}}},decodeBroadcast(e,t,r){let n=t.getUint8(1),i=t.getUint8(2),o=this.HEADER_LENGTH+2,a=r.decode(e.slice(o,o+n));o+=n;let s=r.decode(e.slice(o,o+i));return o+=i,{join_ref:null,ref:null,topic:a,event:s,payload:e.slice(o,e.byteLength)}}},de=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||1e4,this.transport=t.transport||$.WebSocket||le,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=t.sessionStorage||$&&$.sessionStorage,this.establishedConnections=0,this.defaultEncoder=ce.encode.bind(ce),this.defaultDecoder=ce.decode.bind(ce),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==le?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;G&&G.addEventListener&&(G.addEventListener("pagehide",e=>{this.conn&&(this.disconnect(),r=this.connectClock)}),G.addEventListener("pageshow",e=>{r===this.connectClock&&(r=null,this.connect())}),G.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState?this.pageHidden=!0:(this.pageHidden=!1,this.isConnected()||this.closeWasClean||this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=e=>t.rejoinAfterMs?t.rejoinAfterMs(e):[1e3,2e3,5e3][e-1]||1e4,this.reconnectAfterMs=e=>t.reconnectAfterMs?t.reconnectAfterMs(e):[10,50,100,150,200,250,500,1e3,2e3][e-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(e,t,r)=>{console.log(`${e}: ${t}`,r)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=q(t.params||{}),this.endPoint=`${e}/${re}`,this.vsn=t.vsn||"2.0.0",this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new oe(()=>{if(this.pageHidden)return this.log("Not reconnecting as page is hidden!"),void this.teardown();this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return le}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.
2close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=se.appendParams(se.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return"/"!==e.charAt(0)?e:"/"===e.charAt(1)?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,r){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,r)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=q(e)),this.conn&&!this.disconnecting||(this.longPollFallbackMs&&this.transport!==le?this.connectWithFallback(le,this.longPollFallbackMs):this.transportConnect())}log(e,t,r){this.logger&&this.logger(e,t,r)}hasLogger(){return null!==this.logger}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),r=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let n=this.onMessage(i=>{i.ref===t&&(this.off([n]),e(Date.now()-r))});return!0}transportName(e){return e===le?"LongPoll":e.name}transportConnect(){let e;this.connectClock++,this.closeWasClean=!1,this.authToken&&(e=["phoenix",`${ne}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let r,n=!1,i=!0,o=this.transportName(e),a=t=>{this.log("transport",`falling back to ${o}...`,t),this.off([void 0,r]),i=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return a("memorized");this.fallbackTimer=setTimeout(a,t),r=this.onError(e=>{this.log("transport","error",e),i&&!n&&(clearTimeout(this.fallbackTimer),a(e))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!i){let t=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${t}`,"true"),this.log("transport",`established ${t} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(a,t),this.ping(e=>{this.log("transport","connected to primary after",e),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),1e3,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,r){if(!this.conn)return e&&e();const n=this.conn;this.waitForBufferDone(n,()=>{t?n.close(t,r||""):n.close(),this.waitForSocketClosed(n,()=>{this.conn===n&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){}
2,this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,r=1){5!==r&&e.bufferedAmount?setTimeout(()=>{this.waitForBufferDone(e,t,r+1)},150*r):t()}waitForSocketClosed(e,t,r=1){5!==r&&3!==e.readyState?setTimeout(()=>{this.waitForSocketClosed(e,t,r+1)},150*r):t()}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport",e);let t=this.transport,r=this.establishedConnections;this.triggerStateCallbacks("error",e,t,r),(t===this.transport||r>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(X)})}connectionState(){switch(this.conn&&this.conn.readyState){case 0:return"connecting";case 1:return"open";case 2:return"closing";default:return"closed"}}isConnected(){return"open"===this.connectionState()}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([t])=>-1===e.indexOf(t))}channel(e,t={}){let r=new ae(e,t,this);return this.channels.push(r),r}push(e){if(this.hasLogger()){let{topic:t,event:r,payload:n,ref:i,join_ref:o}=e;this.log("push",`${t} ${r} (${o}, ${i})`,n)}this.isConnected()?this.encode(e,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(e,e=>this.conn.send(e)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(this.isConnected())if(this.pendingHeartbeatRef)this.heartbeatTimeout();else{this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}else try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,e=>{let{topic:t,event:r,payload:n,ref:i,join_ref:o}=e;if(i&&i===this.pendingHeartbeatRef){const e=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback("ok"===n.status?"ok":"error",e)}catch(e){this.log("error","error in heartbeat callback",e)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${n.status||""} ${t} ${r} ${i&&"("+i+")"||""}`.trim(),n);for(let e=0;e<this.channels.length;e++){const a=this.channels[e];a.isMember(t,r,n,o)&&a.trigger(r,n,i,o)}this.triggerStateCallbacks("message",e)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([r,n])=>{try{n(...t)}catch(t){this.log("error",`error in ${e} callback`,t)}})}catch(t){this.log("error",`error triggering ${e} callbacks`,t)}}leaveOpenTopic(e){let t=this.channels.find(t=>t.topic===e&&(t.isJoined()||t.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class fe{constructor(e,t){const r=function(e){return(null==e?void 0:e.events)&&{events:e.events}}(t);this.presence=new ue(e.getChannel(),r),this.presence.onJoin((t,r,n)=>{const i=fe.onJoinPayload(t,r,n);e.getChannel().trigger("presence",i)}),this.presence.onLeave((t,r,n)=>{const i=fe.onLeavePayload(t,r,n);e.getChannel().trigger("presence",i)}),this.presence.onSync(()=>{e.getChannel().trigger("presence",{event:"sync"})})}get state(){return fe.transformState(this.presence.state)}static transformState(e){return e=function(e){return JSON.parse(JSON.stringify(e))}(e),Object.getOwnPropertyNames(e).reduce((t,r)=>{const n=e[r];return t[r]=pe(n),t},{})}static onJoinPayload(e,t,r){return{event:"join",key:e,currentPresences:he(t),newPresences:pe(r)}}static onLeavePayload(e,t,r){return{event:"leave",key:e,currentPresences:he(t),leftPresences:pe(r)}}}function pe(e){return e.metas.map(e=>(e.presence_ref=e.phx_ref,delete e.phx_ref,delete e.phx_ref_prev,e))}function he(e){return(null==e?void 0:e.metas)?pe(e):[]}!function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"}(B||(B={}));class me{get state(){return this.presenceAdapter.state}constructor(e,t){this.channel=e,this.presenceAdapter=new fe(this.channel.channelAdapter,t)}}class ve{constructor(e,t,r){const n=(i=r,{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},i.config)});var i;this.channel=e.getSocket().channel(t,n),this.socket=e}get state(){return this.channel.state}set state(e){this.channel.state=e}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(e,t){return this.channel.on(e,t)}off(e,t){this.channel.off(e,t)}subscribe(e){return this.channel.join(e)}unsubscribe(e){return this.channel.leave(e)}teardown(){this.channel.teardown()}onClose(e){this.channel.onClose(e)}onError(e){return this.channel.onError(e)}push(e,t,r){let n;try{n=this.channel.push(e,t,r)}catch(t){throw`tried to push '${e}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`}if(this.channel.pushBuffer.length>100){const e=this.channel.pushBuffer.shift();e.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${e.event}`,e.payload())}return n}updateJoinPayload(e){const t=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},t),e)}canPush(){return this.socket.isConnected()&&this.state===_}isJoined(){return this.state===_}isJoining(){return"joining"===this.state}isClosed(){return"closed"===this.state}isLeaving(){return"leaving"===this.state}updateFilterBindings(e){this.channel.filterBindings=e}updatePayloadTransform(e){this.channel.onMessage=e}getChannel(){return this.channel}}!function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"}(U||(U={})),function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"}(V||(V={})),function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"}(z||(z={}));class ge{get state(){return this.channelAdapter.state}set state(e){this.channelAdapter.state=e}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(e,t={config:{}},r){var n,i;if(this.topic=e,this.params=t,this.socket=r,this.bindings={},this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},t.config),this.channelAdapter=new ve(this.socket.socketAdapter,e,this.params),this.presence=new me(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=F(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(null===(i=null===(n=this.params.config)||void 0===n?void 0:n.broadcast)||void 0===i?void 0:i.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(e,t=this.timeout){var r,n,i;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:o,presence:a,private:s}}=this.params,l=null!==(n=null===(r=this.bindings.postgres_changes)||void 0===r?void 0:r.map(e=>e.filter))&&void 0!==n?n:[],u=!!this.bindings[V.PRESENCE]&&this.bindings[V.PRESENCE].length>0||!0===(null===(i=this.params.config.presence)||void 0===i?void 0:i.enabled),c={},d={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:u}),postgres_changes:l,private:s};this.socket.accessTokenValue&&(c.access_token=this.socket.accessTokenValue),this._onError(t=>{null==e||e(z.CHANNEL_ERROR,t)}),this._onClose(()=>null==e?void 0:e(z.CLOSED)),this.updateJoinPayload(Object.assign({config:d},c)),this._updateFilterMessage(),this.channelAdapter.subscribe(t).receive("ok",async({postgres_changes:t})=>{this.socket._isManualToken()||this.socket.setAuth(),void 0!==t?this._updatePostgresBindings(t,e):null==e||e(z.SUBSCRIBED)}).receive("error",t=>{this.state=S,null==e||e(z.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(t).join(", ")||"error")))}).receive("timeout",()=>{null==e||e(z.TIMED_OUT)})}return this}_updatePostgresBindings(e,t){var r;const n=this.bindings.postgres_changes,i=null!==(r=null==n?void 0:n.length)&&void 0!==r?r:0,o=[];for(let r=0;r<i;r++){const i=n[r],{filter:{event:a,schema:s,table:l,filter:u}}=i,c=e&&e[r];
2if(!(c&&c.event===a&&ge.isFilterValueEqual(c.schema,s)&&ge.isFilterValueEqual(c.table,l)&&ge.isFilterValueEqual(c.filter,u)))return this.unsubscribe(),this.state=S,void(null==t||t(z.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes")));o.push(Object.assign(Object.assign({},i),{id:c.id}))}this.bindings.postgres_changes=o,this.state!=S&&t&&t(z.SUBSCRIBED)}presenceState(){return this.presence.state}async track(e,t={}){return await this.send({type:"presence",event:"track",payload:e},t.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,t,r){if(this.channelAdapter.isJoined()&&e===V.PRESENCE)throw this.socket.log("channel",`cannot add presence callbacks for ${this.topic} after joining.`),new Error("cannot add presence callbacks after joining a channel");return this._on(e,t,r)}async httpSend(e,t,r={}){var n;if(null==t)return Promise.reject("Payload is required for httpSend()");const i={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:i,body:JSON.stringify({messages:[{topic:this.subTopic,event:e,payload:t,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,o,null!==(n=r.timeout)&&void 0!==n?n:this.timeout);if(202===a.status)return{success:!0};let s=a.statusText;try{const e=await a.json();s=e.error||e.message||s}catch(e){}return Promise.reject(new Error(s))}async send(e,t={}){var r,n;if(this.channelAdapter.canPush()||"broadcast"!==e.type)return new Promise(r=>{var n,i,o;const a=this.channelAdapter.push(e.type,e,t.timeout||this.timeout);"broadcast"!==e.type||(null===(o=null===(i=null===(n=this.params)||void 0===n?void 0:n.config)||void 0===i?void 0:i.broadcast)||void 0===o?void 0:o.ack)||r("ok"),a.receive("ok",()=>r("ok")),a.receive("error",()=>r("error")),a.receive("timeout",()=>r("timed out"))});{console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated
2in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:o}=e,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const s={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const e=await this._fetchWithTimeout(this.broadcastEndpointURL,s,null!==(r=t.timeout)&&void 0!==r?r:this.timeout);return await(null===(n=e.body)||void 0===n?void 0:n.cancel()),e.ok?"ok":"error"}catch(e){return"AbortError"===e.name?"timed out":"error"}}}updateJoinPayload(e){this.channelAdapter.updateJoinPayload(e)}async unsubscribe(e=this.timeout){return new Promise(t=>{this.channelAdapter.unsubscribe(e).receive("ok",()=>t("ok")).receive("timeout",()=>t("timed out")).receive("error",()=>t("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(e,t,r){const n=new AbortController,i=setTimeout(()=>n.abort(),r),o=await this.socket.fetch(e,Object.assign(Object.assign({},t),{signal:n.signal}));return clearTimeout(i),o}_on(e,t,r){const n=e.toLocaleLowerCase(),i={type:n,filter:t,callback:r,ref:this.channelAdapter.on(e,r)};return this.bindings[n]?this.bindings[n].push(i):this.bindings[n]=[i],this._updateFilterMessage(),this}_onClose(e){this.channelAdapter.onClose(e)}_onError(e){this.channelAdapter.onError(e)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((e,t,r)=>{var n,i,o,a,s,l,u;const c=e.event.toLocaleLowerCase();if(this._notThisChannelEvent(c,r))return!1;const d=null===(n=this.bindings[c])||void 0===n?void 0:n.find(t=>t.ref===e.ref);if(!d)return!0;if(["broadcast","presence","postgres_changes"].includes(c)){if("id"in d){const e=d.id,r=null===(i=d.filter)||void 0===i?void 0:i.event;return e&&(null===(o=t.ids)||void 0===o?void 0:o.includes(e))&&("*"===r||(null==r?void 0:r.toLocaleLowerCase())===(null===(a=t.data)||void 0===a?void 0:a.type.toLocaleLowerCase()))}{const e=null===(l=null===(s=null==d?void 0:d.filter)||void 0===s?void 0:s.event)||void 0===l?void 0:l.toLocaleLowerCase();return"*"===e||e===(null===(u=null==t?void 0:t.event)||void 0===u?void 0:u.toLocaleLowerCase())}}return d.type.toLocaleLowerCase()===c})}_notThisChannelEvent(e,t){const{close:r,error:n,leave:i,join:o}=C;return t&&[r,n,i,o].includes(e)&&t!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((e,t,r)=>{if("object"==typeof t&&"ids"in t){const e=t.data,{schema:r,table:n,commit_timestamp:i,type:o,errors:a}=e,s={schema:r,table:n,commit_timestamp:i,eventType:o,new:{},old:{},errors:a};return Object.assign(Object.assign({},s),this._getPayloadRecords(e))}return t})}static isFilterValueEqual(e,t){return(null!=e?e:void 0)===(null!=t?t:void 0)}_getPayloadRecords(e){const t={new:{},old:{}};return"INSERT"!==e.type&&"UPDATE"!==e.type||(t.new=T(e.columns,e.record)),"UPDATE"!==e.type&&"DELETE"!==e.type||(t.old=T(e.columns,e.old_record)),t}}class ye{constructor(e,t){this.socket=new de(e,t)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(e){this.socket.heartbeatCallback=e}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(e,t,r,n=1e4){return new Promise(i=>{setTimeout(()=>i("timeout"),n),this.socket.disconnect(()=>{e(),i("ok")},t,r)})}push(e){this.socket.push(e)}log(e,t,r){this.socket.log(e,t,r)}makeRef(){return this.socket.makeRef()}onOpen(e){this.socket.onOpen(e)}onClose(e){this.socket.onClose(e)}onError(e){this.socket.onError(e)}onMessage(e){this.socket.onMessage(e)}isConnected(){return this.socket.isConnected()}isConnecting(){return"connecting"==this.socket.connectionState()}isDisconnecting(){return"closing"==this.socket.connectionState()}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const be=[1e3,2e3,5e3,1e4];class we{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(e,t){var r;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
2,this.ref=0,this.serializer=new O,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._resolveFetch=e=>e?(...t)=>e(...t):(...e)=>fetch(...e),!(null===(r=null==t?void 0:t.params)||void 0===r?void 0:r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=t.params.apikey;const n=this._initializeOptions(t);this.socketAdapter=new ye(e,n),this.httpEndpoint=F(e),this.fetch=this._resolveFetch(null==t?void 0:t.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(e){const t=e.message;if(t.includes("Node.js"))throw new Error(`${t}\n\nTo use Realtime in Node.js, you need to provide a WebSocket implementation:\n\nOption 1: Use Node.js 22+ which has native WebSocket support\nOption 2: Install and provide the "ws" package:\n\n npm install ws\n\n import ws from "ws"\n const client = new RealtimeClient(url, {\n ...options,\n transport: ws\n })`);throw new Error(`WebSocket not available: ${t}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(e,t){return this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},e,t)}getChannels(){return this.channels}async removeChannel(e){const t=await e.unsubscribe();return"ok"===t&&e.teardown(),0===this.channels.length&&this.disconnect(),t}async removeAllChannels(){const e=this.channels.map(async e=>{const t=await e.unsubscribe();return e.teardown(),t}),t=await Promise.all(e);return this.disconnect(),t}log(e,t,r){this.socketAdapter.log(e,t,r)}connectionState(){return this.socketAdapter.connectionState()||"closed"}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(e,t={config:{}}){const r=`realtime:${e}`,n=this.getChannels().find(e=>e.topic===r);if(n)return n;{const r=new ge(`realtime:${e}`,t,this);return this.channels.push(r),r}}push(e){this.socketAdapter.push(e)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(e){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(e)}_makeRef(){return this.socketAdapter.makeRef()}_remove(e){this.channels=this.channels.filter(t=>t.topic!==e.topic)}async _performAuth(e=null){let t,r=!1;if(e)t=e,r=!0;else if(this.accessToken)try{t=await this.accessToken()}catch(e){this.log("error","Error fetching access token from callback",e),t=this.accessTokenValue}else t=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=t&&(this.accessTokenValue=t,this.channels.forEach(e=>{const r={access_token:t,version:"realtime-js/2.100.0"};t&&e.updateJoinPayload(r),e.joinedOnce&&e.channelAdapter.isJoined()&&e.channelAdapter.push(C.access_token,{access_token:t})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this._isManualToken()||this.setAuth().catch(t=>{this.log("error",`Error setting auth in ${e}`,t)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(e=>{this.log("error","error waiting for auth on connect",e)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(e=>{e.ref&&e.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(e){return(t,r)=>{"sent"==t&&this._setAuthSafely(),e&&e(t,r)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=e=>{this.log("worker","worker error",e.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=e=>{"keepAlive"===e.data.event&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(e){let t;if(e)t=e;else{const e=new Blob(['\n addEventListener("message", (e) => {\n if (e.data.event === "start") {\n setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);\n }\n });'],{type:"application/javascript"});t=URL.createObjectURL(e)}return t}_initializeOptions(e){var t,r,n,i,o,a,s,l,u;this.worker=null!==(t=null==e?void 0:e.worker)&&void 0!==t&&t,this.accessToken=null!==(r=null==e?void 0:e.accessToken)&&void 0!==r?r:null;const c={};let d,f;c.timeout=null!==(n=null==e?void 0:e.timeout)&&void 0!==n?n:1e4,c.heartbeatIntervalMs=null!==(i=null==e?void 0:e.heartbeatIntervalMs)&&void 0!==i?i:25e3,c.transport=null!==(o=null==e?void 0:e.transport)&&void 0!==o?o:x.getWebSocketConstructor(),c.params=null==e?void 0:e.params,c.logger=null==e?void 0:e.logger,c.heartbeatCallback=this._wrapHeartbeatCallback(null==e?void 0:e.heartbeatCallback),c.reconnectAfterMs=null!==(a=null==e?void 0:e.reconnectAfterMs)&&void 0!==a?a:e=>be[e-1]||1e4;const p=null!==(s=null==e?void 0:e.vsn)&&void 0!==s?s:k;switch(p){case"1.0.0":d=(e,t)=>t(JSON.stringify(e)),f=(e,t)=>t(JSON.parse(e));break;case E:d=this.serializer.encode.bind(this.serializer),f=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${c.vsn}`)}if(c.vsn=p,c.encode=null!==(l=null==e?void 0:e.encode)&&void 0!==l?l:d,c.decode=null!==(u=null==e?void 0:e.decode)&&void 0!==u?u:f,c.beforeReconnect=this._reconnectAuth.bind(this),((null==e?void 0:e.logLevel)||(null==e?void 0:e.log_level))&&(this.logLevel=e.logLevel||e.log_level,c.params=Object.assign(Object.assign({},c.params),{log_level:this.logLevel})),this.worker){if("undefined"!=typeof window&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=null==e?void 0:e.workerUrl,c.autoSendHeartbeat=!this.worker}return c}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
2var xe=class extends Error{constructor(e,t){super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown="CommitStateUnknownException"===t.icebergType||[500,502,504].includes(t.status)&&!0===t.icebergType?.includes("CommitState")}isNotFound(){return 404===this.status}isConflict(){return 409===this.status}isAuthenticationTimeout(){return 419===this.status}};function Ee(e){return e.join("�")}var ke=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Ee(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(e=>({namespace:e}))}async createNamespace(e,t){const r={namespace:e.namespace,properties:t?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Ee(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ee(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Ee(e.namespace)}`}),!0}catch(e){if(e instanceof xe&&404===e.status)return!1;throw e}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(e){if(e instanceof xe&&409===e.status)return;throw e}}};function Se(e){return e.join("�")}var _e=class{constructor(e,t="",r){this.client=e,this.prefix=t,this.accessDelegation=r}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Se(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Se(e.namespace)}/tables`,body:t,headers:r})).data.metadata}async updateTable(e,t){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Se(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Se(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String(t?.purge??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Se(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Se(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(e){if(e instanceof xe&&404===e.status)return!1;throw e}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(r){if(r instanceof xe&&409===r.status)return await this.loadTable({namespace:e.namespace,name:t.name});throw r}}},Ce=class{constructor(e){let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const r=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=function(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:r,path:n,query:i,body:o,headers:a}){const s=function(e,t,r){const n=new URL(t,e);if(r)for(const[e,t]of Object.entries(r))void 0!==t&&n.searchParams.set(e,t);return n.toString()}(e.baseUrl,n,i),l=await async function(e){return e&&"none"!==e.type?"bearer"===e.type?{Authorization:`Bearer ${e.token}`}:"header"===e.type?{[e.name]:e.value}:"custom"===e.type?await e.getHeaders():{}:{}}(e.auth),u=await t(s,{method:r,headers:{...o?{"Content-Type":"application/json"}:{},...l,...a},body:o?JSON.stringify(o):void 0}),c=await u.text(),d=(u.headers.get("content-type")||"").includes("application/json"),f=d&&c?JSON.parse(c):c;if(!u.ok){const e=d?f:void 0,t=e?.error;throw new xe(t?.message??`Request failed with status ${u.status}`,{status:u.status,icebergType:t?.type,icebergCode:t?.code,details:e})}return{status:u.status,headers:u.headers,data:f}}}}({baseUrl:r,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=e.accessDelegation?.join(","),this.namespaceOps=new ke(this.client,t),this.tableOps=new _e(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
2async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},Oe=class extends Error{constructor(e,t="storage",r,n){super(e),this.__isStorageError=!0,this.namespace=t,this.name="vectors"===t?"StorageVectorsError":"StorageError",this.status=r,this.statusCode=n}};function Pe(e){return"object"==typeof e&&null!==e&&"__isStorageError"in e}var Te=class extends Oe{constructor(e,t,r,n="storage"){super(e,n,t,r),this.name="vectors"===n?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},Ae=class extends Oe{constructor(e,t,r="storage"){super(e,r),this.name="vectors"===r?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const Ie=e=>{if(Array.isArray(e))return e.map(e=>Ie(e));if("function"==typeof e||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([e,r])=>{const n=e.replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace(/[-_]/g,""));t[n]=Ie(r)}),t};function Ne(e){return(Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(e,t,r){return(t=function(e){var t=function(e){if("object"!=Ne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Ne(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ne(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function je(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 Me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?je(Object(r),!0).forEach(function(t){Re(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):je(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const De=e=>{var t;return e.msg||e.message||e.error_description||("string"==typeof e.error?e.error:null===(t=e.error)||void 0===t?void 0:t.message)||JSON.stringify(e)};async function Le(e,t,r,n,i,o,a){return new Promise((s,l)=>{e(r,((e,t,r,n)=>{const i={method:e,headers:(null==t?void 0:t.headers)||{}};return"GET"!==e&&"HEAD"!==e&&n?((e=>{if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)})(n)?(i.headers=Me({"Content-Type":"application/json"},null==t?void 0:t.headers),i.body=JSON.stringify(n)):i.body=n,(null==t?void 0:t.duplex)&&(i.duplex=t.duplex),Me(Me({},i),r)):Me(Me({},i),r)})(t,n,i,o)).then(e=>{if(!e.ok)throw e;if(null==n?void 0:n.noResolveJson)return e;if("vectors"===a){const t=e.headers.get("content-type");if("0"===e.headers.get("content-length")||204===e.status)return{};if(!t||!t.includes("application/json"))return{}}return e.json()}).then(e=>s(e)).catch(e=>(async(e,t,r,n)=>{if(null!==e&&"object"==typeof e&&"function"==typeof e.json){const r=e;let i=parseInt(r.status,10);Number.isFinite(i)||(i=500),r.json().then(e=>{const r=(null==e?void 0:e.statusCode)||(null==e?void 0:e.code)||i+"";t(new Te(De(e),i,r,n))}).catch(()=>{const e=i+"";t(new Te(r.statusText||`HTTP ${i} error`,i,e,n))})}else t(new Ae(De(e),e,n))})(e,l,0,a))})}function Fe(e="storage"){return{get:async(t,r,n,i)=>Le(t,"GET",r,n,i,void 0,e),post:async(t,r,n,i,o)=>Le(t,"POST",r,i,o,n,e),put:async(t,r,n,i,o)=>Le(t,"PUT",r,i,o,n,e),head:async(t,r,n,i)=>Le(t,"HEAD",r,Me(Me({},n),{},{noResolveJson:!0}),i,void 0,e),remove:async(t,r,n,i,o)=>Le(t,"DELETE",r,i,o,n,e)}}const Be=Fe("storage"),{get:Ue,post:Ve,put:ze,head:qe,remove:He}=Be,Ge=Fe("vectors");var $e=class{constructor(e,t={},r,n="storage"){var i;this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=(i=r)?(...e)=>i(...e):(...e)=>fetch(...e),this.namespace=n}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=Me(Me({},this.headers),{},{[e]:t}),this}async handleOperation(e){try{return{data:await e(),error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(Pe(e))return{data:null,error:e};throw e}}},We=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){try{return{data:(await this.downloadFn()).body,error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(Pe(e))return{data:null,error:e};throw e}}};let Ze;Ze=Symbol.toStringTag;var Qe=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[Ze]="BlobDownloadBuilder",this.promise=null}asStream(){return new We(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){try{return{data:await(await this.downloadFn()).blob(),error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(Pe(e))return{data:null,error:e};throw e}}};const Ye={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Ke={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var Je=class extends $e{constructor(e,t={},r,n){super(e,t,n,"storage"),this.bucketId=r}async uploadOrUpdate(e,t,r,n){var i=this;return i.handleOperation(async()=>{let o;const a=Me(Me({},Ke),n);let s=Me(Me({},i.headers),"POST"===e&&{"x-upsert":String(a.upsert)});const l=a.metadata;"undefined"!=typeof Blob&&r instanceof Blob?(o=new FormData,o.append("cacheControl",a.cacheControl),l&&o.append("metadata",i.encodeMetadata(l)),o.append("",r)):"undefined"!=typeof FormData&&r instanceof FormData?(o=r,o.has("cacheControl")||o.append("cacheControl",a.cacheControl),l&&!o.has("metadata")&&o.append("metadata",i.encodeMetadata(l))):(o=r,s["cache-control"]=`max-age=${a.cacheControl}`,s["content-type"]=a.contentType,l&&(s["x-metadata"]=i.toBase64(i.encodeMetadata(l))),("undefined"!=typeof ReadableStream&&o
2instanceof ReadableStream||o&&"object"==typeof o&&"pipe"in o&&"function"==typeof o.pipe)&&!a.duplex&&(a.duplex="half")),(null==n?void 0:n.headers)&&(s=Me(Me({},s),n.headers));const u=i._removeEmptyFolders(t),c=i._getFinalPath(u),d=await("PUT"==e?ze:Ve)(i.fetch,`${i.url}/object/${c}`,o,Me({headers:s},(null==a?void 0:a.duplex)?{duplex:a.duplex}:{}));return{path:u,id:d.Id,fullPath:d.Key}})}async upload(e,t,r){return this.uploadOrUpdate("POST",e,t,r)}async uploadToSignedUrl(e,t,r,n){var i=this;const o=i._removeEmptyFolders(e),a=i._getFinalPath(o),s=new URL(i.url+`/object/upload/sign/${a}`);return s.searchParams.set("token",t),i.handleOperation(async()=>{let e;const t=Me({upsert:Ke.upsert},n),a=Me(Me({},i.headers),{"x-upsert":String(t.upsert)});return"undefined"!=typeof Blob&&r instanceof Blob?(e=new FormData,e.append("cacheControl",t.cacheControl),e.append("",r)):"undefined"!=typeof FormData&&r instanceof FormData?(e=r,e.append("cacheControl",t.cacheControl)):(e=r,a["cache-control"]=`max-age=${t.cacheControl}`,a["content-type"]=t.contentType),{path:o,fullPath:(await ze(i.fetch,s.toString(),e,{headers:a})).Key}})}async createSignedUploadUrl(e,t){var r=this;return r.handleOperation(async()=>{let n=r._getFinalPath(e);const i=Me({},r.headers);(null==t?void 0:t.upsert)&&(i["x-upsert"]="true");const o=await Ve(r.fetch,`${r.url}/object/upload/sign/${n}`,{},{headers:i}),a=new URL(r.url+o.url),s=a.searchParams.get("token");if(!s)throw new Oe("No token returned by API");return{signedUrl:a.toString(),path:e,token:s}})}async update(e,t,r){return this.uploadOrUpdate("PUT",e,t,r)}async move(e,t,r){var n=this;return n.handleOperation(async()=>await Ve(n.fetch,`${n.url}/object/move`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,de
2stinationBucket:null==r?void 0:r.destinationBucket},{headers:n.headers}))}async copy(e,t,r){var n=this;return n.handleOperation(async()=>({path:(await Ve(n.fetch,`${n.url}/object/copy`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,destinationBucket:null==r?void 0:r.destinationBucket},{headers:n.headers})).Key}))}async createSignedUrl(e,t,r){var n=this;return n.handleOperation(async()=>{let i=n._getFinalPath(e);const o="object"==typeof(null==r?void 0:r.transform)&&null!==r.transform&&Object.keys(r.transform).length>0;let a=await Ve(n.fetch,`${n.url}/object/sign/${i}`,Me({expiresIn:t},o?{transform:r.transform}:{}),{headers:n.headers});const s=(null==r?void 0:r.download)?`&download=${!0===r.download?"":r.download}`:"",l=o&&a.signedURL.includes("/object/sign/")?a.signedURL.replace("/object/sign/","/render/image/sign/"):a.signedURL;return{signedUrl:encodeURI(`${n.url}${l}${s}`)}})}async createSignedUrls(e,t,r){var n=this;return n.handleOperation(async()=>{const i=await Ve(n.fetch,`${n.url}/object/sign/${n.bucketId}`,{expiresIn:t,paths:e},{headers:n.headers}),o=(null==r?void 0:r.download)?`&download=${!0===r.download?"":r.download}`:"";return i.map(e=>Me(Me({},e),{},{signedUrl:e.signedURL?encodeURI(`${n.url}${e.signedURL}${o}`):null}))})}download(e,t,r){const n=void 0!==(null==t?void 0:t.transform)?"render/image/authenticated":"object",i=this.transformOptsToQueryString((null==t?void 0:t.transform)||{}),o=i?`?${i}`:"",a=this._getFinalPath(e);return new Qe(()=>Ue(this.fetch,`${this.url}/${n}/${a}${o}`,{headers:this.headers,noResolveJson:!0},r),this.shouldThrowOnError)}async info(e){var t=this;const r=t._getFinalPath(e);return t.handleOperation(async()=>Ie(await Ue(t.fetch,`${t.url}/object/info/${r}`,{headers:t.headers})))}async exists(e){var t=this;const r=t._getFinalPath(e);try{return await qe(t.fetch,`${t.url}/object/${r}`,{headers:t.headers}),{data:!0,error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(Pe(e)){var n;const t=e instanceof Te?e.status:e instanceof Ae?null===(n=e.originalError)||void 0===n?void 0:n.status:void 0;if(void 0!==t&&[400,404].includes(t))return{data:!1,error:e}}throw e}}getPublicUrl(e,t){const r=this._getFinalPath(e),n=[],i=(null==t?void 0:t.download)?`download=${!0===t.download?"":t.download}`:"";""!==i&&n.push(i);const o=void 0!==(null==t?void 0:t.transform)?"render/image":"object",a=this.transformOptsToQueryString((null==t?void 0:t.transform)||{});""!==a&&n.push(a);let s=n.join("&");return""!==s&&(s=`?${s}`),{data:{publicUrl:encodeURI(`${this.url}/${o}/public/${r}${s}`)}}}async remove(e){var t=this;return t.handleOperation(async()=>await He(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,r){var n=this;return n.handleOperation(async()=>{const i=Me(Me(Me({},Ye),t),{},{prefix:e||""});return await Ve(n.fetch,`${n.url}/object/list/${n.bucketId}`,i,{headers:n.headers},r)})}async listV2(e,t){var r=this;return r.handleOperation(async()=>{const n=Me({},e);return await Ve(r.fetch,`${r.url}/object/list-v2/${r.bucketId}`,n,{headers:r.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return"undefined"!=typeof Buffer?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const Xe={"X-Client-Info":"storage-js/2.100.0"};var et=class extends $e{constructor(e,t={},r,n){const i=new URL(e);(null==n?void 0:n.useNewHostname)&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase.")),super(i.href.replace(/\/$/,""),Me(Me({},Xe),t),r,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const r=t.listBucketOptionsToQueryString(e);return await Ue(t.fetch,`${t.url}/bucket${r}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Ue(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var r=this;return r.handleOperation(async()=>await Ve(r.fetch,`${r.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async updateBucket(e,t){var r=this;return r.handleOperation(async()=>await ze(r.fetch,`${r.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await Ve(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await He(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},tt=class extends $e{constructor(e,t={},r){super(e.replace(/\/$/,""),Me(Me({},Xe),t),r,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Ve(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>
2{const r=new URLSearchParams;void 0!==(null==e?void 0:e.limit)&&r.set("limit",e.limit.toString()),void 0!==(null==e?void 0:e.offset)&&r.set("offset",e.offset.toString()),(null==e?void 0:e.sortColumn)&&r.set("sortColumn",e.sortColumn),(null==e?void 0:e.sortOrder)&&r.set("sortOrder",e.sortOrder),(null==e?void 0:e.search)&&r.set("search",e.search);const n=r.toString(),i=n?`${t.url}/bucket?${n}`:`${t.url}/bucket`;return await Ue(t.fetch,i,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await He(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!(e=>!(!e||"string"!=typeof e)&&!(0===e.length||e.length>100)&&e.trim()===e&&!e.includes("/")&&!e.includes("\\")&&/^[\w!.\*'() &$@=;:+,?-]+$/.test(e))(e))throw new Oe("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const r=new Ce({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),n=this.shouldThrowOnError;return new Proxy(r,{get(e,t){const r=e[t];return"function"!=typeof r?r:async(...t)=>{try{return{data:await r.apply(e,t),error:null}}catch(e){if(n)throw e;return{data:null,error:e}}}}})}},rt=class extends $e{constructor(e,t={},r){super(e.replace(/\/$/,""),Me(Me({},Xe),{},{"Content-Type":"application/json"},t),r,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Ge.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var r=this;return r.handleOperation(async()=>await Ge.post(r.fetch,`${r.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Ge.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var r=this;return r.handleOperation(async()=>await Ge.post(r.fetch,`${r.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers})||{})}},nt=class extends $e{constructor(e,t={},r){super(e.replace(/\/$/,""),Me(Me({},Xe),{},{"Content-Type":"application/json"},t),r,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Ge.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Ge.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(void 0!==e.segmentCount){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(void 0!==e.segmentIndex&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error("segmentIndex must be between 0 and "+(e.segmentCount-1))}return t.handleOperation(async()=>await Ge.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Ge.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Ge.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},it=class extends $e{constructor(e,t={},r){super(e.replace(/\/$/,""),Me(Me({},Xe),{},{"Content-Type":"application/json"},t),r,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Ge.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Ge.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Ge.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Ge.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},ot=class extends it{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new at(this.url,this.headers,e,this.fetch)}async createBucket(e){return(()=>super.createBucket)().call(this,e)}async getBucket(e){return(()=>super.getBucket)().call(this,e)}async listBuckets(e={}){return(()=>super.listBuckets)().call(this,e)}async deleteBucket(e){return(()=>super.deleteBucket)().call(this,e)}},at=class extends rt{constructor(e,t,r,n){super(e,t,n),this.vectorBucketName=r}async createIndex(e){return(()=>super.createIndex)().call(this,Me(Me({},e),{},{vectorBucketName:this.vectorBucketName}))}
2async listIndexes(e={}){return(()=>super.listIndexes)().call(this,Me(Me({},e),{},{vectorBucketName:this.vectorBucketName}))}async getIndex(e){return(()=>super.getIndex)().call(this,this.vectorBucketName,e)}async deleteIndex(e){return(()=>super.deleteIndex)().call(this,this.vectorBucketName,e)}index(e){return new st(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},st=class extends nt{constructor(e,t,r,n,i){super(e,t,i),this.vectorBucketName=r,this.indexName=n}async putVectors(e){var t=this;return(()=>super.putVectors)().call(t,Me(Me({},e),{},{vectorBucketName:t.vectorBucketName,indexName:t.indexName}))}async getVectors(e){var t=this;return(()=>super.getVectors)().call(t,Me(Me({},e),{},{vectorBucketName:t.vectorBucketName,indexName:t.indexName}))}async listVectors(e={}){var t=this;return(()=>super.listVectors)().call(t,Me(Me({},e),{},{vectorBucketName:t.vectorBucketName,indexName:t.indexName}))}async queryVectors(e){var t=this;return(()=>super.queryVectors)().call(t,Me(Me({},e),{},{vectorBucketName:t.vectorBucketName,indexName:t.indexName}))}async deleteVectors(e){var t=this;return(()=>super.deleteVectors)().call(t,Me(Me({},e),{},{vectorBucketName:t.vectorBucketName,indexName:t.indexName}))}},lt=class extends et{constructor(e,t={},r,n){super(e,t,r,n)}from(e){return new Je(this.url,this.headers,e,this.fetch)}get vectors(){return new ot(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new tt(this.url+"/iceberg",this.headers,this.fetch)}};const ut="2.100.0",ct=3e4,dt={"X-Client-Info":`gotrue-js/${ut}`},ft="X-Supabase-Api-Version",pt=Date.parse("2024-01-01T00:00:00.0Z"),ht="2024-01-01",mt=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i;class vt extends Error{constructor(e,t,r){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=t,this.code=r}}function gt(e){return"object"==typeof e&&null!==e&&"__isAuthError"in e}class yt extends vt{constructor(e,t,r){super(e,t,r),this.name="AuthApiError",this.status=t,this.code=r}}class bt extends vt{constructor(e,t){super(e),this.name="AuthUnknownError",this.originalError=t}}class wt extends vt{constructor(e,t,r,n){super(e,r,n),this.name=t,this.status=r}}class xt extends wt{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Et(e){return gt(e)&&"AuthSessionMissingError"===e.name}class kt extends wt{constructor(){super("Auth session or user missing","AuthInvalidToken
2ResponseError",500,void 0)}}class St extends wt{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class _t extends wt{constructor(e,t=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=t}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Ct extends wt{constructor(e,t=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=t}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Ot extends wt{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class Pt extends wt{constructor(e,t){super(e,"AuthRetryableFetchError",t,void 0)}}function Tt(e){return gt(e)&&"AuthRetryableFetchError"===e.name}class At extends wt{constructor(e,t,r){super(e,"AuthWeakPasswordError",t,"weak_password"),this.reasons=r}}class It extends wt{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const Nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Rt=" \t\n\r=".split(""),jt=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Rt.length;t+=1)e[Rt[t].charCodeAt(0)]=-2;for(let t=0;t<Nt.length;t+=1)e[Nt[t].charCodeAt(0)]=t;return e})();function Mt(e,t,r){if(null!==e)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const e=t.queue>>t.queuedBits-6&63;r(Nt[e]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const e=t.queue>>t.queuedBits-6&63;r(Nt[e]),t.queuedBits-=6}}function Dt(e,t,r){const n=jt[e];if(!(n>
2-1)){if(-2===n)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}for(t.queue=t.queue<<6|n,t.queuedBits+=6;t.queuedBits>=8;)r(t.queue>>t.queuedBits-8&255),t.queuedBits-=8}function Lt(e){const t=[],r=e=>{t.push(String.fromCodePoint(e))},n={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},o=e=>{!function(e,t,r){if(0===t.utf8seq){if(e<=127)return void r(e);for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(2===t.utf8seq)t.codepoint=31&e;else if(3===t.utf8seq)t.codepoint=15&e;else{if(4!==t.utf8seq)throw new Error("Invalid UTF-8 sequence");t.codepoint=7&e}t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|63&e,t.utf8seq-=1,0===t.utf8seq&&r(t.codepoint)}}(e,n,r)};for(let t=0;t<e.length;t+=1)Dt(e.charCodeAt(t),i,o);return t.join("")}function Ft(e,t){if(!(e<=127)){if(e<=2047)return t(192|e>>6),void t(128|63&e);if(e<=65535)return t(224|e>>12),t(128|e>>6&63),void t(128|63&e);if(e<=1114111)return t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),void t(128|63&e);throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}t(e)}function Bt(e){const t=[],r={queue:0,queuedBits:0},n=e=>{t.push(e)};for(let t=0;t<e.length;t+=1)Dt(e.charCodeAt(t),r,n);return new Uint8Array(t)}function Ut(e){const t=[],r={queue:0,queuedBits:0},n=e=>{t.push(e)};return e.forEach(e=>Mt(e,r,n)),Mt(null,r,n),t.join("")}const Vt=()=>"undefined"!=typeof window&&"undefined"!=typeof document,zt={tested:!1,writable:!1},qt=()=>{if(!Vt())return!1;try{if("object"!=typeof globalThis.localStorage)return!1}catch(e){return!1}if(zt.tested)return zt.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),zt.tested=!0,zt.writable=!0}catch(e){zt.tested=!0,zt.writable=!1}return zt.writable},Ht=e=>e?(...t)=>e(...t):(...e)=>fetch(...e),Gt=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},$t=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch(e){return r}},Wt=async(e,t)=>{await e.removeItem(t)};class Zt{constructor(){this.promise=new Zt.promiseConstructor((e,t)=>{this.resolve=e,this.reject=t})}}function Qt(e){const t=e.split(".");if(3!==t.length)throw new It("Invalid JWT structure");for(let e=0;e<t.length;e++)if(!mt.test(t[e]))throw new It("JWT not in base64url format");return{header:JSON.parse(Lt(t[0])),payload:JSON.parse(Lt(t[1])),signature:Bt(t[2]),raw:{header:t[0],payload:t[1]}}}function Yt(e){return("0"+e.toString(16)).substr(-2)}async function Kt(e,t,r=!1){const n=function(){const e=new Uint32Array(56);if("undefined"==typeof crypto){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",t=e.length;let r="";for(let n=0;n<56;n++)r+=e.charAt(Math.floor(Math.random()*t));return r}return crypto.getRandomValues(e),Array.from(e,Yt).join("")}();let i=n;r&&(i+="/PASSWORD_RECOVERY"),await Gt(e,`${t}-code-verifier`,i);const o=await async function(e){if("undefined"==typeof crypto||void 0===crypto.subtle||"undefined"==typeof TextEncoder)return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const t=await async function(e){const t=(new TextEncoder).encode(e),r=await crypto.subtle.digest("SHA-256",t),n=new Uint8Array(r);return Array.from(n).map(e=>String.fromCharCode(e)).join("")}(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}(n);return[o,n===o?"plain":"s256"]}Zt.promiseConstructor=Promise;const Jt=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i,Xt=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function er(e){if(!Xt.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function tr(){return new Proxy({},{get:(e,t)=>{if("__isUserNotAvailableProxy"===t)return!0;if("symbol"==typeof t){const e=t.toString();if("Symbol(Symbol.toPrimitive)"===e||"Symbol(Symbol.toStringTag)"===e||"Symbol(util.inspect.custom)"===e)return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${t}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,t)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${t}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,t)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${t}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function rr(e){return JSON.parse(JSON.stringify(e))}const nr=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),ir=[502,503,504];async function or(e){var t,r;if(!("object"==typeof(r=e)&&null!==r&&"status"in r&&"ok"in r&&"json"in r&&"function"==typeof r.json))throw new Pt(nr(e),0);if(ir.includes(e.status))throw new Pt(nr(e),e.status);let n,i;try{n=await e.json()}catch(e){throw new bt(nr(e),e)}const o=function(e){const t=e.headers.get(ft);if(!t)return null;if(!t.match(Jt))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch(e){return null}}(e);if(o&&o.getTime()>=pt&&"object"==typeof n&&n&&"string"==typeof n.code?i=n.code:"object"==typeof n&&n&&"string"==typeof n.error_code&&(i=n.error_code),i){if
2("weak_password"===i)throw new At(nr(n),e.status,(null===(t=n.weak_password)||void 0===t?void 0:t.reasons)||[]);if("session_not_found"===i)throw new xt}else if("object"==typeof n&&n&&"object"==typeof n.weak_password&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((e,t)=>e&&"string"==typeof t,!0))throw new At(nr(n),e.status,n.weak_password.reasons);throw new yt(nr(n),e.status||500,i)}async function ar(e,t,r,n){var i;const o=Object.assign({},null==n?void 0:n.headers);o[ft]||(o[ft]=ht),(null==n?void 0:n.jwt)&&(o.Authorization=`Bearer ${n.jwt}`);const a=null!==(i=null==n?void 0:n.query)&&void 0!==i?i:{};(null==n?void 0:n.redirectTo)&&(a.redirect_to=n.redirectTo);const s=Object.keys(a).length?"?"+new URLSearchParams(a).toString():"",l=await async function(e,t,r,n,i,o){const a=((e,t,r,n)=>{const i={method:e,headers:(null==t?void 0:t.headers)||{}};return"GET"===e?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},null==t?void 0:t.headers),i.body=JSON.stringify(n),Object.assign(Object.assign({},i),r))})(t,n,{},o);let s;try{s=await e(r,Object.assign({},a))}catch(e){throw console.error(e),new Pt(nr(e),0)}if(s.ok||await or(s),null==n?void 0:n.noResolveJson)return s;try{return await s.json()}catch(e){await or(e)}}(e,t,r+s,{headers:o,noResolveJson:null==n?void 0:n.noResolveJson},0,null==n?void 0:n.body);return(null==n?void 0:n.xform)?null==n?void 0:n.xform(l):{data:Object.assign({},l),error:null}}function sr(e){var t;let r=null;var n;return function(e){return e.access_token&&e.refresh_token&&e.expires_in}(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=(n=e.expires_in,Math.round(Date.now()/1e3)+n))),{data:{session:r,user:null!==(t=e.user)&&void 0!==t?t:e},error:null}}function lr(e){const t=sr(e);return!t.error&&e.weak_password&&"object"==typeof e.weak_password&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&"string"==typeof e.weak_password.message&&e.weak_password.reasons.reduce((e,t)=>e&&"string"==typeof t,!0)&&(t.data.weak_password=e.weak_password),t}function ur(e){var t;return{data:{user:null!==(t=e.user)&&void 0!==t?t:e},error:null}}function cr(e){return{data:e,error:null}}function dr(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:o,verification_type:a}=e,s=(0,i._T)(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]);return{data:{properties:{action_link:t,email_otp:r,hashed_token:n,redirect_to:o,verification_type:a},user:Object.assign({},s)},error:null}}function fr(e){return e}const pr=["global","local","others"];class hr{constructor({url:e="",headers:t={},fetch:r}){this.url=e,this.headers=t,this.fetch=Ht(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)}}async signOut(e,t=pr[0]){if(pr.indexOf(t)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${pr.join(", ")}`);try{return await ar(this.fetch,"POST",`${this.url}/logout?scope=${t}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(e){if(gt(e))return{data:null,error:e};throw e}}async inviteUserByEmail(e,t={}){try{return await ar(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:t.data},headers:this.headers,redirectTo:t.redirectTo,xform:ur})}catch(e){if(gt(e))return{data:{user:null},error:e};throw e}}async generateLink(e){try{const{options:t}=e,r=(0,i._T)(e,["options"]),n=Object.assign(Object.assign({},r),t);return"newEmail"in r&&(n.new_email=null==r?void 0:r.newEmail,delete n.newEmail),await ar(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:n,headers:this.headers,xform:dr,redirectTo:null==t?void 0:t.redirectTo})}catch(e){if(gt(e))return{data:{properties:null,user:null},error:e};throw e}}async createUser(e){try{return await ar(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:ur})}catch(e){if(gt(e))return{data:{user:null},error:e};throw e}}async listUsers(e){var t,r,n,i,o,a,s;try{const l={nextPage:null,lastPage:0,total:0},u=await ar(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:null!==(r=null===(t=null==e?void 0:e.page)||void 0===t?void 0:t.toString())&&void 0!==r?r:"",per_page:null!==(i=null===(n=null==e?void 0:e.perPage)||void 0===n?void 0:n.toString())&&void 0!==i?i:""},xform:fr});if(u.error)throw u.error;const c=await u.json(),d=null!==(o=u.headers.get("x-total-count"))&&void 0!==o?o:0,f=null!==(s=null===(a=u.headers.get("link"))||void 0===a?void 0:a.split(","))&&void 0!==s?s:[];return f.length>
20&&(f.forEach(e=>{const t=parseInt(e.split(";")[0].split("=")[1].substring(0,1)),r=JSON.parse(e.split(";")[1].split("=")[1]);l[`${r}Page`]=t}),l.total=parseInt(d)),{data:Object.assign(Object.assign({},c),l),error:null}}catch(e){if(gt(e))return{data:{users:[]},error:e};throw e}}async getUserById(e){er(e);try{return await ar(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:ur})}catch(e){if(gt(e))return{data:{user:null},error:e};throw e}}async updateUserById(e,t){er(e);try{return await ar(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:t,headers:this.headers,xform:ur})}catch(e){if(gt(e))return{data:{user:null},error:e};throw e}}async deleteUser(e,t=!1){er(e);try{return await ar(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:t},xform:ur})}catch(e){if(gt(e))return{data:{user:null},error:e};throw e}}async _listFactors(e){er(e.userId);try{const{data:t,error:r}=await ar(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:e=>({data:{factors:e},error:null})});return{data:t,error:r}}catch(e){if(gt(e))return{data:null,error:e};throw e}}async _deleteFactor(e){er(e.userId),er(e.id);try{return{data:await ar(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(e){if(gt(e))return{data:null,error:e};throw e}}async _listOAuthClients(e){var t,r,n,i,o,a,s;try{const l={nextPage:null,lastPage:0,total:0},u=await ar(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:null!==(r=null===(t=null==e?void 0:e.page)||void 0===t?void 0:t.toString())&&void 0!==r?r:"",per_page:null!==(i=null===(n=null==e?void 0:e.perPage)||void 0===n?void 0:n.toString())&&void 0!==i?i:""},xform:fr});if(u.error)throw u.error;const c=await u.json(),d=null!==(o=u.headers.get("x-total-count"))&&void 0!==o?o:0,f=null!==(s=null===(a=u.headers.get("link"))||void 0===a?void 0:a.split(","))&&void 0!==s?s:[];return f.length>0&&(f.forEach(e=>{const t=parseInt(e.split(";")[0].split("=")[1].substring(0,1)),r=JSON.parse(e.split(";")[1].split("=")[1]);l[`${r}Page`]=t}),l.total=parseInt(d)),{data:Object.assign(Object.assign({},c),l),error:null}}catch(e){if(gt(e))return{data:{clients:[]},error:e};throw e}}async _createOAuthClient(e){try{return await ar(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(gt(e))return{data:null,error:e};throw e}}async _getOAuthClient(e){try{return await ar(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(gt(e))return{data:null,error:e};throw e}}async _updateOAuthClient(e,t){try{return await ar(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:t,headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(gt(e))return{data:null,error:e};throw e}}async _deleteOAuthClient(e){try{return await ar(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(e){if(gt(e))return{data:null,error:e};throw e}}async _regenerateOAuthClientSecret(e){try{return await ar(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(gt(e))return{data:null,error:e};throw e}}async _listCustomProviders(e){try{const t={};return(null==e?void 0:e.type)&&(t.type=e.type),await ar(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:t,xform:e=>{var t;return{data:{providers:null!==(t=null==e?void 0:e.providers)&&void 0!==t?t:[]},error:null}}})}catch(e){if(gt(e))return{data:{providers:[]},error:e};throw e}}async _createCustomProvider(e){try{return await ar(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:e,headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(gt(e))return{data:null,error:e};throw e}}async _getCustomProvider(e){try{return await ar(this.fetch,"GET",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(gt(e))return{data:null,error:e};throw e}}async _updateCustomProvider(e,t){try{return await ar(this.fetch,"PUT",`${this.url}/admin/custom-providers/${e}`,{body:t,headers:this.headers,xform:e=>({data:e,error:null})})}catch(e){if(gt(e))return{data:null,error:e};throw e}}async _deleteCustomProvider(e){try{return await ar(this.fetch,"DELET
2E",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(e){if(gt(e))return{data:null,error:e};throw e}}}function mr(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}const vr=!!(globalThis&&qt()&&globalThis.localStorage&&"true"===globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug"));class gr extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class yr extends gr{}async function br(e,t,r){vr&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const n=new globalThis.AbortController;let i;t>0&&(i=setTimeout(()=>{n.abort(),vr&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t)),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,0===t?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async n=>{if(!n){if(0===t)throw vr&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new yr(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(vr)try{const e=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(e,null," "))}catch(e){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",e)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),clearTimeout(i),await r()}clearTimeout(i),vr&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,n.name);try{return await r()}finally{vr&&console.log("@supabase/gotrue-js: navigatorLock: released",e,n.name)}})}catch(o){if(t>0&&clearTimeout(i),"AbortError"===(null==o?void 0:o.name)&&t>0){if(n.signal.aborted)return vr&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",e),console.warn(`@supabase/gotrue-js: Lock "${e}" was not released within ${t}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,{mode:"exclusive",steal:!0},async t=>{if(!t)return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await r();vr&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,t.name);try{return await r()}finally{vr&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",e,t.name)}}));throw vr&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",e),new yr(`Lock "${e}" was released because another request stole it`)}throw o}}function wr(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function xr(e){const t=(new TextEncoder).encode(e);return"0x"+Array.from(t,e=>e.toString(16).padStart(2,"0")).join("")}class Er extends Error{constructor({message:e,code:t,cause:r,name:n}){var i;super(e,{cause:r}),this.__isWebAuthnError=!0,this.name=null!==(i=null!=n?n:r instanceof Error?r.name:void 0)&&void 0!==i?i:"Unknown Error",this.code=t}}class kr extends Er{constructor(e,t){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t,message:e}),this.name="WebAuthnUnknownError",this.originalError=t}}function Sr({error:e,options:t}){var r,n,i;const{publicKey:o}=t;if(!o)throw Error("options was missing required publicKey property");if("AbortError"===e.name){if(t.signal instanceof AbortSignal)return new Er({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if("ConstraintError"===e.name){if(!0===(null===(r=o.authenticatorSelection)||void 0===r?void 0:r.requireResidentKey))return new Er({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if("conditional"===t.mediation&&"required"===(null===(n=o.authenticatorSelection)||void 0===n?void 0:n.userVerification))return new Er({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if("required"===(null===(i=o.authenticatorSelection)||void 0===i?void 0:i.userVerification))return new Er({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if("InvalidStateError"===e.name)return new Er({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if("NotAllowedError"===e.name)return new Er({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if("NotSupportedError"===e.name)return 0===o.pubKeyCredParams.filter(e=>"public-key"===e.type).length?new Er({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Er({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if("SecurityError"===e.name){const t=window.location.hostname;if(!Ir(t))return new Er({message:`${window.location.hostname}
2 is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e});if(o.rp.id!==t)return new Er({message:`The RP ID "${o.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else if("TypeError"===e.name){if(o.user.id.byteLength<1||o.user.id.byteLength>64)return new Er({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if("UnknownError"===e.name)return new Er({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Er({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function _r({error:e,options:t}){const{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if("AbortError"===e.name){if(t.signal instanceof AbortSignal)return new Er({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if("NotAllowedError"===e.name)return new Er({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if("SecurityError"===e.name){const t=window.location.hostname;if(!Ir(t))return new Er({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e});if(r.rpId!==t)return new Er({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else if("UnknownError"===e.name)return new Er({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Er({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}const Cr=new class{createNewAbortSignal(){if(this.controller){const e=new Error("Cancelling existing WebAuthn API call for new one");e.name="AbortError",this.controller.abort(e)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}};function Or(e){if(!e)throw new Error("Credential creation options are required");if("undefined"!=typeof PublicKeyCredential&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&"function"==typeof PublicKeyCredential.parseCreationOptionsFromJSON)return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:r,excludeCredentials:n}=e,o=(0,i._T)(e,["challenge","user","excludeCredentials"]),a=Bt(t).buffer,s=Object.assign(Object.assign({},r),{id:Bt(r.id).buffer}),l=Object.assign(Object.assign({},o),{challenge:a,user:s});if(n&&n.length>0){l.excludeCredentials=new Array(n.length);for(let e=0;e<n.length;e++){const t=n[e];l.excludeCredentials[e]=Object.assign(Object.assign({},t),{id:Bt(t.id).buffer,type:t.type||"public-key",transports:t.transports})}}return l}function Pr(e){if(!e)throw new Error("Credential request options are required");if("undefined"!=typeof PublicKeyCredential&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&"function"==typeof PublicKeyCredential.parseRequestOptionsFromJSON)return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:r}=e,n=(0,i._T)(e,["challenge","allowCredentials"]),o=Bt(t).buffer,a=Object.assign(Object.assign({},n),{challenge:o});if(r&&r.length>0){a.allowCredentials=new Array(r.length);for(let e=0;e<r.length;e++){const t=r[e];a.allowCredentials[e]=Object.assign(Object.assign({},t),{id:Bt(t.id).buffer,type:t.type||"public-key",transports:t.transports})}}return a}function Tr(e){var t;if("toJSON"in e&&"function"==typeof e.toJSON)return e.toJSON();const r=e;return{id:e.id,rawId:e.id,response:{attestationObject:Ut(new Uint8Array(e.response.attestationObject)),clientDataJSON:Ut(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:null!==(t=r.authenticatorAttachment)&&void 0!==t?t:void 0}}function Ar(e){var t;if("toJSON"in e&&"function"==typeof e.toJSON)return e.toJSON();const r=e,n=e.getClientExtensionResults(),i=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Ut(new Uint8Array(i.authenticatorData)),clientDataJSON:Ut(new Uint8Array(i.clientDataJSON)),signature:Ut(new Uint8Array(i.signature)),userHandle:i.userHandle?Ut(new
2Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:null!==(t=r.authenticatorAttachment)&&void 0!==t?t:void 0}}function Ir(e){return"localhost"===e||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Nr(){var e,t;return!!(Vt()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&"function"==typeof(null===(e=null===navigator||void 0===navigator?void 0:navigator.credentials)||void 0===e?void 0:e.create)&&"function"==typeof(null===(t=null===navigator||void 0===navigator?void 0:navigator.credentials)||void 0===t?void 0:t.get))}const Rr={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},jr={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Mr(...e){const t=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),r=e=>e instanceof ArrayBuffer||ArrayBuffer.isView(e),n={};for(const i of e)if(i)for(const e in i){const o=i[e];if(void 0!==o)if(Array.isArray(o))n[e]=o;else if(r(o))n[e]=o;else if(t(o)){const r=n[e];t(r)?n[e]=Mr(r,o):n[e]=Mr(o)}else n[e]=o}return n}class Dr{constructor(e){this.client=e,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:"webauthn"}))}async _challenge({factorId:e,webauthn:t,friendlyName:r,signal:n},i){var o;try{const{data:a,error:s}=await this.client.mfa.challenge({factorId:e,webauthn:t});if(!a)return{data:null,error:s};const l=null!=n?n:Cr.createNewAbortSignal();if("create"===a.webauthn.type){const{user:e}=a.webauthn.credential_options.publicKey;if(!e.name){const t=r;if(t)e.name=`${e.id}:${t}`;else{const t=(await this.client.getUser()).data.user,r=(null===(o=null==t?void 0:t.user_metadata)||void 0===o?void 0:o.name)||(null==t?void 0:t.email)||(null==t?void 0:t.id)||"User";e.name=`${e.id}:${r}`}}e.displayName||(e.displayName=e.name)}switch(a.webauthn.type){case"create":{const t=function(e,t){return Mr(Rr,e,t||{})}(a.webauthn.credential_options.publicKey,null==i?void 0:i.create),{data:r,error:n}=await async function(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new kr("Browser returned unexpected credential type",t)}:{data:null,error:new kr("Empty credential response",t)}}catch(t){return{data:null,error:Sr({error:t,options:e})}}}({publicKey:t,signal:l});return r?{data:{factorId:e,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:r}},error:null}:{data:null,error:n}}case"request":{const t=function(e,t){return Mr(jr,e,t||{})}(a.webauthn.credential_options.publicKey,null==i?void 0:i.request),{data:r,error:n}=await async function(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new kr("Browser returned unexpected credential type",t)}:{data:null,error:new kr("Empty credential response",t)}}catch(t){return{data:null,error:_r({error:t,options:e})}}}(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:t,signal:l}));return r?{data:{factorId:e,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:r}},error:null}:{data:null,error:n}}}}catch(e){return gt(e)?{data:null,error:e}:{data:null,error:new bt("Unexpected error in challenge",e)}}}async _verify({challengeId:e,factorId:t,webauthn:r}){return this.client.mfa.verify({factorId:t,challengeId:e,webauthn:r})}async _authenticate({factorId:e,webauthn:{rpId:t=("undefined"!=typeof window?window.location.hostname:void 0),rpOrigins:r=("undefined"!=typeof window?[window.location.origin]:void 0),signal:n}={}},i){if(!t)return{data:null,error:new vt("rpId is required for WebAuthn authentication")};try{if(!Nr())return{data:null,error:new bt("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:e,webauthn:{rpId:t,rpOrigins:r},signal:n},{request:i});if(!o)return{data:null,error:a};const{webauthn:s}=o;return this._verify({factorId:e,challengeId:o.challengeId,webauthn:{type:s.type,rpId:t,rpOrigins:r,credential_response:s.credential_response}})}catch(e){return gt(e)?{data:null,error:e}:{data:null,error:new bt("Unexpected error in authenticate",e)}}}async _register({friendlyName:e,webauthn:{rpId:t=("undefined"!=typeof window?window.location.hostname:void 0),rpOrigins:r=("undefined"!=typeof window?[window.location.origin]:void 0),signal:n}={}},i){if(!t)return{data:null,error:new vt("rpId is required for WebAuthn registration")};try{if(!Nr())return{data:null,error:new bt("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this._enroll({friendlyName:e});if(!o)return await this.client.mfa.listFactors().then(t=>{var r;return null===(r=t.data)||void 0===r?void 0:r.all.find(t=>"webauthn"===t.factor_type&&t.friendly_name===e&&"unverified"!==t.status)}).then(e=>e?this.client.mfa.unenroll({factorId:null==e?void 0:e.id}):void 0),{data:null,error:a};const{data:s,error:l}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:t,rpOrigins:r},signal:n},{create:i});return s?this._verify({factorId:o.id,challengeId:s.challengeId,webauthn:{rpId:t,rpOrigins:r,type:s.webauthn.type,credential_response:s.webauthn.credential_response}}):{data:null,error:l}}catch(e){return gt(e)?{data:null,error:e}:{data:null,error:new bt("Unexpected error in register",e)}}}}!function(){if("object"!=typeof globalThis)try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch(e){"undefined"!=typeof self&&(self.globalThis=self)}}();const Lr={url:"http://localhost:9999",storageKey:"supabase.auth.token",autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:dt,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1};async function Fr(e,t,r){return await r()}const Br={};class Ur{get jwks(){var e,t;return null!==(t=null===(e=Br[this.storageKey])||void 0===e?void 0:e.jwks)&&void 0!==t?t:{keys:[]}}set jwks(e){Br[this.storageKey]=Object.assign(Object.assign({},Br[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,t;return null!==(t=null===(e=Br[this.storageKey])||void 0===e?void 0:e.cachedAt)&&void 0!==t?t:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){Br[this.storageKey]=Object.assign(Object.assign({},Br[this.storageKey]),{cachedAt:e})}constructor(e){var t,r,n;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},Lr),e);if(this.storageKey=i.storageKey,this.instanceID=null!==(t=Ur.nextInstanceID[this.storageKey])&&void 0!==t?t:0,Ur.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,"function"==typeof i.debug&&(this.logger=i.debug),this.instanceID>0&&Vt()){const e=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(e),this.logDebugMessages&&console.trace(e)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.admin=new hr({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=Ht(i.fetch),this.lock=i.lock||Fr,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock?this.lock=i.lock:this.persistSession&&Vt()&&(null===(r=null===globalThis||void 0===globalThis?void 0:globalThis.navigator)||void 0===r?void 0:r.locks)?this.lock=br:this.lock=Fr,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new Dr(this)}
2,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:qt()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=mr(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=mr(this.memoryStorage)),Vt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(e){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",e)}null===(n=this.broadcastChannel)||void 0===n||n.addEventListener("message",async e=>{this._debug("received broadcast notification from other tab or client",e);try{await this._notifyAllSubscribers(e.data.event,e.data.session,!1)}catch(e){this._debug("#broadcastChannel","error",e)}})}i.skipAutoInitialize||this.initialize().catch(e=>{this._debug("#initialize()","error",e)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${ut}) ${(new Date).toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),this}async initialize(){return this.initializePromise||(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))()),await this.initializePromise}async _initialize(){var e;try{let t={},r="none";if(Vt()&&(t=function(e){const t={},r=new URL(e);if(r.hash&&"#"===r.hash[0])try{new URLSearchParams(r.hash.substring(1)).forEach((e,r)=>{t[r]=e})}catch(e){}return r.searchParams.forEach((e,r)=>{t[r]=e}),t}(window.location.href),this._isImplicitGrantCallback(t)?r="implicit":await this._isPKCECallback(t)&&(r="pkce")),Vt()&&this.detectSessionInUrl&&"none"!==r){const{data:n,error:i}=await this._getSessionFromURL(t,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),function(e){return gt(e)&&"AuthImplicitGrantRedirectError"===e.name}(i)){const t=null===(e=i.details)||void 0===e?void 0:e.code;if("identity_already_exists"===t||"identity_not_found"===t||"single_identity_not_deletable"===t)return{error:i}}return{error:i}}const{session:o,redirectType:a}=n;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{"recovery"===a?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(e){return gt(e)?this._returnResult({error:e}):this._returnResult({error:new bt("Unexpected error during initialization",e)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var t,r,n;try{const i=await ar(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:null!==(r=null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.data)&&void 0!==r?r:{},gotrue_meta_security:{captcha_token:null===(n=null==e?void 0:e.options)||void 0===n?void 0:n.captchaToken}},xform:sr}),{data:o,error:a}=i;if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const s=o.session,l=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",s)),this._returnResult({data:{user:l,session:s},error:null})}catch(e){if(gt(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signUp(e){var t,r,n;try{let i;if("email"in e){const{email:r,password:n,options:o}=e;let a=null,s=null;"pkce"===this.flowType&&([a,s]=await Kt(this.storage,this.storageKey)),i=await ar(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:null==o?void 0:o.emailRedirectTo,body:{email:r,password:n,data:null!==(t=null==o?void 0:o.data)&&void 0!==t?t:{},gotrue_meta_security:{captcha_token:null==o?void 0:o.captchaToken},code_challenge:a,code_challenge_method:s},xform:sr})}else{if(!("phone"in e))throw new St("You must provide either an email or phone number and a password");{const{phone:t,password:o,options:a}=e;i=await ar(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:t,password:o,data:null!==(r=null==a?void 0:a.data)&&void 0!==r?r:{},channel:null!==(n=null==a?void 0:a.channel)&&void 0!==n?n:"sms",gotrue_meta_security:{captcha_token:null==a?void 0:a.captchaToken}},xform:sr})}}const{data:o,error:a}=i;if(a||!o)return await Wt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const s=o.session,l=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",s)),this._returnResult({data:{user:l,session:s},error:null})}catch(e){if(await Wt(this.storage,`${this.storageKey}-code-verifier`),gt(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithPassword(e){try{let t;if("email"in e){const{email:r,password:n,options:i}=e;t=await ar(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:r,password:n,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken}},xform:lr})}else{if(!("phone"in e))throw new St("You must provide either an email or phone number and a password");{const{phone:r,password:n,options:i}=e;t=await ar(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:r,password:n,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken}},xform:lr})}}const{data:r,error:n}=t;if(n)return this._returnResult({data:{user:null,session:null},error:n});if(!r||!r.session||!r.user){const e=new kt;return this._returnResult({data:{user:null,session:null},error:e})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:n})}catch(e){if(gt(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithOAuth(e){var t,r,n,i;return await this._handleProviderSignIn(e.provider,{redirectTo:null===(t=e.options)||void 0===t?void 0:t.redirectTo,scopes:null===(r=e.options)||void 0===r?void 0:r.scopes,queryParams:null===(n=e.options)||void 0===n?void 0:n.queryParams,skipBrowserRedirect:null===(i=e.options)||void 0===i?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:t}=e;switch(t){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${t}"`)}}async signInWithEthereum(e){var t,r,n,i,o,a,s,l,u,c,d;let f,p;if("message"in e)f=e.message,p=e.signature;else{const{chain:c,wallet:d,statement:h,options:m}=e;let v;if(Vt())if("object"==typeof d)v=d;else{const e=window;if(!("ethereum"in e)||"object"!=typeof e.ethereum||!("request"in e.ethereum)||"function"!=typeof e.ethereum.request)throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.");v=e.ethereum}else{if("object"!=typeof d||!(null==m?void 0:m.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");v=d}const g=new URL(null!==(t=null==m?void 0:m.url)&&void 0!==t?t:window.location.href),y=await v.request({method:"eth_requestAccounts"}).then(e=>e).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!y||0===y.length)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const b=wr(y[0]);let w=null===(r=null==m?void 0:m.signInWithEthereum)||void 0===r?void 0:r.chainId;if(!w){const e=await v.request({method:"eth_chainId"});w=parseInt(e,16)}f=function(e){var t;const{chainId:r,domain:n,expirationTime:i,issuedAt:o=new Date,nonce:a,notBefore:s,requestId:l,resources:u,scheme:c,uri:d,version:f}=e;if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(a&&a.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${a}`);if(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if("1"!==f)throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(null===(t=e.statement)||void 0===t?void 0:t.includes("\n"))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`);const p=`${c?`${c}://${n}`:n} wants you to sign in with your Ethereum account:\n${wr(e.address)}\n\n${e.statement?`${e.statement}\n`:""}`;let h=`URI: ${d}\nVersion: ${f}\nChain ID: ${r}${a?`\nNonce: ${a}`:""}\nIssued At: ${o.toISOString()}`;if(i&&(h+=`\nExpiration Time: ${i.toISOString()}`),s&&(h+=`\nNot Before: ${s.toISOString()}`),l&&(h+=`\nRequest ID: ${l}`),u){let e="\nResources:";for(const t of u){if(!t||"string"!=typeof t)throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${t}`);e+=`\n- ${t}`}h+=e}return`${p}\n${h}`}({domain:g.host,address:b,statement:h,uri:g.href,version:"1",chainId:w,nonce:null===(n=null==m?void 0:m.signInWithEthereum)||void 0===n?void 0:n.nonce,issuedAt:null!==(o=null===(i=null==m?void 0:m.signInWithEthereum)||void 0===i?void 0:i.issuedAt)&&void 0!==o?o:new Date,expirationTime:null===(a=null==m?void 0:m.signInWithEthereum)||void 0===a?void 0:a.expirationTime,notBefore:null===(s=null==m?void 0:m.signInWithEthereum)||void 0===s?void 0:s.notBefore,requestId:null===(l=null==m?void 0:m.signInWithEthereum)||void 0===l?void 0:l.requestId,resources:null===(u=null==m?void 0:m.signInWithEthereum)||void 0===u?void 0:u.resources}),p=await v.request({method:"personal_sign",params:[xr(f),b]})}try{const{data:t,error:r}=await ar(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:f,signature:p},(null===(c=e.options)||void 0===c?void 0:c.captchaToken)?{gotrue_meta_security:{captcha_token:null===(d=e.options)||void 0===d?void 0:d.captchaToken}}:null),xform:sr});if(r)throw r;if(!t||!t.session||!t.user){const e=new kt;return this._returnResult({data:{user:null,session:null},error:e})}return t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers("SIGNED_IN",t.session)),this._returnResult({data:Object.assign({},t),error:r})}catch(e){if(gt(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithSolana(e){var t,r,n,i,o,a,s,l,u,c,d,f;let p,h;if("message"in e)p=e.message,h=e.signature;else{const{chain:d,wallet:f,statement:m,options:v}=e;let g;if(Vt())if("object"==typeof f)g=f;else{const e=window;if(!("solana"in e)||"object"!=typeof e.solana||!("signIn"in e.solana&&"function"==typeof e.solana.signIn||"sign
2Message"in e.solana&&"function"==typeof e.solana.signMessage))throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.");g=e.solana}else{if("object"!=typeof f||!(null==v?void 0:v.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");g=f}const y=new URL(null!==(t=null==v?void 0:v.url)&&void 0!==t?t:window.location.href);if("signIn"in g&&g.signIn){const e=await g.signIn(Object.assign(Object.assign(Object.assign({issuedAt:(new Date).toISOString()},null==v?void 0:v.signInWithSolana),{version:"1",domain:y.host,uri:y.href}),m?{statement:m}:null));let t;if(Array.isArray(e)&&e[0]&&"object"==typeof e[0])t=e[0];else{if(!(e&&"object"==typeof e&&"signedMessage"in e&&"signature"in e))throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");t=e}if(!("signedMessage"in t&&"signature"in t&&("string"==typeof t.signedMessage||t.signedMessage instanceof Uint8Array)&&t.signature instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields");p="string"==typeof t.signedMessage?t.signedMessage:(new TextDecoder).decode(t.signedMessage),h=t.signature}else{if(!("signMessage"in g&&"function"==typeof g.signMessage&&"publicKey"in g&&"object"==typeof g&&g.publicKey&&"toBase58"in g.publicKey&&"function"==typeof g.publicKey.toBase58))throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");p=[`${y.host} wants you to sign in with your Solana account:`,g.publicKey.toBase58(),...m?["",m,""]:[""],"Version: 1",`URI: ${y.href}`,`Issued At: ${null!==(n=null===(r=null==v?void 0:v.signInWithSolana)||void 0===r?void 0:r.issuedAt)&&void 0!==n?n:(new Date).toISOString()}`,...(null===(i=null==v?void 0:v.signInWithSolana)||void 0===i?void 0:i.notBefore)?[`Not Before: ${v.signInWithSolana.notBefore}`]:[],...(null===(o=null==v?void 0:v.signInWithSolana)||void 0===o?void 0:o.expirationTime)?[`Expiration Time: ${v.signInWithSolana.expirationTime}`]:[],...(null===(a=null==v?void 0:v.signInWithSolana)||void 0===a?void 0:a.chainId)?[`Chain ID: ${v.signInWithSolana.chainId}`]:[],...(null===(s=null==v?void 0:v.signInWithSolana)||void 0===s?void 0:s.nonce)?[`Nonce: ${v.signInWithSolana.nonce}`]:[],...(null===(l=null==v?void 0:v.signInWithSolana)||void 0===l?void 0:l.requestId)?[`Request ID: ${v.signInWithSolana.requestId}`]:[],...(null===(c=null===(u=null==v?void 0:v.signInWithSolana)||void 0===u?void 0:u.resources)||void 0===c?void 0:c.length)?["Resources",...v.signInWithSolana.resources.map(e=>`- ${e}`)]:[]].join("\n");const e=await g.signMessage((new TextEncoder).encode(p),"utf8");if(!(e&&e instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");h=e}}try{const{data:t,error:r}=await ar(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:p,signature:Ut(h)},(null===(d=e.options)||void 0===d?void 0:d.captchaToken)?{gotrue_meta_security:{captcha_token:null===(f=e.options)||void 0===f?void 0:f.captchaToken}}:null),xform:sr});if(r)throw r;if(!t||!t.session||!t.user){const e=new kt;return this._returnResult({data:{user:null,session:null},error:e})}return t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers("SIGNED_IN",t.session)),this._returnResult({data:Object.assign({},t),error:r})}catch(e){if(gt(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async _exchangeCodeForSession(e){const t=await $t(this.storage,`${this.storageKey}-code-verifier`),[r,n]=(null!=t?t:"").split("/");try{if(!r&&"pkce"===this.flowType)throw new Ot;const{data:t,error:i}=await ar(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:r},xform:sr});if(await Wt(this.storage,`${this.storageKey}-code-verifier`),i)throw i;if(!t||!t.session||!t.user){const e=new kt;return this._returnResult({data:{user:null,session:null,redirectType:null},error:e})}return t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers("SIGNED_IN",t.session)),this._returnResult({data:Object.assign(Object.assign({},t),{redirectType:null!=n?n:null}),error:i})}catch(e){if(await Wt(this.storage,`${this.storageKey}-code-verifier`),gt(e))return this._returnResult({data:{user:null,session:null,redirectType:null},error:e});throw e}}async signInWithIdToken(e){try{const{options:t,provider:r,token:n,access_token:i,nonce:o}=e,a=await ar(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:n,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:null==t?void 0:t.captchaToken}},xform:sr}),{data:s,error:l}=a;if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!s||!s.session||!s.user){const e=new kt;return this._returnResult({data:{user:null,session:null},error:e})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),this._returnResult({data:s,error:l})}catch(e){if(gt(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithOtp(e){var t,r,n,i,o;try{if("email"in e){const{email:n,options:i}=e;let o=null,a=null;"pkce"===this.flowType&&([o,a]=await Kt(this.storage,this.storageKey));const{error:s}=await ar(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:n,data:null!==(t=null==i?void 0:i.data)&&void 0!==t?t:{}
2,create_user:null===(r=null==i?void 0:i.shouldCreateUser)||void 0===r||r,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken},code_challenge:o,code_challenge_method:a},redirectTo:null==i?void 0:i.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:s})}if("phone"in e){const{phone:t,options:r}=e,{data:a,error:s}=await ar(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:t,data:null!==(n=null==r?void 0:r.data)&&void 0!==n?n:{},create_user:null===(i=null==r?void 0:r.shouldCreateUser)||void 0===i||i,gotrue_meta_security:{captcha_token:null==r?void 0:r.captchaToken},channel:null!==(o=null==r?void 0:r.channel)&&void 0!==o?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:null==a?void 0:a.message_id},error:s})}throw new St("You must provide either an email or phone number.")}catch(e){if(await Wt(this.storage,`${this.storageKey}-code-verifier`),gt(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async verifyOtp(e){var t,r;try{let n,i;"options"in e&&(n=null===(t=e.options)||void 0===t?void 0:t.redirectTo,i=null===(r=e.options)||void 0===r?void 0:r.captchaToken);const{data:o,error:a}=await ar(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:i}}),redirectTo:n,xform:sr});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const s=o.session,l=o.user;return(null==s?void 0:s.access_token)&&(await this._saveSession(s),await this._notifyAllSubscribers("recovery"==e.type?"PASSWORD_RECOVERY":"SIGNED_IN",s)),this._returnResult({data:{user:l,session:s},error:null})}catch(e){if(gt(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async signInWithSSO(e){var t,r,n,i,o;try{let a=null,s=null;"pkce"===this.flowType&&([a,s]=await Kt(this.storage,this.storageKey));const l=await ar(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:null!==(r=null===(t=e.options)||void 0===t?void 0:t.redirectTo)&&void 0!==r?r:void 0}),(null===(n=null==e?void 0:e.options)||void 0===n?void 0:n.captchaToken)?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:s}),headers:this.headers,xform:cr});return(null===(i=l.data)||void 0===i?void 0:i.url)&&Vt()&&!(null===(o=e.options)||void 0===o?void 0:o.skipBrowserRedirect)&&window.location.assign(l.data.url),this._returnResult(l)}catch(e){if(await Wt(this.storage,`${this.storageKey}-code-verifier`),gt(e))return this._returnResult({data:null,error:e});throw e}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:t},error:r}=e;if(r)throw r;if(!t)throw new xt;const{error:n}=await ar(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:t.access_token});return this._returnResult({data:{user:null,session:null},error:n})})}catch(e){if(gt(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){try{const t=`${this.url}/resend`;if("email"in e){const{email:r,type:n,options:i}=e,{error:o}=await ar(this.fetch,"POST",t,{headers:this.headers,body:{email:r,type:n,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken}},redirectTo:null==i?void 0:i.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}if("phone"in e){const{phone:r,type:n,options:i}=e,{data:o,error:a}=await ar(this.fetch,"POST",t,{headers:this.headers,body:{phone:r,type:n,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:null==o?void 0:o.message_id},error:a})}throw new St("You must provide either an email or phone number and a type")}catch(e){if(gt(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async e=>e))}async _acquireLock(e,t){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const e=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),r=(async()=>(await e,await t()))();return this.pendingInLock.push((async()=>{try{await r}catch(e){}})()),r}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const e=t();for(this.pendingInLock.push((async()=>{try{await e}catch(e){}})()),await e;this.pendingInLock.length;){const e=[...this.pendingInLock];await Promise.all(e),this.pendingInLock.splice(0,e.length)}return await e}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const t=await this.__loadSession();return await e(t)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",(new Error).stack);try{let e=null;const t=await $t(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",t),null!==t&&(this._isValidSession(t)?e=t:(this._debug("#getSession()","session from storage is not val
2id"),await this._removeSession())),!e)return{data:{session:null},error:null};const r=!!e.expires_at&&1e3*e.expires_at-Date.now()<9e4;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",e.expires_at),!r){if(this.userStorage){const t=await $t(this.userStorage,this.storageKey+"-user");(null==t?void 0:t.user)?e.user=t.user:e.user=tr()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const t={value:this.suppressGetSessionWarning};e.user=function(e,t){return new Proxy(e,{get:(e,r,n)=>{if("__isInsecureUserWarningProxy"===r)return!0;if("symbol"==typeof r){const t=r.toString();if("Symbol(Symbol.toPrimitive)"===t||"Symbol(Symbol.toStringTag)"===t||"Symbol(util.inspect.custom)"===t||"Symbol(nodejs.util.inspect.custom)"===t)return Reflect.get(e,r,n)}return t.value||"string"!=typeof r||(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(e,r,n)}})}(e.user,t),t.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:n,error:i}=await this._callRefreshToken(e.refresh_token);return i?this._returnResult({data:{session:null},error:i}):this._returnResult({data:{session:n},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;const t=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return t.data.user&&(this.suppressGetSessionWarning=!0),t}async _getUser(e){try{return e?await ar(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:ur}):await this._useSession(async e=>{var t,r,n;const{data:i,error:o}=e;if(o)throw o;return(null===(t=i.session)||void 0===t?void 0:t.access_token)||this.hasCustomAuthorizationHeader?await ar(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:null!==(n=null===(r=i.session)||void 0===r?void 0:r.access_token)&&void 0!==n?n:void 0,xform:ur}):{data:{user:null},error:new xt}})}catch(e){if(gt(e))return Et(e)&&(await this._removeSession(),await Wt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:e});throw e}}async updateUser(e,t={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(e,t))}async _updateUser(e,t={}){try{return await this._useSession(async r=>{const{data:n,error:i}=r;if(i)throw i;if(!n.session)throw new xt;const o=n.session;let a=null,s=null;"pkce"===this.flowType&&null!=e.email&&([a,s]=await Kt(this.storage,this.storageKey));const{data:l,error:u}=await ar(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:null==t?void 0:t.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:a,code_challenge_method:s}),jwt:o.access_token,xform:ur});if(u)throw u;return o.user=l.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(e){if(await Wt(this.storage,`${this.storageKey}-code-verifier`),gt(e))return this._returnResult({data:{user:null},error:e});throw e}}async setSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new xt;const t=Date.now()/1e3;let r=t,n=!0,i=null;const{payload:o}=Qt(e.access_token);if(o.exp&&(r=o.exp,n=r<=t),n){const{data:t,error:r}=await this._callRefreshToken(e.refresh_token);if(r)return this._returnResult({data:{user:null,session:null},error:r});if(!t)return{data:{user:null,session:null},error:null};i=t}else{const{data:n,error:o}=await this._getUser(e.access_token);if(o)return this._returnResult({data:{user:null,session:null},error:o});i={access_token:e.access_token,refresh_token:e.refresh_token,user:n.user,token_type:"bearer",expires_in:r-t,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(e){if(gt(e))return this._returnResult({data:{session:null,user:null},error:e});throw e}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async t=>{var r;if(!e){const{data:n,error:i}=t;if(i)throw i;e=null!==(r=n.session)&&void 0!==r?r:void 0}if(!(null==e?void 0:e.refresh_token))throw new xt;const{data:n,error:i}=await this._callRefreshToken(e.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):n?this._returnResult({data:{user:n.user,session:n},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(e){if(gt(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async _getSessionFromURL(e,t){try{if(!Vt())throw new _t("No browser detected.");
2if(e.error||e.error_description||e.error_code)throw new _t(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(t){case"implicit":if("pkce"===this.flowType)throw new Ct("Not a valid PKCE flow url.");break;case"pkce":if("implicit"===this.flowType)throw new _t("Not a valid implicit grant flow url.")}if("pkce"===t){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new Ct("No code detected.");const{data:t,error:r}=await this._exchangeCodeForSession(e.code);if(r)throw r;const n=new URL(window.location.href);return n.searchParams.delete("code"),window.history.replaceState(window.history.state,"",n.toString()),{data:{session:t.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:n,access_token:i,refresh_token:o,expires_in:a,expires_at:s,token_type:l}=e;if(!(i&&a&&o&&l))throw new _t("No session defined in URL");const u=Math.round(Date.now()/1e3),c=parseInt(a);let d=u+c;s&&(d=parseInt(s));const f=d-u;1e3*f<=ct&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${c}s`);const p=d-c;u-p>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",p,d,u):u-p<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",p,d,u);const{data:h,error:m}=await this._getUser(i);if(m)throw m;const v={provider_token:r,provider_refresh_token:n,access_token:i,expires_in:c,expires_at:d,refresh_token:o,token_type:l,user:h.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:v,redirectType:e.type},error:null})}catch(e){if(gt(e))return this._returnResult({data:{session:null,redirectType:null},error:e});throw e}}_isImplicitGrantCallback(e){return"function"==typeof this.detectSessionInUrl?this.detectSessionInUrl(new URL(window.location.href),e):Boolean(e.access_token||e.error_description)}async _isPKCECallback(e){const t=await $t(this.storage,`${this.storageKey}-code-verifier`);return!(!e.code||!t)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async t=>{var r;const{data:n,error:i}=t;if(i&&!Et(i))return this._returnResult({error:i});const o=null===(r=n.session)||void 0===r?void 0:r.access_token;if(o){const{error:t}=await this.admin.signOut(o,e);if(t&&(!function(e){return gt(e)&&"AuthApiError"===e.name}(t)||404!==t.status&&401!==t.status&&403!==t.status)&&!Et(t))return this._returnResult({error:t})}return"others"!==e&&(await this._removeSession(),await Wt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(e){const t=Symbol("auth-callback"),r={id:t,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",t),this.stateChangeEmitters.delete(t)}};return this._debug("#onAuthStateChange()","registered callback with id",t),this.stateChangeEmitters.set(t,r),(async()=>{await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(t)})})(),{data:{subscription:r}}}async _emitInitialSession(e){return await this._useSession(async t=>{var r,n;try{const{data:{session:n},error:i}=t;if(i)throw i;await(null===(r=this.stateChangeEmitters.get(e))||void 0===r?void 0:r.callback("INITIAL_SESSION",n)),this._debug("INITIAL_SESSION","callback id",e,"session",n)}catch(t){await(null===(n=this.stateChangeEmitters.get(e))||void 0===n?void 0:n.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",t),console.error(t)}})}async resetPasswordForEmail(e,t={}){let r=null,n=null;"pkce"===this.flowType&&([r,n]=await Kt(this.storage,this.storageKey,!0));try{return await ar(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:r,code_challenge_method:n,gotrue_meta_security:{captcha_token:t.captchaToken}},headers:this.headers,redirectTo:t.redirectTo})}catch(e){if(await Wt(this.storage,`${this.storageKey}-code-verifier`),gt(e))return this._returnResult({data:null,error:e});throw e}}async getUserIdentities(){var e;try{const{data:t,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:null!==(e=t.user.identities)&&void 0!==e?e:[]},error:null})}catch(e){if(gt(e))return this._returnResult({data:null,error:e});throw e}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var t;try{const{data:r,error:n}=await this._useSession(async t=>{var r,n,i,o,a;const{data:s,error:l}=t;if(l)throw l;const u=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:null===(r=e.options)||void 0===r?void 0:r.redirectTo,scopes:null===(n=e.options)||void 0===n?void 0:n.scopes,queryParams:null===(i=e.options)||void 0===i?void 0:i.queryParams,skipBrowserRedirect:!0});return await ar(this.fetch,"GET",u,{headers:this.headers,jwt:null!==(a=null===(o=s.session)||void 0===o?void 0:o.access_token)&&void 0!==a?a:void 0})});if(n)throw n;return Vt()&&!(null===(t=e.options)||void 0===t?void 0:t.skipBrowserRedirect)&&window.location.assign(null==r?void 0:r.url),this._returnResult({data:{provider:e.provider,url:null==r?void 0:r.url},error:null})}catch(t){if(gt(t))return this._returnResult({data:{provider:e.provider,url:null},error:t});throw t}}async linkIdentityIdToken(e){return await this._useSession(async t=>{var r;try{const{error:n,data:{session:i}}=t;if(n)throw n;const{options:o,provider:a,token:s,access_token:l,nonce:u}=e,c=await ar(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:null!==(r=null==i?void 0:i.access_token)&&void 0!==r?r:void 0,body:{provider:a,id_token:s,access_token:l,nonce:u,link_identity:!0,gotrue_meta_security:{captcha_token:null==o?void 0:o.captchaToken}},xform:sr}),{data:d,error:f}=c;return f?this._returnResult({data:{user:null,session:null},error:f}):d&&d.session&&d.user?(d.session&&(await this._saveSession(d.session),await this._notifyAllSubscribers("USER_UPDATED",d.session)),this._returnResult({data:d,error:f})):this._returnResult({data:{user:null,session:null},error:new kt})}catch(e){if(await Wt(this.storage,`${this.storageKey}-code-verifier`),gt(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}})}async unlinkIdentity(e){try{return await this._useSession(async t=>{var r,n;const{data:i,error:o}=t;if(o)throw o;
2return await ar(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:null!==(n=null===(r=i.session)||void 0===r?void 0:r.access_token)&&void 0!==n?n:void 0})})}catch(e){if(gt(e))return this._returnResult({data:null,error:e});throw e}}async _refreshAccessToken(e){const t=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(t,"begin");try{const i=Date.now();return await(r=async r=>(r>0&&await async function(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}(200*Math.pow(2,r-1)),this._debug(t,"refreshing attempt",r),await ar(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:sr})),n=(e,t)=>{const r=200*Math.pow(2,e);return t&&Tt(t)&&Date.now()+r-i<ct},new Promise((e,t)=>{(async()=>{for(let i=0;i<1/0;i++)try{const t=await r(i);if(!n(i,null))return void e(t)}catch(e){if(!n(i,e))return void t(e)}})()}))}catch(e){if(this._debug(t,"error",e),gt(e))return this._returnResult({data:{session:null,user:null},error:e});throw e}finally{this._debug(t,"end")}var r,n}_isValidSession(e){return"object"==typeof e&&null!==e&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,t){const r=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:t.redirectTo,scopes:t.scopes,queryParams:t.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",t,"url",r),Vt()&&!t.skipBrowserRedirect&&window.location.assign(r),{data:{provider:e,url:r},error:null}}async _recoverAndRefresh(){var e,t;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const n=await $t(this.storage,this.storageKey);if(n&&this.userStorage){let t=await $t(this.userStorage,this.storageKey+"-user");this.storage.isServer||!Object.is(this.storage,this.userStorage)||t||(t={user:n.user},await Gt(this.userStorage,this.storageKey+"-user",t)),n.user=null!==(e=null==t?void 0:t.user)&&void 0!==e?e:tr()}else if(n&&!n.user&&!n.user){const e=await $t(this.storage,this.storageKey+"-user");e&&(null==e?void 0:e.user)?(n.user=e.user,await Wt(this.storage,this.storageKey+"-user"),await Gt(this.storage,this.storageKey,n)):n.user=tr()}if(this._debug(r,"session from storage",n),!this._isValidSession(n))return this._debug(r,"session is not valid"),void(null!==n&&await this._removeSession());const i=1e3*(null!==(t=n.expires_at)&&void 0!==t?t:1/0)-Date.now()<9e4;if(this._debug(r,`session has${i?"":" not"} expired with margin of 90000s`),i){if(this.autoRefreshToken&&n.refresh_token){const{error:e}=await this._callRefreshToken(n.refresh_token);e&&(console.error(e),Tt(e)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",e),await this._removeSession()))}}else if(n.user&&!0===n.user.__isUserNotAvailableProxy)try{const{data:e,error:t}=await this._getUser(n.access_token);!t&&(null==e?void 0:e.user)?(n.user=e.user,await this._saveSession(n),await this._notifyAllSubscribers("SIGNED_IN",n)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(e){console.error("Error getting user data:",e),this._debug(r,"error getting user data, skipping SIGNED_IN notification",e)}else await this._notifyAllSubscribers("SIGNED_IN",n)}catch(e){return this._debug(r,"error",e),void console.error(e)}finally{this._debug(r,"end")}}async _callRefreshToken(e){var t,r;if(!e)throw new xt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const n=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(n,"begin");try{this.refreshingDeferred=new Zt;const{data:t,error:r}=await this._refreshAccessToken(e);if(r)throw r;if(!t.session)throw new xt;await this._saveSession(t.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",t.session);const n={data:t.session,error:null};return this.refreshingDeferred.resolve(n),n}catch(e){if(this._debug(n,"error",e),gt(e)){const r={data:null,error:e};return Tt(e)||await this._removeSession(),null===(t=this.refreshingDeferred)||void 0===t||t.resolve(r),r}throw null===(r=this.refreshingDeferred)||void 0===r||r.reject(e),e}finally{this.refreshingDeferred=null,this._debug(n,"end")}}async _notifyAllSubscribers(e,t,r=!0){const n=`#_notifyAllSubscribers(${e})`;this._debug(n,"begin",t,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:e,session:t});const n=[],i=Array.from(this.stateChangeEmitters.values()).map(async r=>{try{await r.callback(e,t)}catch(e){n.push(e)}});if(await Promise.all(i),n.length>0){for(let e=0;e<n.length;e+=1)console.error(n[e]);throw n[0]}}finally{this._debug(n,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await Wt(this.storage,`${this.storageKey}-code-verifier`);const t=Object.assign({},e),r=t.user&&!0===t.user.__isUserNotAvailableProxy;if(this.userStorage){!r&&t.user&&await Gt(this.userStorage,this.storageKey+"-user",{user:t.user});const e=Object.assign({},t);delete e.user;const n=rr(e);await Gt(this.storage,this.storageKey,n)}else{const e=rr(t);await Gt(this.storage,this.storageKey,e)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Wt(this.storage,this.storageKey),await Wt(this.storage,this.storageKey+"-code-verifier"),await Wt(this.storage,this.storageKey+"-user"),this.userStorage&&await Wt(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&Vt()&&(null===window||void 0===window?void 0:window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}
2catch(e){console.error("removing visibilitychange callback failed",e)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),ct);this.autoRefreshTicker=e,e&&"object"==typeof e&&"function"==typeof e.unref?e.unref():"undefined"!=typeof Deno&&"function"==typeof Deno.unrefTimer&&Deno.unrefTimer(e);const t=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=t,t&&"object"==typeof t&&"function"==typeof t.unref?t.unref():"undefined"!=typeof Deno&&"function"==typeof Deno.unrefTimer&&Deno.unrefTimer(t)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e);const t=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,t&&clearTimeout(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async t=>{const{data:{session:r}}=t;if(!r||!r.refresh_token||!r.expires_at)return void this._debug("#_autoRefreshTokenTick()","no session");const n=Math.floor((1e3*r.expires_at-e)/ct);this._debug("#_autoRefreshTokenTick()",`access token expires in ${n} ticks, a tick lasts 30000ms, refresh threshold is 3 ticks`),n<=3&&await this._callRefreshToken(r.refresh_token)})}catch(e){console.error("Auto refresh tick failed with error. This is likely a transient error.",e)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(!(e.isAcquireTimeout||e instanceof gr))throw e;this._debug("auto refresh token tick lock not available")}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Vt()||!(null===window||void 0===window?void 0:window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(e){this._debug("#visibilityChangedCallback","error",e)}},null===window||void 0===window||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const t=`#_onVisibilityChanged(${e})`;this._debug(t,"visibilityState",document.visibilityState),"visible"===document.visibilityState?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{"visible"===document.visibilityState?await this._recoverAndRefresh():this._debug(t,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting")}))):"hidden"===document.visibilityState&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,t,r){const n=[`provider=${encodeURIComponent(t)}`];if((null==r?void 0:r.redirectTo)&&n.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),(null==r?void 0:r.scopes)&&n.push(`scopes=${encodeURIComponent(r.scopes)}`),"pkce"===this.flowType){const[e,t]=await Kt(this.storage,this.storageKey),r=new URLSearchParams({code_challenge:`${encodeURIComponent(e)}`,code_challenge_method:`${encodeURIComponent(t)}`});n.push(r.toString())}if(null==r?void 0:r.queryParams){const e=new URLSearchParams(r.queryParams);n.push(e.toString())}return(null==r?void 0:r.skipBrowserRedirect)&&n.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${e}?${n.join("&")}`}async _unenroll(e){try{return await this._useSession(async t=>{var r;const{data:n,error:i}=t;return i?this._returnResult({data:null,error:i}):await ar(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:null===(r=null==n?void 0:n.session)||void 0===r?void 0:r.access_token})})}catch(e){if(gt(e))return this._returnResult({data:null,error:e});throw e}}async _enroll(e){try{return await this._useSession(async t=>{var r,n;const{data:i,error:o}=t;if(o)return this._returnResult({data:null,error:o});const a=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},"phone"===e.factorType?{phone:e.phone}:"totp"===e.factorType?{issuer:e.issuer}:{}),{data:s,error:l}=await ar(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:null===(r=null==i?void 0:i.session)||void 0===r?void 0:r.access_token});return l?this._returnResult({data:null,error:l}):("totp"===e.factorType&&"totp"===s.type&&(null===(n=null==s?void 0:s.totp)||void 0===n?void 0:n.qr_code)&&(s.totp.qr_code=`data:image/svg+xml;utf-8,${s.totp.qr_code}`),this._returnResult({data:s,error:null}))})}catch(e){if(gt(e))return this._returnResult({data:null,error:e});throw e}}async _verify(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async t=>{var r;const{data:n,error:i}=t;if(i)return this._returnResult({data:null,error:i});const o=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:"create"===e.webauthn.type?Tr(e.webauthn.credential_response):Ar(e.webauthn.credential_response)})}:{code:e.code}),{data:a,error:s}=await ar(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:o,headers:this.headers,jwt:null===(r=null==n?void 0:n.session)||void 0===r?void 0:r.access_token});return s?this._returnResult({data:null,error:s}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:s}))})}catch(e){if(gt(e))return this._returnResult({data:null,error:e});throw e}})}async _challenge(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async t=>{var r;const{data:n,error:i}=t;if(i)return this._returnResult({data:null,error:i});const o=await ar(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:null===(r=null==n?void 0:n.session)||void 0===r?void 0:r.access_token});if(o.error)return o;const{data:a}=o;if("webauthn"!==a.type)return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:Or(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:Pr(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(e){if(gt(e))return this._returnResult({data:null,error:e});throw e}})}async _challengeAndVerify(e){const{data:t,error:r}=await this._challenge({factorId:e.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:e.factorId,challengeId:t.id,code:e.code})}async _listFactors(){var e;const{data:{user:t},error:r}=await this.getUser();if(r)return{data:null,error:r};const n={all:[],phone:[],totp:[],webauthn:[]};for(const r of null!==(e=null==t?void 0:t.factors)&&void 0!==e?e:[])n.all.push(r),"verified"===r.status&&n[r.factor_type].push(r);return{data:n,error:null}}async _getAuthenticatorAssuranceLevel(e){var t,r,n,i;if(e)try{const{payload:n}=Qt(e);let i=null;n.aal&&(i=n.aal);let o=i;const{data:{user:a},error:s}=await this.getUser(e);return s?this._returnResult({data:null,error:s}):((null!==(r=null===(t=null==a?void 0:a.factors)||void 0===t?void 0:t.filter(e=>"verified"===e.status))&&void 0!==r?r:[]).length>0&&(o="aal2"),{data:{currentLevel:i,nextLevel:o,currentAuthenticationMethods:n.amr||[]},error:null})}catch(e){if(gt(e))return this._returnResult({data:null,error:e});throw e}const{data:{session:o},error:a}
2=await this.getSession();if(a)return this._returnResult({data:null,error:a});if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:s}=Qt(o.access_token);let l=null;s.aal&&(l=s.aal);let u=l;return(null!==(i=null===(n=o.user.factors)||void 0===n?void 0:n.filter(e=>"verified"===e.status))&&void 0!==i?i:[]).length>0&&(u="aal2"),{data:{currentLevel:l,nextLevel:u,currentAuthenticationMethods:s.amr||[]},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;return n?this._returnResult({data:null,error:n}):r?await ar(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:r.access_token,xform:e=>({data:e,error:null})}):this._returnResult({data:null,error:new xt})})}catch(e){if(gt(e))return this._returnResult({data:null,error:e});throw e}}async _approveAuthorization(e,t){try{return await this._useSession(async r=>{const{data:{session:n},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!n)return this._returnResult({data:null,error:new xt});const o=await ar(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:n.access_token,body:{action:"approve"},xform:e=>({data:e,error:null})});return o.data&&o.data.redirect_url&&Vt()&&!(null==t?void 0:t.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(e){if(gt(e))return this._returnResult({data:null,error:e});throw e}}async _denyAuthorization(e,t){try{return await this._useSession(async r=>{const{data:{session:n},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!n)return this._returnResult({data:null,error:new xt});const o=await ar(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:n.access_token,body:{action:"deny"},xform:e=>({data:e,error:null})});return o.data&&o.data.redirect_url&&Vt()&&!(null==t?void 0:t.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(e){if(gt(e))return this._returnResult({data:null,error:e});throw e}}async _listOAuthGrants(){try{return await this._useSession(async e=>{const{data:{session:t},error:r}=e;return r?this._returnResult({data:null,error:r}):t?await ar(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:t.access_token,xform:e=>({data:e,error:null})}):this._returnResult({data:null,error:new xt})})}catch(e){if(gt(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;return n?this._returnResult({data:null,error:n}):r?(await ar(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new xt})})}catch(e){if(gt(e))return this._returnResult({data:null,error:e});throw e}}async fetchJwk(e,t={keys:[]}){let r=t.keys.find(t=>t.kid===e);if(r)return r;const n=Date.now();if(r=this.jwks.keys.find(t=>t.kid===e),r&&this.jwks_cached_at+6e5>n)return r;const{data:i,error:o}=await ar(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return i.keys&&0!==i.keys.length?(this.jwks=i,this.jwks_cached_at=n,r=i.keys.find(t=>t.kid===e),r||null):null}async getClaims(e,t={}){try{let r=e;if(!r){const{data:e,error:t}
2=await this.getSession();if(t||!e.session)return this._returnResult({data:null,error:t});r=e.session.access_token}const{header:n,payload:i,signature:o,raw:{header:a,payload:s}}=Qt(r);(null==t?void 0:t.allowExpired)||function(e){if(!e)throw new Error("Missing exp claim");if(e<=Math.floor(Date.now()/1e3))throw new Error("JWT has expired")}(i.exp);const l=n.alg&&!n.alg.startsWith("HS")&&n.kid&&"crypto"in globalThis&&"subtle"in globalThis.crypto?await this.fetchJwk(n.kid,(null==t?void 0:t.keys)?{keys:t.keys}:null==t?void 0:t.jwks):null;if(!l){const{error:e}=await this.getUser(r);if(e)throw e;return{data:{claims:i,header:n,signature:o},error:null}}const u=function(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}(n.alg),c=await crypto.subtle.importKey("jwk",l,u,!0,["verify"]);if(!await crypto.subtle.verify(u,c,o,function(e){const t=[];return function(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const t=1024*(n-55296)&65535;n=65536+(e.charCodeAt(r+1)-56320&65535|t),r+=1}Ft(n,t)}}(e,e=>t.push(e)),new Uint8Array(t)}(`${a}.${s}`)))throw new It("Invalid JWT signature");return{data:{claims:i,header:n,signature:o},error:null}}catch(e){if(gt(e))return this._returnResult({data:null,error:e});throw e}}}Ur.nextInstanceID={};var Vr=Ur;let zr="";zr="undefined"!=typeof Deno?"deno":"undefined"!=typeof document?"web":"undefined"!=typeof navigator&&"ReactNative"===navigator.product?"react-native":"node";const qr={headers:{"X-Client-Info":`supabase-js-${zr}/2.100.0`}},Hr={schema:"public"},Gr={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},$r={};function Wr(e){return(Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zr(e,t,r){return(t=function(e){var t=function(e){if("object"!=Wr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Wr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qr(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 Yr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qr(Object(r),!0).forEach(function(t){Zr(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qr(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var Kr=class extends Vr{constructor(e){super(e)}};(function(){if("undefined"!=typeof window)return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(null==t)return!1;const r=t.match(/^v(\d+)\./);return!!r&&parseInt(r[1],10)<=18})()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");var Jr=new class{constructor(e,t,r){var n,i;this.supabaseUrl=e,this.supabaseKey=t;const o=function(e){const t=null==e?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL((r=t).endsWith("/")?r:r+"/")}catch(e){throw Error("Invalid supabaseUrl: Provided URL is malformed.")}var r}(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",o),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",o),this.storageUrl=new URL("storage/v1",o),this.functionsUrl=new URL("functions/v1",o);const a=`sb-${o.hostname.split(".")[0]}-auth-token`,s=function(e,t){var r,n;const{db:i,auth:o,realtime:a,global:s}=e,{db:l,auth:u,realtime:c,global:d}=t,f={db:Yr(Yr({},l),i),auth:Yr(Yr({},u),o),realtime:Yr(Yr({},c),a),storage:{},global:Yr(Yr(Yr({},d),s),{},{headers:Yr(Yr({},null!==(r=null==d?void 0:d.headers)&&void 0!==r?r:{}),null!==(n=null==s?void 0:s.headers)&&void 0!==n?n:{})}),accessToken:async()=>""};return e.accessToken?f.accessToken=e.accessToken:delete f.accessToken,f}(null!=r?r:{},{db:Hr,realtime:$r,auth:Yr(Yr({},Gr),{},{storageKey:a}),global:qr});var l;this.storageKey=null!==(n=s.auth.storageKey)&&void 0!==n?n:"",this.headers=null!==(i=s.global.headers)&&void 0!==i?i:{},s.accessToken?(this.accessToken=s.accessToken,this.auth=new Proxy({},{get:(e,t)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(t)} is not possible`)}})):this.auth=this._initSupabaseAuthClient(null!==(l=s.auth)&&void 0!==l?l:{},this.headers,s.global.fetch),this.fetch=((e,t,r)=>{const n=(e=>e?(...t)=>e(...t):(...e)=>fetch(...e))(r),i=Headers;return async(r,o)=>{var a;const s=null!==(a=await t())&&void 0!==a?a:e;let l=new i(null==o?void 0:o.headers);return l.has("apikey")||l.set("apikey",e),l.has("Authorization")||l.set("Authorization",`Bearer ${s}`),n(r,Yr(Yr({},o),{},{headers:l}))}})(t,this._getAccessToken.bind(this),s.global.fetch),this.realtime=this._initRealtimeClient(Yr({headers:this.headers,accessToken:this._getAccessToken.bind(this)},s.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(e=>this.realtime.setAuth(e)).catch(e=>console.warn("Failed to set initial Realtime auth token:",e)),this.rest=new w(new URL("rest/v1",o).href,{headers:this.headers,schema:s.db.schema,fetch:this.fetch,timeout:s.db.timeout,urlLengthLimit:s.db.urlLengthLimit}),this.storage=new lt(this.storageUrl.href,this.headers,this.fetch,null==r?void 0:r.storage),s.accessToken||this._listenForAuthEvents()}get functions(){return new u(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,r)}
2channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e,t,r=this;if(r.accessToken)return await r.accessToken();const{data:n}=await r.auth.getSession();return null!==(e=null===(t=n.session)||void 0===t?void 0:t.access_token)&&void 0!==e?e:r.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:i,storageKey:o,flowType:a,lock:s,debug:l,throwOnError:u},c,d){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new Kr({url:this.authUrl.href,headers:Yr(Yr({},f),c),storageKey:o,autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:i,flowType:a,lock:s,debug:l,throwOnError:u,fetch:d,hasCustomAuthorizationHeader:Object.keys(this.headers).some(e=>"authorization"===e.toLowerCase())})}_initRealtimeClient(e){return new we(this.realtimeUrl.href,Yr(Yr({},e),{},{params:Yr(Yr({},{apikey:this.supabaseKey}),null==e?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",null==t?void 0:t.access_token)})}_handleTokenChanged(e,t,r){"TOKEN_REFRESHED"!==e&&"SIGNED_IN"!==e||this.changedAccessToken===r?"SIGNED_OUT"===e&&(this.realtime.setAuth(),"STORAGE"==t&&this.auth.signOut(),this.changedAccessToken=void 0):(this.changedAccessToken=r,this.realtime.setAuth(r))}}("https://rmxrquabchmvcqvzqywj.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InJteHJxdWFiY2htdmNxdnpxeXdqIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTc1MDcyOTUsImV4cCI6MjA3MzA4MzI5NX0.A6FJJtn9rne5_NEmwrAGfru3auUrCW3qbH5BLPvT5jE",{auth:{flowType:"pkce",persistSession:!0,detectSessionInUrl:!0,autoRefreshToken:!0}})},9659:function(e,t,r){"use strict";r.r(t);var n=r(27378);t.default=function(){return n.createElement("main",null,n.createElement("style",{dangerouslySetInnerHTML:{__html:'\n html, body {\n margin: 0;\n }\n html * {\n box-sizing: border-box;\n }\n main {\n display: flex;\n align-items: center;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;\n text-align: center;\n background-color: #E2E8F0;\n height: 100vh;\n }\n section {\n background-color: white;\n border-radius: 0.25rem;\n width: 32rem;\n padding: 1rem;\n margin: 0 auto;\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);\n }\n h1 {\n font-size: 2rem;\n margin: 0;\n font-weight: 500;\n line-height: 1;\n color: #2D3748;\n }\n '}}),n.createElement("section",null,n.createElement("h1",null,n.createElement("span",null,"Something went wrong"))))}},44173:function(e,t,r){"use strict";r.d(t,{Aq:function(){return c},VD:function(){return a},Zi:function(){return n},cS:function(){return i},f:function(){return l},hS:function(){return s},oY:function(){return u},vc:function(){return o}});var n="oauthIntent",i="signup:state",o="appState",a="code",s="login",l="signUp",u="google",c="apple"},67452:function(e,t,r){"use strict";r.d(t,{P:function(){return d}}),r(66066),r(63517),r(74413),r(62285),r(20779),r(54370),r(5153),r(67506),r(80566),r(50870),r(75397),r(18829),r(95498),r(51429),r(61842),r(25376),r(38333),r(95864),r(63990),r(94565),r(95073),r(65204),r(47072),r(98391),r(24338),r(22727),r(2002),r(19647);var n=r(98889),i=r(82608),o=r(14252);function a(e){return a="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},a(e)}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 l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?s(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t,r){return(t=function(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c={isProductTourActive:!1,areComponentsReady:!1,onboardingStage:null,stepIndex:0,steps:[],readyComponents:new Set,productPath:null,incentive:0},d=(0,i.Ue)(function(e,t){return l(l({},c),{},{actions:{setStepIndex:function(t){return e({stepIndex:t})},setSteps:function(t){return e({steps:t})},setOnboardingStage:function(t){return e({onboardingStage:t})},next:function(){var r,i,a,s,l=t(),u=l.steps,c=l.stepIndex,d=l.productPath,f=u[c],p=u[c+1];f&&(0,o.fw)(f.key,{stepIndex:c,totalSteps:u.length}),(null==p||null===(r=p.data)||void 0===r?void 0:r.path)!==(null==f||null===(i=f.data)||void 0===i?void 0:i.path)&&e({readyComponents:new Set,areComponentsReady:!1}),e({stepIndex:c+1}),"string"==typeof(null==f||null===(a=f.data)||void 0===a?void 0:a.next)&&f.data.next.includes("/products/[id]")&&d?((0,n.navigate)(d),e({productPath:null})):"string"==typeof(null==f||null===(s=f.data)||void 0===s?void 0:s.next)&&(0,n.navigate)(f.data.next)},previous:function(){var r,i,o,a=t(),s=a.steps,l=a.stepIndex,u=s[l],c=s[l-1];(null==c||null===(r=c.data)||void 0===r?void 0:r.path)!==(null==u||null===(i=u.data)||void 0===i?void 0:i.path)&&e({readyComponents:new Set,areComponentsReady:!1}),e({stepIndex:l-1}),null!=u&&null!==(o=u.data)&&void 0!==o&&o.previous&&(0,n.navigate)(u.data.previous)},announceComponentReady:function(r){var n,i=t(),o=i.isProductTourActive,a=i.readyComponents,s=i.steps,l=i.stepIndex;if(o){var u=s[l];if(c=window.location.pathname,(d=null==u||null===(n=u.data)||void 0===n?void 0:n.path)&&new RegExp("^"+d.replace("[id]","[^/]+")+"$").test(c)){var c,d,f=new Set(a).add(r),p="string"==typeof(null==u?void 0:u.target)?u.target.replace("#",""):null,h=p&&f.has(p);e({readyComponents:f,areComponentsReady:h})}}},reset:function(){return e(c)},startOnboarding:function(){return e({onboardingStage:"intro"})},startOnboardingReward:function(){return e({onboardingStage:"reward"})},startTour:function(){return e({isProductTourActive:!0,onboardingStage:"tour"})},completeTour:function(){return e({isProductTourActive:!1,onboardingStage:"outbound"})},completeOnboarding:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.PL)("completed",l({incentive:t().incentive},r)),e({onboardingStage:"completed"})},setProductPath:function(t){return e({productPath:t})},setIncentive:function(t){return e({incentive:t})}}})})},29876:function(e,t,r){"use strict";r.d(t,{Mb:function(){return a},_y:function(){return u},mh:function(){return l},sG:function(){return s}}),r(74413),r(98704);var n=r(82608),i={GBP:"£",USD:"$"},o=(0,n.Ue)(function(e){return{isNewAccount:!1,hasWalkthroughModalBeenShown:!1,hasSignupBonusModalBeenShown:!1,displayCurrency:"GBP",currencySymbol:"£",currentExchangeRate:1,exchangeRates:null,actions:{login:function(){return e(function(){return{isNewAccount:!1}})},register:function(){return e(function(){return{isNewAccount:!0}})},signupBonusModalClose:function(){return e(function(){return{hasSignupBonusModalBeenShown:!0}})},walkthroughModalClose:function(){return e(function(){return{hasWalkthroughModalBeenShown:!0}})},setDisplayCurrency:function(t){return e(function(e){var r=e.exchangeRates;return{displayCurrency:t,currentExchangeRate:(null==r?void 0:r[t])||1,currencySymbol:i[t]}})},setExchangeRates:function(t){var r=t.reduce(function(e,t){return e[t.currency]=t.rate,e},{USD:1,GBP:1});return e(function(e){var t=e.displayCurrency;return{exchangeRates:r,currentExchangeRate:r[t]||1}})}}}}),a=function(){return o(function(e){return e.displayCurrency})},s=function(){return o(function(e){return e.currentExchangeRate})},l=function(){return o(function(e){return e.currencySymbol})},u=function(){return o(function(e){return e.actions})}},67649:function(e,t,r){"use strict";r.d(t,{A:function(){return n},E:function(){return i}});var n=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")};function i(e){return e.split("T")[0]}},11039:function(e,t,r){"use strict";function n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}r.d(t,{co:function(){return Cy},qr:function(){return Oy},k1:function(){return Py},rw:function(){return Ty},L0:function(){return Ay},YA:function(){return _y}}),r(66066),r(63517),r(74413),r(62285),r(20779);var i,o={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
2URIComponent)}},a=function e(t,r){function i(e,i,o){if("undefined"!=typeof document){"number"==typeof(o=n({},r,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+a}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var o=r[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(n[s]=t.read(a,s),e===s)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){i(e,"",n({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,n({},this.attributes,t))},withConverter:function(t){return e(n({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}(o,{path:"/"});if("undefined"==typeof window){var s={hostname:""};i={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:s,referrer:""},screen:{width:0,height:0},location:s,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else i=window;var l={DEBUG:!1,LIB_VERSION:"2.76.0"},u="__mp_targeting",c="__mp_recorder",d="__MP_TARGETING_FILENAME__";function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function h(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){p(o,n,i,a,s,"next",e)}function s(e){p(o,n,i,a,s,"throw",e)}a(void 0)})}}function m(e,t,r){return m=_()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&E(i,r.prototype),i},m.apply(null,arguments)}function v(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.apply(this,arguments)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}function w(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function x(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function E(e,t){return E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},E(e,t)}function k(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function S(e){var t="function"==typeof Map?new Map:void 0;return S=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return m(e,arguments,y(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),E(n,e)},S(e)}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_=function(){return!!e})()}function C(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function O(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
2function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function P(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var T,A=Object.defineProperty,I=function(e,t,r){return function(e,t,r){return t in e?A(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":k(t))?t+"":t,r)},N=Object.defineProperty,R=function(e,t,r){return function(e,t,r){return t in e?N(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":k(t))?t+"":t,r)},j=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(j||{}),M={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},D={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},L={};function F(e){if(L[e])return L[e];var t=globalThis[e],r=t.prototype,n=e in M?M[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}
2)),o=e in D?D[e]:void 0,a=Boolean(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&a&&!globalThis.Zone)return L[e]=t.prototype,t.prototype;try{var s=document.createElement("iframe");document.body.appendChild(s);var l=s.contentWindow;if(!l)return t.prototype;var u=l[e].prototype;return document.body.removeChild(s),u?L[e]=u:r}catch(e){return r}}var B={};function U(e,t,r){var n,i=e+"."+String(r);if(B[i])return B[i].call(t);var o=F(e),a=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return a?(B[i]=a,a.call(t)):t[r]}var V=function(e){return U("Node",e,"childNodes")},z=function(e){return U("Node",e,"parentNode")},q=function(e){return U("Node",e,"parentElement")},H=function(e){return U("Node",e,"textContent")},G=function(e){return e&&"host"in e?U("ShadowRoot",e,"host"):null},$=function(e){return e&&"shadowRoot"in e?U("Element",e,"shadowRoot"):null};function W(e){return e.nodeType===e.ELEMENT_NODE}function Z(e){var t=e&&"host"in e&&"mode"in e&&G(e)||null;return Boolean(t&&"shadowRoot"in t&&$(t)===e)}function Q(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Y(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;return!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href),(n=Array.from(t,function(e){return K(e,r)}).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),n}catch(e){return null}var n}function K(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=Y(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(t){r=e.cssText}return e.styleSheet.href?le(r,e.styleSheet.href):r}var n,i=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,i=i.replace(n,"$1\\$2")),t?le(i,t):i}var J=function(){function e(){R(this,"idNodeMap",new Map),R(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(e){return r.removeNodeFromMap(e,t)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function X(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,a=e.maskInputFn,s=o||"",l=i&&ee(i);return(r[n.toLowerCase()]||l&&r[l])&&(s=a?a(s,t):"*".repeat(s.length)),s}function ee(e){return e.toLowerCase()}var te="__rrweb_original__";function re(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ee(t):null}function ne(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}var ie=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,oe=/^(?:[a-z+]+:)?\/\//i,ae=/^www\..*/i,se=/^(data:)([^,]*),(.*)/i;function le(e,t){return(e||"").replace(ie,function(e,r,n,i,o,a){var s,l=n||o||a,u=r||i||"";if(!l)return e;if(oe.test(l)||ae.test(l))return"url("+u+l+u+")";
2if(se.test(l))return"url("+u+l+u+")";if("/"===l[0])return"url("+u+(((s=t).indexOf("//")>-1?s.split("/").slice(0,3).join("/"):s.split("/")[0]).split("?")[0]+l)+u+")";var c=t.split("/"),d=l.split("/");c.pop();for(var f,p=C(d);!(f=p()).done;){var h=f.value;"."!==h&&(".."===h?c.pop():c.push(h))}return"url("+u+c.join("/")+u+")"})}function ue(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var ce,de,fe=1,pe=new RegExp("[^a-z0-9-_:]");function he(){return fe++}var me=/^[^ \t\n\r\u000c]+/,ve=/^[, \t\n\r\u000c]+/,ge=new WeakMap;function ye(e,t){return t&&""!==t.trim()?be(e,t):t}function be(e,t){var r=ge.get(e);if(r||(r=e.createElement("a"),ge.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function we(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?ye(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(ve),!(r>=t.length);){var o=n(me);if(","===o.slice(-1))o=ye(e,o.substring(0,o.length-1)),i.push(o);else{var a="";o=ye(e,o);for(var s=!1;;){var l=t.charAt(r);if(""===l){i.push((o+a).trim());break}if(s)")"===l&&(s=!1);else{if(","===l){r+=1,i.push((o+a).trim());break}"("===l&&(s=!0)}a+=l,r+=1}}}return i.join(", ")}(e,n):"style"===r?le(n,be(e)):"object"===t&&"data"===r?ye(e,n):n:ye(e,n):n}function xe(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function Ee(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&Ee(z(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&Ee(z(e),t,r)}function ke(e,t,r,n){var i;if(W(e)){if(!V(i=e).length)return!1}else{if(null===q(e))return!1;i=q(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(Ee(i,t,n))return!0;if(r)if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}catch(e){}return!1}function Se(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,a=t.needsMask,s=t.inlineStylesheet,l=t.maskInputOptions,u=void 0===l?{}:l,c=t.maskTextFn,d=t.maskInputFn,f=t.dataURLOptions,p=void 0===f?{}:f,h=t.inlineImages,m=t.recordCanvas,v=t.keepIframeSrcFn,g=t.newlyAddedElement,y=void 0!==g&&g,b=t.cssCaptured,x=void 0!==b&&b,E=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:j.Document,childNodes:[],compatMode:e.compatMode}:{type:j.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:j.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.inlineStylesheet,o=t.maskInputOptions,a=void 0===o?{}:o,s=t.maskInputFn,l=t.dataURLOptions,u=void 0===l?{}:l,c=t.inlineImages,d=t.recordCanvas,f=t.keepIframeSrcFn,p=t.newlyAddedElement,h=void 0!==p&&p,m=t.rootId,v=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,t.blockClass,t.blockSelector),g=function(e){if(w(e,HTMLFormElement))return"form";var t=ee(e.tagName);return pe.test(t)?"div":t}(e),y={},b=e.attributes.length,x=0;x<b;x++){var E=e.attributes[x];xe(g,E.name,E.value)||(y[E.name]=we(n,g,ee(E.name),E.value))}if("link"===g&&i){var k=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),S=null;k&&(S=Y(k)),S&&(delete y.rel,delete y.href,y._cssText=S)}if("style"===g&&e.sheet){var _=Y(e.sheet);_&&(e.childNodes.length>1&&(_=function(e,t){return function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e)for(var a=ue(e,r),s=a.length/e.length,l=1;l<n.length;l++)if(n[l].textContent&&"string"==typeof n[l].textContent){for(var u=ue(n[l].textContent,r),c=3;c<u.length&&(u[c].match(/[a-zA-Z0-9]/)||-1!==u.indexOf(u.substring(0,c),1));c++);for(;c<u.length;c++){var d=u.substring(0,c),f=a.split(d),p=-1;if(2===f.length)p=f[0].length;else if(f.length>2&&""===f[0]&&""!==n[l-1].textContent)p=a.indexOf(d,1);else if(1===f.length){if(d=d.substring(0,d.length-1),(f=a.split(d)).length<=1)return i.push(e),i;c=101}else c===u.length-1&&(p=a.indexOf(d));if(f.length>=2&&c>100){var h=n[l-1].textContent;if(h&&"string"==typeof h){var m=ue(h).length;p=a.indexOf(d,m)}-1===p&&(p=f[0].length)}if(-1!==p){for(var v=Math.floor(p/s);v>0&&v<e.length;){if((o+=1)>50*n.length)return i.push(e),i;var g=ue(e.substring(0,v),r);if(g.length===p){i.push(e.substring(0,v)),e=e.substring(v),a=a.substring(p);break}g.length<p?v+=Math.max(1,Math.floor((p-g.length)/s)):v-=Math.max(1,Math.floor((g.length-p)*s))}break}}}return i.push(e),i}(e,t).join("/* rr_split */")}(_,e)),y._cssText=_)}if("input"===g||"textarea"===g||"select"===g){var C=e.value,O=e.checked;"radio"!==y.type&&"checkbox"!==y.type&&"submit"!==y.type&&"button"!==y.type&&C?y.value=X({element:e,type:re(e),tagName:g,value:C,maskInputOptions:a,maskInputFn:s}):O&&(y.checked=O)}if("option"===g&&(e.selected&&!a.select?y.selected=!0:delete y.selected),"dialog"===g&&e.open&&(y.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===g&&d)if("2d"===e.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var i=t.getImageData,o=te in i?i[te]:i;
2if(new Uint32Array(o.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(function(e){return 0!==e}))return!1}return!0})(e)||(y.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){var P=e.toDataURL(u.type,u.quality),T=n.createElement("canvas");T.width=e.width,T.height=e.height,P!==T.toDataURL(u.type,u.quality)&&(y.rr_dataURL=P)}if("img"===g&&c){ce||(ce=n.createElement("canvas"),de=ce.getContext("2d"));var A=e,I=A.currentSrc||A.getAttribute("src")||"<unknown-src>",N=A.crossOrigin,R=function(){A.removeEventListener("load",R);try{ce.width=A.naturalWidth,ce.height=A.naturalHeight,de.drawImage(A,0,0),y.rr_dataURL=ce.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==A.crossOrigin)return A.crossOrigin="anonymous",void(A.complete&&0!==A.naturalWidth?R():A.addEventListener("load",R));console.warn("Cannot inline img src="+I+"! Error: "+e)}"anonymous"===A.crossOrigin&&(N?y.crossOrigin=N:A.removeAttribute("crossorigin"))};A.complete&&0!==A.naturalWidth?R():A.addEventListener("load",R)}if("audio"===g||"video"===g){var M=y;M.rr_mediaState=e.paused?"paused":"played",M.rr_mediaCurrentTime=e.currentTime,M.rr_mediaPlaybackRate=e.playbackRate,M.rr_mediaMuted=e.muted,M.rr_mediaLoop=e.loop,M.rr_mediaVolume=e.volume}if(h||(e.scrollLeft&&(y.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(y.rr_scrollTop=e.scrollTop)),v){var D=e.getBoundingClientRect(),L=D.width,F=D.height;
2y={class:y.class,rr_width:L+"px",rr_height:F+"px"}}"iframe"!==g||f(y.src)||(e.contentDocument||(y.rr_src=y.src),delete y.src);try{customElements.get(g)&&(r=!0)}catch(e){}return{type:j.Element,tagName:g,attributes:y,childNodes:[],isSVG:(B=e,Boolean("svg"===B.tagName||B.ownerSVGElement)||void 0),needBlock:v,rootId:m,isCustom:r};var B}(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:s,maskInputOptions:u,maskInputFn:d,dataURLOptions:p,inlineImages:h,recordCanvas:m,keepIframeSrcFn:v,newlyAddedElement:y,rootId:E});case e.TEXT_NODE:return function(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,a=z(e),s=a&&a.tagName,l="",u="STYLE"===s||void 0,c="SCRIPT"===s||void 0;return c?l="SCRIPT_PLACEHOLDER":o||(l=H(e),u&&l&&(l=le(l,be(t.doc)))),!u&&!c&&l&&r&&(l=n?n(l,q(e)):l.replace(/[\S]/g,"*")),{type:j.Text,textContent:l||"",rootId:i}}(e,{doc:r,needsMask:a,maskTextFn:c,rootId:E,cssCaptured:x});case e.CDATA_SECTION_NODE:return{type:j.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:j.Comment,textContent:H(e)||"",rootId:E};default:return!1}}function _e(e){return null==e?"":e.toLowerCase()}function Ce(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,a=t.maskTextClass,s=t.maskTextSelector,l=t.skipChild,u=void 0!==l&&l,c=t.inlineStylesheet,d=void 0===c||c,f=t.maskInputOptions,p=void 0===f?{}:f,h=t.maskTextFn,m=t.maskInputFn,v=t.slimDOMOptions,g=t.dataURLOptions,y=void 0===g?{}:g,b=t.inlineImages,w=void 0!==b&&b,x=t.recordCanvas,E=void 0!==x&&x,k=t.onSerialize,S=t.onIframeLoad,_=t.iframeLoadTimeout,O=void 0===_?5e3:_,P=t.onStylesheetLoad,T=t.stylesheetLoadTimeout,A=void 0===T?5e3:T,I=t.keepIframeSrcFn,N=void 0===I?function(){return!1}:I,R=t.newlyAddedElement,M=void 0!==R&&R,D=t.cssCaptured,L=void 0!==D&&D,F=t.needsMask,B=t.preserveWhiteSpace,U=void 0===B||B;F||(F=ke(e,a,s,void 0===F));var q,H=Se(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:F,inlineStylesheet:d,maskInputOptions:p,maskTextFn:h,maskInputFn:m,dataURLOptions:y,inlineImages:w,recordCanvas:E,keepIframeSrcFn:N,newlyAddedElement:M,cssCaptured:L});if(!H)return console.warn(e,"not serialized"),null;q=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===j.Comment)return!0;if(e.type===j.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===ne(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(_e(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===_e(e.attributes.name)||"icon"===_e(e.attributes.rel)||"apple-touch-icon"===_e(e.attributes.rel)||"shortcut icon"===_e(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&_e(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(_e(e.attributes.property).match(/^(og|twitter|fb):/)||_e(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===_e(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===_e(e.attributes.name)||"googlebot"===_e(e.attributes.name)||"bingbot"===_e(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===_e(e.attributes.name)||"generator"===_e(e.attributes.name)||"framework"===_e(e.attributes.name)||"publisher"===_e(e.attributes.name)||"progid"===_e(e.attributes.name)||_e(e.attributes.property).match(/^article:/)||_e(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===_e(e.attributes.name)||"yandex-verification"===_e(e.attributes.name)||"csrf-token"===_e(e.attributes.name)||"p:domain_verify"===_e(e.attributes.name)||"verify-v1"===_e(e.attributes.name)||"verification"===_e(e.attributes.name)||"shopify-checkout-api-token"===_e(e.attributes.name)))return!0}}return!1}(H,v)||!U&&H.type===j.Text&&!H.textContent.replace(/^\s+|\s+$/gm,"").length?-2:he();var G=Object.assign(H,{id:q});if(n.add(e,G),-2===q)return null;
2k&&k(e);var Y=!u;if(G.type===j.Element){Y=Y&&!G.needBlock,delete G.needBlock;var K=$(e);K&&Q(K)&&(G.isShadowHost=!0)}if((G.type===j.Document||G.type===j.Element)&&Y){v.headWhitespace&&G.type===j.Element&&"head"===G.tagName&&(U=!1);var J={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:F,maskTextClass:a,maskTextSelector:s,skipChild:u,inlineStylesheet:d,maskInputOptions:p,maskTextFn:h,maskInputFn:m,slimDOMOptions:v,dataURLOptions:y,inlineImages:w,recordCanvas:E,preserveWhiteSpace:U,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:O,onStylesheetLoad:P,stylesheetLoadTimeout:A,keepIframeSrcFn:N,cssCaptured:!1};if(G.type===j.Element&&"textarea"===G.tagName&&void 0!==G.attributes.value);else{G.type===j.Element&&void 0!==G.attributes._cssText&&"string"==typeof G.attributes._cssText&&(J.cssCaptured=!0);for(var X,ee=C(Array.from(V(e)));!(X=ee()).done;){var te=Ce(X.value,J);te&&G.childNodes.push(te)}}var re=null;if(W(e)&&(re=$(e)))for(var ie,oe=C(Array.from(V(re)));!(ie=oe()).done;){var ae=Ce(ie.value,J);ae&&(Q(re)&&(ae.isShadow=!0),G.childNodes.push(ae))}}var se=z(e);return se&&Z(se)&&Q(se)&&(G.isShadow=!0),G.type===j.Element&&"iframe"===G.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(e){return}if("complete"===i){var a="about:blank";if(n.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var s=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(s),o=!0,t()})}}}(e,function(){var t=e.contentDocument;if(t&&S){var r=Ce(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:F,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskTextFn:h,maskInputFn:m,slimDOMOptions:v,dataURLOptions:y,inlineImages:w,recordCanvas:E,preserveWhiteSpace:U,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:O,onStylesheetLoad:P,stylesheetLoadTimeout:A,keepIframeSrcFn:N});r&&S(e,r)}},O),G.type===j.Element&&"link"===G.tagName&&"string"==typeof G.attributes.rel&&("stylesheet"===G.attributes.rel||"preload"===G.attributes.rel&&"string"==typeof G.attributes.href&&"css"===ne(G.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(e){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}(e,function(){if(P){var t=Ce(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:F,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskTextFn:h,maskInputFn:m,slimDOMOptions:v,dataURLOptions:y,inlineImages:w,recordCanvas:E,preserveWhiteSpace:U,onSerialize:k,onIframeLoad:S,iframeLoadTimeout:O,onStylesheetLoad:P,stylesheetLoadTimeout:A,keepIframeSrcFn:N});t&&P(e,t)}},A),G}function Oe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Pe(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return w(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var Te={exports:{}},Ae=String,Ie=function(){return{isColorSupported:!1,reset:Ae,bold:Ae,dim:Ae,italic:Ae,underline:Ae,inverse:Ae,hidden:Ae,strikethrough:Ae,black:Ae,red:Ae,green:Ae,yellow:Ae,blue:Ae,magenta:Ae,cyan:Ae,white:Ae,gray:Ae,bgBlack:Ae,bgRed:Ae,bgGreen:Ae,bgYellow:Ae,bgBlue:Ae,bgMagenta:Ae,bgCyan:Ae,bgWhite:Ae}};Te.exports=Ie(),Te.exports.createColors=Ie;var Ne=Te.exports,Re=Pe(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),je=Ne,Me=Re,De=function(e){function t(r,n,i,o,a,s){var l;return(l=e.call(this,r)||this).name="CssSyntaxError",l.reason=r,a&&(l.file=a),o&&(l.source=o),s&&(l.plugin=s),void 0!==n&&void 0!==i&&("number"==typeof n?(l.line=n,l.column=i):(l.line=n.line,l.column=n.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,t),l}b(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=je.isColorSupported),Me&&e&&(r=Me(r));var n,i,o=r.split(/\r?\n/),a=Math.max(this.line-3,0),s=Math.min(this.line+2,o.length),l=String(s).length;if(e){var u=je.createColors(!0),c=u.bold,d=u.gray,f=u.red;n=function(e){return c(f(e))},i=function(e){return d(e)}}else n=i=function(e){return e};return o.slice(a,s).map(function(e,r){var o=a+1+r,s=" "+(" "+o).slice(-l)+" | ";if(o===t.line){var u=i(s.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(s)+e+"\n "+u+n("^")}return" "+i(s)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(S(Error)),Le=De;De.default=De;var Fe={};Fe.isClean=Symbol("isClean"),Fe.my=Symbol("my");var Be={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},Ue=function(){function e(e){this.builder=e}var t=e.prototype;
2return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var a=0;a<i;a++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Be[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var a,s="raw"+((a=r)[0].toUpperCase()+a.slice(1));return this[s]?n=this[s](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=Be[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Ve=Ue;Ue.default=Ue;var ze=Ve;function qe(e,t){new ze(t).stringify(e)}var He=qe;qe.default=qe;var Ge=Fe.isClean,$e=Fe.my,We=Le,Ze=Ve,Qe=He;function Ye(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":k(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return Ye(e,r)}):("object"===o&&null!==i&&(i=Ye(i)),r[n]=i)}return r}var Ke=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Ge]=!1,this[$e]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=C(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=Ye(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new We(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[Ge]){this[Ge]=!1;for(var e=this;e=e.parent;)e[Ge]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);
2else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new Ze).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,a=C(t);!(n=a()).done;){var s=n.value;s===this?o=!0:o?(this.parent.insertAfter(i,s),i=s):this.parent.insertBefore(i,s)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var a=this[o];if(Array.isArray(a))r[o]=a.map(function(e){return"object"===(void 0===e?"undefined":k(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===a?"undefined":k(a))&&a.toJSON)r[o]=a.toJSON(null,t);else if("source"===o){var s=t.get(a.input);null==s&&(s=i,t.set(a.input,i),i++),r[o]={end:a.end,inputId:s,start:a.start}}else r[o]=a}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=Qe),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},v(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Je=Ke;Ke.default=Ke;var Xe=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=g({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return b(t,e),v(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Je),et=Xe;Xe.default=Xe;var tt=Re.SourceMapConsumer,rt=Re.SourceMapGenerator,nt=Re.existsSync,it=Re.readFileSync,ot=Re.dirname,at=Re.join,st=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ot(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new tt(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":k(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
2if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=ot(e),nt(e))return this.mapFile=e,it(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(w(t,tt))return rt.fromSourceMap(t).toString();if(w(t,rt))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=at(ot(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),lt=st;st.default=st;var ut=Re.SourceMapConsumer,ct=Re.SourceMapGenerator,dt=Re.fileURLToPath,ft=Re.pathToFileURL,pt=Re.isAbsolute,ht=Re.resolve,mt=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
2,vt=Re,gt=Le,yt=lt,bt=Symbol("fromOffsetCache"),wt=Boolean(ut&&ct),xt=Boolean(ht&&pt),Et=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":k(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!xt||/^\w+:\/\//.test(t.from)||pt(t.from)?this.file=t.from:this.file=ht(t.from)),xt&&wt){var r=new yt(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+mt(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,a;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":k(t))){var s=t,l=r;if("number"==typeof s.offset){var u=this.fromOffset(s.offset);t=u.line,r=u.col}else t=s.line,r=s.column;if("number"==typeof l.offset){var c=this.fromOffset(l.offset);o=c.line,a=c.col}else o=l.line,a=l.column}else if(!r){var d=this.fromOffset(t);t=d.line,r=d.col}var f=this.origin(t,r,o,a);return(i=f?new gt(e,void 0===f.endLine?f.line:{column:f.column,line:f.line},void 0===f.endLine?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,n.plugin):new gt(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:a,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:a,endLine:o,line:t,source:this.css},this.file&&(ft&&(i.input.url=ft(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[bt])t=this[bt];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[bt]=t}var a=0;if(e>=t[t.length-1])a=t.length-1;else for(var s,l=t.length-2;a<l;)if(e<t[s=a+(l-a>>1)])l=s-1;else{if(!(e>=t[s+1])){a=s;break}a=s+1}return{col:e-t[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:ht(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,a=this.map.consumer(),s=a.originalPositionFor({column:t,line:e});if(!s.source)return!1;"number"==typeof r&&(i=a.originalPositionFor({column:n,line:r})),o=pt(s.source)?ft(s.source):new URL(s.source,this.map.consumer().sourceRoot||ft(this.map.mapFile));var l={column:s.column,endColumn:i&&i.column,endLine:i&&i.line,line:s.line,url:o.toString()};if("file:"===o.protocol){if(!dt)throw new Error("file: protocol is not available in this PostCSS build");l.file=dt(o)}var u=a.sourceContentFor(s.source);return u&&(l.source=u),l},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=g({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},v(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),kt=Et;Et.default=Et,vt&&vt.registerInput&&vt.registerInput(Et);var St=Re.SourceMapConsumer,_t=Re.SourceMapGenerator,Ct=Re.dirname,Ot=Re.relative,Pt=Re.resolve,Tt=Re.sep,At=Re.pathToFileURL,It=kt,Nt=Boolean(St&&_t),Rt=Boolean(Ct&&Pt&&Ot&&Tt),jt=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=C(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Ct(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new St(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Rt&&Nt&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=_t.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new _t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new _t({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(s,l,u){if(e.css+=s,l&&"end"!==u&&(a.generated.line=n,a.generated.column=i-1,l.source&&l.source.start?(a.source=e.sourcePath(l),a.original.line=l.source.start.line,a.original.column=l.source.start.column-1,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,e.map.addMapping(a))),(t=s.match(/\n/g))?(n+=t.length,r=s.lastIndexOf("\n"),i=s.length-r):i+=s.length,l&&"start"!==u){var c=l.parent||{raws:{}};("decl"===l.type||"atrule"===l.type&&!l.nodes)&&l===c.last&&!c.raws.semicolon||(l.source&&l.source.end?(a.source=e.sourcePath(l),a.original.line=l.source.end.line,a.original.column=l.source.end.column-1,a.generated.line=n,a.generated.column=i-2,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,a.generated.line=n,a.generated.column=i-1,e.map.addMapping(a)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Ct(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Ct(Pt(r,this.mapOpts.annotation)));var n=Ot(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new It(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(At){var r=At(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Tt&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Mt=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return b(t,e),t}(Je),Dt=Mt;Mt.default=Mt;var Lt,Ft,Bt,Ut,Vt=Fe.isClean,zt=Fe.my,qt=et,Ht=Dt;
2function Gt(e){return e.map(function(e){return e.nodes&&(e.nodes=Gt(e.nodes)),delete e.source,e})}function $t(e){if(e[Vt]=!1,e.proxyOf.nodes)for(var t,r=C(e.proxyOf.nodes);!(t=r()).done;)$t(t.value)}var Wt=function(e){function t(){return e.apply(this,arguments)||this}b(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=C(t);!(n=i()).done;)for(var o,a=n.value,s=C(this.normalize(a,this.last));!(o=s()).done;){var l=o.value;this.proxyOf.nodes.push(l)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=C(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,a=C(i);!(o=a()).done;){var s=o.value;this.proxyOf.nodes.splice(n+1,0,s)}for(var l in this.indexes)n<(r=this.indexes[l])&&(this.indexes[l]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var a,s=C(o);!(a=s()).done;){var l=a.value;this.proxyOf.nodes.splice(n,0,l)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=Gt(Lt(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=C(e=e.slice(0));!(i=o()).done;){var a=i.value;a.parent&&a.parent.removeChild(a,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var s,l=C(e=e.nodes.slice(0));!(s=l()).done;){var u=s.value;u.parent&&u.parent.removeChild(u,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new qt(e)]}else if(e.selector)e=[new Ft(e)];else if(e.name)e=[new Bt(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Ht(e)]}var c=e.map(function(e){return e[zt]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Vt]&&$t(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return c},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=C(t=t.reverse());!(n=i()).done;){for(var o,a=n.value,s=this.normalize(a,this.first,"prepend").reverse(),l=C(s);!(o=l()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var c in this.indexes)this.indexes[c]=this.indexes[c]+s.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=C(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}
2,r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?w(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?w(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?w(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},v(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(Je);Wt.registerParse=function(e){Lt=e},Wt.registerRule=function(e){Ft=e},Wt.registerAtRule=function(e){Bt=e},Wt.registerRoot=function(e){Ut=e};var Zt=Wt;Wt.default=Wt,Wt.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Bt.prototype):"rule"===e.type?Object.setPrototypeOf(e,Ft.prototype):"decl"===e.type?Object.setPrototypeOf(e,qt.prototype):"comment"===e.type?Object.setPrototypeOf(e,Ht.prototype):"root"===e.type&&Object.setPrototypeOf(e,Ut.prototype),e[zt]=!0,e.nodes&&e.nodes.forEach(function(e){Wt.rebuild(e)})};var Qt,Yt,Kt=function(e){function t(t){var r;return(r=e.call(this,g({type:"document"},t))||this).nodes||(r.nodes=[]),r}return b(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new Qt(new Yt,this,e).stringify()},t}(Zt);Kt.registerLazyResult=function(e){Qt=e},Kt.registerProcessor=function(e){Yt=e};var Jt=Kt;Kt.default=Kt;var Xt=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),er=Xt;Xt.default=Xt;var tr=er,rr=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new tr(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},v(e,[{key:"content",get:function(){return this.css}}]),e}(),nr=rr;rr.default=rr;var ir="'".charCodeAt(0),or='"'.charCodeAt(0),ar="\\".charCodeAt(0),sr="/".charCodeAt(0),lr="\n".charCodeAt(0),ur=" ".charCodeAt(0),cr="\f".charCodeAt(0),dr="\t".charCodeAt(0),fr="\r".charCodeAt(0),pr="[".charCodeAt(0),hr="]".charCodeAt(0),mr="(".charCodeAt(0),vr=")".charCodeAt(0),gr="{".charCodeAt(0),yr="}".charCodeAt(0),br=";".charCodeAt(0),wr="*".charCodeAt(0),xr=":".charCodeAt(0),Er="@".charCodeAt(0),kr=/[\t\n\f\r "#'()/;[\\\]{}]/g,Sr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,_r=/.[\r\n"'(/\\]/,Cr=/[\da-f]/i,Or=Zt,Pr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}b(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Or),Tr=Pr;Pr.default=Pr,Or.registerAtRule(Pr);var Ar,Ir,Nr=Zt,Rr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}b(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,a=C(i);!(o=a()).done;)o.value.raws.before=r.raws.before;return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new Ar(new Ir,this,e).stringify()},t}(Nr);Rr.registerLazyResult=function(e){Ar=e},Rr.registerProcessor=function(e){Ir=e};var jr=Rr;Rr.default=Rr,Nr.registerRoot(Rr);var Mr={comma:function(e){return Mr.split(e,[","],!0)},space:function(e){return Mr.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",a=!1,s=0,l=!1,u="",c=!1,d=C(e);!(n=d()).done;){var f=n.value;c?c=!1:"\\"===f?c=!0:l?f===u&&(l=!1):'"'===f||"'"===f?(l=!0,u=f):"("===f?s+=1:")"===f?s>0&&(s-=1):0===s&&t.includes(f)&&(a=!0),a?(""!==o&&i.push(o.trim()),o="",a=!1):o+=f}return(r||""!==o)&&i.push(o.trim()),i}},Dr=Mr;Mr.default=Mr;var Lr=Zt,Fr=Dr,Br=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return b(t,e),v(t,[{key:"selectors",get:function(){return Fr.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(Lr),Ur=Br;Br.default=Br,Lr.registerRule(Br);var Vr=et,zr=Dt,qr=Tr,Hr=jr,Gr=Ur,$r={empty:!0,space:!0},Wr=function(){function e(e){this.input=e,this.root=new Hr,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new qr;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,a=!1,s=[],l=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(s.length>0){for(r=s[n=s.length-1];r&&"space"===r[0];)r=s[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}s.push(e)}else s.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(i.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(i,"params",s),o&&(e=s[s.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),a&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>
vendor: 5,983 bytes, line 2
2=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,a=C(e.entries());!(i=a()).done;){var s=i.value,l=s[0];if("("===(r=(t=s[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return l}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new zr;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=function(e,t){void 0===t&&(t={});var r,n,i,o,a,s,l,u,c,d,f=e.css.valueOf(),p=t.ignoreErrors,h=f.length,m=0,v=[],g=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){g.push(e)},endOfFile:function(){return 0===g.length&&m>=h},nextToken:function(e){if(g.length)return g.pop();if(!(m>=h)){var t=!!e&&e.ignoreUnclosed;switch(r=f.charCodeAt(m)){case lr:case ur:case dr:case fr:case cr:n=m;do{n+=1,r=f.charCodeAt(n)}while(r===ur||r===lr||r===dr||r===fr||r===cr);d=["space",f.slice(m,n)],m=n-1;break;case pr:case hr:case gr:case yr:case xr:case br:case vr:var b=String.fromCharCode(r);d=[b,b,m];break;case mr:if(u=v.length?v.pop()[1]:"",c=f.charCodeAt(m+1),"url"===u&&c!==ir&&c!==or&&c!==ur&&c!==lr&&c!==dr&&c!==cr&&c!==fr){n=m;do{if(s=!1,-1===(n=f.indexOf(")",n+1))){if(p||t){n=m;break}y("bracket")}for(l=n;f.charCodeAt(l-1)===ar;)l-=1,s=!s}while(s);d=["brackets",f.slice(m,n+1),m,n],m=n}else n=f.indexOf(")",m+1),o=f.slice(m,n+1),-1===n||_r.test(o)?d=["(","(",m]:(d=["brackets",o,m,n],m=n);break;case ir:case or:i=r===ir?"'":'"',n=m;do{if(s=!1,-1===(n=f.indexOf(i,n+1))){if(p||t){n=m+1;break}y("string")}for(l=n;f.charCodeAt(l-1)===ar;)l-=1,s=!s}while(s);d=["string",f.slice(m,n+1),m,n],m=n;break;case Er:kr.lastIndex=m+1,kr.test(f),n=0===kr.lastIndex?f.length-1:kr.lastIndex-2,d=["at-word",f.slice(m,n+1),m,n],m=n;break;case ar:for(n=m,a=!0;f.charCodeAt(n+1)===ar;)n+=1,a=!a;if(r=f.charCodeAt(n+1),a&&r!==sr&&r!==ur&&r!==lr&&r!==dr&&r!==fr&&r!==cr&&(n+=1,Cr.test(f.charAt(n)))){for(;Cr.test(f.charAt(n+1));)n+=1;f.charCodeAt(n+1)===ur&&(n+=1)}d=["word",f.slice(m,n+1),m,n],m=n;break;default:r===sr&&f.charCodeAt(m+1)===wr?(0===(n=f.indexOf("*/",m+2)+1)&&(p||t?n=f.length:y("comment")),d=["comment",f.slice(m,n+1),m,n],m=n):(Sr.lastIndex=m+1,Sr.test(f),n=0===Sr.lastIndex?f.length-1:Sr.lastIndex-2,d=["word",f.slice(m,n+1),m,n],v.push(d),m=n)}return m++,d}},position:function(){return m}}}(this.input)},t.decl=function(e,t){var r=new Vr;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var a,s=[];e.length&&("space"===(a=e[0][0])||"comment"===a);)s.push(e.shift());this.precheckMissedSemicolon(e);for(var l=e.length-1;l>=0;l--){if("!important"===(n=e[l])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,l);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var c=e.slice(0),d="",f=l;f>0;f--){var p=c[f][0];if(0===d.trim().indexOf("!")&&"space"!==p)break;d=c.pop()[1]+d}0===d.trim().indexOf("!")&&(r.important=!0,r.raws.important=d,e=c)}if("space"!==n[0]&&"comment"!==n[0])break}var h=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});h&&(r.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(r,"value",s.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new Gr;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],a=e[1].startsWith("--"),s=[],l=e;l;){if(r=l[0],s.push(l),"("===r||"["===r)i||(i=l),o.push("("===r?")":"]");else if(a&&n&&"{"===r)i||(i=l),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(s,a);break}if("{"===r)return void this.rule(s);if("}"===r){this.tokenizer.back(s.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}
2if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!a)for(;s.length&&("space"===(l=s[s.length-1][0])||"comment"===l);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,a,s,l=r.length,u="",c=!0,d=0;d<l;d+=1)"space"!==(o=(i=r[d])[0])||d!==l-1||n?"comment"===o?(s=r[d-1]?r[d-1][0]:"empty",a=r[d+1]?r[d+1][0]:"empty",$r[s]||$r[a]||","===u.slice(-1)?c=!1:u+=i[1]):u+=i[1]:c=!1;if(!c){var f=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:f,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new Gr;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),Zr=Zt,Qr=Wr,Yr=kt;function Kr(e,t){var r=new Yr(e,t),n=new Qr(r);try{n.parse()}catch(e){throw e}return n.root}var Jr=Kr;Kr.default=Kr,Zr.registerParse(Kr);var Xr=Fe.isClean,en=Fe.my,tn=jt,rn=He,nn=Zt,on=Jt,an=nr,sn=Jr,ln=jr,un={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},cn={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},dn={Once:!0,postcssPlugin:!0,prepare:!0};function fn(e){return"object"===(void 0===e?"undefined":k(e))&&"function"==typeof e.then}function pn(e){var t=!1,r=un[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function hn(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:pn(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function mn(e){return e[Xr]=!1,e.nodes&&e.nodes.forEach(function(e){return mn(e)}),e}var vn={},gn=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":k(r))||null===r||"root"!==r.type&&"document"!==r.type)if(w(r,e)||w(r,an))i=mn(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var a=sn;n.syntax&&(a=n.syntax.parse),n.parser&&(a=n.parser),a.parse&&(a=a.parse);try{i=a(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[en]&&nn.rebuild(i)}else i=mn(r);this.result=new an(t,i,n),this.helpers=g({},vn,{postcss:vn,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":k(e))&&e.prepare?g({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=C(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":k(i)))for(var o in i){if(!cn[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.ver
2sion+" now).");if(!dn[o])if("object"===k(i[o]))for(var a in i[o])r(i,"*"===a?o:o+"-"+a.toLowerCase(),i[o][a]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return h(function(){var t,r,n,i,o,a,s,l,u,c,d,f;return O(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!fn(n=e.runOnRoot(r)))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[Xr])return[3,14];o[Xr]=!0,a=[hn(o)],p.label=8;case 8:if(!(a.length>0))return[3,13];if(!fn(s=e.visitTick(a)))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,s];case 10:return p.sent(),[3,12];case 11:throw l=p.sent(),u=a[a.length-1].node,e.handleError(l,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];c=function(){var t,r,n,i,a;return O(this,function(s){switch(s.label){case 0:t=f.value,r=t[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:return s.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw a=s.sent(),e.handleError(a);case 7:return[2]}})},d=C(e.listeners.OnceExit),p.label=15;case 15:return(f=d()).done?[3,18]:[5,P(c())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":k(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return fn(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=rn;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new tn(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=C(this.plugins);!(e=t()).done;){var r=e.value;if(fn(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[Xr];)n[Xr]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=C(n.nodes);!(i=o()).done;){var a=i.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=C(e);!(r=n()).done;){var i=r.value,o=i[0],a=i[1];this.result.lastPlugin=o;var s=void 0;try{s=a(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(fn(s))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],a=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return a(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var s,l=t.iterator;s=r.nodes[r.indexes[l]];)if(r.indexes[l]+=1,!s[Xr])return s[Xr]=!0,void e.push(hn(s));t.iterator=0,delete r.indexes[l]}for(var u=t.events;t.eventIndex<u.length;){var c=u[t.eventIndex];if(t.eventIndex+=1,0===c)return void(r.nodes&&r.nodes.length&&(r[Xr]=!0,t.iterator=r.getIterator()));if(this.listeners[c])return void(t.visitors=this.listeners[c])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Xr]=!0;for(var r,n=C(pn(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each(function(e){e[Xr]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()}
2,v(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();gn.registerPostcss=function(e){vn=e};var yn=gn;gn.default=gn,ln.registerLazyResult(gn),on.registerLazyResult(gn);var bn=jt,wn=He,xn=Jr,En=nr,kn=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=wn;this.result=new En(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var a=new bn(i,n,this._opts,t);if(a.isMap()){var s=a.generate(),l=s[0],u=s[1];l&&(this.result.css=l),u&&(this.result.map=u)}else a.clearAnnotation(),this.result.css=a.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},v(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=xn;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Sn=kn;kn.default=kn;var _n=Sn,Cn=yn,On=Jt,Pn=jr,Tn=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=C(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":k(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":k(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if("object"!==(void 0===i?"undefined":k(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Cn(this,e,t):new _n(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),An=Tn;Tn.default=Tn,Pn.registerProcessor(Tn),On.registerProcessor(Tn);var In=et,Nn=lt,Rn=Dt,jn=Tr,Mn=kt,Dn=jr,Ln=Ur;function Fn(e,t){if(Array.isArray(e))return e.map(function(e){return Fn(e)});var r=e.inputs,n=x(e,["inputs"]);if(r){t=[];for(var i,o=C(r);!(i=o()).done;){var a=g({},i.value,{__proto__:Mn.prototype});a.map&&(a.map=g({},a.map,{__proto__:Nn.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return Fn(e,t)})),n.source){var s=n.source,l=s.inputId,u=x(s,["inputId"]);n.source=u,null!=l&&(n.source.input=t[l])}if("root"===n.type)return new Dn(n);if("decl"===n.type)return new In(n);if("rule"===n.type)return new Ln(n);if("comment"===n.type)return new Rn(n);if("atrule"===n.type)return new jn(n);throw new Error("Unknown node type: "+e.type)}var Bn=Fn;Fn.default=Fn;var Un=Le,Vn=et,zn=yn,qn=Zt,Hn=An,Gn=He,$n=Bn,Wn=Jt,Zn=er,Qn=Dt,Yn=Tr,Kn=nr,Jn=kt,Xn=Jr,ei=Dr,ti=Ur,ri=jr,ni=Je;function ii(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new Hn(t)}ii.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),"MISSING_ENV_VAR".LANG&&"MISSING_ENV_VAR".LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));
2var a=t.apply(void 0,[].concat(i));return a.postcssPlugin=e,a.postcssVersion=(new Hn).version,a}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return ii([i(r)]).process(e,t)},i},ii.stringify=Gn,ii.parse=Xn,ii.fromJSON=$n,ii.list=ei,ii.comment=function(e){return new Qn(e)},ii.atRule=function(e){return new Yn(e)},ii.decl=function(e){return new Vn(e)},ii.rule=function(e){return new ti(e)},ii.root=function(e){return new ri(e)},ii.document=function(e){return new Wn(e)},ii.CssSyntaxError=Un,ii.Declaration=Vn,ii.Container=qn,ii.Processor=Hn,ii.Document=Wn,ii.Comment=Qn,ii.Warning=Zn,ii.AtRule=Yn,ii.Result=Kn,ii.Input=Jn,ii.Rule=ti,ii.Root=ri,ii.Node=ni,zn.registerPostcss(ii);var oi=ii;ii.default=ii;var ai=Oe(oi);ai.stringify,ai.fromJSON,ai.plugin,ai.parse,ai.list,ai.document,ai.comment,ai.atRule,ai.rule,ai.decl,ai.root,ai.CssSyntaxError,ai.Declaration,ai.Container,ai.Processor,ai.Document,ai.Comment,ai.Warning,ai.AtRule,ai.Result,ai.Input,ai.Rule,ai.Root,ai.Node;var si=Object.defineProperty,li=function(e,t,r){return function(e,t,r){return t in e?si(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":k(t))?t+"":t,r)};function ui(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ci(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return w(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var di={exports:{}},fi=String,pi=function(){return{isColorSupported:!1,reset:fi,bold:fi,dim:fi,italic:fi,underline:fi,inverse:fi,hidden:fi,strikethrough:fi,black:fi,red:fi,green:fi,yellow:fi,blue:fi,magenta:fi,cyan:fi,white:fi,gray:fi,bgBlack:fi,bgRed:fi,bgGreen:fi,bgYellow:fi,bgBlue:fi,bgMagenta:fi,bgCyan:fi,bgWhite:fi}};di.exports=pi(),di.exports.createColors=pi;var hi=di.exports,mi=ci(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),vi=hi,gi=mi,yi=function(e){function t(r,n,i,o,a,s){var l;return(l=e.call(this,r)||this).name="CssSyntaxError",l.reason=r,a&&(l.file=a),o&&(l.source=o),s&&(l.plugin=s),void 0!==n&&void 0!==i&&("number"==typeof n?(l.line=n,l.column=i):(l.line=n.line,l.column=n.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,t),l}b(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=vi.isColorSupported),gi&&e&&(r=gi(r));var n,i,o=r.split(/\r?\n/),a=Math.max(this.line-3,0),s=Math.min(this.line+2,o.length),l=String(s).length;if(e){var u=vi.createColors(!0),c=u.bold,d=u.gray,f=u.red;n=function(e){return c(f(e))},i=function(e){return d(e)}}else n=i=function(e){return e};return o.slice(a,s).map(function(e,r){var o=a+1+r,s=" "+(" "+o).slice(-l)+" | ";if(o===t.line){var u=i(s.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(s)+e+"\n "+u+n("^")}return" "+i(s)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(S(Error)),bi=yi;yi.default=yi;var wi={};wi.isClean=Symbol("isClean"),wi.my=Symbol("my");var xi={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},Ei=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var a=0;a<i;a++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return xi[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var a,s="raw"+((a=r)[0].toUpperCase()+a.slice(1));return this[s]?n=this[s](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=xi[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),ki=Ei;Ei.default=Ei;var Si=ki;function _i(e,t){new Si(t).stringify(e)}var Ci=_i;_i.default=_i;var Oi=wi.isClean,Pi=wi.my,Ti=bi,Ai=ki,Ii=Ci;function Ni(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":k(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return Ni(e,r)}):("object"===o&&null!==i&&(i=Ni(i)),r[n]=i)}return r}var Ri=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Oi]=!1,this[Pi]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=C(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=Ni(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new Ti(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[Oi]){this[Oi]=!1;for(var e=this;e=e.parent;)e[Oi]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);
2else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new Ai).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,a=C(t);!(n=a()).done;){var s=n.value;s===this?o=!0:o?(this.parent.insertAfter(i,s),i=s):this.parent.insertBefore(i,s)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var a=this[o];if(Array.isArray(a))r[o]=a.map(function(e){return"object"===(void 0===e?"undefined":k(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===a?"undefined":k(a))&&a.toJSON)r[o]=a.toJSON(null,t);else if("source"===o){var s=t.get(a.input);null==s&&(s=i,t.set(a.input,i),i++),r[o]={end:a.end,inputId:s,start:a.start}}else r[o]=a}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=Ii),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},v(e,[{key:"proxyOf",get:function(){return this}}]),e}(),ji=Ri;Ri.default=Ri;var Mi=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=g({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return b(t,e),v(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(ji),Di=Mi;Mi.default=Mi;var Li=mi.SourceMapConsumer,Fi=mi.SourceMapGenerator,Bi=mi.existsSync,Ui=mi.readFileSync,Vi=mi.dirname,zi=mi.join,qi=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Vi(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new Li(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":k(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
2if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Vi(e),Bi(e))return this.mapFile=e,Ui(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(w(t,Li))return Fi.fromSourceMap(t).toString();if(w(t,Fi))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=zi(Vi(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Hi=qi;qi.default=qi;var Gi=mi.SourceMapConsumer,$i=mi.SourceMapGenerator,Wi=mi.fileURLToPath,Zi=mi.pathToFileURL,Qi=mi.isAbsolute,Yi=mi.resolve,Ki=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
2,Ji=mi,Xi=bi,eo=Hi,to=Symbol("fromOffsetCache"),ro=Boolean(Gi&&$i),no=Boolean(Yi&&Qi),io=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":k(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!no||/^\w+:\/\//.test(t.from)||Qi(t.from)?this.file=t.from:this.file=Yi(t.from)),no&&ro){var r=new eo(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Ki(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,a;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":k(t))){var s=t,l=r;if("number"==typeof s.offset){var u=this.fromOffset(s.offset);t=u.line,r=u.col}else t=s.line,r=s.column;if("number"==typeof l.offset){var c=this.fromOffset(l.offset);o=c.line,a=c.col}else o=l.line,a=l.column}else if(!r){var d=this.fromOffset(t);t=d.line,r=d.col}var f=this.origin(t,r,o,a);return(i=f?new Xi(e,void 0===f.endLine?f.line:{column:f.column,line:f.line},void 0===f.endLine?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,n.plugin):new Xi(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:a,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:a,endLine:o,line:t,source:this.css},this.file&&(Zi&&(i.input.url=Zi(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[to])t=this[to];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[to]=t}var a=0;if(e>=t[t.length-1])a=t.length-1;else for(var s,l=t.length-2;a<l;)if(e<t[s=a+(l-a>>1)])l=s-1;else{if(!(e>=t[s+1])){a=s;break}a=s+1}return{col:e-t[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Yi(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,a=this.map.consumer(),s=a.originalPositionFor({column:t,line:e});if(!s.source)return!1;"number"==typeof r&&(i=a.originalPositionFor({column:n,line:r})),o=Qi(s.source)?Zi(s.source):new URL(s.source,this.map.consumer().sourceRoot||Zi(this.map.mapFile));var l={column:s.column,endColumn:i&&i.column,endLine:i&&i.line,line:s.line,url:o.toString()};if("file:"===o.protocol){if(!Wi)throw new Error("file: protocol is not available in this PostCSS build");l.file=Wi(o)}var u=a.sourceContentFor(s.source);return u&&(l.source=u),l},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=g({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},v(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),oo=io;io.default=io,Ji&&Ji.registerInput&&Ji.registerInput(io);var ao=mi.SourceMapConsumer,so=mi.SourceMapGenerator,lo=mi.dirname,uo=mi.relative,co=mi.resolve,fo=mi.sep,po=mi.pathToFileURL,ho=oo,mo=Boolean(ao&&so),vo=Boolean(lo&&co&&uo&&fo),go=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=C(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||lo(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new ao(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),vo&&mo&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=so.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new so({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new so({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(s,l,u){if(e.css+=s,l&&"end"!==u&&(a.generated.line=n,a.generated.column=i-1,l.source&&l.source.start?(a.source=e.sourcePath(l),a.original.line=l.source.start.line,a.original.column=l.source.start.column-1,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,e.map.addMapping(a))),(t=s.match(/\n/g))?(n+=t.length,r=s.lastIndexOf("\n"),i=s.length-r):i+=s.length,l&&"start"!==u){var c=l.parent||{raws:{}};("decl"===l.type||"atrule"===l.type&&!l.nodes)&&l===c.last&&!c.raws.semicolon||(l.source&&l.source.end?(a.source=e.sourcePath(l),a.original.line=l.source.end.line,a.original.column=l.source.end.column-1,a.generated.line=n,a.generated.column=i-2,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,a.generated.line=n,a.generated.column=i-1,e.map.addMapping(a)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?lo(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=lo(co(r,this.mapOpts.annotation)));var n=uo(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new ho(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(po){var r=po(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===fo&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),yo=go,bo=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return b(t,e),t}(ji),wo=bo;bo.default=bo;var xo,Eo,ko,So,_o=wi.isClean,Co=wi.my,Oo=Di,Po=wo;
2function To(e){return e.map(function(e){return e.nodes&&(e.nodes=To(e.nodes)),delete e.source,e})}function Ao(e){if(e[_o]=!1,e.proxyOf.nodes)for(var t,r=C(e.proxyOf.nodes);!(t=r()).done;)Ao(t.value)}var Io=function(e){function t(){return e.apply(this,arguments)||this}b(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=C(t);!(n=i()).done;)for(var o,a=n.value,s=C(this.normalize(a,this.last));!(o=s()).done;){var l=o.value;this.proxyOf.nodes.push(l)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=C(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,a=C(i);!(o=a()).done;){var s=o.value;this.proxyOf.nodes.splice(n+1,0,s)}for(var l in this.indexes)n<(r=this.indexes[l])&&(this.indexes[l]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var a,s=C(o);!(a=s()).done;){var l=a.value;this.proxyOf.nodes.splice(n,0,l)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=To(xo(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=C(e=e.slice(0));!(i=o()).done;){var a=i.value;a.parent&&a.parent.removeChild(a,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var s,l=C(e=e.nodes.slice(0));!(s=l()).done;){var u=s.value;u.parent&&u.parent.removeChild(u,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new Oo(e)]}else if(e.selector)e=[new Eo(e)];else if(e.name)e=[new ko(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Po(e)]}var c=e.map(function(e){return e[Co]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[_o]&&Ao(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return c},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=C(t=t.reverse());!(n=i()).done;){for(var o,a=n.value,s=this.normalize(a,this.first,"prepend").reverse(),l=C(s);!(o=l()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var c in this.indexes)this.indexes[c]=this.indexes[c]+s.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=C(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}
2,r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?w(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?w(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?w(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},v(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(ji);Io.registerParse=function(e){xo=e},Io.registerRule=function(e){Eo=e},Io.registerAtRule=function(e){ko=e},Io.registerRoot=function(e){So=e};var No=Io;Io.default=Io,Io.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,ko.prototype):"rule"===e.type?Object.setPrototypeOf(e,Eo.prototype):"decl"===e.type?Object.setPrototypeOf(e,Oo.prototype):"comment"===e.type?Object.setPrototypeOf(e,Po.prototype):"root"===e.type&&Object.setPrototypeOf(e,So.prototype),e[Co]=!0,e.nodes&&e.nodes.forEach(function(e){Io.rebuild(e)})};var Ro,jo,Mo=function(e){function t(t){var r;return(r=e.call(this,g({type:"document"},t))||this).nodes||(r.nodes=[]),r}return b(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new Ro(new jo,this,e).stringify()},t}(No);Mo.registerLazyResult=function(e){Ro=e},Mo.registerProcessor=function(e){jo=e};var Do=Mo;Mo.default=Mo;var Lo=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),Fo=Lo;Lo.default=Lo;var Bo=Fo,Uo=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new Bo(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},v(e,[{key:"content",get:function(){return this.css}}]),e}(),Vo=Uo;Uo.default=Uo;var zo="'".charCodeAt(0),qo='"'.charCodeAt(0),Ho="\\".charCodeAt(0),Go="/".charCodeAt(0),$o="\n".charCodeAt(0),Wo=" ".charCodeAt(0),Zo="\f".charCodeAt(0),Qo="\t".charCodeAt(0),Yo="\r".charCodeAt(0),Ko="[".charCodeAt(0),Jo="]".charCodeAt(0),Xo="(".charCodeAt(0),ea=")".charCodeAt(0),ta="{".charCodeAt(0),ra="}".charCodeAt(0),na=";".charCodeAt(0),ia="*".charCodeAt(0),oa=":".charCodeAt(0),aa="@".charCodeAt(0),sa=/[\t\n\f\r "#'()/;[\\\]{}]/g,la=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ua=/.[\r\n"'(/\\]/,ca=/[\da-f]/i,da=No,fa=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}b(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(da),pa=fa;fa.default=fa,da.registerAtRule(fa);var ha,ma,va=No,ga=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}b(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,a=C(i);!(o=a()).done;)o.value.raws.before=r.raws.before;return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new ha(new ma,this,e).stringify()},t}(va);ga.registerLazyResult=function(e){ha=e},ga.registerProcessor=function(e){ma=e};var ya=ga;ga.default=ga,va.registerRoot(ga);var ba={comma:function(e){return ba.split(e,[","],!0)},space:function(e){return ba.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",a=!1,s=0,l=!1,u="",c=!1,d=C(e);!(n=d()).done;){var f=n.value;c?c=!1:"\\"===f?c=!0:l?f===u&&(l=!1):'"'===f||"'"===f?(l=!0,u=f):"("===f?s+=1:")"===f?s>0&&(s-=1):0===s&&t.includes(f)&&(a=!0),a?(""!==o&&i.push(o.trim()),o="",a=!1):o+=f}return(r||""!==o)&&i.push(o.trim()),i}},wa=ba;ba.default=ba;var xa=No,Ea=wa,ka=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return b(t,e),v(t,[{key:"selectors",get:function(){return Ea.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(xa),Sa=ka;ka.default=ka,xa.registerRule(ka);
vendor: 10,557 bytes, line 2
2var _a=Di,Ca=wo,Oa=pa,Pa=ya,Ta=Sa,Aa={empty:!0,space:!0},Ia=function(){function e(e){this.input=e,this.root=new Pa,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new Oa;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,a=!1,s=[],l=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(s.length>0){for(r=s[n=s.length-1];r&&"space"===r[0];)r=s[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}s.push(e)}else s.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(i.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(i,"params",s),o&&(e=s[s.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),a&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,a=C(e.entries());!(i=a()).done;){var s=i.value,l=s[0];if("("===(r=(t=s[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return l}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new Ca;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=function(e,t){void 0===t&&(t={});var r,n,i,o,a,s,l,u,c,d,f=e.css.valueOf(),p=t.ignoreErrors,h=f.length,m=0,v=[],g=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){g.push(e)},endOfFile:function(){return 0===g.length&&m>=h},nextToken:function(e){if(g.length)return g.pop();if(!(m>=h)){var t=!!e&&e.ignoreUnclosed;switch(r=f.charCodeAt(m)){case $o:case Wo:case Qo:case Yo:case Zo:n=m;do{n+=1,r=f.charCodeAt(n)}while(r===Wo||r===$o||r===Qo||r===Yo||r===Zo);d=["space",f.slice(m,n)],m=n-1;break;case Ko:case Jo:case ta:case ra:case oa:case na:case ea:var b=String.fromCharCode(r);d=[b,b,m];break;case Xo:if(u=v.length?v.pop()[1]:"",c=f.charCodeAt(m+1),"url"===u&&c!==zo&&c!==qo&&c!==Wo&&c!==$o&&c!==Qo&&c!==Zo&&c!==Yo){n=m;do{if(s=!1,-1===(n=f.indexOf(")",n+1))){if(p||t){n=m;break}y("bracket")}for(l=n;f.charCodeAt(l-1)===Ho;)l-=1,s=!s}while(s);d=["brackets",f.slice(m,n+1),m,n],m=n}else n=f.indexOf(")",m+1),o=f.slice(m,n+1),-1===n||ua.test(o)?d=["(","(",m]:(d=["brackets",o,m,n],m=n);break;case zo:case qo:i=r===zo?"'":'"',n=m;do{if(s=!1,-1===(n=f.indexOf(i,n+1))){if(p||t){n=m+1;break}y("string")}for(l=n;f.charCodeAt(l-1)===Ho;)l-=1,s=!s}while(s);d=["string",f.slice(m,n+1),m,n],m=n;break;case aa:sa.lastIndex=m+1,sa.test(f),n=0===sa.lastIndex?f.length-1:sa.lastIndex-2,d=["at-word",f.slice(m,n+1),m,n],m=n;break;case Ho:for(n=m,a=!0;f.charCodeAt(n+1)===Ho;)n+=1,a=!a;if(r=f.charCodeAt(n+1),a&&r!==Go&&r!==Wo&&r!==$o&&r!==Qo&&r!==Yo&&r!==Zo&&(n+=1,ca.test(f.charAt(n)))){for(;ca.test(f.charAt(n+1));)n+=1;f.charCodeAt(n+1)===Wo&&(n+=1)}d=["word",f.slice(m,n+1),m,n],m=n;break;default:r===Go&&f.charCodeAt(m+1)===ia?(0===(n=f.indexOf("*/",m+2)+1)&&(p||t?n=f.length:y("comment")),d=["comment",f.slice(m,n+1),m,n],m=n):(la.lastIndex=m+1,la.test(f),n=0===la.lastIndex?f.length-1:la.lastIndex-2,d=["word",f.slice(m,n+1),m,n],v.push(d),m=n)}return m++,d}},position:function(){return m}}}(this.input)},t.decl=function(e,t){var r=new _a;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var a,s=[];e.length&&("space"===(a=e[0][0])||"comment"===a);)s.push(e.shift());this.precheckMissedSemicolon(e);for(var l=e.length-1;l>=0;l--){if("!important"===(n=e[l])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,l);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var c=e.slice(0),d="",f=l;f>0;f--){var p=c[f][0];if(0===d.trim().indexOf("!")&&"space"!==p)break;d=c.pop()[1]+d}0===d.trim().indexOf("!")&&(r.important=!0,r.raws.important=d,e=c)}if("space"!==n[0]&&"comment"!==n[0])break}var h=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});h&&(r.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(r,"value",s.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new Ta;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],a=e[1].startsWith("--"),s=[],l=e;l;){if(r=l[0],s.push(l),"("===r||"["===r)i||(i=l),o.push("("===r?")":"]");else if(a&&n&&"{"===r)i||(i=l),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(s,a);break}if("{"===r)return void this.rule(s);if("}"===r){this.tokenizer.back(s.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!a)for(;s.length&&("space"===(l=s[s.length-1][0])||"comment"===l);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,a,s,l=r.length,u="",c=!0,d=0;d<l;d+=1)"space"!==(o=(i=r[d])[0])||d!==l-1||n?"comment"===o?(s=r[d-1]?r[d-1][0]:"empty",a=r[d+1]?r[d+1][0]:"empty",Aa[s]||Aa[a]||","===u.slice(-1)?c=!1:u+=i[1]):u+=i[1]:c=!1;if(!c){var f=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:f,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new Ta;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),Na=No,Ra=Ia,ja=oo;function Ma(e,t){var r=new ja(e,t),n=new Ra(r);try{n.parse()}catch(e){throw e}return n.root}var Da=Ma;Ma.default=Ma,Na.registerParse(Ma);var La=wi.isClean,Fa=wi.my,Ba=yo,Ua=Ci,Va=No,za=Do,qa=Vo,Ha=Da,Ga=ya,$a={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Wa={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Za={Once:!0,postcssPlugin:!0,prepare:!0};function Qa(e){return"object"===(void 0===e?"undefined":k(e))&&"function"==typeof e.then}function Ya(e){var t=!1,r=$a[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function Ka(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Ya(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}
2function Ja(e){return e[La]=!1,e.nodes&&e.nodes.forEach(function(e){return Ja(e)}),e}var Xa={},es=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":k(r))||null===r||"root"!==r.type&&"document"!==r.type)if(w(r,e)||w(r,qa))i=Ja(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var a=Ha;n.syntax&&(a=n.syntax.parse),n.parser&&(a=n.parser),a.parse&&(a=a.parse);try{i=a(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[Fa]&&Va.rebuild(i)}else i=Ja(r);this.result=new qa(t,i,n),this.helpers=g({},Xa,{postcss:Xa,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":k(e))&&e.prepare?g({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=C(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":k(i)))for(var o in i){if(!Wa[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Za[o])if("object"===k(i[o]))for(var a in i[o])r(i,"*"===a?o:o+"-"+a.toLowerCase(),i[o][a]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return h(function(){var t,r,n,i,o,a,s,l,u,c,d,f;return O(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!Qa(n=e.runOnRoot(r)))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[La])return[3,14];o[La]=!0,a=[Ka(o)],p.label=8;case 8:if(!(a.length>0))return[3,13];if(!Qa(s=e.visitTick(a)))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,s];case 10:return p.sent(),[3,12];case 11:throw l=p.sent(),u=a[a.length-1].node,e.handleError(l,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];c=function(){var t,r,n,i,a;return O(this,function(s){switch(s.label){case 0:t=f.value,r=t[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:return s.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw a=s.sent(),e.handleError(a);case 7:return[2]}})},d=C(e.listeners.OnceExit),p.label=15;case 15:return(f=d()).done?[3,18]:[5,P(c())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":k(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return Qa(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Ua;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Ba(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=C(this.plugins);!(e=t()).done;){var r=e.value;if(Qa(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[La];)n[La]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=C(n.nodes);!(i=o()).done;){var a=i.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=C(e);!(r=n()).done;){var i=r.value,o=i[0],a=i[1];this.result.lastPlugin=o;var s=void 0;try{s=a(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;
2if(Qa(s))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],a=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return a(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var s,l=t.iterator;s=r.nodes[r.indexes[l]];)if(r.indexes[l]+=1,!s[La])return s[La]=!0,void e.push(Ka(s));t.iterator=0,delete r.indexes[l]}for(var u=t.events;t.eventIndex<u.length;){var c=u[t.eventIndex];if(t.eventIndex+=1,0===c)return void(r.nodes&&r.nodes.length&&(r[La]=!0,t.iterator=r.getIterator()));if(this.listeners[c])return void(t.visitors=this.listeners[c])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[La]=!0;for(var r,n=C(Ya(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each(function(e){e[La]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},v(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();es.registerPostcss=function(e){Xa=e};var ts=es;es.default=es,Ga.registerLazyResult(es),za.registerLazyResult(es);var rs=yo,ns=Ci,is=Da,os=Vo,as=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=ns;this.result=new os(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var a=new rs(i,n,this._opts,t);if(a.isMap()){var s=a.generate(),l=s[0],u=s[1];l&&(this.result.css=l),u&&(this.result.map=u)}else a.clearAnnotation(),this.result.css=a.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},v(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=is;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),ss=as;as.default=as;var ls=ss,us=ts,cs=Do,ds=ya,fs=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=C(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":k(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":k(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if("object"!==(void 0===i?"undefined":k(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new us(this,e,t):new ls(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),ps=fs;fs.default=fs,ds.registerProcessor(fs),cs.registerProcessor(fs);var hs=Di,ms=Hi,vs=wo,gs=pa,ys=oo,bs=ya,ws=Sa;function xs(e,t){if(Array.isArray(e))return e.map(function(e){return xs(e)});
2var r=e.inputs,n=x(e,["inputs"]);if(r){t=[];for(var i,o=C(r);!(i=o()).done;){var a=g({},i.value,{__proto__:ys.prototype});a.map&&(a.map=g({},a.map,{__proto__:ms.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return xs(e,t)})),n.source){var s=n.source,l=s.inputId,u=x(s,["inputId"]);n.source=u,null!=l&&(n.source.input=t[l])}if("root"===n.type)return new bs(n);if("decl"===n.type)return new hs(n);if("rule"===n.type)return new ws(n);if("comment"===n.type)return new vs(n);if("atrule"===n.type)return new gs(n);throw new Error("Unknown node type: "+e.type)}var Es=xs;xs.default=xs;var ks=bi,Ss=Di,_s=ts,Cs=No,Os=ps,Ps=Ci,Ts=Es,As=Do,Is=Fo,Ns=wo,Rs=pa,js=Vo,Ms=oo,Ds=Da,Ls=wa,Fs=Sa,Bs=ya,Us=ji;function Vs(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new Os(t)}Vs.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),"MISSING_ENV_VAR".LANG&&"MISSING_ENV_VAR".LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));var a=t.apply(void 0,[].concat(i));return a.postcssPlugin=e,a.postcssVersion=(new Os).version,a}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Vs([i(r)]).process(e,t)},i},Vs.stringify=Ps,Vs.parse=Ds,Vs.fromJSON=Ts,Vs.list=Ls,Vs.comment=function(e){return new Ns(e)},Vs.atRule=function(e){return new Rs(e)},Vs.decl=function(e){return new Ss(e)},Vs.rule=function(e){return new Fs(e)},Vs.root=function(e){return new Bs(e)},Vs.document=function(e){return new As(e)},Vs.CssSyntaxError=ks,Vs.Declaration=Ss,Vs.Container=Cs,Vs.Processor=Os,Vs.Document=As,Vs.Comment=Ns,Vs.Warning=Is,Vs.AtRule=Rs,Vs.Result=js,Vs.Input=Ms,Vs.Rule=Fs,Vs.Root=Bs,Vs.Node=Us,_s.registerPostcss(Vs);var zs=Vs;Vs.default=Vs;var qs=ui(zs);qs.stringify,qs.fromJSON,qs.plugin,qs.parse,qs.list,qs.document,qs.comment,qs.atRule,qs.rule,qs.decl,qs.root,qs.CssSyntaxError,qs.Declaration,qs.Container,qs.Processor,qs.Document,qs.Comment,qs.Warning,qs.AtRule,qs.Result,qs.Input,qs.Rule,qs.Root,qs.Node;var Hs=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];li(this,"parentElement",null),li(this,"parentNode",null),li(this,"ownerDocument"),li(this,"firstChild",null),li(this,"lastChild",null),li(this,"previousSibling",null),li(this,"nextSibling",null),li(this,"ELEMENT_NODE",1),li(this,"TEXT_NODE",3),li(this,"nodeType"),li(this,"nodeName"),li(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!w(t,e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},v(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),Gs={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},$s={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ws={};function Zs(e){if(Ws[e])return Ws[e];var t=globalThis[e],r=t.prototype,n=e in Gs?Gs[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}
2)),o=e in $s?$s[e]:void 0,a=Boolean(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&a&&!globalThis.Zone)return Ws[e]=t.prototype,t.prototype;try{var s=document.createElement("iframe");document.body.appendChild(s);var l=s.contentWindow;if(!l)return t.prototype;var u=l[e].prototype;return document.body.removeChild(s),u?Ws[e]=u:r}catch(e){return r}}var Qs={};function Ys(e,t,r){var n,i=e+"."+String(r);if(Qs[i])return Qs[i].call(t);var o=Zs(e),a=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return a?(Qs[i]=a,a.call(t)):t[r]}var Ks={};function Js(e,t,r){var n=e+"."+String(r);if(Ks[n])return Ks[n].bind(t);var i=Zs(e)[r];return"function"!=typeof i?t[r]:(Ks[n]=i,i.bind(t))}function Xs(){return Zs("MutationObserver").constructor}function el(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var tl=function(e){return Ys("Node",e,"childNodes")},rl=function(e){return Ys("Node",e,"parentNode")},nl=function(e){return Ys("Node",e,"parentElement")},il=function(e){return Ys("Node",e,"textContent")},ol=function(e,t){return Js("Node",e,"contains")(t)},al=function(e){return Js("Node",e,"getRootNode")()},sl=function(e){return e&&"host"in e?Ys("ShadowRoot",e,"host"):null},ll=function(e){return e&&"shadowRoot"in e?Ys("Element",e,"shadowRoot"):null};function ul(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var cl="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",dl={map:{},getId:function(){return console.error(cl),-1},getNode:function(){return console.error(cl),null},removeNodeFromMap:function(){console.error(cl)},has:function(){return console.error(cl),!1},reset:function(){console.error(cl)}};function fl(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var l=Date.now();i||!1!==r.leading||(i=l);var u=t-(l-i),c=this;u<=0||u>t?(n&&(clearTimeout(n),n=null),i=l,e.apply(c,a)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(c,a)},u))}}function pl(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return pl(e,t,o||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(dl=new Proxy(dl,{get:function(e,t,r){return"map"===t&&console.error(cl),Reflect.get(e,t,r)}}));var hl=Date.now;function ml(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=nl(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=nl(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function vl(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function gl(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function yl(e){return e?e.nodeType===e.ELEMENT_NODE?e:nl(e):null}function bl(e,t,r,n){if(!e)return!1;var i=yl(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(Ee(i,t,n))return!0}catch(e){}if(r){if(i.matches(r))return!0;
2if(n&&null!==i.closest(r))return!0}return!1}function wl(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)}function xl(e,t){if(Z(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=rl(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||xl(n,t))}function El(e){return Boolean(e.changedTouches)}function kl(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Sl(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function _l(e){return!!e&&(w(e,Hs)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(ll(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(hl=function(){return(new Date).getTime()});var Cl=function(){function e(){I(this,"id",1),I(this,"styleIDMap",new WeakMap),I(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function Ol(e){var t,r=null;return"getRootNode"in e&&(null==(t=al(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&sl(al(e))&&(r=sl(al(e))),r}function Pl(e){var t=e.ownerDocument;return!!t&&(ol(t,e)||function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=Ol(r);)r=t;return r}(e);return ol(t,r)}(e))}var Tl=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(Tl||{}),Al=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(Al||{}),Il=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(Il||{}),Nl=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(Nl||{}),Rl=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(Rl||{}),jl=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}(jl||{}),Ml=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(Ml||{});function Dl(e){return"__ln"in e}var Ll,Fl=function(){function e(){I(this,"length",0),I(this,"head",null),I(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Dl(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&Dl(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;
2this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),Bl=function(e,t){return e+"@"+t},Ul=function(){function e(){var e=this;I(this,"frozen",!1),I(this,"locked",!1),I(this,"texts",[]),I(this,"attributes",[]),I(this,"attributeMap",new WeakMap),I(this,"removes",[]),I(this,"mapRemoves",[]),I(this,"movedMap",{}),I(this,"addedSet",new Set),I(this,"movedSet",new Set),I(this,"droppedSet",new Set),I(this,"removesSubTreeCache",new Set),I(this,"mutationCb"),I(this,"blockClass"),I(this,"blockSelector"),I(this,"maskTextClass"),I(this,"maskTextSelector"),I(this,"inlineStylesheet"),I(this,"maskInputOptions"),I(this,"maskTextFn"),I(this,"maskInputFn"),I(this,"keepIframeSrcFn"),I(this,"recordCanvas"),I(this,"inlineImages"),I(this,"slimDOMOptions"),I(this,"dataURLOptions"),I(this,"doc"),I(this,"mirror"),I(this,"iframeManager"),I(this,"stylesheetManager"),I(this,"shadowDomManager"),I(this,"canvasManager"),I(this,"processedNodeManager"),I(this,"unattachedDoc"),I(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),I(this,"emit",function(){if(!e.frozen&&!e.locked){for(var t=[],r=new Set,n=new Fl,i=function(t){for(var r=t,n=-2;-2===n;)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},o=function(o){var a=rl(o);if(a&&Pl(o)){var s=!1;if(o.nodeType===Node.TEXT_NODE){var l=a.tagName;if("TEXTAREA"===l)return;"STYLE"===l&&e.addedSet.has(a)&&(s=!0)}var u=Z(a)?e.mirror.getId(Ol(o)):e.mirror.getId(a),c=i(o);if(-1===u||-1===c)return n.addNode(o);var d=Ce(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){kl(t,e.mirror)&&e.iframeManager.addIframe(t),Sl(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),_l(o)&&e.shadowDomManager.addShadowRoot(ll(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:s});d&&(t.push({parentId:u,nextId:c,node:d}),r.add(d.id))}};e.mapRemoves.length;){var a=e.mapRemoves.shift();if("IFRAME"===a.nodeName)try{e.iframeManager.removeIframe(a)}catch(e){}else e.stylesheetManager.cleanupStylesheetsForRemovedNode(a);e.mirror.removeNodeFromMap(a)}for(var s,l=C(e.movedSet);!(s=l()).done;){var u=s.value;zl(e.removesSubTreeCache,u,e.mirror)&&!e.movedSet.has(rl(u))||o(u)}for(var c,d=C(e.addedSet);!(c=d()).done;){var f=c.value;ql(e.droppedSet,f)||zl(e.removesSubTreeCache,f,e.mirror)?ql(e.movedSet,f)?o(f):e.droppedSet.add(f):o(f)}for(var p=null;n.length;){var h=null;if(p){var m=e.mirror.getId(rl(p.value)),v=i(p.value);-1!==m&&-1!==v&&(h=p)}if(!h)for(var g=n.tail;g;){var y=g;if(g=g.previous,y){var b=e.mirror.getId(rl(y.value));if(-1===i(y.value))continue;if(-1!==b){h=y;break}var w=y.value,x=rl(w);if(x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var E=sl(x);if(-1!==e.mirror.getId(E)){h=y;break}}}}if(!h){for(;n.head;)n.removeNode(n.head.value);break}p=h.previous,n.removeNode(h.value),o(h.value)}var k={texts:e.texts.map(function(t){var r=t.node,n=rl(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var r=t.attributes;if("string"==typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(k.texts.length||k.attributes.length||k.removes.length||k.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(k))}}),I(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(tl(t),function(e){return il(e)||""}).join("");r.attributes.value=X({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:re(t),value:n,maskInputFn:e.maskInputFn})}),I(this,"processMutation",function(t){if(!wl(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=il(t.target);bl(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:ke(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,yl(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var a=re(n);o=X({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:a,value:o,maskInputFn:e.maskInputFn})}if(bl(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var s=e.attributeMap.get(t.target);
2if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o)){if(n.contentDocument)return;i="rr_src"}if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(s),e.attributeMap.set(t.target,s)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!xe(n.tagName,i))if(s.attributes[i]=we(e.doc,ee(n.tagName),ee(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){e.unattachedDoc=e.doc}var l=e.unattachedDoc.createElement("span");t.oldValue&&l.setAttribute("style",t.oldValue);for(var u,c=C(Array.from(n.style));!(u=c()).done;){var d=u.value,f=n.style.getPropertyValue(d),p=n.style.getPropertyPriority(d);f!==l.style.getPropertyValue(d)||p!==l.style.getPropertyPriority(d)?s.styleDiff[d]=""===p?f:[f,p]:s._unchangedStyles[d]=[f,p]}for(var h,m=C(Array.from(l.style));!(h=m()).done;){var v=h.value;""===n.style.getPropertyValue(v)&&(s.styleDiff[v]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?s.attributes.rr_open_mode="modal":s.attributes.rr_open_mode="non-modal");break;case"childList":if(bl(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=Z(t.target)?e.mirror.getId(sl(t.target)):e.mirror.getId(t.target);bl(t.target,e.blockClass,e.blockSelector,!1)||wl(r,e.mirror,e.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(r,e.mirror)||(e.addedSet.has(r)?(Vl(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||xl(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[Bl(n,i)]?Vl(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!Z(t.target)||!Q(t.target))||void 0}),function(e,t){for(var r=[e];r.length;){var n=r.pop();t.has(n)||(t.add(n),tl(n).forEach(function(e){return r.push(e)}))}}(r,e.removesSubTreeCache))),e.mapRemoves.push(r))})}}),I(this,"genAdds",function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!e.addedSet.has(t)&&!e.movedSet.has(t)){if(e.mirror.hasNode(t)){if(wl(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[Bl(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);bl(t,e.blockClass,e.blockSelector,!1)||(tl(t).forEach(function(t){return e.genAdds(t)}),_l(t)&&tl(ll(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function Vl(e,t){e.delete(t),tl(t).forEach(function(t){return Vl(e,t)})}function zl(e,t,r){return 0!==e.size&&function(e,t){var r=rl(t);return!!r&&e.has(r)}(e,t)}function ql(e,t){return 0!==e.size&&Hl(e,t)}function Hl(e,t){var r=rl(t);return!!r&&(!!e.has(r)||Hl(e,r))}var Gl=function(e){return Ll?function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(e){if(Ll&&!0===Ll(e))return;throw e}}:e},$l=[];function Wl(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}
2function Zl(e,t){var r=new Ul;$l.push(r),r.init(e);var n=new(Xs())(Gl(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function Ql(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,a=e.sampling;return ul("scroll",Gl(fl(Gl(function(e){var a=Wl(e);if(a&&!bl(a,i,o,!0)){var s=n.getId(a);if(a===r&&r.defaultView){var l=ml(r.defaultView);t({id:s,x:l.left,y:l.top})}else t({id:s,x:a.scrollLeft,y:a.scrollTop})}}),a.scroll||100)),r)}var Yl=["INPUT","TEXTAREA","SELECT"],Kl=new WeakMap;function Jl(e){return function(e,t){if(ru("CSSGroupingRule")&&w(e.parentRule,CSSGroupingRule)||ru("CSSMediaRule")&&w(e.parentRule,CSSMediaRule)||ru("CSSSupportsRule")&&w(e.parentRule,CSSSupportsRule)||ru("CSSConditionRule")&&w(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Xl(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function eu(e,t){var r,n,i,o,a=e.mirror,s=e.stylesheetManager;o="#document"===t.nodeName?a.getId(t):a.getId(sl(t));var l="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,u=(null==l?void 0:l.prototype)?Object.getOwnPropertyDescriptor(null==l?void 0:l.prototype,"adoptedStyleSheets"):void 0;return null!==o&&-1!==o&&l&&u?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var e;return null==(e=u.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=u.set)?void 0:t.call(this,e);if(null!==o&&-1!==o)try{s.adoptStyleSheets(e,o)}catch(e){}return r}}),Gl(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function tu(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,a=e.viewportResizeCb,s=e.inputCb,l=e.mediaInteractionCb,u=e.styleSheetRuleCb,c=e.styleDeclarationCb,d=e.canvasMutationCb,f=e.fontCb,p=e.selectionCb,h=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o;t.mutation&&(o=t).mutation.apply(o,[].concat(n)),r.apply(void 0,[].concat(n))},e.mousemoveCb=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o;t.mousemove&&(o=t).mousemove.apply(o,[].concat(r)),n.apply(void 0,[].concat(r))},e.mouseInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o;t.mouseInteraction&&(o=t).mouseInteraction.apply(o,[].concat(r)),i.apply(void 0,[].concat(r))},e.scrollCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.scroll&&(i=t).scroll.apply(i,[].concat(r)),o.apply(void 0,[].concat(r))},e.viewportResizeCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.viewportResize&&(i=t).viewportResize.apply(i,[].concat(r)),a.apply(void 0,[].concat(r))},e.inputCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.input&&(i=t).input.apply(i,[].concat(r)),s.apply(void 0,[].concat(r))},e.mediaInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.mediaInteaction&&(i=t).mediaInteaction.apply(i,[].concat(r)),l.apply(void 0,[].concat(r))},e.styleSheetRuleCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleSheetRule&&(i=t).styleSheetRule.apply(i,[].concat(r)),u.apply(void 0,[].concat(r))},e.styleDeclarationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleDeclaration&&(i=t).styleDeclaration.apply(i,[].concat(r)),c.apply(void 0,[].concat(r))},e.canvasMutationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.canvasMutation&&(i=t).canvasMutation.apply(i,[].concat(r)),d.apply(void 0,[].concat(r))},e.fontCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.font&&(i=t).font.apply(i,[].concat(r)),f.apply(void 0,[].concat(r))},e.selectionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.selection&&(i=t).selection.apply(i,[].concat(r)),p.apply(void 0,[].concat(r))},e.customElementCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.customElement&&(i=t).customElement.apply(i,[].concat(r)),h.apply(void 0,[].concat(r))}}(e,t),e.recordDOM&&(r=Zl(e,e.doc));var i,o,a,s,l,u,c,d,f,p=function(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(!1===r.mousemove)return function(){};var o,a="number"==typeof r.mousemove?r.mousemove:50,s="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,l=[],u=fl(Gl(function(e){var r=Date.now()-o;t(l.map(function(e){return e.timeOffset-=r,e}),e),l=[],o=null}),s),c=Gl(fl(Gl(function(e){var t=Wl(e),r=El(e)?e.changedTouches[0]:e,n=r.clientX,a=r.clientY;o||(o=hl()),l.push({x:n,y:a,id:i.getId(t),timeOffset:hl()-o}),u("undefined"!=typeof DragEvent&&w(e,DragEvent)?Al.Drag:w(e,MouseEvent)?Al.MouseMove:Al.TouchMove)}),a,{trailing:!1})),d=[ul("mousemove",c,n),ul("touchmove",c,n),ul("drag",c,n)];
2return Gl(function(){d.forEach(function(e){return e()})})}(e),h=function(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,a=e.sampling;if(!1===a.mouseInteraction)return function(){};var s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,l=[],u=null;return Object.keys(Il).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]}).forEach(function(e){var a=ee(e),s=function(e){return function(r){var a=Wl(r);if(!bl(a,i,o,!0)){var s=null,l=e;if("pointerType"in r){switch(r.pointerType){case"mouse":s=Nl.Mouse;break;case"touch":s=Nl.Touch;break;case"pen":s=Nl.Pen}s===Nl.Touch?Il[e]===Il.MouseDown?l="TouchStart":Il[e]===Il.MouseUp&&(l="TouchEnd"):Nl.Pen}else El(r)&&(s=Nl.Touch);null!==s?(u=s,(l.startsWith("Touch")&&s===Nl.Touch||l.startsWith("Mouse")&&s===Nl.Mouse)&&(s=null)):Il[e]===Il.Click&&(s=u,u=null);var c=El(r)?r.changedTouches[0]:r;if(c){var d=n.getId(a),f=c.clientX,p=c.clientY;Gl(t)(g({type:Il[l],id:d,x:f,y:p},null!==s&&{pointerType:s}))}}}}(e);if(window.PointerEvent)switch(Il[e]){case Il.MouseDown:case Il.MouseUp:a=a.replace("mouse","pointer");break;case Il.TouchStart:case Il.TouchEnd:return}l.push(ul(a,s,r))}),Gl(function(){l.forEach(function(e){return e()})})}(e),m=Ql(e),v=function(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1;return ul("resize",Gl(fl(Gl(function(){var e=vl(),t=gl();i===e&&o===t||(r({width:Number(t),height:Number(e)}),i=e,o=t)}),200)),n)}(e,{win:n}),y=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,a=e.ignoreClass,s=e.ignoreSelector,l=e.maskInputOptions,u=e.maskInputFn,c=e.sampling,d=e.userTriggeredOnInput;function f(e){var t=Wl(e),n=e.isTrusted,c=t&&t.tagName;if(t&&"OPTION"===c&&(t=nl(t)),t&&c&&!(Yl.indexOf(c)<0)&&!bl(t,i,o,!0)&&!(t.classList.contains(a)||s&&t.matches(s))){var f=t.value,h=!1,m=re(t)||"";"radio"===m||"checkbox"===m?h=t.checked:(l[c.toLowerCase()]||l[m])&&(f=X({element:t,maskInputOptions:l,tagName:c,type:m,value:f,maskInputFn:u})),p(t,d?{text:f,isChecked:h,userTriggered:n}:{text:f,isChecked:h});var v=t.name;"radio"===m&&v&&h&&r.querySelectorAll('input[type="radio"][name="'+v+'"]').forEach(function(e){if(e!==t){var r=e.value;p(e,d?{text:r,isChecked:!h,userTriggered:!1}:{text:r,isChecked:!h})}})}}function p(e,r){var i=Kl.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){Kl.set(e,r);var o=n.getId(e);Gl(t)(g({},r,{id:o}))}}var h=("last"===c.input?["change"]:["input","change"]).map(function(e){return ul(e,Gl(f),r)}),m=r.defaultView;if(!m)return function(){h.forEach(function(e){return e()})};var v,y=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),b=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return y&&y.set&&(v=h).push.apply(v,[].concat(b.map(function(e){return pl(e[0],e[1],{set:function(){Gl(f)({target:this,isTrusted:!1})}},!1,m)}))),Gl(function(){h.forEach(function(e){return e()})})}(e),b=(o=(i=e).mediaInteractionCb,a=i.blockClass,s=i.blockSelector,l=i.mirror,u=i.sampling,c=i.doc,d=Gl(function(e){return fl(Gl(function(t){var r=Wl(t);if(r&&!bl(r,a,s,!0)){var n=r.currentTime,i=r.volume,u=r.muted,c=r.playbackRate,d=r.loop;o({type:e,id:l.getId(r),currentTime:n,volume:i,muted:u,playbackRate:c,loop:d})}}),u.media||500)}),f=[ul("play",d(jl.Play),c),ul("pause",d(jl.Pause),c),ul("seeked",d(jl.Seeked),c),ul("volumechange",d(jl.VolumeChange),c),ul("ratechange",d(jl.RateChange),c)],Gl(function(){f.forEach(function(e){return e()})})),x=function(){},E=function(){},k=function(){},S=function(){};e.recordDOM&&(x=function(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var a=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:Gl(function(e,t,o){var a=o[0],s=o[1],l=Xl(t,n,i.styleMirror),u=l.id,c=l.styleId;
2return(u&&-1!==u||c&&-1!==c)&&r({id:u,styleId:c,adds:[{rule:a,index:s}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.addRule=function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var s,l,u=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:Gl(function(e,t,o){var a=o[0],s=Xl(t,n,i.styleMirror),l=s.id,u=s.styleId;return(l&&-1!==l||u&&-1!==u)&&r({id:l,styleId:u,removes:[{index:a}]}),e.apply(t,o)})}),o.CSSStyleSheet.prototype.removeRule=function(e){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},o.CSSStyleSheet.prototype.replace&&(s=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:Gl(function(e,t,o){var a=o[0],s=Xl(t,n,i.styleMirror),l=s.id,u=s.styleId;return(l&&-1!==l||u&&-1!==u)&&r({id:l,styleId:u,replace:a}),e.apply(t,o)})})),o.CSSStyleSheet.prototype.replaceSync&&(l=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:Gl(function(e,t,o){var a=o[0],s=Xl(t,n,i.styleMirror),l=s.id,u=s.styleId;return(l&&-1!==l||u&&-1!==u)&&r({id:l,styleId:u,replaceSync:a}),e.apply(t,o)})}));var c={};nu("CSSGroupingRule")?c.CSSGroupingRule=o.CSSGroupingRule:(nu("CSSMediaRule")&&(c.CSSMediaRule=o.CSSMediaRule),nu("CSSConditionRule")&&(c.CSSConditionRule=o.CSSConditionRule),nu("CSSSupportsRule")&&(c.CSSSupportsRule=o.CSSSupportsRule));var d={};return Object.entries(c).forEach(function(e){var t=e[0],o=e[1];d[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(d[t].insertRule,{apply:Gl(function(e,t,o){var a=o[0],s=o[1],l=Xl(t.parentStyleSheet,n,i.styleMirror),u=l.id,c=l.styleId;
2return(u&&-1!==u||c&&-1!==c)&&r({id:u,styleId:c,adds:[{rule:a,index:[].concat(Jl(t),[s||0])}]}),e.apply(t,o)})}),o.prototype.deleteRule=new Proxy(d[t].deleteRule,{apply:Gl(function(e,t,o){var a=o[0],s=Xl(t.parentStyleSheet,n,i.styleMirror),l=s.id,u=s.styleId;return(l&&-1!==l||u&&-1!==u)&&r({id:l,styleId:u,removes:[{index:[].concat(Jl(t),[a])}]}),e.apply(t,o)})})}),Gl(function(){o.CSSStyleSheet.prototype.insertRule=a,o.CSSStyleSheet.prototype.deleteRule=u,s&&(o.CSSStyleSheet.prototype.replace=s),l&&(o.CSSStyleSheet.prototype.replaceSync=l),Object.entries(c).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=d[t].insertRule,r.prototype.deleteRule=d[t].deleteRule})})}(e,{win:n}),E=eu(e,e.doc),k=function(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,a=t.win,s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:Gl(function(e,t,a){var l,u=a[0],c=a[1],d=a[2];if(i.has(u))return s.apply(t,[u,c,d]);var f=Xl(null==(l=t.parentRule)?void 0:l.parentStyleSheet,n,o.styleMirror),p=f.id,h=f.styleId;return(p&&-1!==p||h&&-1!==h)&&r({id:p,styleId:h,set:{property:u,value:c,priority:d},index:Jl(t.parentRule)}),e.apply(t,a)})});var l=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(l,{apply:Gl(function(e,t,a){var s,u=a[0];if(i.has(u))return l.apply(t,[u]);var c=Xl(null==(s=t.parentRule)?void 0:s.parentStyleSheet,n,o.styleMirror),d=c.id,f=c.styleId;return(d&&-1!==d||f&&-1!==f)&&r({id:d,styleId:f,remove:{property:u},index:Jl(t.parentRule)}),e.apply(t,a)})}),Gl(function(){a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=l})}(e,{win:n}),e.collectFonts&&(S=function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,r){var n=new a(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var s=el(r.fonts,"add",function(e){return function(r){return setTimeout(Gl(function(){var e=o.get(r);e&&(t(e),o.delete(r))}),0),e.apply(this,[r])}});return i.push(function(){n.FontFace=a}),i.push(s),Gl(function(){i.forEach(function(e){return e()})})}(e)));for(var _,O=function(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,a=!0,s=Gl(function(){var e=t.getSelection();if(!(!e||a&&(null==e?void 0:e.isCollapsed))){a=e.isCollapsed||!1;for(var s=[],l=e.rangeCount||0,u=0;u<l;u++){var c=e.getRangeAt(u),d=c.startContainer,f=c.startOffset,p=c.endContainer,h=c.endOffset;bl(d,n,i,!0)||bl(p,n,i,!0)||s.push({start:r.getId(d),startOffset:f,end:r.getId(p),endOffset:h})}o({ranges:s})}});return s(),ul("selectionchange",s)}(e),P=function(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;return n&&n.customElements?el(n.customElements,"define",function(e){return function(t,n,i){try{r({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}}):function(){}}(e),T=[],A=C(e.plugins);!(_=A()).done;){var I=_.value;T.push(I.observer(I.callback,n,I.options))}return Gl(function(){$l.forEach(function(e){return e.reset()}),null==r||r.disconnect(),p(),h(),m(),v(),y(),b(),x(),E(),k(),S(),O(),P(),T.forEach(function(e){return e()})})}function ru(e){return void 0!==window[e]}function nu(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var iu=function(){function e(e){I(this,"iframeIdToRemoteIdMap",new WeakMap),I(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),a=i.get(t);return a||(a=this.generateIdFn(),i.set(t,a),o.set(a,t)),a},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);
2return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),ou=function(){function e(e){I(this,"iframes",new WeakMap),I(this,"crossOriginIframeMap",new WeakMap),I(this,"crossOriginIframeMirror",new iu(he)),I(this,"crossOriginIframeStyleMirror"),I(this,"crossOriginIframeRootIdMap",new WeakMap),I(this,"iframeContentDocumentMap",new WeakMap),I(this,"iframeObserverCleanupMap",new WeakMap),I(this,"mirror"),I(this,"mutationCb"),I(this,"wrappedEmit"),I(this,"loadListener"),I(this,"stylesheetManager"),I(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new iu(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}
2,t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(e){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case Tl.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:Tl.IncrementalSnapshot,data:{source:Al.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case Tl.Meta:case Tl.Load:case Tl.DomContentLoaded:return!1;case Tl.Plugin:return t;case Tl.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Tl.IncrementalSnapshot:switch(t.data.source){case Al.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Al.Drag:case Al.TouchMove:case Al.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Al.ViewportResize:return!1;case Al.MediaInteraction:case Al.MouseInteraction:case Al.Scroll:case Al.CanvasMutation:case Al.Input:return this.replaceIds(t.data,e,["id"]),t;case Al.StyleSheetRule:case Al.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Al.Font:return t;case Al.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case Al.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=C(n);!(i=o()).done;){var a=i.value;(Array.isArray(t[a])||"number"==typeof t[a])&&(Array.isArray(t[a])?t[a]=e.getIds(r,t[a]):t[a]=e.getId(r,t[a]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===Ml.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),au=function(){function e(e){I(this,"shadowDoms",new WeakSet),I(this,"mutationCb"),I(this,"scrollCb"),I(this,"bypassOptions"),I(this,"mirror"),I(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(Q(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=Zl(g({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(Ql(g({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(sl(e))),r.restoreHandlers.push(eu({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;
2this.restoreHandlers.push(el(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=ll(this);return o&&Pl(this)&&r.addShadowRoot(o,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),su="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lu="undefined"==typeof Uint8Array?[]:new Uint8Array(256),uu=0;uu<64;uu++)lu[su.charCodeAt(uu)]=uu;var cu=new Map,du=function(e,t,r){if(e&&(hu(e,t)||"object"===(void 0===e?"undefined":k(e)))){var n=function(e,t){var r=cu.get(e);return r||(r=new Map,cu.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i}};function fu(e,t,r){return w(e,Array)?e.map(function(e){return fu(e,t,r)}):null===e?e:w(e,Float32Array)||w(e,Float64Array)||w(e,Int32Array)||w(e,Uint32Array)||w(e,Uint8Array)||w(e,Uint16Array)||w(e,Int16Array)||w(e,Int8Array)||w(e,Uint8ClampedArray)?{rr_type:e.constructor.name,args:[Object.values(e)]}:w(e,ArrayBuffer)?{rr_type:e.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=su[r[t]>>2],i+=su[(3&r[t])<<4|r[t+1]>>4],i+=su[(15&r[t+1])<<2|r[t+2]>>6],i+=su[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(e)}:w(e,DataView)?{rr_type:e.constructor.name,args:[fu(e.buffer,t,r),e.byteOffset,e.byteLength]}:w(e,HTMLImageElement)?{rr_type:e.constructor.name,src:e.src}:w(e,HTMLCanvasElement)?{rr_type:"HTMLImageElement",src:e.toDataURL()}:w(e,ImageData)?{rr_type:e.constructor.name,args:[fu(e.data,t,r),e.width,e.height]}:hu(e,t)||"object"===(void 0===e?"undefined":k(e))?{rr_type:e.constructor.name,index:du(e,t,r)}:e}var pu=function(e,t,r){return e.map(function(e){return fu(e,t,r)})},hu=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]});return Boolean(r.find(function(r){return w(e,t[r])}))};function mu(e,t,r,n){var i=[];try{var o=el(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];if(!bl(this,t,r,!0)){var l=function(e){return"experimental-webgl"===e?"webgl":e}(i);if("__context"in this||(this.__context=l),n&&["webgl","webgl2"].includes(l))if(a[0]&&"object"===k(a[0])){var u=a[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],a))}});i.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function vu(e,t,r,n,i,o){for(var a,s=function(){var s=a.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(s))return"continue";try{if("function"!=typeof e[s])return"continue";var u=el(e,s,function(e){return function(){for(var a=arguments.length,l=new Array(a),u=0;u<a;u++)l[u]=arguments[u];var c=e.apply(this,l);if(du(c,o,this),"tagName"in this.canvas&&!bl(this.canvas,n,i,!0)){var d=pu(l,o,this),f={type:t,property:s,args:d};r(this.canvas,f)}return c}});l.push(u)}catch(n){var c=pl(e,s,{set:function(e){r(this.canvas,{type:t,property:s,args:[e],setter:!0})}});l.push(c)}},l=[],u=C(Object.getOwnPropertyNames(e));!(a=u()).done;)s();return l}var gu,yu="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSA
2yKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",bu="undefined"!=typeof window&&window.Blob&&new Blob([(gu=yu,Uint8Array.from(atob(gu),function(e){return e.charCodeAt(0)}))],{type:"text/javascript;charset=utf-8"});function wu(e){var t;try{if(!(t=bu&&(window.URL||window.webkitURL).createObjectURL(bu)))throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(t){return new Worker("data:text/javascript;base64,"+yu,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var xu,Eu,ku,Su=function(){function e(e){var t=this;I(this,"pendingCanvasMutations",new Map),I(this,"rafStamps",{latestId:0,invokeId:null}),I(this,"mirror"),I(this,"mutationCb"),I(this,"resetObservers"),I(this,"frozen",!1),I(this,"locked",!1),I(this,"processMutation",function(e,r){!(t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId)&&t.rafStamps.invokeId||(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)});var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,a=e.blockSelector,s=e.recordCanvas,l=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,s&&"all"===n&&this.initCanvasMutationObserver(i,o,a),s&&"number"==typeof n&&this.initCanvasFPSObserver(n,i,o,a,{dataURLOptions:l})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o=this,a=mu(t,r,n,!0),s=new Map,l=new wu;l.onmessage=function(e){var t=e.data.id;if(s.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,a=r.width,l=r.height;o.mutationCb({id:t,type:Rl["2D"],commands:[{property:"clearRect",args:[0,0,a,l]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var u,c=1e3/e,d=0,f=function(e){if(d&&e-d<c)u=requestAnimationFrame(f);else{d=e;var a,p=o;(a=[],t.document.querySelectorAll("canvas").forEach(function(e){bl(e,r,n,!0)||a.push(e)}
2),a).forEach(h(function(e){var t,r,n,o;return O(this,function(a){switch(a.label){case 0:return r=p.mirror.getId(e),s.get(r)||0===e.width||0===e.height?[2]:(s.set(r,!0),["webgl","webgl2"].includes(e.__context)&&(n=e.getContext(e.__context),!1===(null==(t=null==n?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)&&n.clear(n.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return o=a.sent(),l.postMessage({id:r,bitmap:o,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[o]),[2]}})})),u=requestAnimationFrame(f)}};u=requestAnimationFrame(f),this.resetObservers=function(){a(),cancelAnimationFrame(u)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=mu(e,t,r,!1),i=function(e,t,r,n){for(var i,o=function(){var o=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])return"continue";var s=el(t.CanvasRenderingContext2D.prototype,o,function(i){return function(){for(var a=this,s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return bl(this.canvas,r,n,!0)||setTimeout(function(){var r=pu(l,t,a);e(a.canvas,{type:Rl["2D"],property:o,args:r})},0),i.apply(this,l)}});a.push(s)}catch(r){var l=pl(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:Rl["2D"],property:o,args:[t],setter:!0})}});a.push(l)}},a=[],s=C(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype));!(i=s()).done;)o();return function(){a.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r),o=function(e,t,r,n){var i,o,a=[];return(i=a).push.apply(i,[].concat(vu(t.WebGLRenderingContext.prototype,Rl.WebGL,e,r,n,t))),void 0!==t.WebGL2RenderingContext&&(o=a).push.apply(o,[].concat(vu(t.WebGL2RenderingContext.prototype,Rl.WebGL2,e,r,n,t))),function(){a.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r);this.resetObservers=function(){n(),i(),o()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map(function(e){return e.type,x(e,["type"])}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),_u=function(){function e(e){I(this,"trackedLinkElements",new WeakSet),I(this,"mutationCb"),I(this,"adoptedStyleSheetCb"),I(this,"styleMirror",new Cl),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){var r,n=function(){var e=i.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),a.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:K(t,e.href),index:r}})})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},a=[],s=C(e);!(i=s()).done;)r=this,n();a.length>0&&(o.styles=a),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var r=e;if(r.adoptedStyleSheets)for(var n,i=C(r.adoptedStyleSheets);!(n=i()).done;){var o=n.value;this.styleMirror.remove(o)}}if("STYLE"===e.nodeName){var a=e;a.sheet&&this.styleMirror.remove(a.sheet)}if("LINK"===e.nodeName&&"stylesheet"===e.rel){var s=e;s.sheet&&this.styleMirror.remove(s.sheet)}
2e.childNodes&&e.childNodes.forEach(function(e){t.cleanupStylesheetsForRemovedNode(e)})}catch(e){}},t.trackStylesheetInLinkElement=function(e){},e}(),Cu=function(){function e(){I(this,"nodeMap",new WeakMap),I(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}(),Ou=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var Pu=document.createElement("iframe");document.body.appendChild(Pu),Array.from=(null==(T=Pu.contentWindow)?void 0:T.Array.from)||Array.from,document.body.removeChild(Pu)}}catch(e){console.debug("Unable to override Array.from",e)}var Tu,Au,Iu=new J;function Nu(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,a=e.blockSelector,s=void 0===a?null:a,l=e.ignoreClass,u=void 0===l?"rr-ignore":l,c=e.ignoreSelector,d=void 0===c?null:c,f=e.maskTextClass,p=void 0===f?"rr-mask":f,h=e.maskTextSelector,m=void 0===h?null:h,v=e.inlineStylesheet,y=void 0===v||v,b=e.maskAllInputs,w=e.maskInputOptions,x=e.slimDOMOptions,E=e.maskInputFn,k=e.maskTextFn,S=e.hooks,_=e.packFn,O=e.sampling,P=void 0===O?{}:O,T=e.dataURLOptions,A=void 0===T?{}:T,I=e.mousemoveWait,N=e.recordDOM,R=void 0===N||N,j=e.recordCanvas,M=void 0!==j&&j,D=e.recordCrossOriginIframes,L=void 0!==D&&D,F=e.recordAfter,B=void 0===F?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":F,U=e.userTriggeredOnInput,V=void 0!==U&&U,z=e.collectFonts,q=void 0!==z&&z,H=e.inlineImages,G=void 0!==H&&H,$=e.plugins,W=e.keepIframeSrcFn,Z=void 0===W?function(){return!1}:W,Q=e.ignoreCSSAttributes,Y=void 0===Q?new Set([]):Q,K=e.errorHandler;Ll=K;var X=!L||window.parent===window,ee=!1;if(!X)try{window.parent.document&&(ee=!1)}catch(e){ee=!0}if(X&&!t)throw new Error("emit function is required");if(!X&&!ee)return function(){};void 0!==I&&void 0===P.mousemove&&(P.mousemove=I),Iu.reset();var te,re=!0===b?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==w?w:{password:!0},ne=!0===x||"all"===x?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===x,headMetaDescKeywords:"all"===x,headTitleMutations:"all"===x}:x||{};!function(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}();var ie=0,oe=function(e){for(var t,r=C($||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return _&&!ee&&(e=_(e)),e};xu=function(e,i){var o,a=e;if(a.timestamp=hl(),!(null==(o=$l[0])?void 0:o.isFrozen())||a.type===Tl.FullSnapshot||a.type===Tl.IncrementalSnapshot&&a.data.source===Al.Mutation||$l.forEach(function(e){return e.unfreeze()}),X)null==t||t(oe(a),i);else if(ee){var s={type:"rrweb",event:oe(a),origin:window.location.origin,isCheckout:i};window.parent.postMessage(s,"*")}if(a.type===Tl.FullSnapshot)te=a,ie=0;else if(a.type===Tl.IncrementalSnapshot){if(a.data.source===Al.Mutation&&a.data.isAttachIframe)return;ie++;var l=n&&ie>=n,u=r&&a.timestamp-te.timestamp>r;(l||u)&&Eu(!0)}};for(var ae,se=function(e){xu({type:Tl.IncrementalSnapshot,data:g({source:Al.Mutation},e)})},le=function(e){return xu({type:Tl.IncrementalSnapshot,data:g({source:Al.Scroll},e)})},ue=function(e){return xu({type:Tl.IncrementalSnapshot,data:g({source:Al.CanvasMutation},e)})},ce=new _u({mutationCb:se,adoptedStyleSheetCb:function(e){return xu({type:Tl.IncrementalSnapshot,data:g({source:Al.AdoptedStyleSheet},e)})}}),de=new ou({mirror:Iu,mutationCb:se,stylesheetManager:ce,recordCrossOriginIframes:L,wrappedEmit:xu}),fe=C($||[]);!(ae=fe()).done;){var pe=ae.value;pe.getMirror&&pe.getMirror({nodeMirror:Iu,crossOriginIframeMirror:de.crossOriginIframeMirror,crossOriginIframeStyleMirror:de.crossOriginIframeStyleMirror})}var he=new Cu;ku=new Su({recordCanvas:M,mutationCb:ue,win:window,blockClass:o,blockSelector:s,mirror:Iu,sampling:P.canvas,dataURLOptions:A});var me=new au({mutationCb:se,scrollCb:le,bypassOptions:{blockClass:o,blockSelector:s,maskTextClass:p,maskTextSelector:m,inlineStylesheet:y,maskInputOptions:re,dataURLOptions:A,maskTextFn:k,maskInputFn:E,recordCanvas:M,inlineImages:G,sampling:P,slimDOMOptions:ne,iframeManager:de,stylesheetManager:ce,canvasManager:ku,keepIframeSrcFn:Z,processedNodeManager:he},mirror:Iu});Eu=function(e){if(void 0===e&&(e=!1),R){xu({type:Tl.Meta,data:{href:window.location.href,width:gl(),height:vl()}}
2,e),ce.reset(),me.init(),$l.forEach(function(e){return e.lock()});var t=function(e,t){var r=t||{},n=r.mirror,i=void 0===n?new J:n,o=r.blockClass,a=r.blockSelector,s=r.maskTextClass,l=r.maskTextSelector,u=r.inlineStylesheet,c=r.inlineImages,d=r.recordCanvas,f=r.maskAllInputs,p=void 0!==f&&f,h=r.slimDOM,m=void 0!==h&&h,v=r.keepIframeSrcFn;return Ce(e,{doc:e,mirror:i,blockClass:void 0===o?"rr-block":o,blockSelector:void 0===a?null:a,maskTextClass:void 0===s?"rr-mask":s,maskTextSelector:void 0===l?null:l,skipChild:!1,inlineStylesheet:void 0===u||u,maskInputOptions:!0===p?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===p?{password:!0}:p,maskTextFn:r.maskTextFn,maskInputFn:r.maskInputFn,slimDOMOptions:!0===m||"all"===m?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===m,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===m?{}:m,dataURLOptions:r.dataURLOptions,inlineImages:void 0!==c&&c,recordCanvas:void 0!==d&&d,preserveWhiteSpace:r.preserveWhiteSpace,onSerialize:r.onSerialize,onIframeLoad:r.onIframeLoad,iframeLoadTimeout:r.iframeLoadTimeout,onStylesheetLoad:r.onStylesheetLoad,stylesheetLoadTimeout:r.stylesheetLoadTimeout,keepIframeSrcFn:void 0===v?function(){return!1}:v,newlyAddedElement:!1})}(document,{mirror:Iu,blockClass:o,blockSelector:s,maskTextClass:p,maskTextSelector:m,inlineStylesheet:y,maskAllInputs:re,maskTextFn:k,maskInputFn:E,slimDOM:ne,dataURLOptions:A,recordCanvas:M,inlineImages:G,onSerialize:function(e){kl(e,Iu)&&de.addIframe(e),Sl(e,Iu)&&ce.trackLinkElement(e),_l(e)&&me.addShadowRoot(ll(e),document)},onIframeLoad:function(e,t){de.attachIframe(e,t),me.observeAttachShadow(e)},onStylesheetLoad:function(e,t){ce.attachLinkElement(e,t)},keepIframeSrcFn:Z});if(!t)return console.warn("Failed to snapshot the document");xu({type:Tl.FullSnapshot,data:{node:t,initialOffset:ml(window)}},e),$l.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ce.adoptStyleSheets(document.adoptedStyleSheets,Iu.getId(document))}};try{var ve=[],ge=function(e){var t;return Gl(tu)({mutationCb:se,mousemoveCb:function(e,t){return xu({type:Tl.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return xu({type:Tl.IncrementalSnapshot,data:g({source:Al.MouseInteraction},e)})},scrollCb:le,viewportResizeCb:function(e){return xu({type:Tl.IncrementalSnapshot,data:g({source:Al.ViewportResize},e)})},inputCb:function(e){return xu({type:Tl.IncrementalSnapshot,data:g({source:Al.Input},e)})},mediaInteractionCb:function(e){return xu({type:Tl.IncrementalSnapshot,data:g({source:Al.MediaInteraction},e)})},styleSheetRuleCb:function(e){return xu({type:Tl.IncrementalSnapshot,data:g({source:Al.StyleSheetRule},e)})},styleDeclarationCb:function(e){return xu({type:Tl.IncrementalSnapshot,data:g({source:Al.StyleDeclaration},e)})},canvasMutationCb:ue,fontCb:function(e){return xu({type:Tl.IncrementalSnapshot,data:g({source:Al.Font},e)})},selectionCb:function(e){xu({type:Tl.IncrementalSnapshot,data:g({source:Al.Selection},e)})},customElementCb:function(e){xu({type:Tl.IncrementalSnapshot,data:g({source:Al.CustomElement},e)})},blockClass:o,ignoreClass:u,ignoreSelector:d,maskTextClass:p,maskTextSelector:m,maskInputOptions:re,inlineStylesheet:y,sampling:P,recordDOM:R,recordCanvas:M,inlineImages:G,userTriggeredOnInput:V,collectFonts:q,doc:e,maskInputFn:E,maskTextFn:k,keepIframeSrcFn:Z,blockSelector:s,slimDOMOptions:ne,dataURLOptions:A,mirror:Iu,iframeManager:de,stylesheetManager:ce,shadowDomManager:me,processedNodeManager:he,canvasManager:ku,ignoreCSSAttributes:Y,plugins:(null==(t=null==$?void 0:$.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return xu({type:Tl.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},S)};de.addLoadListener(function(e){try{var t=e.contentDocument,r=ge(t);ve.push(r);var n=de.getObserverCleanup(e);de.setObserverCleanup(e,function(){if(n)try{n()}catch(e){}try{r();var e=ve.indexOf(r);-1!==e&&ve.splice(e,1),function(e){for(var t=$l.length-1;t>=0;t--)$l[t].getDoc()===e&&$l.splice(t,1)}(t)}catch(e){}})}catch(e){console.warn(e)}});var ye=function(){Eu(),ve.push(ge(document)),Ou=!0};return"interactive"===document.readyState||"complete"===document.readyState?ye():(ve.push(ul("DOMContentLoaded",function(){xu({type:Tl.DomContentLoaded,data:{}}),"DOMContentLoaded"===B&&ye()})),ve.push(ul("load",function(){xu({type:Tl.Load,data:{}}),"load"===B&&ye()},window))),function(){ve.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),he.destroy(),Ou=!1,Ll=void 0}}catch(e){console.warn(e)}}Nu.addCustomEvent=function(e,t){if(!Ou)throw new Error("please add custom event after start recording");xu({type:Tl.Custom,data:{tag:e,payload:t}}
2)},Nu.freezePage=function(){$l.forEach(function(e){return e.freeze()})},Nu.takeFullSnapshot=function(e){if(!Ou)throw new Error("please take full snapshot after start recording");Eu(e)},Nu.mirror=Iu,(Au=Tu||(Tu={}))[Au.NotStarted=0]="NotStarted",Au[Au.Running=1]="Running",Au[Au.Stopped=2]="Stopped",Nu.addCustomEvent,Nu.freezePage,Nu.takeFullSnapshot;var Ru={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ju={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Mu={};function Du(e){if(Mu[e])return Mu[e];var t=globalThis[e],r=t.prototype,n=e in Ru?Ru[e]:void 0,i=Boolean(n&&n.every(function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in ju?ju[e]:void 0,a=Boolean(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&a&&!globalThis.Zone)return Mu[e]=t.prototype,t.prototype;try{var s=document.createElement("iframe");document.body.appendChild(s);var l=s.contentWindow;if(!l)return t.prototype;var u=l[e].prototype;return document.body.removeChild(s),u?Mu[e]=u:r}catch(e){return r}}var Lu={};function Fu(e,t,r){var n,i=e+"."+String(r);if(Lu[i])return Lu[i].call(t);var o=Du(e),a=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return a?(Lu[i]=a,a.call(t)):t[r]}var Bu=function(e){return Fu("Node",e,"parentNode")};function Uu(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return Uu(Bu(e),t);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return Uu(Bu(e),t)}function Vu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zu(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return w(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var qu={exports:{}},Hu=String,Gu=function(){return{isColorSupported:!1,reset:Hu,bold:Hu,dim:Hu,italic:Hu,underline:Hu,inverse:Hu,hidden:Hu,strikethrough:Hu,black:Hu,red:Hu,green:Hu,yellow:Hu,blue:Hu,magenta:Hu,cyan:Hu,white:Hu,gray:Hu,bgBlack:Hu,bgRed:Hu,bgGreen:Hu,bgYellow:Hu,bgBlue:Hu,bgMagenta:Hu,bgCyan:Hu,bgWhite:Hu}};qu.exports=Gu(),qu.exports.createColors=Gu;var $u=qu.exports,Wu=zu(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Zu=$u,Qu=Wu,Yu=function(e){function t(r,n,i,o,a,s){var l;return(l=e.call(this,r)||this).name="CssSyntaxError",l.reason=r,a&&(l.file=a),o&&(l.source=o),s&&(l.plugin=s),void 0!==n&&void 0!==i&&("number"==typeof n?(l.line=n,l.column=i):(l.line=n.line,l.column=n.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,t),l}b(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Zu.isColorSupported),Qu&&e&&(r=Qu(r));var n,i,o=r.split(/\r?\n/),a=Math.max(this.line-3,0),s=Math.min(this.line+2,o.length),l=String(s).length;if(e){var u=Zu.createColors(!0),c=u.bold,d=u.gray,f=u.red;n=function(e){return c(f(e))},i=function(e){return d(e)}}else n=i=function(e){return e};return o.slice(a,s).map(function(e,r){var o=a+1+r,s=" "+(" "+o).slice(-l)+" | ";if(o===t.line){var u=i(s.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(s)+e+"\n "+u+n("^")}return" "+i(s)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(S(Error)),Ku=Yu;Yu.default=Yu;var Ju={};Ju.isClean=Symbol("isClean"),Ju.my=Symbol("my");var Xu={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},ec=function(){function e(e){this.builder=e}var t=e.prototype;
2return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var a=0;a<i;a++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Xu[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var a,s="raw"+((a=r)[0].toUpperCase()+a.slice(1));return this[s]?n=this[s](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=Xu[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t);var t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),tc=ec;ec.default=ec;var rc=tc;function nc(e,t){new rc(t).stringify(e)}var ic=nc;nc.default=nc;var oc=Ju.isClean,ac=Ju.my,sc=Ku,lc=tc,uc=ic;function cc(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":k(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return cc(e,r)}):("object"===o&&null!==i&&(i=cc(i)),r[n]=i)}return r}var dc=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[oc]=!1,this[ac]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=C(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=cc(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new sc(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[oc]){this[oc]=!1;for(var e=this;e=e.parent;)e[oc]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);
2else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new lc).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,a=C(t);!(n=a()).done;){var s=n.value;s===this?o=!0:o?(this.parent.insertAfter(i,s),i=s):this.parent.insertBefore(i,s)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var a=this[o];if(Array.isArray(a))r[o]=a.map(function(e){return"object"===(void 0===e?"undefined":k(e))&&e.toJSON?e.toJSON(null,t):e});else if("object"===(void 0===a?"undefined":k(a))&&a.toJSON)r[o]=a.toJSON(null,t);else if("source"===o){var s=t.get(a.input);null==s&&(s=i,t.set(a.input,i),i++),r[o]={end:a.end,inputId:s,start:a.start}}else r[o]=a}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=uc),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},v(e,[{key:"proxyOf",get:function(){return this}}]),e}(),fc=dc;dc.default=dc;var pc=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=g({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return b(t,e),v(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(fc),hc=pc;pc.default=pc;var mc=Wu.SourceMapConsumer,vc=Wu.SourceMapGenerator,gc=Wu.existsSync,yc=Wu.readFileSync,bc=Wu.dirname,wc=Wu.join,xc=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=bc(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new mc(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":k(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
2if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=bc(e),gc(e))return this.mapFile=e,yc(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(w(t,mc))return vc.fromSourceMap(t).toString();if(w(t,vc))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=wc(bc(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Ec=xc;xc.default=xc;var kc=Wu.SourceMapConsumer,Sc=Wu.SourceMapGenerator,_c=Wu.fileURLToPath,Cc=Wu.pathToFileURL,Oc=Wu.isAbsolute,Pc=Wu.resolve,Tc=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
2,Ac=Wu,Ic=Ku,Nc=Ec,Rc=Symbol("fromOffsetCache"),jc=Boolean(kc&&Sc),Mc=Boolean(Pc&&Oc),Dc=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":k(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Mc||/^\w+:\/\//.test(t.from)||Oc(t.from)?this.file=t.from:this.file=Pc(t.from)),Mc&&jc){var r=new Nc(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Tc(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,a;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":k(t))){var s=t,l=r;if("number"==typeof s.offset){var u=this.fromOffset(s.offset);t=u.line,r=u.col}else t=s.line,r=s.column;if("number"==typeof l.offset){var c=this.fromOffset(l.offset);o=c.line,a=c.col}else o=l.line,a=l.column}else if(!r){var d=this.fromOffset(t);t=d.line,r=d.col}var f=this.origin(t,r,o,a);return(i=f?new Ic(e,void 0===f.endLine?f.line:{column:f.column,line:f.line},void 0===f.endLine?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,n.plugin):new Ic(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:a,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:a,endLine:o,line:t,source:this.css},this.file&&(Cc&&(i.input.url=Cc(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[Rc])t=this[Rc];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[Rc]=t}var a=0;if(e>=t[t.length-1])a=t.length-1;else for(var s,l=t.length-2;a<l;)if(e<t[s=a+(l-a>>1)])l=s-1;else{if(!(e>=t[s+1])){a=s;break}a=s+1}return{col:e-t[a]+1,line:a+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Pc(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,a=this.map.consumer(),s=a.originalPositionFor({column:t,line:e});if(!s.source)return!1;"number"==typeof r&&(i=a.originalPositionFor({column:n,line:r})),o=Oc(s.source)?Cc(s.source):new URL(s.source,this.map.consumer().sourceRoot||Cc(this.map.mapFile));var l={column:s.column,endColumn:i&&i.column,endLine:i&&i.line,line:s.line,url:o.toString()};if("file:"===o.protocol){if(!_c)throw new Error("file: protocol is not available in this PostCSS build");l.file=_c(o)}var u=a.sourceContentFor(s.source);return u&&(l.source=u),l},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=g({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},v(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Lc=Dc;Dc.default=Dc,Ac&&Ac.registerInput&&Ac.registerInput(Dc);var Fc=Wu.SourceMapConsumer,Bc=Wu.SourceMapGenerator,Uc=Wu.dirname,Vc=Wu.relative,zc=Wu.resolve,qc=Wu.sep,Hc=Wu.pathToFileURL,Gc=Lc,$c=Boolean(Fc&&Bc),Wc=Boolean(Uc&&zc&&Vc&&qc),Zc=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=C(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Uc(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Fc(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Wc&&$c&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Bc.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Bc({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css="",this.map=new Bc({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(s,l,u){if(e.css+=s,l&&"end"!==u&&(a.generated.line=n,a.generated.column=i-1,l.source&&l.source.start?(a.source=e.sourcePath(l),a.original.line=l.source.start.line,a.original.column=l.source.start.column-1,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,e.map.addMapping(a))),(t=s.match(/\n/g))?(n+=t.length,r=s.lastIndexOf("\n"),i=s.length-r):i+=s.length,l&&"start"!==u){var c=l.parent||{raws:{}};("decl"===l.type||"atrule"===l.type&&!l.nodes)&&l===c.last&&!c.raws.semicolon||(l.source&&l.source.end?(a.source=e.sourcePath(l),a.original.line=l.source.end.line,a.original.column=l.source.end.column-1,a.generated.line=n,a.generated.column=i-2,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,a.generated.line=n,a.generated.column=i-1,e.map.addMapping(a)))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Uc(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Uc(zc(r,this.mapOpts.annotation)));var n=Vc(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new Gc(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Hc){var r=Hc(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===qc&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Qc=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return b(t,e),t}(fc),Yc=Qc;Qc.default=Qc;var Kc,Jc,Xc,ed,td=Ju.isClean,rd=Ju.my,nd=hc,id=Yc;
2function od(e){return e.map(function(e){return e.nodes&&(e.nodes=od(e.nodes)),delete e.source,e})}function ad(e){if(e[td]=!1,e.proxyOf.nodes)for(var t,r=C(e.proxyOf.nodes);!(t=r()).done;)ad(t.value)}var sd=function(e){function t(){return e.apply(this,arguments)||this}b(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=C(t);!(n=i()).done;)for(var o,a=n.value,s=C(this.normalize(a,this.last));!(o=s()).done;){var l=o.value;this.proxyOf.nodes.push(l)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=C(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))}:"every"===t||"some"===t?function(r){return e[t](function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map(function(e){return e.toProxy()}):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,a=C(i);!(o=a()).done;){var s=o.value;this.proxyOf.nodes.splice(n+1,0,s)}for(var l in this.indexes)n<(r=this.indexes[l])&&(this.indexes[l]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var a,s=C(o);!(a=s()).done;){var l=a.value;this.proxyOf.nodes.splice(n,0,l)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=od(Kc(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=C(e=e.slice(0));!(i=o()).done;){var a=i.value;a.parent&&a.parent.removeChild(a,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var s,l=C(e=e.nodes.slice(0));!(s=l()).done;){var u=s.value;u.parent&&u.parent.removeChild(u,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new nd(e)]}else if(e.selector)e=[new Jc(e)];else if(e.name)e=[new Xc(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new id(e)]}var c=e.map(function(e){return e[rd]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[td]&&ad(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e});return c},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=C(t=t.reverse());!(n=i()).done;){for(var o,a=n.value,s=this.normalize(a,this.first,"prepend").reverse(),l=C(s);!(o=l()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var c in this.indexes)this.indexes[c]=this.indexes[c]+s.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=C(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}
2,r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?w(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?w(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?w(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},v(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(fc);sd.registerParse=function(e){Kc=e},sd.registerRule=function(e){Jc=e},sd.registerAtRule=function(e){Xc=e},sd.registerRoot=function(e){ed=e};var ld=sd;sd.default=sd,sd.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Xc.prototype):"rule"===e.type?Object.setPrototypeOf(e,Jc.prototype):"decl"===e.type?Object.setPrototypeOf(e,nd.prototype):"comment"===e.type?Object.setPrototypeOf(e,id.prototype):"root"===e.type&&Object.setPrototypeOf(e,ed.prototype),e[rd]=!0,e.nodes&&e.nodes.forEach(function(e){sd.rebuild(e)})};var ud,cd,dd=function(e){function t(t){var r;return(r=e.call(this,g({type:"document"},t))||this).nodes||(r.nodes=[]),r}return b(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new ud(new cd,this,e).stringify()},t}(ld);dd.registerLazyResult=function(e){ud=e},dd.registerProcessor=function(e){cd=e};var fd=dd;dd.default=dd;var pd=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),hd=pd;pd.default=pd;var md=hd,vd=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new md(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},v(e,[{key:"content",get:function(){return this.css}}]),e}(),gd=vd;vd.default=vd;var yd="'".charCodeAt(0),bd='"'.charCodeAt(0),wd="\\".charCodeAt(0),xd="/".charCodeAt(0),Ed="\n".charCodeAt(0),kd=" ".charCodeAt(0),Sd="\f".charCodeAt(0),_d="\t".charCodeAt(0),Cd="\r".charCodeAt(0),Od="[".charCodeAt(0),Pd="]".charCodeAt(0),Td="(".charCodeAt(0),Ad=")".charCodeAt(0),Id="{".charCodeAt(0),Nd="}".charCodeAt(0),Rd=";".charCodeAt(0),jd="*".charCodeAt(0),Md=":".charCodeAt(0),Dd="@".charCodeAt(0),Ld=/[\t\n\f\r "#'()/;[\\\]{}]/g,Fd=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Bd=/.[\r\n"'(/\\]/,Ud=/[\da-f]/i,Vd=ld,zd=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}b(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Vd),qd=zd;zd.default=zd,Vd.registerAtRule(zd);var Hd,Gd,$d=ld,Wd=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}b(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,a=C(i);!(o=a()).done;)o.value.raws.before=r.raws.before;return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new Hd(new Gd,this,e).stringify()},t}($d);Wd.registerLazyResult=function(e){Hd=e},Wd.registerProcessor=function(e){Gd=e};var Zd=Wd;Wd.default=Wd,$d.registerRoot(Wd);var Qd={comma:function(e){return Qd.split(e,[","],!0)},space:function(e){return Qd.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",a=!1,s=0,l=!1,u="",c=!1,d=C(e);!(n=d()).done;){var f=n.value;c?c=!1:"\\"===f?c=!0:l?f===u&&(l=!1):'"'===f||"'"===f?(l=!0,u=f):"("===f?s+=1:")"===f?s>0&&(s-=1):0===s&&t.includes(f)&&(a=!0),a?(""!==o&&i.push(o.trim()),o="",a=!1):o+=f}return(r||""!==o)&&i.push(o.trim()),i}},Yd=Qd;Qd.default=Qd;var Kd=ld,Jd=Yd,Xd=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return b(t,e),v(t,[{key:"selectors",get:function(){return Jd.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(Kd),ef=Xd;Xd.default=Xd,Kd.registerRule(Xd);var tf=hc,rf=Yc,nf=qd,of=Zd,af=ef,sf={empty:!0,space:!0},lf=function(){function e(e){this.input=e,this.root=new of,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new nf;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,a=!1,s=[],l=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(s.length>0){for(r=s[n=s.length-1];r&&"space"===r[0];)r=s[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}s.push(e)}else s.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(i.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(i,"params",s),o&&(e=s[s.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),a&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>
vendor: 5,983 bytes, line 2
2=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,a=C(e.entries());!(i=a()).done;){var s=i.value,l=s[0];if("("===(r=(t=s[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return l}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new rf;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=function(e,t){void 0===t&&(t={});var r,n,i,o,a,s,l,u,c,d,f=e.css.valueOf(),p=t.ignoreErrors,h=f.length,m=0,v=[],g=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){g.push(e)},endOfFile:function(){return 0===g.length&&m>=h},nextToken:function(e){if(g.length)return g.pop();if(!(m>=h)){var t=!!e&&e.ignoreUnclosed;switch(r=f.charCodeAt(m)){case Ed:case kd:case _d:case Cd:case Sd:n=m;do{n+=1,r=f.charCodeAt(n)}while(r===kd||r===Ed||r===_d||r===Cd||r===Sd);d=["space",f.slice(m,n)],m=n-1;break;case Od:case Pd:case Id:case Nd:case Md:case Rd:case Ad:var b=String.fromCharCode(r);d=[b,b,m];break;case Td:if(u=v.length?v.pop()[1]:"",c=f.charCodeAt(m+1),"url"===u&&c!==yd&&c!==bd&&c!==kd&&c!==Ed&&c!==_d&&c!==Sd&&c!==Cd){n=m;do{if(s=!1,-1===(n=f.indexOf(")",n+1))){if(p||t){n=m;break}y("bracket")}for(l=n;f.charCodeAt(l-1)===wd;)l-=1,s=!s}while(s);d=["brackets",f.slice(m,n+1),m,n],m=n}else n=f.indexOf(")",m+1),o=f.slice(m,n+1),-1===n||Bd.test(o)?d=["(","(",m]:(d=["brackets",o,m,n],m=n);break;case yd:case bd:i=r===yd?"'":'"',n=m;do{if(s=!1,-1===(n=f.indexOf(i,n+1))){if(p||t){n=m+1;break}y("string")}for(l=n;f.charCodeAt(l-1)===wd;)l-=1,s=!s}while(s);d=["string",f.slice(m,n+1),m,n],m=n;break;case Dd:Ld.lastIndex=m+1,Ld.test(f),n=0===Ld.lastIndex?f.length-1:Ld.lastIndex-2,d=["at-word",f.slice(m,n+1),m,n],m=n;break;case wd:for(n=m,a=!0;f.charCodeAt(n+1)===wd;)n+=1,a=!a;if(r=f.charCodeAt(n+1),a&&r!==xd&&r!==kd&&r!==Ed&&r!==_d&&r!==Cd&&r!==Sd&&(n+=1,Ud.test(f.charAt(n)))){for(;Ud.test(f.charAt(n+1));)n+=1;f.charCodeAt(n+1)===kd&&(n+=1)}d=["word",f.slice(m,n+1),m,n],m=n;break;default:r===xd&&f.charCodeAt(m+1)===jd?(0===(n=f.indexOf("*/",m+2)+1)&&(p||t?n=f.length:y("comment")),d=["comment",f.slice(m,n+1),m,n],m=n):(Fd.lastIndex=m+1,Fd.test(f),n=0===Fd.lastIndex?f.length-1:Fd.lastIndex-2,d=["word",f.slice(m,n+1),m,n],v.push(d),m=n)}return m++,d}},position:function(){return m}}}(this.input)},t.decl=function(e,t){var r=new tf;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var a,s=[];e.length&&("space"===(a=e[0][0])||"comment"===a);)s.push(e.shift());this.precheckMissedSemicolon(e);for(var l=e.length-1;l>=0;l--){if("!important"===(n=e[l])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,l);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var c=e.slice(0),d="",f=l;f>0;f--){var p=c[f][0];if(0===d.trim().indexOf("!")&&"space"!==p)break;d=c.pop()[1]+d}0===d.trim().indexOf("!")&&(r.important=!0,r.raws.important=d,e=c)}if("space"!==n[0]&&"comment"!==n[0])break}var h=e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]});h&&(r.raws.between+=s.map(function(e){return e[1]}).join(""),s=[]),this.raw(r,"value",s.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new af;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],a=e[1].startsWith("--"),s=[],l=e;l;){if(r=l[0],s.push(l),"("===r||"["===r)i||(i=l),o.push("("===r?")":"]");else if(a&&n&&"{"===r)i||(i=l),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(s,a);break}if("{"===r)return void this.rule(s);if("}"===r){this.tokenizer.back(s.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}
2if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!a)for(;s.length&&("space"===(l=s[s.length-1][0])||"comment"===l);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,a,s,l=r.length,u="",c=!0,d=0;d<l;d+=1)"space"!==(o=(i=r[d])[0])||d!==l-1||n?"comment"===o?(s=r[d-1]?r[d-1][0]:"empty",a=r[d+1]?r[d+1][0]:"empty",sf[s]||sf[a]||","===u.slice(-1)?c=!1:u+=i[1]):u+=i[1]:c=!1;if(!c){var f=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:f,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new af;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),uf=ld,cf=lf,df=Lc;function ff(e,t){var r=new df(e,t),n=new cf(r);try{n.parse()}catch(e){throw e}return n.root}var pf=ff;ff.default=ff,uf.registerParse(ff);var hf=Ju.isClean,mf=Ju.my,vf=Zc,gf=ic,yf=ld,bf=fd,wf=gd,xf=pf,Ef=Zd,kf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Sf={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},_f={Once:!0,postcssPlugin:!0,prepare:!0};function Cf(e){return"object"===(void 0===e?"undefined":k(e))&&"function"==typeof e.then}function Of(e){var t=!1,r=kf[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function Pf(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Of(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function Tf(e){return e[hf]=!1,e.nodes&&e.nodes.forEach(function(e){return Tf(e)}),e}var Af={},If=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":k(r))||null===r||"root"!==r.type&&"document"!==r.type)if(w(r,e)||w(r,wf))i=Tf(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var a=xf;n.syntax&&(a=n.syntax.parse),n.parser&&(a=n.parser),a.parse&&(a=a.parse);try{i=a(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[mf]&&yf.rebuild(i)}else i=Tf(r);this.result=new wf(t,i,n),this.helpers=g({},Af,{postcss:Af,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return"object"===(void 0===e?"undefined":k(e))&&e.prepare?g({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=C(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":k(i)))for(var o in i){if(!Sf[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.ver
2sion+" now).");if(!_f[o])if("object"===k(i[o]))for(var a in i[o])r(i,"*"===a?o:o+"-"+a.toLowerCase(),i[o][a]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return h(function(){var t,r,n,i,o,a,s,l,u,c,d,f;return O(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!Cf(n=e.runOnRoot(r)))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,n];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,p.label=7;case 7:if(o[hf])return[3,14];o[hf]=!0,a=[Pf(o)],p.label=8;case 8:if(!(a.length>0))return[3,13];if(!Cf(s=e.visitTick(a)))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,s];case 10:return p.sent(),[3,12];case 11:throw l=p.sent(),u=a[a.length-1].node,e.handleError(l,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];c=function(){var t,r,n,i,a;return O(this,function(s){switch(s.label){case 0:t=f.value,r=t[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:return s.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map(function(t){return n(t,e.helpers)}),[4,Promise.all(i)]);case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw a=s.sent(),e.handleError(a);case 7:return[2]}})},d=C(e.listeners.OnceExit),p.label=15;case 15:return(f=d()).done?[3,18]:[5,P(c())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":k(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});return Cf(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=gf;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new vf(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=C(this.plugins);!(e=t()).done;){var r=e.value;if(Cf(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[hf];)n[hf]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=C(n.nodes);!(i=o()).done;){var a=i.value;this.visitSync(this.listeners.OnceExit,a)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=C(e);!(r=n()).done;){var i=r.value,o=i[0],a=i[1];this.result.lastPlugin=o;var s=void 0;try{s=a(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Cf(s))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],a=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return a(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var s,l=t.iterator;s=r.nodes[r.indexes[l]];)if(r.indexes[l]+=1,!s[hf])return s[hf]=!0,void e.push(Pf(s));t.iterator=0,delete r.indexes[l]}for(var u=t.events;t.eventIndex<u.length;){var c=u[t.eventIndex];if(t.eventIndex+=1,0===c)return void(r.nodes&&r.nodes.length&&(r[hf]=!0,t.iterator=r.getIterator()));if(this.listeners[c])return void(t.visitors=this.listeners[c])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[hf]=!0;for(var r,n=C(Of(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each(function(e){e[hf]||t.walkSync(e)});else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()}
2,v(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();If.registerPostcss=function(e){Af=e};var Nf=If;If.default=If,Ef.registerLazyResult(If),bf.registerLazyResult(If);var Rf=Zc,jf=ic,Mf=pf,Df=gd,Lf=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=jf;this.result=new Df(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var a=new Rf(i,n,this._opts,t);if(a.isMap()){var s=a.generate(),l=s[0],u=s[1];l&&(this.result.css=l),u&&(this.result.map=u)}else a.clearAnnotation(),this.result.css=a.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},v(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Mf;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Ff=Lf;Lf.default=Lf;var Bf=Ff,Uf=Nf,Vf=fd,zf=Zd,qf=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=C(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":k(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":k(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if("object"!==(void 0===i?"undefined":k(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Uf(this,e,t):new Bf(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Hf=qf;qf.default=qf,zf.registerProcessor(qf),Vf.registerProcessor(qf);var Gf=hc,$f=Ec,Wf=Yc,Zf=qd,Qf=Lc,Yf=Zd,Kf=ef;function Jf(e,t){if(Array.isArray(e))return e.map(function(e){return Jf(e)});var r=e.inputs,n=x(e,["inputs"]);if(r){t=[];for(var i,o=C(r);!(i=o()).done;){var a=g({},i.value,{__proto__:Qf.prototype});a.map&&(a.map=g({},a.map,{__proto__:$f.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return Jf(e,t)})),n.source){var s=n.source,l=s.inputId,u=x(s,["inputId"]);n.source=u,null!=l&&(n.source.input=t[l])}if("root"===n.type)return new Yf(n);if("decl"===n.type)return new Gf(n);if("rule"===n.type)return new Kf(n);if("comment"===n.type)return new Wf(n);if("atrule"===n.type)return new Zf(n);throw new Error("Unknown node type: "+e.type)}var Xf=Jf;Jf.default=Jf;var ep=Ku,tp=hc,rp=Nf,np=ld,ip=Hf,op=ic,ap=Xf,sp=fd,lp=hd,up=Yc,cp=qd,dp=gd,fp=Lc,pp=pf,hp=Yd,mp=ef,vp=Zd,gp=fc;function yp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new ip(t)}yp.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),"MISSING_ENV_VAR".LANG&&"MISSING_ENV_VAR".LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));
2var a=t.apply(void 0,[].concat(i));return a.postcssPlugin=e,a.postcssVersion=(new ip).version,a}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return yp([i(r)]).process(e,t)},i},yp.stringify=op,yp.parse=pp,yp.fromJSON=ap,yp.list=hp,yp.comment=function(e){return new up(e)},yp.atRule=function(e){return new cp(e)},yp.decl=function(e){return new tp(e)},yp.rule=function(e){return new mp(e)},yp.root=function(e){return new vp(e)},yp.document=function(e){return new sp(e)},yp.CssSyntaxError=ep,yp.Declaration=tp,yp.Container=np,yp.Processor=ip,yp.Document=sp,yp.Comment=up,yp.Warning=lp,yp.AtRule=cp,yp.Result=dp,yp.Input=fp,yp.Rule=mp,yp.Root=vp,yp.Node=gp,rp.registerPostcss(yp);var bp=yp;yp.default=yp;var wp=Vu(bp);wp.stringify,wp.fromJSON,wp.plugin,wp.parse,wp.list,wp.document,wp.comment,wp.atRule,wp.rule,wp.decl,wp.root,wp.CssSyntaxError,wp.Declaration,wp.Container,wp.Processor,wp.Document,wp.Comment,wp.Warning,wp.AtRule,wp.Result,wp.Input,wp.Rule,wp.Root,wp.Node;var xp=Object.defineProperty,Ep=function(e,t,r){return function(e,t,r){return t in e?xp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":k(t))?t+"":t,r)},kp=function(){function e(e){Ep(this,"fileName"),Ep(this,"functionName"),Ep(this,"lineNumber"),Ep(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}return e.prototype.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),Sp=/(^|@)\S+:\d+/,_p=/^\s*at .*(\S+:\d+|\(native\))/m,Cp=/^(eval@)?(\[native code])?$/,Op={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(_p)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error("Cannot parse given url: "+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(_p)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),o=n.join(" ")||void 0,a=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new kp({functionName:o,fileName:a,lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(Cp)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new kp({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new kp({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i<o;i+=2){var a=t.exec(r[i]);a&&n.push(new kp({fileName:a[2],lineNumber:parseFloat(a[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,o=r.length;i<o;i+=2){var a=t.exec(r[i]);a&&n.push(new kp({functionName:a[3]||void 0,fileName:a[2],lineNumber:parseFloat(a[1])}))}return n},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(Sp)&&!e.match(/^Error created at/)},this).map(function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new kp({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function Pp(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o<n.children.length;o++){var a=n.children[o];a.localName&&a.localName.toLowerCase&&a.localName.toLowerCase()===r&&i.push(a)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}function Tp(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ap(e,t){if(0===t)return!0;for(var r,n=C(Object.keys(e));!(r=n()).done;){var i=r.value;if(Tp(e[i])&&Ap(e[i],t-1))return!0}return!1}
2function Ip(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,function(e,t){if(n.length>0){var o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?i.splice(o,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(Tp(a=t)&&Object.keys(a).length>r.numOfKeysLimit||"function"==typeof a||Tp(a)&&Ap(a,r.depthOfLimit))return function(e){var t=e.toString();return r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"..."),t}(t);var a;if("bigint"===(void 0===t?"undefined":k(t)))return t.toString()+"n";if(w(t,Event)){var s={};for(var l in t){var u=t[l];Array.isArray(u)?s[l]=Pp(u.length?u[0]:null):s[l]=u}return s}return w(t,Node)?w(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:w(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}var Np={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function Rp(e,t,r){var n,i=r?Object.assign({},Np,r):Np,o=i.logger;if(!o)return function(){};n="string"==typeof o?t[o]:o;var a=0,s=!1,l=[];if(i.level.includes("error")){var u=function(t){var r=t.message,n=t.error,o=Op.parse(n).map(function(e){return e.toString()}),a=[Ip(r,i.stringifyOptions)];e({level:"error",trace:o,payload:a})};t.addEventListener("error",u),l.push(function(){t.removeEventListener("error",u)});var c=function(t){var r,n;w(t.reason,Error)?n=[Ip("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,i.stringifyOptions)]:(r=new Error,n=[Ip("Uncaught (in promise)",i.stringifyOptions),Ip(t.reason,i.stringifyOptions)]);var o=Op.parse(r).map(function(e){return e.toString()});e({level:"error",trace:o,payload:n})};t.addEventListener("unhandledrejection",c),l.push(function(){t.removeEventListener("unhandledrejection",c)})}for(var d,f=C(i.level);!(d=f()).done;){var p=d.value;l.push(h(n,p))}return function(){l.forEach(function(e){return e()})};function h(t,r){var n=this;return t[r]?function(t,o){try{if(!(o in t))return function(){};var l=t[o],u=function(t){var o=n;return function(){for(var n=arguments.length,l=new Array(n),u=0;u<n;u++)l[u]=arguments[u];if(t.apply(o,l),!("assert"===r&&l[0]||s)){s=!0;try{var c=Op.parse(new Error).map(function(e){return e.toString()}).splice(1),d=("assert"===r?l.slice(1):l).map(function(e){return Ip(e,i.stringifyOptions)});++a<i.lengthThreshold?e({level:r,trace:c,payload:d}):a===i.lengthThreshold&&e({level:"warn",trace:[],payload:[Ip("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,[].concat(["rrweb logger error:",e],l))}finally{s=!1}}}}(l);return"function"==typeof u&&(u.prototype=u.prototype||{},Object.defineProperties(u,{__rrweb_original__:{enumerable:!1,value:l}})),t[o]=u,function(){t[o]=l}}catch(e){return function(){}}}(t,r):function(){}}}var jp,Mp,Dp,Lp=i.setImmediate,Fp=Object.prototype.toString,Bp=void 0!==Lp?function(e){return Lp(e)}:setTimeout;try{Object.defineProperty({},"x",{}),jp=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){jp=function(e,t,r){return e[t]=r,e}}function Up(e,t){Dp.add(e,t),Mp||(Mp=Bp(Dp.drain))}function Vp(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"==typeof t&&t}function zp(){for(var e=0;e<this.chain.length;e++)qp(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function qp(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=Vp(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}function Hp(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=Vp(e))?Up(function(){var n=new Wp(r);try{t.call(e,function(){Hp.apply(n,arguments)},function(){Gp.apply(n,arguments)})}catch(e){Gp.call(n,e)}}):(r.msg=e,r.state=1,r.chain.length>0&&Up(zp,r))}catch(e){Gp.call(new Wp(r),e)}}}function Gp(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&Up(zp,t))}function $p(e,t,r,n){for(var i=0;i<t.length;i++)(function(i){e.resolve(t[i]).then(function(e){r(i,e)},n)})(i)}function Wp(e){this.def=e,this.triggered=!1}function Zp(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Qp(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new Zp(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&&Up(zp,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){Hp.call(t,e)},function(e){Gp.call(t,e)})}catch(e){Gp.call(t,e)}}Dp=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=Mp=void 0;r;)r.fn.call(r.self),r=r.next}}}();var Yp,Kp=jp({},"constructor",Qp,!1);Qp.prototype=Kp,jp(Kp,"__NPO__",0,!1),jp(Qp,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)})}),jp(Qp,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),jp(Qp,"all",function(e){var t=this;return"[object Array]"!==Fp.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),a=0;$p(t,e,function(e,t){o[e]=t,++a===i&&r(o)},n)})}),jp(Qp,"race",function(e){var t=this;return"[object Array]"!==Fp.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");$p(t,e,function(e,t){r(t)},n)})}),Yp="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:Qp;var Jp,Xp,eh,th,rh,nh,ih,oh,ah,sh,lh=864e5,uh=Array.prototype,ch=Function.prototype,dh=Object.prototype,fh=uh.slice,ph=dh.toString,hh=dh.hasOwnProperty,mh=i.console,vh=i.navigator,gh=i.document,yh=i.opera,bh=i.screen,wh=vh.userAgent,xh=ch.bind,Eh=uh.forEach,kh=uh.indexOf,Sh=uh.map,_h=Array.isArray,Ch={},Oh={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Ph={log:function(){if(l.DEBUG&&!Oh.isUndefined(mh)&&mh)try{mh.log.apply(mh,arguments)}catch(e){Oh.each(arguments,function(e){mh.log(e)})}},warn:function(){if(l.DEBUG&&!Oh.isUndefined(mh)&&mh){var e=["Mixpanel warning:"].
2concat(Oh.toArray(arguments));try{mh.warn.apply(mh,e)}catch(t){Oh.each(e,function(e){mh.warn(e)})}}},error:function(){if(l.DEBUG&&!Oh.isUndefined(mh)&&mh){var e=["Mixpanel error:"].concat(Oh.toArray(arguments));try{mh.error.apply(mh,e)}catch(t){Oh.each(e,function(e){mh.error(e)})}}},critical:function(){if(!Oh.isUndefined(mh)&&mh){var e=["Mixpanel error:"].concat(Oh.toArray(arguments));try{mh.error.apply(mh,e)}catch(t){Oh.each(e,function(e){mh.error(e)})}}}},Th=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(Ph,arguments)}},Ah=function(e){return{log:Th(Ph.log,e),error:Th(Ph.error,e),critical:Th(Ph.critical,e)}},Ih=function(e){return function(){try{return e.apply(this,arguments)}catch(e){Ph.critical("Implementation error. Please turn on debug and contact [email protected]."),l.DEBUG&&Ph.critical(e)}}},Nh=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=Ih(t[r]))};Oh.bind=function(e,t){var r,n;if(xh&&e.bind===xh)return xh.apply(e,fh.call(arguments,1));if(!Oh.isFunction(e))throw new TypeError;return r=fh.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(fh.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var a=e.apply(o,r.concat(fh.call(arguments)));return Object(a)===a?a:o},n},Oh.each=function(e,t,r){if(null!=e)if(Eh&&e.forEach===Eh)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===Ch)return}else for(var o in e)if(hh.call(e,o)&&t.call(r,e[o],o,e)===Ch)return},Oh.extend=function(e){return Oh.each(fh.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},Oh.isArray=_h||function(e){return"[object Array]"===ph.call(e)},Oh.isFunction=function(e){return"function"==typeof e},Oh.isArguments=function(e){return!(!e||!hh.call(e,"callee"))},Oh.toArray=function(e){return e?e.toArray?e.toArray():Oh.isArray(e)||Oh.isArguments(e)?fh.call(e):Oh.values(e):[]},Oh.map=function(e,t,r){if(Sh&&e.map===Sh)return e.map(t,r);var n=[];return Oh.each(e,function(e){n.push(t.call(r,e))}),n},Oh.keys=function(e){var t=[];return null===e||Oh.each(e,function(e,r){t[t.length]=r}),t},Oh.values=function(e){var t=[];return null===e||Oh.each(e,function(e){t[t.length]=e}),t},Oh.include=function(e,t){var r=!1;return null===e?r:kh&&e.indexOf===kh?-1!=e.indexOf(t):(Oh.each(e,function(e){if(r||(r=e===t))return Ch}),r)},Oh.includes=function(e,t){return-1!==e.indexOf(t)},Oh.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},Oh.isObject=function(e){return e===Object(e)&&!Oh.isArray(e)},Oh.isEmptyObject=function(e){if(Oh.isObject(e)){for(var t in e)if(hh.call(e,t))return!1;return!0}return!1},Oh.isUndefined=function(e){return void 0===e},Oh.isString=function(e){return"[object String]"==ph.call(e)},Oh.isDate=function(e){return"[object Date]"==ph.call(e)},Oh.isNumber=function(e){return"[object Number]"==ph.call(e)},Oh.isElement=function(e){return!(!e||1!==e.nodeType)},Oh.encodeDates=function(e){return Oh.each(e,function(t,r){Oh.isDate(t)?e[r]=Oh.formatDate(t):Oh.isObject(t)&&(e[r]=Oh.encodeDates(t))}),e},Oh.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},Oh.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},Oh.strip_empty_properties=function(e){var t={};return Oh.each(e,function(e,r){Oh.isString(e)&&e.length>0&&(t[r]=e)}),t},Oh.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):Oh.isArray(e)?(r=[],Oh.each(e,function(e){r.push(Oh.truncate(e,t))})):Oh.isObject(e)?(r={},Oh.each(e,function(e,n){r[n]=Oh.truncate(e,t)})):r=e,r},Oh.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,a="",s="",l=0,u=i,c=[],d=n[e];
2switch(d&&"object"==typeof d&&"function"==typeof d.toJSON&&(d=d.toJSON(e)),typeof d){case"string":return t(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(i+=" ",c=[],"[object Array]"===ph.apply(d)){for(l=d.length,o=0;o<l;o+=1)c[o]=r(o,d)||"null";return s=0===c.length?"[]":i?"[\n"+i+c.join(",\n"+i)+"\n"+u+"]":"["+c.join(",")+"]",i=u,s}for(a in d)hh.call(d,a)&&(s=r(a,d))&&c.push(t(a)+(i?": ":":")+s);return s=0===c.length?"{}":i?"{"+c.join(",")+u+"}":"{"+c.join(",")+"}",i=u,s}};return r("",{"":e})},Oh.JSONDecode=(rh={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},nh=function(e){var t=new SyntaxError(e);throw t.at=Jp,t.text=eh,t},ih=function(e){return e&&e!==Xp&&nh("Expected '"+e+"' instead of '"+Xp+"'"),Xp=eh.charAt(Jp),Jp+=1,Xp},oh=function(){var e,t="";for("-"===Xp&&(t="-",ih("-"));Xp>="0"&&Xp<="9";)t+=Xp,ih();if("."===Xp)for(t+=".";ih()&&Xp>="0"&&Xp<="9";)t+=Xp;if("e"===Xp||"E"===Xp)for(t+=Xp,ih(),"-"!==Xp&&"+"!==Xp||
2(t+=Xp,ih());Xp>="0"&&Xp<="9";)t+=Xp,ih();if(e=+t,isFinite(e))return e;nh("Bad number")},ah=function(){var e,t,r,n="";if('"'===Xp)for(;ih();){if('"'===Xp)return ih(),n;if("\\"===Xp)if(ih(),"u"===Xp){for(r=0,t=0;t<4&&(e=parseInt(ih(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof rh[Xp])break;n+=rh[Xp]}else n+=Xp}nh("Bad string")},sh=function(){for(;Xp&&Xp<=" ";)ih()},th=function(){switch(sh(),Xp){case"{":return function(){var e,t={};if("{"===Xp){if(ih("{"),sh(),"}"===Xp)return ih("}"),t;for(;Xp;){if(e=ah(),sh(),ih(":"),Object.hasOwnProperty.call(t,e)&&nh('Duplicate key "'+e+'"'),t[e]=th(),sh(),"}"===Xp)return ih("}"),t;ih(","),sh()}}nh("Bad object")}();case"[":return function(){var e=[];if("["===Xp){if(ih("["),sh(),"]"===Xp)return ih("]"),e;for(;Xp;){if(e.push(th()),sh(),"]"===Xp)return ih("]"),e;ih(","),sh()}}nh("Bad array")}();case'"':return ah();case"-":return oh();default:return Xp>="0"&&Xp<="9"?oh():function(){switch(Xp){case"t":return ih("t"),ih("r"),ih("u"),ih("e"),!0;case"f":return ih("f"),ih("a"),ih("l"),ih("s"),ih("e"),!1;case"n":return ih("n"),ih("u"),ih("l"),ih("l"),null}nh('Unexpected "'+Xp+'"')}()}},function(e){var t;return eh=e,Jp=0,Xp=" ",t=th(),sh(),Xp&&nh("Syntax error"),t}),Oh.base64Encode=function(e){var t,r,n,i,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,l=0,u="",c=[];if(!e)return e;e=Oh.utf8Encode(e);do{t=(o=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,c[l++]=a.charAt(t)+a.charAt(r)+a.charAt(n)+a.charAt(i)}while(s<e.length);switch(u=c.join(""),e.length%3){case 1:u=u.slice(0,-2)+"==";break;case 2:u=u.slice(0,-1)+"="}return u},Oh.utf8Encode=function(e){var t,r,n,i,o="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<n;i++){var a=e.charCodeAt(i),s=null;a<128?r++:s=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),null!==s&&(r>t&&(o+=e.substring(t,r)),o+=s,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o},Oh.UUID=function(){try{return i.crypto.randomUUID()}catch(r){for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",Oh.map(e,function(e){return e.toString(16)}).join("")}};var Rh=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];Oh.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<Rh.length;t++)if(-1!==e.indexOf(Rh[t]))return!0;return!1},Oh.HTTPBuildQuery=function(e,t){var r,n,i=[];return Oh.isUndefined(t)&&(t="&"),Oh.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},Oh.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){Ph.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},Oh.cookie={get:function(e){for(var t=e+"=",r=gh.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=Oh.JSONDecode(Oh.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,i,o,a){var s="",l="",u="";if(a)s="; domain="+a;else if(n){var c=Zh(gh.location.hostname);s=c?"; domain=."+c:""}if(r){var d=new Date;d.setTime(d.getTime()+1e3*r),l="; expires="+d.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),gh.cookie=e+"="+encodeURIComponent(t)+l+"; path=/"+s+u},set:function(e,t,r,n,i,o,a){var s="",l="",u="";if(a)s="; domain="+a;else if(n){var c=Zh(gh.location.hostname);s=c?"; domain=."+c:""}if(r){var d=new Date;d.setTime(d.getTime()+24*r*60*60*1e3),l="; expires="+d.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var f=e+"="+encodeURIComponent(t)+l+"; path=/"+s+u;return gh.cookie=f,f},remove:function(e,t,r){Oh.cookie.set(e,"",-1,t,!1,!1,r)}};var jh=function(e){var t=!0;
2try{var r="__mplss_"+Hh(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},Mh=null,Dh=function(e,t){return null===Mh||t?Mh=jh(e||i.localStorage):Mh},Lh=null;function Fh(e,t,r){var n=function(e){Ph.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||Ph.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(e){n(e)}return null},parse:function(t){try{return Oh.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,r){try{e.setItem(t,r)}catch(e){n(e)}},remove:function(t){try{e.removeItem(t)}catch(e){n(e)}}}}var Bh=null,Uh=null;try{Bh=i.localStorage,Uh=i.sessionStorage}catch(e){}Oh.localStorage=Fh(Bh,"localStorage",Dh),Oh.sessionStorage=Fh(Uh,"sessionStorage",function(e,t){return null===Lh||t?Lh=jh(e||i.sessionStorage):Lh}),Oh.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,o,a){if(t)if(t.addEventListener&&!o)t.addEventListener(r,n,!!a);else{var s="on"+r,l=t[s];t[s]=function(t,r,n){return function(o){if(o=o||e(i.event)){var a,s,l=!0;return Oh.isFunction(n)&&(a=n(o)),s=r.call(t,o),!1!==a&&!1!==s||(l=!1),l}}}(t,n,l)}else Ph.error("No valid element provided to register_event")}}();var Vh=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');Oh.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!gh.getElementsByTagName)return[];var n,i,o,a,s,l,u,c,d,f,p=t.split(" "),h=[gh];for(l=0;l<p.length;l++)if((n=p[l].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){o=(i=n.split("#"))[0];var m=i[1],v=gh.getElementById(m);if(!v||o&&v.nodeName.toLowerCase()!=o)return[];h=[v]}else if(n.indexOf(".")>-1){o=(i=n.split("."))[0];var g=i[1];for(o||(o="*"),a=[],s=0,u=0;u<h.length;u++)for(d="*"==o?e(h[u]):h[u].getElementsByTagName(o),c=0;c<d.length;c++)a[s++]=d[c];for(h=[],f=0,u=0;u<a.length;u++)a[u].className&&Oh.isString(a[u].className)&&r(a[u],g)&&(h[f++]=a[u])}else{var y=n.match(Vh);if(y){o=y[1];var b,w=y[2],x=y[3],E=y[4];for(o||(o="*"),a=[],s=0,u=0;u<h.length;u++)for(d="*"==o?e(h[u]):h[u].getElementsByTagName(o),c=0;c<d.length;c++)a[s++]=d[c];switch(h=[],f=0,x){case"=":b=function(e){return e.getAttribute(w)==E};break;case"~":b=function(e){return e.getAttribute(w).match(new RegExp("\\b"+E+"\\b"))};break;case"|":b=function(e){return e.getAttribute(w).match(new RegExp("^"+E+"-?"))};break;case"^":b=function(e){return 0===e.getAttribute(w).indexOf(E)};break;case"$":b=function(e){return e.getAttribute(w).lastIndexOf(E)==e.getAttribute(w).length-E.length};break;case"*":b=function(e){return e.getAttribute(w).indexOf(E)>-1};break;default:b=function(e){return e.getAttribute(w)}}for(h=[],f=0,u=0;u<a.length;u++)b(a[u])&&(h[f++]=a[u])}else{for(o=n,a=[],s=0,u=0;u<h.length;u++)for(d=h[u].getElementsByTagName(o),c=0;c<d.length;c++)a[s++]=d[c];h=a}}return h}return function(e){return Oh.isElement(e)?[e]:Oh.isObject(e)&&!Oh.isUndefined(e.length)?e:n.call(this,e)}}();var zh=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],qh=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];Oh.info={campaignParams:function(e){var t="",r={};return Oh.each(zh,function(n){(t=Oh.getQueryParam(gh.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return Oh.each(qh,function(r){(e=Oh.getQueryParam(gh.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return Oh.extend(Oh.info.campaignParams(),Oh.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null}
2,searchInfo:function(e){var t=Oh.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var i=Oh.getQueryParam(e,r);i.length&&(n.mp_keyword=i)}return n},browser:function(e,t,r){return t=t||"",r||Oh.includes(e," OPR/")?Oh.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":Oh.includes(e,"IEMobile")||Oh.includes(e,"WPDesktop")?"Internet Explorer Mobile":Oh.includes(e,"SamsungBrowser/")?"Samsung Internet":Oh.includes(e,"Edge")||Oh.includes(e,"Edg/")?"Microsoft Edge":Oh.includes(e,"FBIOS")?"Facebook Mobile":Oh.includes(e,"Whale/")?"Whale Browser":Oh.includes(e,"Chrome")?"Chrome":Oh.includes(e,"CriOS")?"Chrome iOS":Oh.includes(e,"UCWEB")||Oh.includes(e,"UCBrowser")?"UC Browser":Oh.includes(e,"FxiOS")?"Firefox iOS":Oh.includes(t,"Apple")?Oh.includes(e,"Mobile")?"Mobile Safari":"Safari":Oh.includes(e,"Android")?"Android Mobile":Oh.includes(e,"Konqueror")?"Konqueror":Oh.includes(e,"Firefox")?"Firefox":Oh.includes(e,"MSIE")||Oh.includes(e,"Trident/")?"Internet Explorer":Oh.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[Oh.info.browser(e,t,r)];if(void 0===n)return null;var i=e.match(n);return i?parseFloat(i[i.length-2]):null},os:function(){var e=wh;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return i.location.href},properties:function(e){return"object"!=typeof e&&(e={}),Oh.extend(Oh.strip_empty_properties({$os:Oh.info.os(),$browser:Oh.info.browser(wh,vh.vendor,yh),$referrer:gh.referrer,$referring_domain:Oh.info.referringDomain(gh.referrer),$device:Oh.info.device(wh)}),{$current_url:Oh.info.currentUrl(),$browser_version:Oh.info.browserVersion(wh,vh.vendor,yh),$screen_height:bh.height,$screen_width:bh.width,mp_lib:"web",$lib_version:l.LIB_VERSION,$insert_id:Hh(),time:Oh.timestamp()/1e3},Oh.strip_empty_properties(e))},people_properties:function(){return Oh.extend(Oh.strip_empty_properties({$os:Oh.info.os(),$browser:Oh.info.browser(wh,vh.vendor,yh)}),{$browser_version:Oh.info.browserVersion(wh,vh.vendor,yh)})},mpPageViewProperties:function(){return Oh.strip_empty_properties({current_page_title:gh.title,current_domain:i.location.hostname,current_url_path:i.location.pathname,current_url_protocol:i.location.protocol,current_url_search:i.location.search})}};var Hh=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},Gh=function(){return"00-"+Oh.UUID().replace(/-/g,"")+"-"+Oh.UUID().replace(/-/g,"").substring(0,16)+"-01"},$h=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Wh=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Zh=function(e){var t=Wh,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=$h);var i=e.match(t);return i?i[0]:""},Qh=function(){},Yh=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.match(t[n])){r=!0;break}return r},Kh=null,Jh=null;"undefined"!=typeof JSON&&(Kh=JSON.stringify,Jh=JSON.parse),Kh=Kh||Oh.JSONEncode,Jh=Jh||Oh.JSONDecode,Oh.info=Oh.info,Oh.info.browser=Oh.info.browser,Oh.info.browserVersion=Oh.info.browserVersion,Oh.info.device=Oh.info.device,Oh.info.properties=Oh.info.properties,Oh.isBlockedUA=Oh.isBlockedUA,Oh.isEmptyObject=Oh.isEmptyObject,Oh.isObject=Oh.isObject,Oh.JSONDecode=Oh.JSONDecode,Oh.JSONEncode=Oh.JSONEncode,Oh.toArray=Oh.toArray,Oh.NPO=Qp;var Xh="mixpanelRecordingEvents",em="mixpanelRecordingRegistry",tm=[Xh,em],rm=function(e){this.dbPromise=null,this.storeName=e};function nm(e,t){hm(!0,e,t)}function im(e,t){hm(!1,e,t)}function om(e,t){return"1"===pm(e,t)}function am(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||i,r=t.navigator||{},n=!1;return Oh.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){Oh.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}(t))return Ph.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===pm(e,t);return r&&Ph.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function sm(e){return mm(e,function(e){return this.get_config(e)})}function lm(e){return mm(e,function(e){return this._get_config(e)})}function um(e){return mm(e,function(e){return this._get_config(e)})}function cm(e,t){dm(t=t||{}).remove(fm(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function dm(e){return"localStorage"===(e=e||{}).persistenceType?Oh.localStorage:Oh.cookie}function fm(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function pm(e,t){return dm(t).get(fm(e,t))}function hm(e,t,r){Oh.isString(t)&&t.length?(dm(r=r||{}).set(fm(t,r),e?1:0,Oh.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):Ph.error("gdpr."+(e?"optIn":"optOut")+" called with an invali
2d token")}function mm(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),a=t.call(this,"opt_out_tracking_cookie_prefix"),s=t.call(this,"window");n&&(r=am(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:a,window:s}))}catch(e){Ph.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var l=arguments[arguments.length-1];"function"==typeof l&&l(0)}}rm.prototype._openDb=function(){return new Yp(function(e,t){var r=i.indexedDB.open("mixpanelBrowserDb",1);r.onerror=function(){t(r.error)},r.onsuccess=function(){e(r.result)},r.onupgradeneeded=function(e){var t=e.target.result;tm.forEach(function(e){t.createObjectStore(e)})}})},rm.prototype.init=function(){return i.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof i.IDBDatabase?Yp.resolve():Yp.reject(e)})):Yp.reject("indexedDB is not supported in this browser")},rm.prototype.isInitialized=function(){return!!this.dbPromise},rm.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new Yp(function(i,o){var a=n.transaction(r,e);a.oncomplete=function(){i(a)},a.onabort=a.onerror=function(){o(a.error)},t(a.objectStore(r))})};return this.dbPromise.then(n).catch(function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):Yp.reject(e)}.bind(this))},rm.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},rm.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},rm.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},rm.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var vm=Ah("lock"),gm=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||i.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||Yp};gm.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(Oh.bind(function(r,n){var i=t||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),a=this.storageKey,s=this.pollIntervalMS,l=this.timeoutMS,u=this.storage,c=a+":X",d=a+":Y",f=a+":Z",p=function(e){if((new Date).getTime()-o>l)return vm.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+i+"]"),u.removeItem(f),u.removeItem(d),void v();setTimeout(function(){try{e()}catch(e){n(e)}},s*(Math.random()+.1))},h=function(e,t){e()?t():p(function(){h(e,t)})},m=function(){var e=u.getItem(d);return!(e&&e!==i||(u.setItem(d,i),u.getItem(d)!==i&&(Dh(u,!0)||n(new Error("localStorage support dropped while acquiring lock")),1)))},v=function(){u.setItem(c,i),h(m,function(){u.getItem(c)!==i?p(function(){u.getItem(d)===i?h(function(){return!u.getItem(f)},g):v()}):g()})},g=function(){u.setItem(f,"1");var t=function(){u.removeItem(f),u.getItem(d)===i&&u.removeItem(d),u.getItem(c)===i&&u.removeItem(c)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(!Dh(u,!0))throw new Error("localStorage support check failed");v()}catch(e){n(e)}},this))};var ym=function(e){this.storage=e||i.localStorage};ym.prototype.init=function(){return Yp.resolve()},ym.prototype.isInitialized=function(){return!0},ym.prototype.setItem=function(e,t){return new Yp(Oh.bind(function(r,n){try{this.storage.setItem(e,Kh(t))}catch(e){n(e)}r()},this))},ym.prototype.getItem=function(e){return new Yp(Oh.bind(function(t,r){var n;try{n=Jh(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},ym.prototype.removeItem=function(e){return new Yp(Oh.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var bm=Ah("batch"),wm=function(e,t){var r,n,o,a;t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new ym,this.lock=new gm(e,{storage:t.sharedLockStorage||i.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||Oh.bind(bm.error,bm),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=(r=Oh.bind(this._enqueuePersisted,this),n=t.enqueueThrottleMs,o=null,a=[],function(e){var t=this;return a.push(e),o||(o=new Yp(function(e){setTimeout(function(){var n=r.apply(t,[a]);o=null,a=[],e(n)},n)})),o}):this.enqueuePersisted=Oh.bind(function(e){return this._enqueuePersisted([e])},this)};wm.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?Yp.resolve():this.queueStorage.init(
2).then(Oh.bind(function(){this.initialized=!0},this)).catch(Oh.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},wm.prototype.enqueue=function(e,t){var r={id:Hh(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),Yp.resolve(!0))},wm.prototype._enqueuePersisted=function(e){var t=Oh.bind(function(){return this.ensureInit().then(Oh.bind(function(){return this.readFromStorage()},this)).then(Oh.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(Oh.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(Oh.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(Oh.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},wm.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(Oh.bind(function(){return this.readFromStorage()},this)).then(Oh.bind(function(r){if(r.length){var n={};Oh.each(t,function(e){n[e.id]=!0});for(var i=0;i<r.length;i++){var o=r[i];if((new Date).getTime()>o.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):Yp.resolve(t)};var xm=function(e,t){var r=[];return Oh.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};wm.prototype.removeItemsByID=function(e){var t={};if(Oh.each(e,function(e){t[e]=!0}),this.memQueue=xm(this.memQueue,t),this.usePersistence){var r=Oh.bind(function(){return this.ensureInit().then(Oh.bind(function(){return this.readFromStorage()},this)).then(Oh.bind(function(e){return e=xm(e,t),this.saveToStorage(e)},this)).then(Oh.bind(function(){return this.readFromStorage()},this)).then(Oh.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw new Error("Item not removed from storage")}return!0},this)).catch(Oh.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(Oh.bind(function(e){return this.reportError("Error acquiring storage lock",e),!Dh(this.lock.storage,!0)&&r().then(Oh.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(Oh.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))}return Yp.resolve(!0)};var Em=function(e,t){var r=[];return Oh.each(e,function(e){var n=e.id;if(n in t){var i=t[n];null!==i&&(e.payload=i,r.push(e))}else r.push(e)}),r};wm.prototype.updatePayloads=function(e){return this.memQueue=Em(this.memQueue,e),this.usePersistence?this.lock.withLock(Oh.bind(function(){return this.ensureInit().then(Oh.bind(function(){return this.readFromStorage()},this)).then(Oh.bind(function(t){return t=Em(t,e),this.saveToStorage(t)},this)).catch(Oh.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(Oh.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):Yp.resolve(!0)},wm.prototype.readFromStorage=function(){return this.ensureInit().then(Oh.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(Oh.bind(function(e){return e&&(Oh.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(Oh.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},wm.prototype.saveToStorage=function(e){return this.ensureInit().then(Oh.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(Oh.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},wm.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(Oh.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):Yp.resolve()};var km=Ah("batch"),Sm=function(e,t){this.errorReporter=t.errorReporter,this.queue=new wm(e,{errorReporter:Oh.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};Sm.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},Sm.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Sm.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Sm.prototype.clear=function(){return this.queue.clear()},Sm.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Sm.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Sm.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(Oh.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Sm.prototype.sendRequestPromise=function(e,t){return new Yp(Oh.bind(function(r){this.sendRequest(e,t,r)},this))},Sm.prototype.flush=function(e){if(this.requestInProgress)return km.log("Flush: Request already in progress"),Yp.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=(new Date).getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(Oh.bind(function(o){var a=o.length===n,s=[],u={};if(Oh.each(o,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=Oh.extend({},t.properties,{mp_sent_by_lib_version:l.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}u[e.id]=t},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),Yp.resolve();var c=Oh.bind(function(){return this.queue.removeItemsByID(Oh.map(o,function(e){return e.id})).then(Oh.bind(function(e){return Oh.each(o,Oh.bind(function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!a?(this.resetFlush(),Yp.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),Yp.resolve())},this))},this),d=Oh.bind(function(a){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(u);if(Oh.isObject(a)&&"timeout"===a.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(Oh.isObject(a)&&(a.httpStatusCode>=500||429===a.httpStatusCode||a.httpStatusCode<=0&&(d=i.navigator.onLine,!Oh.isUndefined(d)&&!d)||"timeout"===a.error)){var s=2*this.flushInterval;return a.retryAfter&&(s=1e3*parseInt(a.retryAfter,10)||s),s=Math.min(6e5,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),Yp.resolve()}if(Oh.isObject(a)&&413===a.httpStatusCode){if(o.length>1){var l=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,l,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),Yp.resolve()}return this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),c()}return c()}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var d},this),f={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(f.transport="sendBeacon"),km.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,f).then(d)},this)).catch(Oh.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},Sm.prototype.reportError=function(e,t){if(km.error.apply(km.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){km.error(t)}};var _m=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},Cm="change",Om="click",Pm="hashchange",Tm="load",Am="mp_locationchange",Im="popstate",Nm="scrollend",Rm="scroll",jm="submit",Mm="visibilitychange",Dm=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Lm=["mp-include"],Fm=["mp-no-track"],Bm=Fm.concat(["mp-sensitive"]),Um=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Vm={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0}
2,zm={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},qm={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},Hm=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],Gm=Ah("autocapture");function $m(e){for(var t={},r=Wm(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function Wm(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function Zm(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!Xm(e));return e}function Qm(e,t,r,n,i,o){var a={$classes:Wm(e).split(" "),$tag_name:e.tagName.toLowerCase()},s=e.id;s&&(a.$id=s),nv(e,t,i,o)&&Oh.each(Um.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);iv(n)&&(a["$attr-"+t]=n)}});for(var l=1,u=1,c=e;c=Zm(c);)l++,c.tagName===e.tagName&&u++;return a.$nth_child=l,a.$nth_of_type=u,a}function Ym(e,t,r,n){var i="";return nv(e,t,r,n)&&e.childNodes&&e.childNodes.length&&Oh.each(e.childNodes,function(e){tv(e)&&e.textContent&&(i+=Oh.trim(e.textContent).split(/(\s+)/).filter(iv).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),Oh.trim(i)}function Km(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return Gm.critical("Error while checking element in allowElementCallback",e),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){Gm.critical("Error while checking selector: "+o,e)}}return!1}function Jm(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(e){return Gm.critical("Error while checking element in blockElementCallback",e),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){Gm.critical("Error while checking selector: "+o,e)}}var a=$m(e);for(i=0;i<Fm.length;i++)if(a[Fm[i]])return!0;return!1}function Xm(e){return e&&1===e.nodeType}function ev(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function tv(e){return e&&3===e.nodeType}function rv(e){var t=(e.name||e.id||"").toString().toLowerCase();return!("string"!=typeof t||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(t.replace(/[^a-zA-Z0-9]/g,"")))}function nv(e,t,r,n){var i;if(!Km(e,t,r,n))return!1;for(var o=e;o.parentNode&&!ev(o,"body");o=o.parentNode){var a=$m(o);for(i=0;i<Bm.length;i++)if(a[Bm[i]])return!1}var s=$m(e);for(i=0;i<Lm.length;i++)if(s[Lm[i]])return!0;if(ev(e,"input")||ev(e,"select")||ev(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var l=e.type||"";if("string"==typeof l)switch(l.toLowerCase()){case"hidden":case"password":return!1}return!rv(e)}function iv(e){if(null===e||Oh.isUndefined(e))return!1;if("string"==typeof e){if(e=Oh.trim(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,"")))return!1;if(/(^\d{3}-?\d{2}-?\d{4}$)/.test(e))return!1}return!0}function ov(e){var t="onscrollend"in i,r=Ih(e),n=Nm;if(!t){var o=null;r=Ih(function(){clearTimeout(o),o=setTimeout(e,100)}),n=Rm}return{listener:r,eventType:n}}function av(e){var t=e.tagName.toLowerCase();return!!("button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||function(e){for(var t=0;t<Hm.length;t++)if(e.hasAttribute(Hm[t]))return!0;return!1}(e)||function(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return Vm[r]}(e)||"a"===t&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function sv(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(zm[t])return!0;if(av(e))return!1;for(var r=e.parentElement,n=0;r&&n<5;){if(av(r))return!1;if(r.getRootNode&&r.getRootNode()!==gh){var i=r.getRootNode();if(i.host&&av(i.host))return!1}r=r.parentElement,n++}return!!qm[t]}function lv(e){return"composedPath"in e?e.composedPath():[]}function uv(e){var t=lv(e);return t&&t.length>0?t[0]:e.target||e.srcElement}var cv=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",dv=["password","email","tel","hidden"];function fv(e){return e?Array.isArray(e)?e:[e]:[]}function pv(e,t){return!!t&&!!e.closest(t)}function hv(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==dv.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!((!n||""===n||"off"===n)&&!e.hasAttribute("data-rr-is-password")&&!rv(e)&&(t.input.maskAll?pv(e,t.input.unmaskingSelector):!pv(e,t.input.maskingSelector)&&!pv(e,cv)))}function mv(e,t){return!(!e||(!t.text._legacyClassRegex||!Uu(e,t.text._legacyClassRegex))&&(t.text.maskAll?pv(e,t.text.unmaskingSelector):!pv(e,t.text.maskingSelector)&&!pv(e,cv)))}var vv=Ah("network-plugin");
2function gv(e){return Math.round(Date.now()-e.performance.now())}var yv={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function bv(e){return"resource"===e.entryType}function wv(e,t,r){if(!(t in e)||"function"!=typeof e[t])return function(){};var n=e[t],i=r(n);return e[t]=i,function(){e[t]=n}}var xv=1048576;function Ev(e){return e&&"string"==typeof e&&e.length>xv?(vv.error("Body truncated from "+e.length+" to "+xv+" characters"),e.substring(0,xv)+"... [truncated]"):e}function kv(e,t,r){return!(!t[e]||0===t[e].length)&&t[e].includes(r.toLowerCase())}function Sv(e,t,r){return!(!t[e]||0===t[e].length)&&Yh(r,t[e])}function _v(e){if(null==e)return null;var t;if("string"==typeof e)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=Oh.HTTPBuildQuery(e);else{if(!Oh.isObject(e))return"Cannot read body of type "+typeof e;try{t=JSON.stringify(e)}catch(e){return"Failed to stringify response object"}}return Ev(t)}function Cv(e){return new Promise(function(t){var r=setTimeout(function(){t("Timeout while trying to read body")},500);try{e.clone().text().then(function(e){clearTimeout(r),t(Ev(e))},function(e){clearTimeout(r),t("Failed to read body: "+String(e))})}catch(e){clearTimeout(r),t("Failed to read body: "+String(e))}})}function Ov(e,t,r,n,i,o){if(void 0===o&&(o=0),o>10)return vv.error("Cannot find performance entry"),Promise.resolve(null);var a=function(e,t){for(var r=e.length-1;r>=0;r-=1)if(t(e[r]))return e[r]}(e.performance.getEntriesByName(r),function(e){return bv(e)&&e.initiatorType===t&&(!n||e.startTime>=n)&&(!i||e.startTime<=i)});return a?Promise.resolve(a):new Promise(function(e){setTimeout(e,50*o)}).then(function(){return Ov(e,t,r,n,i,o+1)})}function Pv(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},yv.recordHeaders,r.recordHeaders||{}),i=Object.assign({},yv.recordBodyUrls,r.recordBodyUrls||{});r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:i});var o=Object.assign({},yv,r),a=function(t){var r=t.requests.filter(function(e){return!Yh(e.url,o.ignoreRequestUrls||[])&&!o.ignoreRequestFn(e)});(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},s=function(e,t,r){if(!t.PerformanceObserver)return vv.error("PerformanceObserver not supported"),function(){};if(r.recordInitialRequests){var n=t.performance.getEntries().filter(function(e){return function(e){return"navigation"===e.entryType}(e)||bv(e)&&r.initiatorTypes.includes(e.initiatorType)});e({requests:n.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:gv(t)}}),isInitial:!0})}var i=new t.PerformanceObserver(function(n){var i=n.getEntries().filter(function(e){return bv(e)&&r.initiatorTypes.includes(e.initiatorType)&&"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType});e({requests:i.map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:gv(t)}})})});return i.observe({entryTypes:["navigation","resource"]}),function(){i.disconnect()}}(a,t,o),l=function(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var n=wv(t.XMLHttpRequest.prototype,"open",function(n){return function(i,o,a,s,l){void 0===a&&(a=!0);var u,c,d=this,f=new Request(o,{method:i}),p={},h={},m=d.setRequestHeader.bind(d);d.setRequestHeader=function(e,t){return kv("request",r.recordHeaders,e)&&(h[e]=t),m(e,t)},p.requestHeaders=h;var v=d.send.bind(d);d.send=function(e){return Sv("request",r.recordBodyUrls,f.url)&&(p.requestBody=_v(e)),u=t.performance.now(),v(e)},d.addEventListener("readystatechange",function(){if(d.readyState===d.DONE){c=t.performance.now();var n={},i=d.getAllResponseHeaders();
2i&&i.trim().split(/[\r\n]+/).forEach(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var i=e.substring(0,t),o=e.substring(t+2);i&&kv("response",r.recordHeaders,i)&&(n[i]=o)}}}),p.responseHeaders=n,Sv("response",r.recordBodyUrls,f.url)&&(p.responseBody=_v(d.response)),Ov(t,"xmlhttprequest",f.url,u,c).then(function(r){if(r){var n={url:r.name,method:f.method,initiatorType:r.initiatorType,status:d.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:gv(t),requestHeaders:p.requestHeaders,requestBody:p.requestBody,responseHeaders:p.responseHeaders,responseBody:p.responseBody};e({requests:[n]})}else vv.error("Failed to get performance entry for XHR request to "+f.url)}).catch(function(e){vv.error("Error recording XHR request to "+f.url+": "+String(e))})}}),n.call(d,i,o,a,s,l)}});return function(){n()}}(a,t,o),u=function(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var n=wv(t,"fetch",function(n){return function(){var i,o,a,s,l=new Request(arguments[0],arguments[1]),u={},c=Promise.resolve(void 0),d=Promise.resolve(void 0);try{var f={};l.headers.forEach(function(e,t){kv("request",r.recordHeaders,t)&&(f[t]=e)}),u.requestHeaders=f,Sv("request",r.recordBodyUrls,l.url)&&(c=Cv(l).then(function(e){u.requestBody=e})),o=t.performance.now(),s=n.apply(t,arguments).then(function(e){i=e,a=t.performance.now();var n={};return i.headers.forEach(function(e,t){kv("response",r.recordHeaders,t)&&(n[t]=e)}),u.responseHeaders=n,Sv("response",r.recordBodyUrls,l.url)&&(d=Cv(i).then(function(e){u.responseBody=e})),i})}catch(e){s=Promise.reject(e)}return Promise.all([c,d,s]).then(function(){return Ov(t,"fetch",l.url,o,a)}).then(function(r){if(r){var n={url:r.name,method:l.method,initiatorType:r.initiatorType,status:i?i.status:void 0,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:gv(t),requestHeaders:u.requestHeaders,requestBody:u.requestBody,responseHeaders:u.responseHeaders,responseBody:u.responseBody};e({requests:[n]})}else vv.error("Failed to get performance entry for fetch request to "+l.url)}).catch(function(e){vv.error("Error recording fetch request to "+l.url+": "+String(e))}),s}});return function(){n()}}(a,t,o);return function(){s(),l(),u()}}var Tv=Ah("recorder"),Av=i.CompressionStream,Iv={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Nv=new Set([Al.MouseMove,Al.MouseInteraction,Al.Scroll,Al.ViewportResize,Al.Input,Al.TouchMove,Al.MediaInteraction,Al.Drag,Al.Selection]),Rv=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||Qh,this._onMaxLengthReached=e.onMaxLengthReached||Qh,this._onBatchSent=e.onBatchSent||Qh,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=lh,this.recordMinMs=0;var t=Dh(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new rm(Xh),this.batcher=new Sm(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Iv,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};Rv.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var r=this._mixpanel.get_property("$user_id");return r&&(e.$user_id=r),e},Rv.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},Rv.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},Rv.prototype.get_config=function(e){return this.getConfig(e)},Rv.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>lh&&(this.recordMaxMs=lh,Tv.critical("record_max_ms cannot be greater than "+lh+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=Oh.info.currentUrl(),this.replayStartUrl=Oh.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r=this.getConfig("record_block_selector");""!==r&&null!==r||(r=void 0);var n=function(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),i=e.get_config("record_mask_all_inputs");t.input.maskingSelector=fv(r).join(","),t.input.unmaskingSelector=fv(n).join(","),void 0!==i&&(t.input.maskAll=i);var o=e.get_config("record_mask_text_selector"),a=e.get_config("record_unmask_text_selector"),s=e.get_config("record_mask_all_text"),l=e.get_config("record_mask_text_class"),u=fv(o);if(l)if(l instanceof RegExp)t.text._legacyClassRegex=l;else{var c="."+l;-1===u.indexOf(c)&&u.push(c)}return t.text.maskingSelector=u.join(","),t.text.unmaskingSelector=fv(a).join(","),void 0===s&&void 0!==o?t.text.maskAll=!1:void 0!==s&&(t.text.maskAll=s),t}(this._mixpanel),i=[];if(this.getConfig("record_network")){var o=this.getConfig("record_network_options")||{},a=(o.ignoreRequestUrls||[]).slice();a.push(this._getApiRoute()),o.ignoreRequestUrls=a,i.push(function(e){return{name:"rrweb/[email protected]",observer:Pv,options:e}}(o))}this.getConfig("record_console")&&i.push({name:"rrweb/console@1",observer:Rp,options:{stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}});try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(function(e){return e.type===Tl.IncrementalSnapshot&&Nv.has(e.data.source)}(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(hv,n),maskTextFn:this._getMaskFn(mv,n),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:i})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var s=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),s)}else Tv.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},Rv.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},Rv.prototype.isRrwebStopped=function(){return null===this._stopRecording},Rv.prototype.flushEventsWithOptOut=function(e,t,r){var n=function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(e,t,r,n)},Rv.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},Rv.deserialize=function(e,t){return new Rv(Oh.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},Rv.prototype._getApiRoute=function(){return this.getConfig("api_routes").record},Rv.prototype._sendRequest=function(e,t,r,n){var o=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=Oh.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}.bind(this),a=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");i.fetch(a+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){o(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},Rv.prototype._flushEvents=sm(function(e,t,r){var n=e.length;if(n>0){for(var o=this.replayId,a=1/0,s=-1/0,u=!1,c=0;c<n;c++)a=Math.min(a,e[c].timestamp),s=Math.max(s,e[c].timestamp),e[c].type===Tl.FullSnapshot&&(u=!0);if(0===this.seqNo){if(!u)return r({error:"First batch does not contain a full snapshot. Aborting recording."}),void this.stopRecording(!0);this.replayStartTime=a}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=a);var d=s-this.replayStartTime,f={$current_url:this.batchStartUrl,$lib_version:l.LIB_VERSION,batch_start_time:a/1e3,mp_lib:"web",replay_id:o,replay_length_ms:d,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},p=JSON.stringify(e);if(Object.assign(f,this.getUserIdInfo()),function(e,t,r){if(!i.CompressionStream)return!1;var n=Oh.info.browser(e,t,r),o=Oh.info.browserVersion(e,t,r);return!(("Safari"===n||"Mobile Safari"===n)&&o>=16.4&&o<16.6)}(wh,vh.vendor,yh)){var h=new Blob([p],{type:"application/json"}).stream().pipeThrough(new Av("gzip"));new Response(h).blob().then(function(e){f.format="gzip",this._sendRequest(o,f,e,r)}.bind(this))}else f.format="body",this._sendRequest(o,f,p,r)}}),Rv.prototype.reportError=function(e,t){Tv.error.apply(Tv.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){Tv.error(t)}},Rv.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},Rv.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>8e3?(Tv.critical("record_min_ms cannot be greater than 8000ms. Capping value."),8e3):e},Rv.prototype._getMaskFn=function(e,t){return function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(e){this.reportError("Error checking if text should be masked, defaulting to masked",e)}if(i){var o=Math.min(r.length,1e4);return"*".repeat(o)}return r}.bind(this)};
vendor: 1,688 bytes, line 2
2var jv=function(e){this.idb=new rm(em),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};jv.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},jv.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},jv.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return Yp.resolve();var t=e.tabId;return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),Yp.resolve())},jv.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return _m(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):Yp.resolve(null)},jv.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},jv.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},jv.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):Yp.resolve()},jv.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var t=e.filter(function(e){return _m(e)}
2).map(function(e){return Rv.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then(function(){return this.idb.removeItem(e.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return Yp.all(t)}.bind(this)).catch(this.handleError.bind(this)):Yp.resolve([])};var Mv=Ah("recorder"),Dv=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||Nu,this.sharedLockStorage=r,this.recordingRegistry=new jv({mixpanelInstance:this.mixpanelInstance,errorReporter:Mv.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};function Lv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}Dv.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){Mv.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){Mv.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),n=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:Oh.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=Rv.deserialize(e.activeSerializedRecording,i):this.activeRecording=new Rv(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}Mv.log("Recording already in progress, skipping startRecording.")},Dv.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},Dv.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Dv.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return Yp.resolve()},Dv.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),Yp.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Mv.log("No resumable recording found."),null)}.bind(this))},Dv.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Dv.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},Dv.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(Dv.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),i[c]=Dv;var Fv,Bv={exports:{}},Uv=(Fv||(Fv=1,Bv.exports=function(){Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(t){return e.truthy(t)},"!":function(t){return!e.truthy(t)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||void 0===t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var n=String(e).substr(t);return n.substr(0,n.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)+parseFloat(t,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)*parseFloat(t,10)})},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,t){return e.concat(t)},[])},var:function(e,t){var r=void 0===t?null:t,n=this;if(void 0===e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++){if(null==n)return r;if(void 0===(n=n[i[o]]))return r}return n},missing:function(){for(var t=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],o=e.apply({var:i},this);null!==o&&""!==o||t.push(i)}return t},missing_some:function(t,r){var n=e.apply({missing:r},this);return r.length-n.length>=t?[]:n}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(r,n){if(Array.isArray(r))return r.map(function(t){return e.apply(t,n)});if(!e.is_logic(r))return r;var i,o,a,s,l,u=e.get_operator(r),c=r[u];if(Array.isArray(c)||(c=[c]),"if"===u||"?:"==u){for(i=0;i<c.length-1;
2i+=2)if(e.truthy(e.apply(c[i],n)))return e.apply(c[i+1],n);return c.length===i+1?e.apply(c[i],n):null}if("and"===u){for(i=0;i<c.length;i+=1)if(o=e.apply(c[i],n),!e.truthy(o))return o;return o}if("or"===u){for(i=0;i<c.length;i+=1)if(o=e.apply(c[i],n),e.truthy(o))return o;return o}if("filter"===u)return s=e.apply(c[0],n),a=c[1],Array.isArray(s)?s.filter(function(t){return e.truthy(e.apply(a,t))}):[];if("map"===u)return s=e.apply(c[0],n),a=c[1],Array.isArray(s)?s.map(function(t){return e.apply(a,t)}):[];if("reduce"===u)return s=e.apply(c[0],n),a=c[1],l=void 0!==c[2]?e.apply(c[2],n):null,Array.isArray(s)?s.reduce(function(t,r){return e.apply(a,{current:r,accumulator:t})},l):l;if("all"===u){if(s=e.apply(c[0],n),a=c[1],!Array.isArray(s)||!s.length)return!1;for(i=0;i<s.length;i+=1)if(!e.truthy(e.apply(a,s[i])))return!1;return!0}if("none"===u){if(s=e.apply(c[0],n),a=c[1],!Array.isArray(s)||!s.length)return!0;for(i=0;i<s.length;i+=1)if(e.truthy(e.apply(a,s[i])))return!1;return!0}if("some"===u){if(s=e.apply(c[0],n),a=c[1],!Array.isArray(s)||!s.length)return!1;for(i=0;i<s.length;i+=1)if(e.truthy(e.apply(a,s[i])))return!0;return!1}if(c=c.map(function(t){return e.apply(t,n)}),t.hasOwnProperty(u)&&"function"==typeof t[u])return t[u].apply(n,c);if(u.indexOf(".")>0){var d=String(u).split("."),f=t;for(i=0;i<d.length;i++){if(!f.hasOwnProperty(d[i]))throw new Error("Unrecognized operation "+u+" (failed at "+d.slice(0,i+1).join(".")+")");f=f[d[i]]}return f.apply(n,c)}throw new Error("Unrecognized operation "+u)},e.uses_data=function(t){var r=[];if(e.is_logic(t)){var n=e.get_operator(t),i=t[n];Array.isArray(i)||(i=[i]),"var"===n?r.push(i[0]):i.forEach(function(t){r.push.apply(r,e.uses_data(t))})}return function(e){for(var t=[],r=0,n=e.length;r<n;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}(r)},e.add_operation=function(e,r){t[e]=r},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,r){if(r===t)return!0;if("@"===r)return!0;if("number"===r)return"number"==typeof t;if("string"===r)return"string"==typeof t;if("array"===r)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(r)){if(e.is_logic(t)){var n=e.get_operator(r),i=e.get_operator(t);if("@"===n||n===i)return e.rule_like(e.get_values(t,!1),e.get_values(r,!1))}return!1}if(Array.isArray(r)){if(Array.isArray(t)){if(r.length!==t.length)return!1;for(var o=0;o<r.length;o+=1)if(!e.rule_like(t[o],r[o]))return!1;return!0}return!1}return!1},e}()),Bv.exports),Vv=Lv(Uv),zv={eventMatchesCriteria:function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!Oh.isEmptyObject(n))try{i=Vv.apply(n,t||{})}catch(e){return{matches:!1,error:e.toString()}}return{matches:i}}};function qv(){this.clicks=[]}function Hv(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}i[u]=Promise.resolve(zv),qv.prototype.isRageClick=function(e,t){var r=(t=t||{}).threshold_px||30,n=t.timeout_ms||1e3,i=t.click_count||4;if(t.interactive_elements_only){var o=uv(e);
2if(!o||sv(o))return!1}var a=Date.now(),s=e.pageX,l=e.pageY,u=this.clicks[this.clicks.length-1];if(u&&a-u.timestamp<n&&Math.sqrt(Math.pow(s-u.x,2)+Math.pow(l-u.y,2))<r){if(this.clicks.push({x:s,y:l,timestamp:a}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:s,y:l,timestamp:a}];return!1},Hv.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return uv(e)},Hv.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=lv(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},Hv.prototype.observeShadowRoot=function(e){if(this.observedShadowRoots&&!this.observedShadowRoots.has(e)){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(e){Gm.critical("Error while observing shadow root",e)}}},Hv.prototype.start=function(){this.observedShadowRoots||("undefined"!=typeof WeakSet?this.observedShadowRoots=new WeakSet:Gm.critical("Shadow DOM observation unavailable: WeakSet not supported"))},Hv.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){Gm.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var Gv=[Cm,"input",jm,"select","toggle"],$v=[Nm],Wv=[Pm],Zv={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function Qv(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}Qv.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||sv(t)||(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),0))},Qv.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},Qv.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e.timeout_ms,r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var a=n[o];r-a.timestamp>=t?this.hasChangesAfter(a.timestamp)||i.push(a):this.pendingClicks.push(a)}return i},Qv.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},Qv.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},Qv.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},Qv.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)}else this.processingActive=!1},Qv.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;Gv.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),Wv.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),$v.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,Zv)}catch(e){Gm.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new Hv(function(){e.recordChangeEvent()},Zv),this.shadowDOMObserver.start()}catch(e){Gm.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},Qv.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){Gm.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){Gm.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){Gm.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var Yv="autocapture",Kv="full-url",Jv="allow_selectors",Xv="allow_url_regexes",eg="block_attrs",tg="block_element_callback",rg="block_selectors",ng="block_url_regexes",ig="capture_extra_attrs",og="capture_text_content",ag="scroll_capture_all",sg="scroll_depth_percent_checkpoints",lg="click",ug="dead_click",cg="input",dg="pageview",fg="rage_click",pg="scroll",hg="page_leave",mg="submit",vg={};vg[Jv]=[],vg[Xv]=[],vg[eg]=[],vg[tg]=null,vg[rg]=[],vg[ng]=[],vg[ig]=[],vg[og]=!1,vg[ag]=!1,vg[sg]=[25,50,75,100],vg[lg]=!0,vg[ug]=!0,vg[cg]=!0,vg[dg]=Kv,vg[fg]=!0,vg[pg]=!0,vg[hg]=!1,vg[mg]=!0;var gg={$mp_autocapture:!0}
2,yg="$mp_click",bg="$mp_dead_click",wg="$mp_rage_click",xg=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};xg.prototype.init=function(){!function(){try{return!!gh.createElement("div").matches}catch(e){return!1}}()?Gm.critical("Autocapture unavailable: missing required DOM APIs"):(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking())},xg.prototype.getFullConfig=function(){var e=this.mp.get_config(Yv);return e?Oh.isObject(e)?Oh.extend({},vg,e):vg:{}},xg.prototype.getConfig=function(e){return this.getFullConfig()[e]},xg.prototype.currentUrlBlocked=function(){var e=Oh.info.currentUrl(),t=this.getConfig(Xv)||[];if(t.length)try{return!Yh(e,t)}catch(e){return Gm.critical("Error while checking block URL regexes: ",e),!0}var r=this.getConfig(ng)||[];if(!r||!r.length)return!1;try{return Yh(e,r)}catch(e){return Gm.critical("Error while checking block URL regexes: ",e),!0}},xg.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(Yv)?this.getConfig(dg):this.mp.get_config("track_pageview")},xg.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===yg&&!this.getConfig(lg)||t===wg&&!this._getClickTrackingConfig(fg)||t===bg&&!this._getClickTrackingConfig(ug)),n=function(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],o=t.blockAttrs||[],a=t.blockElementCallback,s=t.blockSelectors||[],l=t.captureTextContent||!1,u=t.captureExtraAttrs||[],c=t.capturedForHeatMap||!1,d={};Oh.each(o,function(e){d[e]=!0});var f=null,p=void 0===e.target?e.srcElement:e.target;if(tv(p)&&(p=p.parentNode),function(e,t){if(!e||ev(e,"html")||!Xm(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===jm;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===Cm:t.type===Om;case"select":case"textarea":return t.type===Cm;default:return t.type===Om}}(p,e)&&Km(p,e,r,n)&&!Jm(p,e,a,s)){for(var h=[p],m=p;m.parentNode&&!ev(m,"body");)h.push(m.parentNode),m=m.parentNode;var v,g=[],y=!1;if(Oh.each(h,function(t){var i=nv(t,e,r,n);d.href||"a"!==t.tagName.toLowerCase()||(v=t.getAttribute("href"),v=i&&iv(v)&&v),Jm(t,e,a,s)&&(y=!0),g.push(Qm(t,e,d,u,r,n))},this),!y){var b=gh.documentElement;if(f={$event_type:e.type,$host:i.location.host,$pathname:i.location.pathname,$elements:g,$el_attr__href:v,$viewportHeight:Math.max(b.clientHeight,i.innerHeight||0),$viewportWidth:Math.max(b.clientWidth,i.innerWidth||0),$pageHeight:gh.body.offsetHeight||0,$pageWidth:gh.body.offsetWidth||0},Oh.each(u,function(e){if(!d[e]&&p.hasAttribute(e)){var t=p.getAttribute(e);iv(t)&&(f["$el_attr__"+e]=t)}}),l&&(w=Ym(p,e,r,n))&&w.length&&(f.$el_text=w),e.type===Om&&(Oh.each(Dm,function(t){t in e&&(f["$"+t]=e[t])}),c&&(f.$captured_for_heatmap=!0),p=function(e){for(var t=e.target,r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(ev(i,"a")||ev(i,"button")||ev(i,"input")||ev(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}(e)),l){var w=Ym(p,e,r,n);w&&w.length&&(f.$el_text=w)}if(p){if(!Km(p,e,r,n)||Jm(p,e,a,s))return null;var x=Qm(p,e,d,u,r,n);f.$target=x,f.$el_classes=x.$classes,Oh.extend(f,Oh.strip_empty_properties({$el_id:x.$id,$el_tag_name:x.$tag_name}))}}}return f}(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(Jv),blockAttrs:this.getConfig(eg),blockElementCallback:this.getConfig(tg),blockSelectors:this.getConfig(rg),captureExtraAttrs:this.getConfig(ig),captureTextContent:this.getConfig(og),capturedForHeatMap:r});n&&(Oh.extend(n,gg),this.mp.track(t,n))}},xg.prototype.initPageListeners=function(){if(i.removeEventListener(Im,this.listenerPopstate),i.removeEventListener(Pm,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(hg)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){i.dispatchEvent(new Event(Am))},this.listenerHashchange=function(){i.dispatchEvent(new Event(Am))},i.addEventListener(Im,this.listenerPopstate),i.addEventListener(Pm,this.listenerHashchange);var e=i.history.pushState;"function"==typeof e&&(i.history.pushState=function(t,r,n){e.call(i.history,t,r,n),i.dispatchEvent(new Event(Am))});var t=i.history.replaceState;"function"==typeof t&&(i.history.replaceState=function(e,r,n){t.call(i.history,e,r,n),i.dispatchEvent(new Event(Am))})}},xg.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},xg.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(hg)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(gh.documentElement.clientHeight,i.innerHeight||0),o=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),a=Math.round(n/r*100);r<=n&&(o=100,a=100);var s=Oh.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:o,$fold_line_percentage:a,$scroll_height:r,$event_type:e.type,$current_url:t||Oh.info.currentUrl(),$viewportHe
2ight:n,$viewportWidth:Math.max(gh.documentElement.clientWidth,i.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},gg);this.mp.track("$mp_page_leave",s,{transport:"sendBeacon"})}},xg.prototype._initScrollDepthTracking=function(){if(i.removeEventListener(Rm,this.listenerScrollDepth),i.removeEventListener(Nm,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){Gm.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(gh.documentElement.clientHeight,i.innerHeight||0);var e=ov(function(){if(!this.currentUrlBlocked()){var e=Math.max(gh.documentElement.clientHeight,i.innerHeight||0)+i.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=gh.body.scrollHeight}}.bind(this));this.listenerScrollDepth=e.listener,i.addEventListener(e.eventType,this.listenerScrollDepth)}},xg.prototype.initClickTracking=function(){i.removeEventListener(Om,this.listenerClick),(this.getConfig(lg)||this.mp.get_config("record_heatmap_data"))&&(Gm.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(lg)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,yg)}.bind(this),i.addEventListener(Om,this.listenerClick))},xg.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(ug)||this.mp.get_config("record_heatmap_data")?(Gm.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new Qv(function(e){this.trackDomEvent(e,bg)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(ug);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}.bind(this),i.addEventListener(Om,this.listenerDeadClick))):this.stopDeadClickTracking()},xg.prototype.initInputTracking=function(){i.removeEventListener(Cm,this.listenerChange),this.getConfig(cg)&&(Gm.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(cg)&&this.trackDomEvent(e,"$mp_input_change")}.bind(this),i.addEventListener(Cm,this.listenerChange))},xg.prototype.initPageviewTracking=function(){if(i.removeEventListener(Am,this.listenerLocationchange),this.pageviewTrackingConfig()){Gm.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(gg)),t&&(e=Oh.info.currentUrl()),this.listenerLocationchange=Ih(function(){if(!this.currentUrlBlocked()){var t=Oh.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();i===Kv?r=t!==e:"url-with-path-and-query-string"===i?r=t.split("#")[0]!==e.split("#")[0]:"url-with-path"===i&&(r=n),r&&(this.mp.track_pageview(gg)&&(e=t),n&&(this.lastScrollCheckpoint=0,Gm.log("Path change: re-initializing scroll depth checkpoints")))}}.bind(this)),i.addEventListener(Am,this.listenerLocationchange)}},xg.prototype.initRageClickTracking=function(){i.removeEventListener(Om,this.listenerRageClick),(this._getClickTrackingConfig(fg)||this.mp.get_config("record_heatmap_data"))&&(Gm.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new qv),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(fg);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,wg))}.bind(this),i.addEventListener(Om,this.listenerRageClick))},xg.prototype.initScrollTracking=function(){if(i.removeEventListener(Nm,this.listenerScroll),i.removeEventListener(Rm,this.listenerScroll),this.getConfig(pg)){Gm.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=ov(function(){if(this.getConfig(pg)&&!this.currentUrlBlocked()){var e=this.getConfig(ag),t=(this.getConfig(sg)||[]).slice().sort(function(e,t){return e-t}),r=i.scrollY,n=Oh.extend({$scroll_top:r},gg);try{var o=gh.body.scrollHeight,a=Math.round(r/(o-i.innerHeight)*100);if(n.$scroll_height=o,n.$scroll_percentage=a,a>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var l=t[s];a>=l&&this.lastScrollCheckpoint<l&&(n.$scroll_checkpoint=l,this.lastScrollCheckpoint=l,e=!0)}}catch(e){Gm.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",n)}}.bind(this));this.listenerScroll=e.listener,i.addEventListener(e.eventType,this.listenerScroll)}},xg.prototype.initSubmitTracking=function(){i.removeEventListener(jm,this.listenerSubmit),this.getConfig(mg)&&(Gm.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(mg)&&this.trackDomEvent(e,"$mp_submit")}.bind(this),i.addEventListener(jm,this.listenerSubmit))},xg.prototype.initPageLeaveTracking=function(){if(gh.removeEventListener(Mm,this.listenerPageLeaveVisibilitychange),i.removeEventListener(Am,this.listenerPageLeaveLocationchange),i.removeEventListener(Tm,this.listenerPageLoad),this.getConfig(hg)||this.mp.get_config("record_heatmap_data")){Gm.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=Oh.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=gh.body.scrollHeight}.bind(this),i.addEventListener(Tm,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Ih(function(t){if(!this.currentUrlBlocked()){var r=Oh.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(gh.documentElement.clientHeight,i.innerHeight||0),this.previousScrollHeight=gh.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),i.addEventListener(Am,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){gh.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),gh.addEventListener(Mm,this.listenerPageLeaveVisibilitychange)}},xg.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(i.removeEventListener(Om,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},Nh(xg);var Eg=function(e,t){return i[u]&&"function"==typeof i[u].then||(i[u]=new Promise(function(r){e(t,r)}).then(function(){var e=i[u];if(e&&"function"==typeof e.then)return e;throw new Error("targeting failed to load")}).catch(function(e){throw delete i[u],e})),i[u]},kg=Ah("flags"),Sg="flags",_g="context",Cg={};Cg[_g]={};var Og=function(e){this.fetch=i.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};Og.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={}):kg.critical("Feature Flags unavailable: missing minimum required APIs")},Og.prototype.getFullConfig=function(){var e=this.getMpConfig(Sg);return e?Oh.isObject(e)?Oh.extend({},Cg,e):Cg:{}},Og.prototype.getConfig=function(e){return this.getFullConfig()[e]},Og.prototype.isSystemEnabled=function(){return!!this.getMpConfig(Sg)},Og.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return kg.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(Sg);Oh.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(_g);return r[_g]=Oh.extend({},n,e),this.setMpConfig(Sg,r),this.fetchFlags()},Og.prototype.areFlagsReady=function(){return this.isSystemEnabled()||kg.error("Feature Flags not enabled"),!!this.flags},Og.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r=Gh();kg.log("Fetching flags for distinct ID: "+e);var n=Oh.extend({distinct_id:e,device_id:t},this.getConfig(_g)),o=new URLSearchParams;o.set("context",JSON.stringify(n)),o.set("token",this.getMpConfig("token")),o.set("mp_lib","web"),o.set("$lib_version",l.LIB_VERSION);var a=this.getFullApiRoute()+"?"+o.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(i,a,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then(function(e){return this.markFetchComplete(),e.json().then(function(e){var t=e.flags;if(!t)throw new Error("No flags in API response");var n=new Map,i={};Oh.each(t,function(e,t){var r=!1,i=t+":";if(Oh.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(i)&&(r=!0)}),r){var o=this.flags&&this.flags.get(t);o&&n.set(t,o)}else n.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester})},this);var o=e.pending_first_time_events;o&&o.length>0&&Oh.each(o,function(e){var t=e.flag_key,r=function(e,t){return e+":"+t}(t,e.first_time_event_hash);this.activatedFirstTimeEvents[r]||(i[r]={flag_key:t,flag_id:e.flag_id,project_id:e.project_id,first_time_event_hash:e.first_time_event_hash,event_name:e.event_name,property_filters:e.property_filters,pending_variant:e.pending_variant})},this),this.activatedFirstTimeEvents&&Oh.each(this.activatedFirstTimeEvents,function(e,t){var r=function(e){return e.split(":")[0]}(t);e&&!n.has(r)&&this.flags&&this.flags.has(r)&&n.set(r,this.flags.get(r))},this),this.flags=n,this.pendingFirstTimeEvents=i,this._traceparent=r,this._loadTargetingIfNeeded()}.bind(this)).catch(function(e){this.markFetchComplete(),kg.error(e)}.bind(this))}.bind(this)).catch(function(e){this.markFetchComplete(),kg.error(e)}.bind(this)),this.fetchPromise},Og.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):kg.error("Fetch in progress started time not set, cannot mark fetch complete")},Og.prototype._loadTargetingIfNeeded=function(){var e=!1;Oh.each(this.pendingFirstTimeEvents,function(t){t.property_filters&&!Oh.isEmptyObject(t.property_filters)&&(e=!0)}),e&&this.getTargeting().then(function(){kg.log("targeting loaded for property filter evaluation")})},Og.prototype.getTargeting=function(){return Eg(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(e){kg.error("Failed to load targeting: "+e)}.bind(this))},Og.prototype.checkFirstTimeEvents=function(e,t){this.pendingFirstTimeEvents&&!Oh.isEmptyObject(this.pendingFirstTimeEvents)&&(i[u]&&Oh.isFunction(i[u].then)?i[u].then(function(r){this._processFirstTimeEventCheck(e,t,r)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(e,t,null)}.bind(this)):this._processFirstTimeEventCheck(e,t,null))},Og.prototype._processFirstTimeEventCheck=function(e,t,r){Oh.each(this.pendingFirstTimeEvents,function(n,i){if
2(!this.activatedFirstTimeEvents[i]){var o,a=n.flag_key;if(r||!n.property_filters||Oh.isEmptyObject(n.property_filters)){if(r){var s={event_name:n.event_name,property_filters:n.property_filters};o=r.eventMatchesCriteria(e,t,s)}else o={matches:e===n.event_name,error:null};if(o.error)kg.error('Error checking first-time event for flag "'+a+'": '+o.error);else if(o.matches){kg.log('First-time event matched for flag "'+a+'": '+e);var l={key:n.pending_variant.variant_key,value:n.pending_variant.variant_value,experiment_id:n.pending_variant.experiment_id,is_experiment_active:n.pending_variant.is_experiment_active};this.flags.set(a,l),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n.flag_id,n.project_id,n.first_time_event_hash)}}else kg.warn('Skipping event check for "'+a+'" - property filters require targeting library')}},this)},Og.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute()+"/"+e+"/first-time-events"},Og.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),o=Gh(),a=new URLSearchParams;a.set("mp_lib","web"),a.set("$lib_version",l.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+a.toString(),u={distinct_id:n,project_id:t,first_time_event_hash:r};kg.log("Recording first-time event for flag: "+e),this.fetch.call(i,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:o},body:JSON.stringify(u)}).catch(function(t){kg.error("Failed to record first-time event for flag "+e+": "+t)})},Og.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,t)}.bind(this)).catch(function(e){return kg.error(e),t}):new Promise(function(e){kg.critical("Feature Flags not initialized"),e(t)})},Og.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return kg.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(kg.log('No flag found: "'+e+'"'),t)},Og.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return kg.error(e),t})},Og.prototype.getFeatureData=function(e,t){return kg.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},Og.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},Og.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return kg.error(e),t})},Og.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(kg.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},Og.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};"undefined"!==t.experiment_id&&(r.$experiment_id=t.experiment_id),"undefined"!==t.is_experiment_active&&(r.$is_experiment_active=t.is_experiment_active),"undefined"!==t.is_qa_tester&&(r.$is_qa_tester=t.is_qa_tester),this.track("$experiment_started",r)}},Og.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!=typeof Promise&&"undefined"!=typeof Map&&"undefined"!=typeof Set},Nh(Og),Og.prototype.are_flags_ready=Og.prototype.areFlagsReady,Og.prototype.get_variant=Og.prototype.getVariant,Og.prototype.get_variant_sync=Og.prototype.getVariantSync,Og.prototype.get_variant_value=Og.prototype.getVariantValue,Og.prototype.get_variant_value_sync=Og.prototype.getVariantValueSync,Og.prototype.is_enabled=Og.prototype.isEnabled,Og.prototype.is_enabled_sync=Og.prototype.isEnabledSync,Og.prototype.update_context=Og.prototype.updateContext,Og.prototype.get_feature_data=Og.prototype.getFeatureData,Og.prototype.getTargeting=Og.prototype.getTargeting;var Pg=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null};Pg.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return Ph.log("Load recorder check skipped due to disable_persistence config"),Yp.resolve(!1);var e=new rm(em),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(_m(e[r])||e[r].tabId===t)return!0;return!1}).catch(Oh.bind(function(e){return this.reportError("Error checking recording registry",e),!1},this))},Pg.prototype.checkAndStartSessionRecording=function(e,t){if(!i.MutationObserver)return Ph.critical("Browser does not support MutationObserver; skipping session recording"),Yp.resolve();var r=Oh.bind(function(e){return new Yp(Oh.bind(function(t){var r=Ih(Oh.bind(function(){this._recorder=this._recorder||new i[c](this.mixpanelInstance),this._recorder.resumeRecording(e),t()},this));if(Oh.isUndefined(i[c])){var n=this.recorderSrc||this.libBasePath+"__MP_RECORDER_FILENAME__";this.loadExtraBundle(n,r)}else r()},this))},this),n=Oh.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,o=n>0&&100*Math.random()<=n;return e||o?r(!0):this.shouldLoadRecorder().then(Oh.bind(function(e){return e?r(!1):Yp.resolve()},this))},Pg.prototype.isRecording=function(){if(!this._recorder||!Oh.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},Pg.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),n=this.getMpConfig("recording_event_triggers");if(!r&&n){var i=n[e];if(i&&"number"==typeof i.percentage){var o=i.percentage,a=i.property_filters;if(a&&!Oh.isEmptyObject(a)){var s=this.targetingSrc||this.libBasePath+d;Eg(this.loadExtraBundle,s).then(function(r){try{r.eventMatchesCriteria(e,t,{event_name:e,property_filters:a}).matches&&this.checkAndStartSessionRecording(!1,o)}catch(e){Ph.critical("Could not parse recording event trigger properties logic:",e)}}.bind(this)).catch(function(e){Ph.critical("Failed to load targeting library:",e)})}else this.checkAndStartSessionRecording(!1,o)}}},Pg.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():Yp.resolve()},Pg.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():Yp.resolve()},Pg.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():Yp.resolve()}
2,Pg.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},Pg.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e.$mp_replay_id=t),e},Pg.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+Oh.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")})),e},Pg.prototype.getSessionReplayId=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},Pg.prototype.getRecorder=function(){return this._recorder},Nh(Pg);var Tg=function(){};Tg.prototype.create_properties=function(){},Tg.prototype.event_handler=function(){},Tg.prototype.after_track_handler=function(){},Tg.prototype.init=function(e){return this.mp=e,this},Tg.prototype.track=function(e,t,r,n){var i=this,o=Oh.dom_query(e);if(0!==o.length)return Oh.each(o,function(e){Oh.register_event(e,this.override_event,function(e){var o={},a=i.create_properties(r,this),s=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,a,o,!0),s),i.mp.track(t,a,i.track_callback(n,a,o))})},this),!0;Ph.error("The DOM query ("+e+") returned 0 elements")},Tg.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},Tg.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):Oh.extend({},e)};var Ag=function(){this.override_event="click"};Oh.inherit(Ag,Tg),Ag.prototype.create_properties=function(e,t){var r=Ag.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},Ag.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},Ag.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var Ig=function(){this.override_event="submit"};Oh.inherit(Ig,Tg),Ig.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},Ig.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var Ng="$set",Rg="$set_once",jg="$unset",Mg="$add",Dg="$append",Lg="$union",Fg="$remove",Bg={set_action:function(e,t){var r={},n={};return Oh.isObject(e)?Oh.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Ng]=n,r},unset_action:function(e){var t={},r=[];return Oh.isArray(e)||(e=[e]),Oh.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[jg]=r,t},set_once_action:function(e,t){var r={},n={};return Oh.isObject(e)?Oh.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Rg]=n,r},union_action:function(e,t){var r={},n={};return Oh.isObject(e)?Oh.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=Oh.isArray(e)?e:[e])},this):n[e]=Oh.isArray(t)?t:[t],r[Lg]=n,r},append_action:function(e,t){var r={},n={};return Oh.isObject(e)?Oh.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Dg]=n,r},remove_action:function(e,t){var r={},n={};return Oh.isObject(e)?Oh.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Fg]=n,r},delete_action:function(){return{$delete:""}}},Ug=function(){};Oh.extend(Ug.prototype,Bg),Ug.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},Ug.prototype.set=um(function(e,t,r){var n=this.set_action(e,t);return Oh.isObject(e)&&(r=t),this._send_request(n,r)}),Ug.prototype.set_once=um(function(e,t,r){var n=this.set_once_action(e,t);return Oh.isObject(e)&&(r=t),this._send_request(n,r)}),Ug.prototype.unset=um(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),Ug.prototype.union=um(function(e,t,r){Oh.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),Ug.prototype.delete=um(function(e){var t=this.delete_action();return this._send_request(t,e)}),Ug.prototype.remove=um(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),Ug.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=Oh.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},Ug.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},Ug.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Ug.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},Ug.prototype.remove=Ug.prototype.remove,Ug.prototype.set=Ug.prototype.set,Ug.prototype.set_once=Ug.prototype.set_once,Ug.prototype.union=Ug.prototype.union,Ug.prototype.unset=Ug.prototype.unset,Ug.prototype.toString=Ug.prototype.toString;var Vg=function(){};Oh.extend(Vg.prototype,Bg),Vg.prototype._init=function(e){this._mixpanel=e},Vg.prototype.set=lm(function(e,t,r){var n=this.set_action(e,t);return Oh.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[Ng]=Oh.extend({},Oh.info.people_properties(),n[Ng]),this._send_request(n,r)}),Vg.prototype.set_once=lm(function(e,t,r){var n=this.set_once_action(e,t);return Oh.isObject(e)&&(r=t),this._send_request(n,r)}),Vg.prototype.unset=lm(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),Vg.prototype.increment=lm(function(e,t,r){var n={},i={};return Oh.isObject(e)?(Oh.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void Ph.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}},this),r=t):(Oh.isUndefined(t)&&(t=1),i[e]=t),n[Mg]=i,this._send_request(n,r)}),Vg.prototype.append=lm(function(e,t,r){Oh.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),Vg.prototype.remove=lm(function(e,t,r){Oh.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),Vg.prototype.union=lm(function(e,t,r){Oh.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),Vg.prototype.track_charge=lm(function(){Ph.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),Vg.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},Vg.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}Ph.error("mixpanel.people.delete_user() requires you to call identify() first")},Vg.prototype.toString=function(){return this._mixpanel.toString()+".people"},Vg.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),i&&(e.$had_persisted_distinct_id=i);var o=Oh.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),Oh.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),Oh.truncate(o,255))},Vg.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Vg.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},Vg.prototype._enqueue=function(e){Ng in e?this._mixpanel.persistence._add_to_people_queue(Ng,e):Rg in e?this._mixpanel.persistence._add_to_people_queue(Rg,e):jg in e?this._mixpanel.persistence._add_to_people_queue(jg,e):Mg in e?this._mixpanel.persistence._add_to_people_queue(Mg,e):Dg in e?this._mixpanel.persistence._add_to_people_queue(Dg,e):Fg in e?this._mixpanel.persistence._add_to_people_queue(Fg,e):Lg in e?this._mixpanel.persistence._add_to_people_queue(Lg,e):Ph.error("Invalid call to _enqueue():",e)},Vg.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=Oh.extend({},this._mixpanel.persistence.load_queue(e)),a=o;Oh.isUndefined(o)||!Oh.isObject(o)||Oh.isEmptyObject(o)||(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mi
2xpanel.persistence.save(),n&&(a=n(o)),t.call(i,a,function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),Oh.isUndefined(r)||r(t,n)}))},Vg.prototype._flush=function(e,t,r,n,i,o,a){var s=this;this._flush_one_queue(Ng,this.set,e),this._flush_one_queue(Rg,this.set_once,n),this._flush_one_queue(jg,this.unset,o,function(e){return Oh.keys(e)}),this._flush_one_queue(Mg,this.increment,t),this._flush_one_queue(Lg,this.union,i);var l=this._mixpanel.persistence.load_queue(Dg);if(!Oh.isUndefined(l)&&Oh.isArray(l)&&l.length)for(var u,c=function(e,t){0===e&&s._mixpanel.persistence._add_to_people_queue(Dg,u),Oh.isUndefined(r)||r(e,t)},d=l.length-1;d>=0;d--)l=this._mixpanel.persistence.load_queue(Dg),u=l.pop(),s._mixpanel.persistence.save(),Oh.isEmptyObject(u)||s.append(u,c);var f=this._mixpanel.persistence.load_queue(Fg);if(!Oh.isUndefined(f)&&Oh.isArray(f)&&f.length)for(var p,h=function(e,t){0===e&&s._mixpanel.persistence._add_to_people_queue(Fg,p),Oh.isUndefined(a)||a(e,t)},m=f.length-1;m>=0;m--)f=this._mixpanel.persistence.load_queue(Fg),p=f.pop(),s._mixpanel.persistence.save(),Oh.isEmptyObject(p)||s.remove(p,h)},Vg.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},Vg.prototype.set=Vg.prototype.set,Vg.prototype.set_once=Vg.prototype.set_once,Vg.prototype.unset=Vg.prototype.unset,Vg.prototype.increment=Vg.prototype.increment,Vg.prototype.append=Vg.prototype.append,Vg.prototype.remove=Vg.prototype.remove,Vg.prototype.union=Vg.prototype.union,Vg.prototype.track_charge=Vg.prototype.track_charge,Vg.prototype.clear_charges=Vg.prototype.clear_charges,Vg.prototype.delete_user=Vg.prototype.delete_user,Vg.prototype.toString=Vg.prototype.toString;var zg,qg="__mps",Hg="__mpso",Gg="__mpus",$g="__mpa",Wg="__mpap",Zg="__mpr",Qg="__mpu",Yg="$people_distinct_id",Kg="__alias",Jg="__timers",Xg=[qg,Hg,Gg,$g,Wg,Zg,Qg,Yg,Kg,Jg],ey=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(Ph.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&Oh.localStorage.is_supported()?this.storage=Oh.localStorage:this.storage=Oh.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};ey.prototype.properties=function(){var e={};return this.load(),Oh.each(this.props,function(t,r){Oh.include(Xg,r)||(e[r]=t)}),e},ey.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=Oh.extend({},e))}},ey.prototype.upgrade=function(){var e,t;this.storage===Oh.localStorage?(e=Oh.cookie.parse(this.name),Oh.cookie.remove(this.name),Oh.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===Oh.cookie&&(t=Oh.localStorage.parse(this.name),Oh.localStorage.remove(this.name),t&&this.register_once(t))},ey.prototype.save=function(){this.disabled||this.storage.set(this.name,Kh(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},ey.prototype.load_prop=function(e){return this.load(),this.props[e]},ey.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},ey.prototype.clear=function(){this.remove(),this.props={}},ey.prototype.register_once=function(e,t,r){return!!Oh.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),Oh.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},ey.prototype.register=function(e,t){return!!Oh.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),Oh.extend(this.props,e),this.save(),!0)},ey.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},ey.prototype.update_search_keyword=function(e){this.register(Oh.info.searchInfo(e))},ey.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:Oh.info.referringDomain(e)||"$direct"},"")},ey.prototype.get_referrer_info=function(){return Oh.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},ey.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},ey.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},ey.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},ey.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},ey.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},ey.prototype.get_cross_subdomain=function(){return this.cross_subdomain},ey.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},ey.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(Ng),o=this._get_or_create_queue(Rg),a=this._get_or_create_queue(jg),s=this._get_or_create_queue(Mg),l=this._get_or_create_queue(Lg),u=this._get_or_create_queue(Fg,[]),c=this._get_or_create_queue(Dg,[]);r===qg?(Oh.extend(i,n),this._pop_from_people_queue(Mg,n),this._pop_from_people_queue(Lg,n),this._pop_from_people_queue(jg,n)):r===Hg?(Oh.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(jg,n)):r===Gg?Oh.each(n,function(e){Oh.each([i,o,s,l],function(t){e in t&&delete t[e]}),Oh.each(c,function(t){e in t&&delete t[e]}),a[e]=!0}):r===$g?(Oh.each(n,function(e,t){t in i?i[t]+=e:(t in s||(s[t]=0),s[t]+=e)},this),this._pop_from_people_queue(jg,n)):r===Qg?(Oh.each(n,function(e,t){Oh.isArray(e)&&(t in l||(l[t]=[]),Oh.each(e,function(e){Oh.include(l[t],e)||l[t].push(e)}))}),this._pop_from_people_queue(jg,n)):r===Zg?(u.push(n),this._pop_from_people_queue(Dg,n)):r===Wg&&(c.push(n),this._pop_from_people_queue(jg,n)),Ph.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),Ph.log(t),this.save()},ey.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];Oh.isUndefined(r)||Oh.each(t,function(t,n){e===Dg||e===Fg?Oh.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},ey.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},ey.prototype._get_queue_key=function(e){return e===Ng?qg:e===Rg?Hg:e===jg?Gg:e===Mg?$g:e===Dg?Wg:e===Fg?Zg:e===Lg?Qg:void Ph.error("Invalid queue:",e)},ey.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=Oh.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},ey.prototype.set_event_timer=function(e,t){var r=this.load_prop(Jg)||{};r[e]=t,this.props[Jg]=r,this.save()},ey.prototype.remove_event_timer=function(e){var t=(this.load_prop(Jg)||{})[e];return Oh.isUndefined(t)||(delete this.props[Jg][e],this.save()),t};var ty,ry=function(e,t){throw new Error(e+" not available in this build.")},ny="mixpanel",iy="base64",oy="$device:",ay=i.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,sy=!ay&&-1===wh.indexOf("MSIE")&&-1===wh.indexOf("Mozilla"),ly=null;vh.sendBeacon&&(ly=function(){return vh.sendBeacon.apply(vh,arguments)});var uy={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},cy={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:uy,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:iy,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Qh,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Qh,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose
2:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:lh,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:"https://cdn.mxpnl.com/libs/",remote_settings_mode:"disabled"},dy=!1,fy=function(){},py=function(e,t,r){var n,o=r===ny?ty:ty[r];if(o&&0===zg)n=o;else{if(o&&!Oh.isArray(o))return void Ph.error("You have already initialized "+r);n=new fy}if(n._cached_groups={},n._init(e,t,r),n.people=new Vg,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var a=Oh.info.campaignParams(null),s={},u=!1;Oh.each(a,function(e,t){s["initial_"+t]=e,e&&(u=!0)}),u&&n.people.set_once(s)}l.DEBUG=l.DEBUG||n.get_config("debug");var c=0===zg?"module":"snippet";return i.dispatchEvent(new i.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:c,token:e,name:r,info:Oh.info}})),!Oh.isUndefined(o)&&Oh.isArray(o)&&(n._execute_array.call(n.people,o.people),n._execute_array(o)),n};fy.prototype.init=function(e,t,r){if(Oh.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==ny){var n=py(e,t,r);return ty[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},fy.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if("api_payload_format"in t||(t.api_host||cy.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json"),this.hooks={},this.set_config(Oh.extend({},cy,n,t,{name:r,token:e,callback_fn:(r===ny?r:ny+"."+r)+"._jsc"})),this.recorderManager=new Pg({mixpanelInstance:this,getConfigFunc:Oh.bind(this.get_config,this),setConfigFunc:Oh.bind(this.set_config,this),getTabIdFunc:Oh.bind(this.get_tab_id,this),reportErrorFunc:Oh.bind(this.report_error,this),getDistinctIdFunc:Oh.bind(this.get_distinct_id,this),recorderSrc:this.get_config("recorder_src"),targetingSrc:this.get_config("targeting_src"),libBasePath:this.get_config("lib_base_path"),loadExtraBundle:ry}),this._jsc=Qh,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(Oh.localStorage.is_supported(!0)&&ay){if(this.init_batchers(),ly&&i.addEventListener){var o=Oh.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);i.addEventListener("pagehide",function(e){e.persisted&&o()}),i.addEventListener("visibilitychange",function(){"hidden"===gh.visibilityState&&o()})}}else this._batch_requests=!1,Ph.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),Oh.each(this.get_batcher_configs(),function(e){Ph.log("Clearing batch queue "+e.queue_key),Oh.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new ey(this.config),this.unpersisted_superprops={},this._gdpr_init();var a=Oh.UUID();this.get_distinct_id()||this.register_once({distinct_id:oy+a,$device_id:a},""),this.flags=new Og({getFullApiRoute:Oh.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:Oh.bind(this.get_config,this),setConfigFunc:Oh.bind(this.set_config,this),getPropertyFunc:Oh.bind(this.get_property,this),trackingFunc:Oh.bind(this.track,this),loadExtraBundle:ry,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+d}),this.flags.init(),this.flags=this.flags,this.autocapture=new xg(this),this.autocapture.init(),this._init_tab_id();var s=this.get_config("remote_settings_mode");this.__session_recording_init_promise="strict"===s||"fallback"===s?this._fetch_remote_settings(s).then(Oh.bind(function(){return this._check_and_start_session_recording()},this)):this._check_and_start_session_recording()},fy.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))Ph.log("Tab ID initialization skipped due to disable_persistence config");
2else if(Oh.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;!Oh.sessionStorage.get(r)&&Oh.sessionStorage.get(t)||Oh.sessionStorage.set(t,"$tab-"+Oh.UUID()),Oh.sessionStorage.set(r,"1"),this.tab_id=Oh.sessionStorage.get(t),i.addEventListener("beforeunload",function(){Oh.sessionStorage.remove(r)})}catch(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},fy.prototype.get_tab_id=function(){return this.tab_id||null},fy.prototype._check_and_start_session_recording=sm(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),fy.prototype._start_recording_on_event=function(e,t){return this.recorderManager.startRecordingOnEvent(e,t)},fy.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},fy.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},fy.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},fy.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},fy.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},fy.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},fy.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},fy.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},fy.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},fy.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=Oh.info.campaignParams(null);Oh.each(e,function(e,t){this.unregister(t)}.bind(this))}},fy.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(gh.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(Oh.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(gh.referrer)},fy.prototype._dom_loaded=function(){Oh.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||Oh.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},fy.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!dy)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},fy.prototype._prepare_callback=function(e,t){if(Oh.isUndefined(e))return null;if(ay)return function(r){e(r,t)};var r=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(i){delete r[n],e(i,t)},i},fy.prototype._send_request=function(e,t,r,n){var i=!0;if(sy)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},a=null;n||!Oh.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=Oh.extend(o,r||{}),ay||(r.method="GET");var s="POST"===r.method,l=ly&&s&&"sendbeacon"===r.transport.toLowerCase(),u=r.verbose;t.verbose&&(u=!0),this.get_config("test")&&(t.test=1),u&&(t.verbose=1),this.get_config("img")&&(t.img=1),ay||(n?t.callback=n:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),s&&(a="data="+encodeURIComponent(t.data),delete t.data),Oh.extend(t,this.get_config("api_extra_query_params")),e+="?"+Oh.HTTPBuildQuery(t);var c=this;if("img"in t){var d=gh.createElement("img");d.src=e,gh.body.appendChild(d)}else if(l){try{i=ly(e,a)}catch(e){c.report_error(e),i=!1}try{n&&n(i?1:0)}catch(e){c.report_error(e)}}else if(ay)try{var f=new XMLHttpRequest;f.open(r.method,e,!0);var p=this.get_config("xhr_headers");if(s&&(p["Content-Type"]="application/x-www-form-urlencoded"),Oh.each(p,function(e,t){f.setRequestHeader(t,e)}
2),r.timeout_ms&&void 0!==f.timeout){f.timeout=r.timeout_ms;var h=(new Date).getTime()}f.withCredentials=!0,f.onreadystatechange=function(){var e;if(4===f.readyState)if(200===f.status){if(n)if(u){var t;try{t=Oh.JSONDecode(f.responseText)}catch(e){if(c.report_error(e),!r.ignore_json_errors)return;t=f.responseText}n(t)}else n(Number(f.responseText))}else if(e=f.timeout&&!f.status&&(new Date).getTime()-h>=f.timeout?"timeout":"Bad HTTP status: "+f.status+" "+f.statusText,c.report_error(e),n)if(u){var i=f.responseHeaders||{};n({status:0,httpStatusCode:f.status,error:e,retryAfter:i["Retry-After"]})}else n(0)},f.send(a)}catch(e){c.report_error(e),i=!1}else{var m=gh.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var v=gh.getElementsByTagName("script")[0];v.parentNode.insertBefore(m,v)}return i},fy.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&t.set_config({record_sessions_percent:0})};if(!i.AbortController)return Ph.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var n=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,o={$lib_version:l.LIB_VERSION,mp_lib:"web",sdk_config:"1"},a=n+"?"+Oh.HTTPBuildQuery(o),s=new AbortController,u=setTimeout(function(){s.abort()},500),c={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:s.signal};return i.fetch(a,c).then(function(e){return clearTimeout(u),e.ok?e.json():(Ph.critical("Network response was not ok"),void r())}).then(function(e){if(e&&e.sdk_config&&e.sdk_config.config){var n=e.sdk_config.config,i={};Oh.each(n,function(e,t){cy.hasOwnProperty(t)&&(i[t]=e)}),Oh.isEmptyObject(i)?(Ph.critical("No valid config keys found in remote settings."),r()):t.set_config(i)}else r()}).catch(function(e){clearTimeout(u),Ph.critical("Failed to fetch remote settings",e),r()})},fy.prototype._execute_array=function(e){var t,r=[],n=[],i=[];Oh.each(e,function(e){e&&(t=e[0],Oh.isArray(t)?i.push(e):"function"==typeof e?e.call(this):Oh.isArray(e)&&"alias"===t?r.push(e):Oh.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){Oh.each(e,function(e){if(Oh.isArray(e[0])){var r=t;Oh.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},fy.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},fy.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},fy.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=Oh.bind(function(e){return new Sm(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:Oh.bind(function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:Oh.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:Oh.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},fy.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,Oh.each(this.request_batchers,function(e){e.start()}))},fy.prototype.stop_batch_senders=function(){this._batch_requests=!1,Oh.each(this.request_batchers,function(e){e.stop(),e.clear()})},fy.prototype.push=function(e){this._execute_array([e])},fy.prototype.enable=function(e){var t,r,n,i;if(void 0===e)this._flags.disable_all_events=!1;else{for(t={},r=[],n=0;n<e.length;n++)t[e[n]]=!0;for(i=0;i<this.__disabled_events.length;i++)t[this.__disabled_events[i]]||r.push(this.__disabled_events[i]);this.__disabled_events=r}},fy.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},fy.prototype._encode_data_for_request=function(e){var t=Kh(e);return this.get_config("api_payload_format")===iy&&(t=Oh.base64Encode(t)),{data:t}},fy.prototype._track_or_batch=function(e,t){var r=Oh.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,a=e.send_request_options||{};t=t||Qh;var s=!0,l=Oh.bind(function(){return a.skip_hooks||(r=this._run_hook("before_send_"+e.type,r))&&(r=r[0]),r?(Ph.log("MIXPANEL REQUEST:"),Ph.log(r),this._send_request(n,this._encode_data_for_request(r),a,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):l()}):s=l(),s&&r},fy.prototype.track=sm(function(e,t,r,n){var i;if(!r||!r.skip_hooks){if(null===(i=this._run_hook("before_track",e,t)))return;e=i[0],t=i[1]}n||"function"!=typeof r||(n=r,r=null);var o=(r=r||{}).transport;o&&(r.transport=o);var a=r.send_immediately;if("function"!=typeof n&&(n=Qh),Oh.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=Oh.extend({},t)).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!Oh.isUndefined(s)){var l=(new Date).getTime()-s;t.$duration=parseFloat((l/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?Oh.info.marketingParams():{};t=Oh.extend({},Oh.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var c=this.get_config("property_blacklist");Oh.isArray(c)?Oh.each(c,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+c),this._start_recording_on_event(e,t);var d={event:e,properties:t};return i=this._track_or_batch({type:"events",data:d,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:a,send_request_options:r},n),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}n(0)}}),fy.prototype.set_group=sm(function(e,t,r){Oh.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),fy.prototype.add_group=sm(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this.people.union(e,t,r)}),fy.prototype.remove_group=sm(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)}),fy.prototype.track_with_groups=sm(function(e,t,r,n){var i=Oh.extend({},t||{});return Oh.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),fy.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},fy.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]}
2,fy.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||((n=new Ug)._init(this,e,t),this._cached_groups[r]=n),n},fy.prototype.track_pageview=sm(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=Oh.extend(Oh.info.mpPageViewProperties(),Oh.info.campaignParams(),Oh.info.clickParams()),i=Oh.extend({},n,e);return this.track(r,i)}),fy.prototype.track_links=function(){return this._track_dom.call(this,Ag,arguments)},fy.prototype.track_forms=function(){return this._track_dom.call(this,Ig,arguments)},fy.prototype.time_event=function(e){Oh.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var hy={persistent:!0},my=function(e){var t;return t=Oh.isObject(e)?e:Oh.isUndefined(e)?{}:{days:e},Oh.extend({},hy,t)};fy.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0],t=r[1];var n=my(t);n.persistent?this.persistence.register(e,n.days):Oh.extend(this.unpersisted_superprops,e)}},fy.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1],r=n[2];var i=my(r);i.persistent?this.persistence.register_once(e,t,i.days):(void 0===t&&(t="None"),Oh.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},fy.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],t=r[1],(t=my(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},fy.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},fy.prototype.identify=function(e,t,r,n,i,o,a,s){var l=this._run_hook("before_identify",e);if(null===l)return-1;e=l[0];var u=this.get_distinct_id();if(e&&u!==e){if("string"==typeof e&&0===e.indexOf(oy))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var c=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:c},"")}e!==u&&e!==this.get_property(Kg)&&(this.unregister(Kg),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,a,s),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags()},fy.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=Oh.UUID();this.register_once({distinct_id:oy+e,$device_id:e},""),this._check_and_start_session_recording()},fy.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},fy.prototype.alias=function(e,t){if(e===this.get_property(Yg))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return Oh.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Kg,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},fy.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},fy.prototype.set_config=function(e){Oh.isObject(e)&&(Oh.extend(this.config,e),e.batch_size&&Oh.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),l.DEBUG=l.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),Oh.isObject(e.hooks)&&(this.hooks={},Oh.each(e.hooks,function(e,t){if(Oh.isFunction(e))this.hooks[t]=[e];else if(Oh.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)Oh.isFunction(e[r])||Ph.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else Ph.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this)))},fy.prototype.get_config=function(e){return this.config[e]}
2,fy.prototype._run_hook=function(e){var t=fh.call(arguments,1);return Oh.each(this.hooks[e],function(r){if(null===t)return null;var n=r.apply(this,t);void 0===n?(this.report_error(e+" hook did not return a valid value"),t=null):(Oh.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))},this),t},fy.prototype.get_property=function(e){return this.persistence.load_prop([e])},fy.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},fy.prototype.toString=function(){var e=this.get_config("name");return e!==ny&&(e=ny+"."+e),e},fy.prototype._event_is_disabled=function(e){return Oh.isBlockedUA(wh)||this._flags.disable_all_events||Oh.include(this.__disabled_events,e)},fy.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&Oh.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!Oh.cookie.get("mp_optout")||(Oh.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},fy.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},fy.prototype._gdpr_call_func=function(e,t){return t=Oh.extend({track:Oh.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),Oh.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},fy.prototype.opt_in_tracking=function(e){e=Oh.extend({enable_persistence:!0},e),this._gdpr_call_func(nm,e),this._gdpr_update_persistence(e)},fy.prototype.opt_out_tracking=function(e){(e=Oh.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(im,e),this._gdpr_update_persistence(e)},fy.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(om,e)},fy.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(am,e)},fy.prototype.clear_opt_in_out_tracking=function(e){e=Oh.extend({enable_persistence:!0},e),this._gdpr_call_func(cm,e),this._gdpr_update_persistence(e)},fy.prototype.report_error=function(e,t){Ph.error.apply(Ph.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){Ph.error(t)}},fy.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},fy.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(-1!==(r=this.hooks[e].indexOf(t))?this.hooks[e].splice(r,1):Ph.log("remove_hook failed. Matching hook was not found"))},fy.prototype.init=fy.prototype.init,fy.prototype.reset=fy.prototype.reset,fy.prototype.enable=fy.prototype.enable,fy.prototype.disable=fy.prototype.disable,fy.prototype.time_event=fy.prototype.time_event,fy.prototype.track=fy.prototype.track,fy.prototype.track_links=fy.prototype.track_links,fy.prototype.track_forms=fy.prototype.track_forms,fy.prototype.track_pageview=fy.prototype.track_pageview,fy.prototype.register=fy.prototype.register,fy.prototype.register_once=fy.prototype.register_once,fy.prototype.unregister=fy.prototype.unregister,fy.prototype.identify=fy.prototype.identify,fy.prototype.alias=fy.prototype.alias,fy.prototype.name_tag=fy.prototype.name_tag,fy.prototype.set_config=fy.prototype.set_config,fy.prototype.get_config=fy.prototype.get_config,fy.prototype.get_api_host=fy.prototype.get_api_host,fy.prototype.get_property=fy.prototype.get_property,fy.prototype.get_distinct_id=fy.prototype.get_distinct_id,fy.prototype.toString=fy.prototype.toString,fy.prototype.opt_out_tracking=fy.prototype.opt_out_tracking,fy.prototype.opt_in_tracking=fy.prototype.opt_in_tracking,fy.prototype.has_opted_out_tracking=fy.prototype.has_opted_out_tracking,fy.prototype.has_opted_in_tracking=fy.prototype.has_opted_in_tracking,fy.prototype.clear_opt_in_out_tracking=fy.prototype.clear_opt_in_out_tracking,fy.prototype.get_group=fy.prototype.get_group,fy.prototype.set_group=fy.prototype.set_group,fy.prototype.add_group=fy.prototype.add_group,fy.prototype.remove_group=fy.prototype.remove_group,fy.prototype.add_hook=fy.prototype.add_hook,fy.prototype.remove_hook=fy.prototype.remove_hook,fy.prototype.track_with_groups=fy.prototype.track_with_groups,fy.prototype.start_batch_senders=fy.prototype.start_batch_senders,fy.prototype.stop_batch_senders=fy.prototype.stop_batch_senders,fy.prototype.start_session_recording=fy.prototype.start_session_recording,fy.prototype.stop_session_recording=fy.prototype.stop_session_recording,fy.prototype.pause_session_recording=fy.prototype.pause_session_recording,fy.prototype.resume_session_recording=fy.prototype.resume_session_recording,fy.prototype.get_session_recording_properties=fy.prototype.get_session_recording_properties,fy.prototype.get_session_replay_url=fy.prototype.get_session_replay_url,fy.prototype.get_tab_id=fy.prototype.get_tab_id,fy.prototype.DEFAULT_API_ROUTES=uy,fy.prototype.__get_recorder=fy.prototype.__get_recorder,fy.prototype.__get_recording_init_promise=fy.prototype.__get_recording_init_promise,ey.prototype.properties=ey.prototype.properties,ey.prototype.update_search_keyword=ey.prototype.update_search_keyword,ey.prototype.update_referrer_info=ey.prototype.update_referrer_info,ey.prototype.get_cross_subdomain=ey.prototype.get_cross_subdomain,ey.prototype.clear=ey.prototype.clear;var vy={},gy=(ry=function(e,t){t()},zg=0,(ty=new fy).init=function(e,t,r){if(r)return ty[r]||(ty[r]=vy[r]=py(e,t,r),ty[r]._loaded()),ty[r];var n=ty;vy[ny]?n=vy[ny]:e&&((n=py(e,t,ny))._loaded(),vy[ny]=n),ty=n,1===zg&&(i[ny]=ty),Oh.each(vy,function(e,t){t!==ny&&(ty[t]=e)}),ty._=Oh},ty.init(),function(){function e(){e.done||(e.done=!0,dy=!0,sy=!1,Oh.each(vy,function(e){e._dom_loaded()}))}if(gh.addEventListener)"complete"===gh.readyState?e():gh.addEventListener("DOMContentLoaded",e,!1);else if(gh.attachEvent){gh.attachEvent("onreadystatechange",e);var t=!1;try{t=null===i.frameElement}catch(e){}gh.documentElement.doScroll&&t&&function t(){try{gh.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}Oh.register_event(i,"load",e,!0)}(),ty),yy=r(71213),by=r(92023),wy=r(25311);function xy(e){return xy="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},xy(e)}function Ey(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 ky(e,t,r){return(t=function(e){var t=function(e){if("object"!=xy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=xy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xy(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}gy.init("4077c6d6522e7e72dfaf50696da28458",{api_host:"https://api-eu.mixpanel.com",debug:!1,opt_out_tracking_by_default:!0,track_pageview:!1,store_google:!0,persistence:"localStorage"}),gy.register({site:"web_app",platform:"web"});var Sy=function(){(0,yy.o)("Mixpanel")?gy.opt_in_tracking():a.remove("mp_4077c6d6522e7e72dfaf50696da28458_mixpanel")};function _y(e){try{(0,wy.ni)("screen_view",e).catch(function(e){})}catch(e){}return gy.track("page_viewed",e)}window.addEventListener("UC_UI_INITIALIZED",function(){Sy()}),window.addEventListener("UC_UI_CMP_EVENT",function(e){["SAVE","ACCEPT_ALL","DENY_ALL"].includes(e.detail.type)&&Sy()});var Cy={track:function(e,t){try{(0,wy.ni)(e,t).catch(function(e){})}catch(e){}return gy.track(e,t)},identify:function(e,t){try{(0,wy.Ao)(e,t).catch(function(e){})}catch(e){}gy.identify(e),gy.people.set(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?Ey(Object(r),!0).forEach(function(t){ky(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ey(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({$email:e},t))},register:function(e){return gy.register(e)},reset:function(){return gy.reset()}};function Oy(e){var t=(0,by.GG)(e);t&&(gy.register({email_validation_moment:t}),gy.people.set({email_validation_moment:t}))}function Py(e){gy.register({rewards_structure_ui:e})}function Ty(e){gy.people.set(e)}function Ay(e,t){return gy.track(e,t,{transport:"sendBeacon"})}},21687:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(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 o(e,t,r){return(t=function(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{V:function(){return a}}),r(63517),r(74413),r(62285),r(20779);var a=function(e){var t=e.eventName,r=e.userData,n=e.context;try{if("undefined"==typeof window||!window.dataLayer)throw new Error("dataLayer not available");window.dataLayer.push(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({event:t,user_data:r},n))}catch(e){console.error("Failed to push event to dataLayer: ".concat(e.message))}}},25311:function(e,t,r){"use strict";r.d(t,{Ao:function(){return br},H$:function(){return wr},ni:function(){return yr}}),r(63517),r(68983),r(74413),r(62285),r(20779);const n=function(e){const t=[];let r=0;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);i<128?t[r++]=i:i<2048?(t[r++]=i>>6|192,t[r++]=63&i|128):55296==(64512&i)&&n+1<e.length&&56320==(64512&e.charCodeAt(n+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++n)),t[r++]=i>>18|240,t[r++]=i>>12&63|128,t[r++]=i>>6&63|128,t[r++]=63&i|128):(t[r++]=i>>12|224,t[r++]=i>>6&63|128,t[r++]=63&i|128)}return t},i={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const r=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let t=0;t<e.length;t+=3){const i=e[t],o=t+1<e.length,a=o?e[t+1]:0,s=t+2<e.length,l=s?e[t+2]:0,u=i>>2,c=(3&i)<<4|a>>4;let d=(15&a)<<2|l>>6,f=63&l;s||(f=64,o||(d=64)),n.push(r[u],r[c],r[d],r[f])}return n.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(n(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let r=0,n=0;for(;r<e.length;){const i=e[r++];if(i<128)t[n++]=String.fromCharCode(i);else if(i>191&&i<224){const o=e[r++];t[n++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){const o=((7&i)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536;t[n++]=String.fromCharCode(55296+(o>>10)),t[n++]=String.fromCharCode(56320+(1023&o))}else{const o=e[r++],a=e[r++];t[n++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&a)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const r=t?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let t=0;t<e.length;){const i=r[e.charAt(t++)],a=t<e.length?r[e.charAt(t)]:0;++t;const s=t<e.length?r[e.charAt(t)]:64;++t;const l=t<e.length?r[e.charAt(t)]:64;if(++t,null==i||null==a||null==s||null==l)throw new o;const u=i<<2|a>>4;if(n.push(u),64!==s){const e=a<<4&240|s>>2;if(n.push(e),64!==l){const e=s<<6&192|l;n.push(e)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};
2class o extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const a=function(e){return function(e){const t=n(e);return i.encodeByteArray(t,!0)}(e).replace(/\./g,"")},s=()=>{try{return function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if("undefined"==typeof process)return;const e="MISSING_ENV_VAR".__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"==typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}const t=e&&function(e){try{return i.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null}(e[1]);return t&&JSON.parse(t)})()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}},l=()=>s()?.config;class u{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,r))}}}function c(){const e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}function d(){try{return"object"==typeof indexedDB}catch(e){return!1}}function f(){return new Promise((e,t)=>{try{let r=!0;const n="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(n);i.onsuccess=()=>{i.result.close(),r||self.indexedDB.deleteDatabase(n),e(!0)},i.onupgradeneeded=()=>{r=!1},i.onerror=()=>{t(i.error?.message||"")}}catch(e){t(e)}})}function p(){return!("undefined"==typeof navigator||!navigator.cookieEnabled)}
2class h extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,h.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,m.prototype.create)}}class m{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){const r=t[0]||{},n=`${this.service}/${e}`,i=this.errors[e],o=i?function(e,t){return e.replace(v,(e,r)=>{const n=t[r];return null!=n?String(n):`<${r}?>`})}(i,r):"Error",a=`${this.serviceName}: ${o} (${n}).`;return new h(n,a,r)}}const v=/\{\$([^}]+)}/g;function g(e,t){if(e===t)return!0;const r=Object.keys(e),n=Object.keys(t);for(const i of r){if(!n.includes(i))return!1;const r=e[i],o=t[i];if(y(r)&&y(o)){if(!g(r,o))return!1}else if(r!==o)return!1}for(const e of n)if(!r.includes(e))return!1;return!0}function y(e){return null!==e&&"object"==typeof e}function b(e,t=1e3,r=2){const n=t*Math.pow(r,e),i=Math.round(.5*n*(Math.random()-.5)*2);return Math.min(144e5,n+i)}function w(e){return e&&e._delegate?e._delegate:e}class x{constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const E="[DEFAULT]";class k{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new u;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const r=this.getOrInitializeService({instanceIdentifier:t});r&&e.resolve(r)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){const t=this.normalizeInstanceIdentifier(e?.identifier),r=e?.optional??!1;if(!this.isInitialized(t)&&!this.shouldAutoInitialize()){if(r)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:t})}catch(e){if(r)return null;throw e}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:E})}catch(e){}for(const[e,t]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:r});t.resolve(e)}catch(e){}}}}clearInstance(e=E){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=E){return this.instances.has(e)}getOptions(e=E){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const n=this.getOrInitializeService({instanceIdentifier:r,options:t});for(const[e,t]of this.instancesDeferred.entries())r===this.normalizeInstanceIdentifier(e)&&t.resolve(n);return n}onInit(e,t){const r=this.normalizeInstanceIdentifier(t),n=this.onInitCallbacks.get(r)??new Set;n.add(e),this.onInitCallbacks.set(r,n);const i=this.instances.get(r);return i&&e(i,r),()=>{n.delete(e)}}invokeOnInitCallbacks(e,t){const r=this.onInitCallbacks.get(t);if(r)for(const n of r)try{n(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:(n=e,n===E?void 0:n),options:t}),this.instances.set(e,r),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}var n;return r||null}normalizeInstanceIdentifier(e=E){return this.component?this.component.multipleInstances?e:E:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class S{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new k(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}const _=[];var C;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.E
2RROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(C||(C={}));const O={debug:C.DEBUG,verbose:C.VERBOSE,info:C.INFO,warn:C.WARN,error:C.ERROR,silent:C.SILENT},P=C.INFO,T={[C.DEBUG]:"log",[C.VERBOSE]:"log",[C.INFO]:"info",[C.WARN]:"warn",[C.ERROR]:"error"},A=(e,t,...r)=>{if(t<e.logLevel)return;const n=(new Date).toISOString(),i=T[t];if(!i)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[i](`[${n}] ${e.name}:`,...r)};class I{constructor(e){this.name=e,this._logLevel=P,this._logHandler=A,this._userLogHandler=null,_.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in C))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?O[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,C.DEBUG,...e),this._logHandler(this,C.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,C.VERBOSE,...e),this._logHandler(this,C.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,C.INFO,...e),this._logHandler(this,C.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,C.WARN,...e),this._logHandler(this,C.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,C.ERROR,...e),this._logHandler(this,C.ERROR,...e)}}let N,R;const j=new WeakMap,M=new WeakMap,D=new WeakMap,L=new WeakMap,F=new WeakMap;let B={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return M.get(e);if("objectStoreNames"===t)return e.objectStoreNames||D.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return V(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function U(e){return"function"==typeof e?(t=e)!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(R||(R=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(z(this),e),V(j.get(this))}:function(...e){return V(t.apply(z(this),e))}:function(e,...r){const n=t.call(z(this),e,...r);return D.set(n,e.sort?e.sort():[e]),V(n)}:(e instanceof IDBTransaction&&function(e){if(M.has(e))return;const t=new Promise((t,r)=>{const n=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),n()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});M.set(e,t)}(e),r=e,(N||(N=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(e=>r instanceof e)?new Proxy(e,B):e);var t,r}function V(e){if(e instanceof IDBRequest)return function(e){const t=new Promise((t,r)=>{const n=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(V(e.result)),n()},o=()=>{r(e.error),n()};e.addEventListener("success",i),e.addEventListener("error",o)});return t.then(t=>{t instanceof IDBCursor&&j.set(t,e)}).catch(()=>{}),F.set(t,e),t}(e);if(L.has(e))return L.get(e);const t=U(e);return t!==e&&(L.set(e,t),F.set(t,e)),t}const z=e=>F.get(e);function q(e,t,{blocked:r,upgrade:n,blocking:i,terminated:o}={}){const a=indexedDB.open(e,t),s=V(a);return n&&a.addEventListener("upgradeneeded",e=>{n(V(a.result),e.oldVersion,e.newVersion,V(a.transaction),e)}),r&&a.addEventListener("blocked",e=>r(e.oldVersion,e.newVersion,e)),s.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}const H=["get","getKey","getAll","getAllKeys","count"],G=["put","add","delete","clear"],$=new Map;function W(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if($.get(t))return $.get(t);
2const r=t.replace(/FromIndex$/,""),n=t!==r,i=G.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!i&&!H.includes(r))return;const o=async function(e,...t){const o=this.transaction(e,i?"readwrite":"readonly");let a=o.store;return n&&(a=a.index(t.shift())),(await Promise.all([a[r](...t),i&&o.done]))[0]};return $.set(t,o),o}var Z;Z=B,B={...Z,get:(e,t,r)=>W(e,t)||Z.get(e,t,r),has:(e,t)=>!!W(e,t)||Z.has(e,t)};class Q{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(function(e){const t=e.getComponent();return"VERSION"===t?.type}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null}).filter(e=>e).join(" ")}}const Y="@firebase/app",K="0.14.11",J=new I("@firebase/app"),X="@firebase/app-compat",ee="@firebase/analytics-compat",te="@firebase/analytics",re="@firebase/app-check-compat",ne="@firebase/app-check",ie="@firebase/auth",oe="@firebase/auth-compat",ae="@firebase/database",se="@firebase/data-connect",le="@firebase/database-compat",ue="@firebase/functions",ce="@firebase/functions-compat",de="@firebase/installations",fe="@firebase/installations-compat",pe="@firebase/messaging",he="@firebase/messaging-compat",me="@firebase/performance",ve="@firebase/performance-compat",ge="@firebase/remote-config",ye="@firebase/remote-config-compat",be="@firebase/storage",we="@firebase/storage-compat",xe="@firebase/firestore",Ee="@firebase/ai",ke="@firebase/firestore-compat",Se="firebase",_e="[DEFAULT]",Ce={[Y]:"fire-core",[X]:"fire-core-compat",[te]:"fire-analytics",[ee]:"fire-analytics-compat",[ne]:"fire-app-check",[re]:"fire-app-check-compat",[ie]:"fire-auth",[oe]:"fire-auth-compat",[ae]:"fire-rtdb",[se]:"fire-data-connect",[le]:"fire-rtdb-compat",[ue]:"fire-fn",[ce]:"fire-fn-compat",[de]:"fire-iid",[fe]:"fire-iid-compat",[pe]:"fire-fcm",[he]:"fire-fcm-compat",[me]:"fire-perf",[ve]:"fire-perf-compat",[ge]:"fire-rc",[ye]:"fire-rc-compat",[be]:"fire-gcs",[we]:"fire-gcs-compat",[xe]:"fire-fst",[ke]:"fire-fst-compat",[Ee]:"fire-vertex","fire-js":"fire-js",[Se]:"fire-js-all"}
vendor: 1,115 bytes, line 2
2,Oe=new Map,Pe=new Map,Te=new Map;function Ae(e,t){try{e.container.addComponent(t)}catch(r){J.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,r)}}function Ie(e){const t=e.name;if(Te.has(t))return J.debug(`There were multiple attempts to register component ${t}.`),!1;Te.set(t,e);for(const t of Oe.values())Ae(t,e);for(const t of Pe.values())Ae(t,e);return!0}function Ne(e,t){const r=e.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),e.container.getProvider(t)}const Re=new m("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
2d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class je{constructor(e,t,r){this._isDeleted=!1,this._options={...e},this._config={...t},this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new x("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw Re.create("app-deleted",{appName:this._name})}}function Me(e,t={}){let r=e;"object"!=typeof t&&(t={name:t});const n={name:_e,automaticDataCollectionEnabled:!0,...t},i=n.name;if("string"!=typeof i||!i)throw Re.create("bad-app-name",{appName:String(i)});if(r||(r=l()),!r)throw Re.create("no-options");const o=Oe.get(i);if(o){if(g(r,o.options)&&g(n,o.config))return o;throw Re.create("duplicate-app",{appName:i})}const a=new S(i);for(const e of Te.values())a.addComponent(e);const s=new je(r,n,a);return Oe.set(i,s),s}function De(e=_e){const t=Oe.get(e);if(!t&&e===_e&&l())return Me();if(!t)throw Re.create("no-app",{appName:e});return t}function Le(){return Array.from(Oe.values())}function Fe(e,t,r){let n=Ce[e]??e;r&&(n+=`-${r}`);const i=n.match(/\s|\//),o=t.match(/\s|\//);if(i||o){const e=[`Unable to register library "${n}" with version "${t}":`];return i&&e.push(`library name "${n}" contains illegal characters (whitespace or "/")`),i&&o&&e.push("and"),o&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void J.warn(e.join(" "))}Ie(new x(`${n}-version`,()=>({library:n,version:t}),"VERSION"))}const Be="firebase-heartbeat-store";let Ue=null;function Ve(){return Ue||(Ue=q("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(Be)}catch(e){console.warn(e)}}}).catch(e=>{throw Re.create("idb-open",{originalErrorMessage:e.message})})),Ue}async function ze(e,t){try{const r=(await Ve()).transaction(Be,"readwrite"),n=r.objectStore(Be);await n.put(t,qe(e)),await r.done}catch(e){if(e instanceof h)J.warn(e.message);else{const t=Re.create("idb-set",{originalErrorMessage:e?.message});J.warn(t.message)}}}function qe(e){return`${e.name}!${e.options.appId}`}class He{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new $e(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){try{const e=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),t=Ge();if(null==this._heartbeatsCache?.heartbeats&&(this._heartbeatsCache=await this._heartbeatsCachePromise,null==this._heartbeatsCache?.heartbeats))return;if(this._heartbeatsCache.lastSentHeartbeatDate===t||this._heartbeatsCache.heartbeats.some(e=>e.date===t))return;if(this._heartbeatsCache.heartbeats.push({date:t,agent:e}),this._heartbeatsCache.heartbeats.length>30){const e=function(e){if(0===e.length)return-1;let t=0,r=e[0].date;for(let n=1;n<e.length;n++)e[n].date<r&&(r=e[n].date,t=n);return t}(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){J.warn(e)}}async getHeartbeatsHeader(){try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==this._heartbeatsCache?.heartbeats||0===this._heartbeatsCache.heartbeats.length)return"";const e=Ge(),{heartbeatsToSend:t,unsentEntries:r}=function(e,t=1024){const r=[];let n=e.slice();for(const i of e){const e=r.find(e=>e.agent===i.agent);if(e){if(e.dates.push(i.date),We(r)>t){e.dates.pop();break}}else if(r.push({agent:i.agent,dates:[i.date]}),We(r)>t){r.pop();break}n=n.slice(1)}return{heartbeatsToSend:r,unsentEntries:n}}(this._heartbeatsCache.heartbeats),n=a(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),n}catch(e){return J.warn(e),""}}}function Ge(){return(new Date).toISOString().substring(0,10)}class $e{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!d()&&f().then(()=>!0).catch(()=>!1)}async read(){if(await this._canUseIndexedDBPromise){const e=await async function(e){try{const t=(await Ve()).transaction(Be),r=await t.objectStore(Be).get(qe(e));return await t.done,r}catch(e){if(e instanceof h)J.warn(e.message);else{const t=Re.create("idb-get",{originalErrorMessage:e?.message});J.warn(t.message)}}}(this.app);return e?.heartbeats?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){if(await this._canUseIndexedDBPromise){const t=await this.read();return ze(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){if(await this._canUseIndexedDBPromise){const t=await this.read();return ze(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:[...t.heartbeats,...e.heartbeats]})}}}function We(e){return a(JSON.stringify({version:2,heartbeats:e})).length}Ie(new x("platform-logger",e=>new Q(e),"PRIVATE")),Ie(new x("heartbeat",e=>new He(e),"PRIVATE")),Fe(Y,K,""),Fe(Y,K,"esm2020"),Fe("fire-js","");const Ze="@firebase/installations",Qe="0.6.21",Ye=`w:${Qe}`,Ke="FIS_v2",Je=new m("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function Xe(e){return e instanceof h&&e.code.includes("request-failed")}function et({projectId:e}){return`https://firebaseinstallations.googleapis.com/v1/projects/${e}/installations`}
2function tt(e){return{token:e.token,requestStatus:2,expiresIn:(t=e.expiresIn,Number(t.replace("s","000"))),creationTime:Date.now()};var t}async function rt(e,t){const r=(await t.json()).error;return Je.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function nt({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}async function it(e){const t=await e();return t.status>=500&&t.status<600?e():t}function ot(e){return new Promise(t=>{setTimeout(t,e)})}const at=/^[cdef][\w-]{21}$/;function st(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const t=function(e){var t;return(t=e,btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_")).substr(0,22)}(e);return at.test(t)?t:""}catch{return""}}function lt(e){return`${e.appName}!${e.appId}`}const ut=new Map;function ct(e,t){const r=lt(e);dt(r,t),function(e,t){const r=(!ft&&"BroadcastChannel"in self&&(ft=new BroadcastChannel("[Firebase] FID Change"),ft.onmessage=e=>{dt(e.data.key,e.data.fid)}),ft);r&&r.postMessage({key:e,fid:t}),0===ut.size&&ft&&(ft.close(),ft=null)}(r,t)}function dt(e,t){const r=ut.get(e);if(r)for(const e of r)e(t)}let ft=null;const pt="firebase-installations-store";let ht=null;function mt(){return ht||(ht=q("firebase-installations-database",1,{upgrade:(e,t)=>{0===t&&e.createObjectStore(pt)}})),ht}async function vt(e,t){const r=lt(e),n=(await mt()).transaction(pt,"readwrite"),i=n.objectStore(pt),o=await i.get(r);return await i.put(t,r),await n.done,o&&o.fid===t.fid||ct(e,t.fid),t}async function gt(e){const t=lt(e),r=(await mt()).transaction(pt,"readwrite");await r.objectStore(pt).delete(t),await r.done}async function yt(e,t){const r=lt(e),n=(await mt()).transaction(pt,"readwrite"),i=n.objectStore(pt),o=await i.get(r),a=t(o);return void 0===a?await i.delete(r):await i.put(a,r),await n.done,!a||o&&o.fid===a.fid||ct(e,a.fid),a}async function bt(e){let t;const r=await yt(e.appConfig,r=>{const n=function(e){return Et(e||{fid:st(),registrationStatus:0})}(r),i=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(Je.create("app-offline"))};const r={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},n=async function(e,t){try{const r=await async function({appConfig:e,heartbeatServiceProvider:t},{fid:r}){const n=et(e),i=nt(e),o=t.getImmediate({optional:!0});if(o){const e=await o.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}const a={fid:r,authVersion:Ke,appId:e.appId,sdkVersion:Ye},s={method:"POST",headers:i,body:JSON.stringify(a)},l=await it(()=>fetch(n,s));if(l.ok){const e=await l.json();return{fid:e.fid||r,registrationStatus:2,refreshToken:e.refreshToken,authToken:tt(e.authToken)}}throw await rt("Create Installation",l)}(e,t);return vt(e.appConfig,r)}catch(r){throw Xe(r)&&409===r.customData.serverCode?await gt(e.appConfig):await vt(e.appConfig,{fid:t.fid,registrationStatus:0}),r}}(e,r);return{installationEntry:r,registrationPromise:n}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:wt(e)}:{installationEntry:t}}(e,n);return t=i.registrationPromise,i.installationEntry});return""===r.fid?{installationEntry:await t}:{installationEntry:r,registrationPromise:t}}async function wt(e){let t=await xt(e.appConfig);for(;1===t.registrationStatus;)await ot(100),t=await xt(e.appConfig);if(0===t.registrationStatus){const{installationEntry:t,registrationPromise:r}=await bt(e);return r||t}return t}function xt(e){return yt(e,e=>{if(!e)throw Je.create("installation-not-found");return Et(e)})}function Et(e){return 1===(t=e).registrationStatus&&t.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t}async function kt({appConfig:e,heartbeatServiceProvider:t},r){const n=function(e,{fid:t}){return`${et(e)}/${t}/authTokens:generate`}(e,r),i=function(e,{refreshToken:t}){const r=nt(e);return r.append("Authorization",function(e){return`${Ke} ${e}`}(t)),r}(e,r),o=t.getImmediate({optional:!0});if(o){const e=await o.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}const a={installation:{sdkVersion:Ye,appId:e.appId}},s={method:"POST",headers:i,body:JSON.stringify(a)},l=await it(()=>fetch(n,s));if(l.ok)return tt(await l.json());throw await rt("Generate Auth Token",l)}async function St(e,t=!1){let r;const n=await yt(e.appConfig,n=>{if(!Ct(n))throw Je.create("not-registered");const i=n.authToken;if(!t&&(2===(o=i).requestStatus&&!function(e){const t=Date.now();
2return t<e.creationTime||e.creationTime+e.expiresIn<t+36e5}(o)))return n;var o;if(1===i.requestStatus)return r=async function(e,t){let r=await _t(e.appConfig);for(;1===r.authToken.requestStatus;)await ot(100),r=await _t(e.appConfig);const n=r.authToken;return 0===n.requestStatus?St(e,t):n}(e,t),n;{if(!navigator.onLine)throw Je.create("app-offline");const t=function(e){return{...e,authToken:{requestStatus:1,requestTime:Date.now()}}}(n);return r=async function(e,t){try{const r=await kt(e,t),n={...t,authToken:r};return await vt(e.appConfig,n),r}catch(r){if(!Xe(r)||401!==r.customData.serverCode&&404!==r.customData.serverCode){const r={...t,authToken:{requestStatus:0}};await vt(e.appConfig,r)}else await gt(e.appConfig);throw r}}(e,t),t}});return r?await r:n.authToken}function _t(e){return yt(e,e=>{if(!Ct(e))throw Je.create("not-registered");return 1===(t=e.authToken).requestStatus&&t.requestTime+1e4<Date.now()?{...e,authToken:{requestStatus:0}}:e;var t})}function Ct(e){return void 0!==e&&2===e.registrationStatus}function Ot(e){return Je.create("missing-app-config-values",{valueName:e})}const Pt="installations";Ie(new x(Pt,e=>{const t=e.getProvider("app").getImmediate(),r=function(e){if(!e||!e.options)throw Ot("App Configuration");if(!e.name)throw Ot("App Name");const t=["projectId","apiKey","appId"];for(const r of t)if(!e.options[r])throw Ot(r);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t);return{app:t,appConfig:r,heartbeatServiceProvider:Ne(t,"heartbeat"),_delete:()=>Promise.resolve()}},"PUBLIC")),Ie(new x("installations-internal",e=>{const t=Ne(e.getProvider("app").getImmediate(),Pt).getImmediate();return{getId:()=>async function(e){const t=e,{installationEntry:r,registrationPromise:n}=await bt(t);return n?n.catch(console.error):St(t).catch(console.error),r.fid}(t),getToken:e=>async function(e,t=!1){const r=e;return await async function(e){const{registrationPromise:t}=await bt(e);t&&await t}(r),(await St(r,t)).token}(t,e)}},"PRIVATE")),Fe(Ze,Qe),Fe(Ze,Qe,"esm2020");const Tt="analytics",At="https://www.googletagmanager.com/gtag/js",It=new I("@firebase/analytics"),Nt=new m("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-initialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."});function Rt(e){if(!e.startsWith(At)){const t=Nt.create("invalid-gtag-resource",{gtagURL:e});return It.warn(t.message),""}return e}function jt(e){return Promise.all(e.map(e=>e.catch(e=>e)))}const Mt=new class{constructor(e={},t=1e3){this.throttleMetadata=e,this.intervalMillis=t}getThrottleMetadata(e){return this.throttleMetadata[e]}setThrottleMetadata(e,t){this.throttleMetadata[e]=t}deleteThrottleMetadata(e){delete this.throttleMetadata[e]}};function Dt(e){return new Headers({Accept:"application/json","x-goog-api-key":e})}async function Lt(e,t=Mt,r){const{appId:n,apiKey:i,measurementId:o}=e.options;if(!n)throw Nt.create("no-app-id");if(!i){if(o)return{measurementId:o,appId:n};throw Nt.create("no-api-key")}const a=t.getThrottleMetadata(n)||{backoffCount:0,throttleEndTimeMillis:Date.now()},s=new Bt;return setTimeout(async()=>{s.abort()},void 0!==r?r:6e4),Ft({appId:n,apiKey:i,measurementId:o},a,s,t)}
2async function Ft(e,{throttleEndTimeMillis:t,backoffCount:r},n,i=Mt){const{appId:o,measurementId:a}=e;try{await function(e,t){return new Promise((r,n)=>{const i=Math.max(t-Date.now(),0),o=setTimeout(r,i);e.addEventListener(()=>{clearTimeout(o),n(Nt.create("fetch-throttle",{throttleEndTimeMillis:t}))})})}(n,t)}catch(e){if(a)return It.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${a} provided in the "measurementId" field in the local Firebase config. [${e?.message}]`),{appId:o,measurementId:a};throw e}try{const t=await async function(e){const{appId:t,apiKey:r}=e,n={method:"GET",headers:Dt(r)},i="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig".replace("{app-id}",t),o=await fetch(i,n);if(200!==o.status&&304!==o.status){let e="";try{const t=await o.json();t.error?.message&&(e=t.error.message)}catch(e){}throw Nt.create("config-fetch-failed",{httpStatus:o.status,responseMessage:e})}return o.json()}(e);return i.deleteThrottleMetadata(o),t}catch(t){const s=t;if(!function(e){if(!(e instanceof h&&e.customData))return!1;const t=Number(e.customData.httpStatus);return 429===t||500===t||503===t||504===t}(s)){if(i.deleteThrottleMetadata(o),a)return It.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${a} provided in the "measurementId" field in the local Firebase config. [${s?.message}]`),{appId:o,measurementId:a};throw t}const l=503===Number(s?.customData?.httpStatus)?b(r,i.intervalMillis,30):b(r,i.intervalMillis),u={throttleEndTimeMillis:Date.now()+l,backoffCount:r+1};return i.setThrottleMetadata(o,u),It.debug(`Calling attemptFetch again in ${l} millis`),Ft(e,u,n,i)}}class Bt{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}abort(){this.listeners.forEach(e=>e())}}let Ut,Vt;async function zt(e,t,r,n,i,o,a){const s=Lt(e);s.then(t=>{r[t.measurementId]=t.appId,e.options.measurementId&&t.measurementId!==e.options.measurementId&&It.warn(`The measurement ID in the local Firebase config (${e.options.measurementId}) does not match the measurement ID fetched from the server (${t.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(e=>It.error(e)),t.push(s);const l=async function(){if(!d())return It.warn(Nt.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{await f()}catch(e){return It.warn(Nt.create("indexeddb-unavailable",{errorInfo:e?.toString()}).message),!1}return!0}().then(e=>e?n.getId():void 0),[u,c]=await Promise.all([s,l]);(function(e){const t=window.document.getElementsByTagName("script");for(const r of Object.values(t))if(r.src&&r.src.includes(At)&&r.src.includes(e))return r;return null})(o)||function(e,t){const r=function(e,t){let r;return window.trustedTypes&&(r=window.trustedTypes.createPolicy("firebase-js-sdk-policy",t)),r}(0,{createScriptURL:Rt}),n=document.createElement("script"),i=`${At}?l=${e}&id=${t}`;n.src=r?r?.createScriptURL(i):i,n.async=!0,document.head.appendChild(n)}(o,u.measurementId),Vt&&(i("consent","default",Vt),Vt=void 0),i("js",new Date);const p=a?.config??{};return p.origin="firebase",p.update=!0,null!=c&&(p.firebase_id=c),i("config",u.measurementId,p),Ut&&(i("set",Ut),Ut=void 0),u.measurementId}class qt{constructor(e){this.app=e}_delete(){return delete Ht[this.app.options.appId],Promise.resolve()}}let Ht={},Gt=[];const $t={};let Wt,Zt,Qt="dataLayer",Yt=!1;function Kt(e,t,r){!function(){const e=[];if(c()&&e.push("This is a browser extension environment."),p()||e.push("Cookies are not available."),e.length>0){const t=e.map((e,t)=>`(${t+1}) ${e}`).join(" "),r=Nt.create("invalid-analytics-context",{errorInfo:t});It.warn(r.message)}}();const n=e.options.appId;if(!n)throw Nt.create("no-app-id");if(!e.options.apiKey){if(!e.options.measurementId)throw Nt.create("no-api-key");It.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${e.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=Ht[n])throw Nt.create("already-exists",{id:n});if(!Yt){!function(e){let t=[];Array.isArray(window[e])?t=window[e]:window[e]=t}(Qt);const{wrappedGtag:e,gtagCore:t}=function(e,t,r,n,i){let o=function(...e){window[n].push(arguments)};return window[i]&&"function"==typeof window[i]&&(o=window[i]),window[i]=function(e,t,r,n){return async function(i,...o){try{if("event"===i){const[n,i]=o;await async function(e,t,r,n,i){try{let o=[];if(i&&i.send_to){let e=i.send_to;Array.isArray(e)||(e=[e]);const n=await jt(r);for(const r of e){const e=n.find(e=>e.measurementId===r),i=e&&t[e.appId];if(!i){o=[];break}o.push(i)}}0===o.length&&(o=Object.values(t)),await Promise.all(o),e("event",n,i||{})}catch(e){It.error(e)}}(e,t,r,n,i)}else if("config"===i){const[i,a]=o;await async function(e,t,r,n,i,o){const a=n[i];try{if(a)await t[a];else{const e=(await jt(r)).find(e=>e.measurementId===i);e&&await t[e.appId]}}catch(e){It.error(e)}e("config",i,o)}(e,t,r,n,i,a)}else if("consent"===i){const[t,r]=o;e("consent",t,r)}else if("get"===i){const[t,r,n]=o;e("get",t,r,n)}else if("set"===i){const[t]=o;e("set",t)}else e(i,...o)}catch(e){It.error(e)}}}(o,e,t,r),{gtagCore:o,wrappedGtag:window[i]}}(Ht,Gt,$t,Qt,"gtag");Zt=e,Wt=t,Yt=!0}return Ht[n]=zt(e,Gt,$t,t,Wt,Qt,r),new qt(e)}function Jt(e=De()){const t=Ne(e=w(e),Tt);return t.isInitialized()?t.getImmediate():function(e,t={}){const r=Ne(e,Tt);if(r.isInitialized()){const e=r.getImmediate();if(g(t,r.getOptions()))return e;throw Nt.create("already-initialized")}return r.initialize({options:t})}(e)}async function Xt(){if(c())return!1;if(!p())return!1;if(!d())return!1;try{return await f()}catch(e){return!1}}function er(e,t,r){e=w(e),async function(e,t,r,n){if(n&&n.global)return e("set",{user_id:r}),Promise.resolve();e("config",await t,{update:!0,user_id:r})}(Zt,Ht[e.app.options.appId],t,r).catch(e=>It.error(e))}function tr(e,t,r){e=w(e),async function(e,t,r,n){if(n&&n.global){const t={};for(const e of Object.keys(r))t[`user_properties.${e}`]=r[e];return e("set",t),Promise.resolve()}e("config",await t,{update:!0,user_properties:r})}(Zt,Ht[e.app.options.appId],t,r).catch(e=>It.error(e))}function rr(e,t,r,n){e=w(e),async function(e,t,r,n,i){if(i&&i.global)e("event",r,n);else{const i=await t;e("event",r,{...n,send_to:i})}}(Zt,Ht[e.app.options.appId],t,r,n).catch(e=>It.error(e))}const nr="@firebase/analytics",ir="0.10.21";function or(e){return or="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},or(e)}function ar(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 sr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?ar(Object(r),!0).forEach(function(t){lr(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ar(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function lr(e,t,r){return(t=function(e){var t=function(e){if("object"!=or(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=or(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==or(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ur(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var l=n&&n.prototype instanceof s?n:s,u=Object.create(l.prototype);return cr(u,"_invoke",function(r,n,i){var o,s,l,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return o=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&u&&!i&&t<c.length;t++){var i,o=c[t],p=f.p,h=o[2];r>3?(i=h===n)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=r<2&&p<o[1])?(s=0,f.v=n,f.n=o[1]):p<h&&(i=r<3||o[0]>n||n>h)&&(o[4]=r,o[5]=n,f.n=h,s=0))}if(i||r>1)return a;throw d=!0,n}return function(i,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(r,i,o),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(cr(t={},n,function(){return this}),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,cr(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,cr(d,"constructor",u),cr(u,"constructor",l),l.displayName="GeneratorFunction",cr(u,i,"GeneratorFunction"),cr(d),cr(d,i,"Generator"),cr(d,n,function(){return this}),cr(d,"toString",function(){return"[object Generator]"}),(ur=function(){return{w:o,m:f}})()}function cr(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}cr=function(e,t,r,n){function o(t,r){cr(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},cr(e,t,r,n)}function dr(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function fr(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){dr(o,n,i,a,s,"next",e)}function s(e){dr(o,n,i,a,s,"throw",e)}a(void 0)})}}Ie(new x(Tt,(e,{options:t})=>Kt(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),t),"PUBLIC")),Ie(new x("analytics-internal",function(e){try{const t=e.getProvider(Tt).getImmediate();return{logEvent:(e,r,n)=>rr(t,e,r,n),setUserProperties:(e,r)=>tr(t,e,r)}}catch(e){throw Nt.create("interop-component-reg-failed",{reason:e})}},"PRIVATE")),Fe(nr,ir),Fe(nr,ir,"esm2020"),Fe("firebase","12.12.1","app");var pr=null,hr=null,mr={apiKey:"AIzaSyA99FkMcdajNpxGGgmD_h338607wbkbojs",authDomain:"prograd-app-1360c.firebaseapp.com",projectId:"prograd-app-1360c",storageBucket:"prograd-app-1360c.firebasestorage.app",messagingSenderId:"1062307792140",appId:"1:1062307792140:web:787d30b5df81a28eaa3529",measurementId:"G-920BJWRZ8Y"},vr=function(){return Boolean(mr.apiKey&&mr.authDomain&&mr.projectId&&mr.appId&&mr.measurementId)},gr=function(){var e=fr(ur().m(function e(){return ur().w(function(e){for(;;)switch(e.n){case 0:if(!hr){e.n=1;break}return e.a(2,hr);case 1:if("undefined"!=typeof window&&vr()){e.n=2;break}return console.error("Firebase Analytics is not available"),e.a(2,null);case 2:return e.n=3,Xt();case 3:if(e.v){e.n=4;break}return console.error("Firebase Analytics is not supported"),e.a(2,null);case 4:return pr=null!=pr?pr:Le().length>0?De():Me(mr),hr=Jt(pr),console.log("Firebase Analytics instance:",hr),e.a(2,hr)}},e)}));return function(){return e.apply(this,arguments)}}(),yr=function(){var e=fr(ur().m(function e(t,r){var n;return ur().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,gr();case 1:if(n=e.v){e.n=2;break}throw console.error("Firebase Analytics is not available"),new Error("Firebase Analytics is not available");case 2:console.log("Logging Google Analytics event: ".concat(t," with params: ").concat(JSON.stringify(r))),rr(n,t,r);case 3:return e.a(2)}},e)}));return function(t,r){return e.apply(this,arguments)}}(),br=function(){var e=fr(ur().m(function e(t,r){var n;return ur().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,gr();case 1:if(n=e.v){e.n=2;break}throw console.error("Firebase Analytics is not available"),new Error("Firebase Analytics is not available");case 2:console.log("Identifying Google Analytics user: ".concat(t," with props: ").concat(JSON.stringify(r))),null!=r&&r.database_id&&er(n,r.database_id);case 3:return e.a(2)}},e)}));return function(t,r){return e.apply(this,arguments)}}(),wr=function(){var e=fr(ur().m(function e(t){var r,n;return ur().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t.gclid||t.gbraid){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,gr();case 2:if(r=e.v){e.n=3;break}return e.a(2);case 3:tr(r,sr(sr({},t.gclid&&{gclid:t.gclid}),t.gbraid&&{gbraid:t.gbraid})),rr(r,"campaign_details",sr(sr(sr({},t.gclid&&{gclid:t.gclid}),t.gbraid&&{gbraid:t.gbraid}),{},{source:"google",medium:"cpc"})),e.n=5;break;case 4:e.p=4,n=e.v,console.error("[Firebase] logGoogleAdsClickIds failed:",n);case 5:return e.a(2)}},e,null,[[1,4]])}));return function(t){return e.apply(this,arguments)}}()},55757:function(e,t,r){"use strict";r.d(t,{x:function(){return x}}),r(63517);var n,i={},o=function(){if(n)return i;n=1,i.parse=function(e,r){if("string"!=typeof e)throw new TypeError("argument str must be a string");var n={},i=e.length;if(i<2)return n;var o=r&&r.decode||c,a=0,s=0,f=0;do{if(-1===(s=e.indexOf("=",a)))break;if(-1===(f=e.indexOf(";",a)))f=i;else if(s>f){a=e.lastIndexOf(";",s-1)+1;continue}var p=l(e,a,s),h=u(e,s,p),m=e.slice(p,h);if(!t.call(n,m)){var v=l(e,s+1,f),g=u(e,f,v);34===e.charCodeAt(v)&&34===e.charCodeAt(g-1)&&(v++,g--);var y=e.slice(v,g);
2n[m]=d(y,o)}a=f+1}while(a<i);return n},i.serialize=function(t,n,i){var l=i&&i.encode||encodeURIComponent;if("function"!=typeof l)throw new TypeError("option encode is invalid");if(!r.test(t))throw new TypeError("argument name is invalid");var u=l(n);if(!o.test(u))throw new TypeError("argument val is invalid");var c=t+"="+u;if(!i)return c;if(null!=i.maxAge){var d=Math.floor(i.maxAge);if(!isFinite(d))throw new TypeError("option maxAge is invalid");c+="; Max-Age="+d}if(i.domain){if(!a.test(i.domain))throw new TypeError("option domain is invalid");c+="; Domain="+i.domain}if(i.path){if(!s.test(i.path))throw new TypeError("option path is invalid");c+="; Path="+i.path}if(i.expires){var f=i.expires;if(!function(t){return"[object Date]"===e.call(t)}(f)||isNaN(f.valueOf()))throw new TypeError("option expires is invalid");c+="; Expires="+f.toUTCString()}if(i.httpOnly&&(c+="; HttpOnly"),i.secure&&(c+="; Secure"),i.partitioned&&(c+="; Partitioned"),i.priority)switch("string"==typeof i.priority?i.priority.toLowerCase():i.priority){case"low":c+="; Priority=Low";break;case"medium":c+="; Priority=Medium";break;case"high":c+="; Priority=High";break;
2default:throw new TypeError("option priority is invalid")}if(i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;case"none":c+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return c};var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,r=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,o=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/;function l(e,t,r){do{var n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<r);return r}function u(e,t,r){for(;t>r;){var n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return r}function c(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function d(e,t){try{return t(e)}catch(t){return e}}return i}();function a(e,t={}){const r=function(e){return e&&"j"===e[0]&&":"===e[1]?e.substr(2):e}(e);if(!t.doNotParse)try{return JSON.parse(r)}catch(e){}return e}var s=r(27378);const l=s.createContext(new class{constructor(e,t={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const e=this.cookies;this.cookies=o.parse(document.cookie),this._checkChanges(e)};const r="undefined"==typeof document?"":document.cookie;this.cookies=function(e){return"string"==typeof e?o.parse(e):"object"==typeof e&&null!==e?e:{}}(e||r),this.defaultSetOptions=t,this.HAS_DOCUMENT_COOKIE=function(){const e="undefined"==typeof global?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return"boolean"==typeof e?e:"object"==typeof document&&"string"==typeof document.cookie}()}_emitChange(e){for(let t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)}_checkChanges(e){new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach(t=>{e[t]!==this.cookies[t]&&this._emitChange({name:t,value:a(this.cookies[t])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(e,t={}){return t.doNotUpdate||this.update(),a(this.cookies[e],t)}getAll(e={}){e.doNotUpdate||this.update();const t={};for(let r in this.cookies)t[r]=a(this.cookies[r],e);return t}set(e,t,r){r=r?Object.assign(Object.assign({},this.defaultSetOptions),r):this.defaultSetOptions;const n="string"==typeof t?t:JSON.stringify(t);this.cookies=Object.assign(Object.assign({},this.cookies),{[e]:n}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=o.serialize(e,n,r)),this._emitChange({name:e,value:t,options:r})}remove(e,t){const r=t=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=o.serialize(e,"",r)),this._emitChange({name:e,value:void 0,options:t})}addChangeListener(e){this.changeListeners.push(e),this.HAS_DOCUMENT_COOKIE&&1===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(e){const t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1),this.HAS_DOCUMENT_COOKIE&&0===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}),{Provider:u,Consumer:c}=l;s.Component,"function"==typeof SuppressedError&&SuppressedError;var d,f,p,h,m={exports:{}},v={};function g(){return f||(f=1,m.exports=function(){if(d)return v;d=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:switch(e=e.type){case l:case u:case n:case o:case i:case f:return e;default:switch(e=e&&e.$$typeof){case s:case c:case m:case h:case a:return e;default:return d}}case r:return d}}}function E(e){return x(e)===u}return v.AsyncMode=l,v.ConcurrentMode=u,v.ContextConsumer=s,v.ContextProvider=a,v.Element=t,v.ForwardRef=c,v.Fragment=n,v.Lazy=m,v.Memo=h,v.Portal=r,v.Profiler=o,v.StrictMode=i,v.Suspense=f,v.isAsyncMode=function(e){return E(e)||x(e)===l},v.isConcurrentMode=E,v.isContextConsumer=function(e){return x(e)===s},v.isContextProvider=function(e){return x(e)===a},v.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},v.isForwardRef=function(e){return x(e)===c},v.isFragment=function(e){return x(e)===n},v.isLazy=function(e){return x(e)===m},v.isMemo=function(e){return x(e)===h},v.isPortal=function(e){return x(e)===r},v.isProfiler=function(e){return x(e)===o},v.isStrictMode=function(e){return x(e)===i},v.isSuspense=function(e){return x(e)===f},v.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===u||e===o||e===i||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},v.typeOf=x,v}()),m.exports}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}!function(){if(h)return p;h=1;var e=g(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0}
2,r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function o(r){return e.isMemo(r)?n:i[r.$$typeof]||t}i[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[e.Memo]=n;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;p=function e(t,n,i){if("string"!=typeof n){if(d){var f=c(n);f&&f!==d&&e(t,f,i)}var p=s(n);l&&(p=p.concat(l(n)));for(var h=o(t),m=o(n),v=0;v<p.length;++v){var g=p[v];if(!(r[g]||i&&i[g]||m&&m[g]||h&&h[g])){var y=u(n,g);try{a(t,g,y)}catch(e){}}}}return t}}();var b="7KZPSH3ZFC";function w(e){return e.split(".")[2]}function x(){var e,t,r,n,i=(r=function(e,t){const r=(0,s.useContext)(l);if(!r)throw new Error("Missing <CookiesProvider>");const n=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[i,o]=(0,s.useState)(()=>r.getAll(n));"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement&&(0,s.useLayoutEffect)(()=>{function t(){const t=r.getAll(n);(function(e,t,r){if(!e)return!0;for(let n of e)if(t[n]!==r[n])return!0;return!1})(e||null,t,i)&&o(t)}return r.addChangeListener(t),()=>{r.removeChangeListener(t)}},[r,i]);const a=(0,s.useMemo)(()=>r.set.bind(r),[r]),u=(0,s.useMemo)(()=>r.remove.bind(r),[r]),c=(0,s.useMemo)(()=>r.update.bind(r),[r]);return[i,a,u,c]}(),n=1,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(r,n)||function(e,t){if(e){if("string"==typeof e)return y(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)?y(e,t):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return{clientId:i._ga?(e=i._ga,t=e.split("."),[t[2],t[3]].join(".")):"",sessionId:i["_ga_".concat(b)]?w(i["_ga_".concat(b)]):""}}},56295:function(e,t,r){"use strict";r.d(t,{C:function(){return v}}),r(63517);var n,i,o,a=r(27378),s=r(94621),l=r(31786),u=(0,s.ZP)(n||(i=["\n mutation SaveGoogleAnalyticsIdsMutation($input: SaveGoogleAnalyticsIdsInput!) {\n saveGoogleAnalyticsIds(input: $input)\n }\n"],o||(o=i.slice(0)),n=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(o)}})))),c=r(55757);function d(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var l=n&&n.prototype instanceof s?n:s,u=Object.create(l.prototype);return f(u,"_invoke",function(r,n,i){var o,s,l,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return o=t,s=0,l=e,f.n=r,a}};function p(r,n){for(s=r,l=n,t=0;!d&&u&&!i&&t<c.length;t++){var i,o=c[t],p=f.p,h=o[2];r>3?(i=h===n)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=r<2&&p<o[1])?(s=0,f.v=n,f.n=o[1]):p<h&&(i=r<3||o[0]>n||n>h)&&(o[4]=r,o[5]=n,f.n=h,s=0))}if(i||r>1)return a;throw d=!0,n}return function(i,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:r.call(n,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(r,i,o),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;
2var c=[][n]?t(t([][n]())):(f(t={},n,function(){return this}),t),p=u.prototype=s.prototype=Object.create(c);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,f(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return l.prototype=u,f(p,"constructor",u),f(u,"constructor",l),l.displayName="GeneratorFunction",f(u,i,"GeneratorFunction"),f(p),f(p,i,"Generator"),f(p,n,function(){return this}),f(p,"toString",function(){return"[object Generator]"}),(d=function(){return{w:o,m:h}})()}function f(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}f=function(e,t,r,n){function o(t,r){f(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},f(e,t,r,n)}function p(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function h(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){p(o,n,i,a,s,"next",e)}function s(e){p(o,n,i,a,s,"throw",e)}a(void 0)})}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function v(){var e=(0,c.x)(),t=e.clientId,r=e.sessionId,n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(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)?m(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,l.useMutation)(u,void 0),1)[0];return{persistGoogleAnalyticsIds:(0,a.useCallback)(h(d().m(function e(){var i;return d().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t||r){e.n=1;break}return e.a(2,!0);case 1:return e.p=1,e.n=2,n({variables:{input:{gaClientId:t||void 0,gaSessionId:r||void 0}}});case 2:e.n=4;break;case 3:e.p=3,i=e.v,console.error("Failed to persist Google Analytics ids",i);case 4:return e.a(2,!0)}},e,null,[[1,3]])})),[t,n,r])}}},14252:function(e,t,r){"use strict";r.d(t,{$X:function(){return P},Ah:function(){return _},co:function(){return n.co},b8:function(){return o.b8},$S:function(){return s},P6:function(){return o.P6},qr:function(){return n.qr},k1:function(){return n.k1},lf:function(){return o.lf},_V:function(){return o._V},kH:function(){return o.kH},TS:function(){return o.TS},QT:function(){return o.QT},VG:function(){return o.VG},f_:function(){return o.f_},pX:function(){return o.pX},ox:function(){return o.ox},tH:function(){return o.tH},jw:function(){return o.jw},bd:function(){return o.bd},Jr:function(){return o.Jr},zV:function(){return o.zV},As:function(){return o.As},i$:function(){return o.i$},_o:function(){return o._o},XY:function(){return o.XY},Ht:function(){return o.Ht},kA:function(){return o.kA},PL:function(){return o.PL},fw:function(){return o.fw},m8:function(){return o.m8},Nv:function(){return o.Nv},Dg:function(){return o.Dg},TA:function(){return o.TA},d_:function(){return o.d_},d$:function(){return o.d$},v4:function(){return o.v4},LC:function(){return o.LC},Sn:function(){return L},yx:function(){return T}});var n=r(11039),i=r(87259),o=r(79644),a=function(e){return"".concat("pg_outbound_count_").concat(e)};function s(e){if(!e)return null;try{var t,r=a(e),n=Number.parseInt(null!==(t=window.localStorage.getItem(r))&&void 0!==t?t:"0",10),i=Number.isFinite(n)&&n>0?n+1:1;return window.localStorage.setItem(r,String(i)),i}catch(e){return console.error("Failed to read/increment outbound counter",e),null}}r(63517),r(74413),r(62285),r(20779);var l=r(98889),u=r(27378),c=r(61159),d=r(3673),f=r(63002);function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}
2finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(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)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r(92243),r(69108),r(57637),r(13951),r(45436),r(91117),r(41698),r(55294),r(90216),r(76999),r(91067),r(2126),r(18924),r(67699),r(18007),r(71675),r(99830),r(54370),r(5153),r(67506),r(80566),r(50870),r(75397),r(18829),r(95498),r(51429),r(61842),r(25376),r(38333),r(95864),r(63990),r(94565),r(95073),r(65204),r(47072),r(98391),r(24338),r(22727),r(2002),r(19647);var m={"/":"home","/earn":"games","/earn/[categorySlug]":"games","/cashout":"cashout","/more":"more","/products/[id]":"product_detail","/quests":"quests","/quest/[id]":"quest_detail","/quests/[id]/outcome":"quest_outcome","/surveys":"surveys","/prograd-survey/[id]":"survey_detail","/reward/[id]":"reward_detail","/redemptions/[id]":"redemption","/wallet":"wallet","/profile":"profile","/bonus-rewards":"bonus_rewards","/leaderboard/[id]":"leaderboard","/leaderboard/user/[userId]/round/[roundId]":"leaderboard_user","/login":"sign_in","/onboarding":"onboarding","/forgot-password":"forgot_password","/reset-password":"reset_password","/verify":"verify_email","/verify/[code]":"verify_email"},v={games:"games",surveys:"surveys",quests:"quests",player_quests:"quests",leaderboard:"leaderboard",jeopardy:"jeopardy",bonus_rewards:"bonus_rewards",cashout:"cashout",wallet:"wallet"},g=new Set(["product_detail","reward_detail","points_boost_detail","redemption"]),y=Object.keys(m);function b(e){var t=e.split("/");return y.find(function(e){var r=e.split("/");return r.length===t.length&&r.every(function(e,r){return e.startsWith("[")&&e.endsWith("]")?t[r].length>0:e===t[r]})})}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=b(e);if(r)return r;for(var n=new Map,i=0,o=Object.entries(t);i<o.length;i++){var a=p(o[i],2),s=a[0],l=a[1];"string"==typeof l&&l.length>0&&n.set(l,s)}return 0===n.size?e:e.split("/").map(function(e){var t=n.get(e);return t?"[".concat(t,"]"):e}).join("/")}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(g.has(e)){var r=t.id;return"string"==typeof r&&r.length>0?r:void 0}}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function k(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 S(e,t,r){return(t=function(e){var t=function(e){if("object"!=E(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==E(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _=function(e){var t,r=e.children,n=(0,l.useLocation)(),i=(0,c.oj)(),a=null===(t=i.data)||void 0===t?void 0:t.myOnboardingQuestionnaire,s=(0,d.a_)({status:null==a?void 0:a.status,loading:i.loading,hasData:Boolean(i.data),error:i.error}),p=(0,u.useRef)(null),h=(0,u.useRef)(null),g=(0,u.useRef)(!1);return(0,u.useEffect)(function(){var e=n.pathname;if(e&&e!==p.current){var t=function(e){var t=b(e);if(!t)return{};var r=e.split("/"),n=t.split("/"),i={};return n.forEach(function(e,t){if(e.startsWith("[")&&e.endsWith("]")){var n=e.slice(1,-1),o=r[t];o&&(i[n]=o)}}),i}(e),r=function(e){var t,r=w(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return null!==(t=m[r])&&void 0!==t?t:"other"}(e,t),l=(0,f.j_)({pageName:r,blocking:s,queryFailed:Boolean(i.error),hasResult:Boolean(i.data),arm:null==a?void 0:a.arm});if(!l.hold){var u,c=w(e,t),d=g.current?"in_app":"cold_start";(0,o.Mv)(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?k(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({page_name:r,page_class:c,entry_point:d,previous_page:h.current,feature_name:(u=r,v[u]),offer_id:x(r,t)},l.onboardingQuestionnaire?{onboarding_questionnaire:l.onboardingQuestionnaire}:{})),p.current=e,h.current=r,g.current=!0}}},[n.pathname,s,i.error,i.data,null==a?void 0:a.arm]),u.createElement(u.Fragment,null,r)},C=["children","to","onClick","external"];function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O.apply(null,arguments)}var P=function(e){var t=e.children,r=e.to,n=e.onClick,i=e.external,o=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({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,C);return i?u.createElement("a",O({href:r,onClick:n},o),t):u.createElement(l.Link,O({to:r,onClick:n},o),t)};function T(){(0,u.useEffect)(function(){n.co.register({device_type:(0,i.l7)(),platform:"web"})},[])}var A,I,N,R=r(94621),j=r(31786),M=r(4387),D=(0,R.ZP)(A||(I=["\n query UserAnalyticsData {\n user {\n id\n email\n }\n userProfile {\n id\n dob\n }\n educationRecord {\n id\n highestEducationLevel\n }\n financialRecord {\n id\n jobTitle\n grossAnnualIncome\n employmentStatus {\n id\n label\n }\n }\n }\n"],N||(N=I.slice(0)),A=Object.freeze(Object.defineProperties(I,{raw:{value:Object.freeze(N)}}))));function L(){T();var e=(0,j.useQuery)(D);(0,u.useEffect)(function(){(0,M.Mo)()},[]),(0,u.useEffect)(function(){if(e.data){var t,r,o,a,s=e.data.user;null===(t=window.dataLayer)||void 0===t||t.push({user_id:null==e||null===(r=e.data)||void 0===r||null===(r=r.user)||void 0===r?void 0:r.email}),n.co.identify(null==s?void 0:s.email,{database_id:null==s?void 0:s.id}),n.co.register((0,i.P0)(e.data)),(0,M.gS)(null==s?void 0:s.email,null==s?void 0:s.id),null===(o=(a=window).hj)||void 0===o||o.call(a,"identify",null==s?void 0:s.id,{email:null==s?void 0:s.email})}},[e.data])}},63002:function(e,t,r){"use strict";r.d(t,{M6:function(){return v},aF:function(){return p},aU:function(){return b},bw:function(){return g},hR:function(){return w},j_:function(){return m},qv:function(){return y}}),r(63517),r(74413),r(62285),r(20779),r(57637),r(13951),r(45436),r(91117),r(41698),r(55294),r(90216),r(76999),r(91067),r(2126),r(18924),r(67699),r(18007),r(71675),r(99830);var n=r(11039);function i(e){return i="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},i(e)}function o(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){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var u=100,c="prefer_not_to_say",d={onboarding_questionnaire:"test"};function f(e){return e.slice(0,u)}function p(e,t){var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:"unknown"}function h(e){var t,r=0,n=0,i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return l(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)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}
2}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;o.userAnswer&&(o.userAnswer.skipped?n+=1:r+=1)}}catch(e){i.e(e)}finally{i.f()}return{questions_answered_count:r,questions_skipped_count:n}}function m(e){var t;return"games"!==e.pageName||e.queryFailed?{hold:!1}:e.blocking?{hold:!0}:e.hasResult?{hold:!1,onboardingQuestionnaire:null!==(t=e.arm)&&void 0!==t?t:"excluded"}:{hold:!1}}function v(e){n.co.track("questionnaire_started",a(a({},d),{},{question_set_version:e.questionSetVersion,total_questions:e.totalQuestions,platform:e.platform}))}function g(e){var t,r,i=function(e,t){var r;if(t.skipped)return c;if(t.optionIds){var n,i=new Map((null!==(n=e.options)&&void 0!==n?n:[]).map(function(e){return[e.id,e.value]}));return f(t.optionIds.map(function(e){return i.get(e)}).filter(function(e){return Boolean(e)}).join(", "))}return f(null!==(r=t.value)&&void 0!==r?r:"")}(e.question,e.answer),o=null!==(t=e.question.name)&&void 0!==t?t:"";n.co.track("questionnaire_question_answered",a(a({},d),{},{question_id:o,question_index:e.questionIndex,answer_value:i,skipped:Boolean(e.answer.skipped),time_on_question_ms:e.timeOnQuestionMs})),(r=o).length>0&&!r.startsWith("$")&&(0,n.rw)(s({},o,i))}function y(e){n.co.track("questionnaire_completed",a(a(a({},d),h(e.questions)),{},{duration_ms:e.durationMs}))}function b(e){(0,n.L0)("questionnaire_abandoned",a(a({},d),{},{last_question_index:e.lastQuestionIndex,questions_answered_count:h(e.questions).questions_answered_count}))}function w(e){var t;n.co.track("questionnaire_error",a(a({},"load"===e.operation?{}:d),{},{operation:e.operation,error_message:(t=e.error,f(t instanceof Error?t.message:"string"==typeof t?t:"Something went wrong"))},null!=e.questionName&&null!=e.questionIndex?{question_id:e.questionName,question_index:e.questionIndex}:{}))}},79644:function(e,t,r){"use strict";r.d(t,{As:function(){return J},Dg:function(){return O},EC:function(){return R},Ht:function(){return C},Jr:function(){return f},LC:function(){return m},Mv:function(){return x},Nv:function(){return h},P6:function(){return _},PL:function(){return k},QT:function(){return U},TA:function(){return w},TS:function(){return V},VG:function(){return I},XY:function(){return Q},Yw:function(){return N},_V:function(){return M},_o:function(){return Z},b8:function(){return v},bd:function(){return p},d$:function(){return g},d_:function(){return y},f8:function(){return $},f_:function(){return A},fw:function(){return E},i$:function(){return Y},jw:function(){return ee},kA:function(){return S},kH:function(){return D},lf:function(){return z},m8:function(){return q},nR:function(){return H},ox:function(){return P},pX:function(){return T},tH:function(){return j},tX:function(){return G},v4:function(){return b},zV:function(){return X}}),r(63517),r(74413),r(62285),r(20779),r(57637),r(54370),r(5153),r(67506),r(80566),r(50870),r(75397),r(18829),r(95498),r(51429),r(61842),r(25376),r(38333),r(95864),r(63990),r(94565),r(95073),r(65204),r(47072),r(98391),r(24338),r(22727),r(2002),r(19647);var n=r(79529),i=r(73280),o=r(11039),a=r(87259);function s(e){return s="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},s(e)}function l(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 u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEac
2h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e,t,r){return(t=function(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=function(e){return e||null};function f(e){return o.co.track("menu_more_tapped",{menu_item:e})}function p(){return o.co.track("menu_more_opened",{})}function h(e,t){var r,i,s=(0,a.yh)(e),l=(0,n.u)(navigator.userAgent).surface;return null===(r=(i=window).fbq)||void 0===r||r.call(i,"track","Lead",u(u({},s),{},{pgFeature:t})),o.co.track("product_outbound_clicked",u(u({},s),{},{pgFeature:t,surface:l}))}function m(e,t){return o.co.track("sign_up_step_completed",(0,a.Fx)({name:e,number:t}))}function v(e){return e&&/already|exist|taken|in use|duplicate/i.test(e)?"duplicate_email":"server"}function g(){return o.co.track("sign_up_started",{landing_page_url:window.location.href})}function y(e){return o.co.track("sign_up_method_selected",{signup_method:e,time_since_started_seconds:(0,i.Py)()})}function b(e){return o.co.track("sign_up_submitted",u({time_since_started_seconds:(0,i.Py)()},void 0!==e.hasMarketingConsent?{has_marketing_consent:e.hasMarketingConsent}:{}))}function w(e){return o.co.track("sign_up_failed",u(u(u({signup_method:e.signupMethod,failure_reason:e.failureReason},void 0!==e.httpStatus?{http_status:e.httpStatus}:{}),void 0!==e.errorCode?{error_code:e.errorCode}:{}),{},{time_since_started_seconds:(0,i.Py)(e.startedAt)}))}function x(e){var t,r=u(u(u(u({page_name:e.page_name,page_class:e.page_class,entry_point:e.entry_point,previous_page:null!==(t=e.previous_page)&&void 0!==t?t:"none"},e.feature_name?{feature_name:e.feature_name}:{}),e.offer_id?{offer_id:e.offer_id}:{}),e.advertiser_id?{advertiser_id:e.advertiser_id}:{}),e.onboarding_questionnaire?{onboarding_questionnaire:e.onboarding_questionnaire}:{});return(0,o.YA)(r)}function E(e,t){return o.co.track("onboarding_tour_step_".concat(e,"_completed"),t)}function k(e,t){return o.co.track("onboarding_complete",u(u({},t),{},{action:e}))}function S(e){var t=e.wallId,r=e.wallType,n=e.offersShownIds,i=e.offersShownCount,a=e.offerNames,s=e.liteModeArm,l=e.liteModeStage;return o.co.track("offer_wall_viewed",{wall_id:t,wall_type:r,offers_shown_ids:n,offers_shown_count:i,offer_name:a,lite_mode_arm:null!=s?s:null,lite_mode_stage:null!=l?l:null})}function _(e){var t,r,n=null!==(t=e.tokens)&&void 0!==t?t:0,i=null!==(r=e.points)&&void 0!==r?r:0;return n>0&&i<=0?{value:n,currency:"tokens"}:{value:e.isBoosted&&e.boostedPoints?e.boostedPoints:i,currency:"points"}}function C(e){var t=e.offerId,r=e.offerName,i=e.offerType,a=e.advertiserId,s=e.advertiserName,l=e.offerPosition,u=e.offerFeature,c=e.userOutboundNumber,f=e.expectedRewardValue,p=e.expectedRewardCurrency,h=(0,n.u)(navigator.userAgent).surface;return o.co.track("offer_outbounded",{offer_id:t,offer_name:d(r),offer_type:null!=i?i:null,advertiser_id:null!=a?a:null,advertiser_name:null!=s?s:null,offer_position:null!=l?l:null,offer_feature:null!=u?u:null,user_outbound_number:c,expected_reward_value:f,expected_reward_currency:p,surface:h})}function O(e){var t=e.offerId,r=e.timeAwaySeconds,n=e.activated,i=e.advertiserId;return o.co.track("return_from_outbound",{offer_id:t,time_away_seconds:r,activated:n,advertiser_id:null!=i?i:null})}function P(e){var t=e.productId,r=e.productName,n=e.isNextGame,i=e.gamesShownCount;return o.co.track("game_installed_modal_shown",{product_id:t,product_name:r,is_next_game:n,games_shown_count:i})}function T(e){var t=e.productId,r=e.productName,n=e.response,i=e.gamesShownCount,a=e.nextGameAvailable;return o.co.track("game_installed_modal_response",{product_id:t,product_name:r,response:n,games_shown_count:i,next_game_available:a})}function A(e){var t=e.productId,r=e.gamesShownCount,n=e.closedBy;return o.co.track("game_installed_modal_closed",{product_id:t,games_shown_count:r,closed_by:n})}function I(e){var t=e.totalGamesShown,r=e.finalAction,n=e.finalProductId;return o.co.track("game_installed_flow_completed",{total_games_shown:t,final_action:r,final_product_id:n})}function N(e){var t,r,n,i;return o.co.track("claim_requested",{reward_id:e.rewardId,quest_item_id:null!==(t=e.questItemId)&&void 0!==t?t:null,quest_item_name:null!==(r=e.questItemName)&&void 0!==r?r:null,quest_set_id:null!==(n=e.questSetId)&&void 0!==n?n:null,quest_level_id:null!==(i=e.questLevelId)&&void 0!==i?i:null})}function R(e){return o.co.track("quest_reward_claim_completed",{quest_id:e.questId,reward_id:e.rewardId,success:e.success})}function j(e){var t,r;return o.co.track("install_cta_tapped",{game_id:e.game_id,pdp_skip_variant:e.pdp_skip_variant,source:e.source,lite_mode_arm:null!==(t=e.lite_mode_arm)&&void 0!==t?t:null,lite_mode_stage:null!==(r=e.lite_mode_stage)&&void 0!==r?r:null})}function M(e){var t,r;return o.co.track("booster_popup_shown",u(u({},void 0!==(null==e?void 0:e.active_booster_count)?{active_booster_count:e.active_booster_count}:{}),{},{offer_ids:null!==(t=null==e?void 0:e.offerIds)&&void 0!==t?t:[],offer_names:(null!==(r=null==e?void 0:e.offerNames)&&void 0!==r?r:[]).map(d)}))}function D(e){var t;return o.co.track("booster_popup_tapped",u(u({},void 0!==(null==e?void 0:e.active_booster_count)?{active_booster_count:e.active_booster_count}:{}),{},{offer_id:null!==(t=null==e?void 0:e.offerId)&&void 0!==t?t:null,offer_name:d(null==e?void 0:e.offerName)}
2))}var L=function(e){var t=e.productId,r=e.expiresAt;return"".concat(t,":").concat(r)},F=new Set,B=new Set;function U(e){var t=L(e);if(!F.has(t))return F.add(t),o.co.track("booster_viewed",{offer_id:e.productId,offer_name:d(e.productName),timer_remaining_seconds:e.timerRemainingSeconds})}function V(e){return B.add(L(e)),o.co.track("booster_tapped",{offer_id:e.productId,offer_name:d(e.productName),timer_remaining_seconds:e.timerRemainingSeconds,reward_amount:e.rewardAmount})}function z(e){var t=L(e);if(F.delete(t))return o.co.track("booster_expired",{offer_id:e.productId,offer_name:d(e.productName),tapped_before_expiry:B.has(t)})}function q(e){return o.co.track("pdp_viewed",{game_id:e.game_id})}function H(e){return o.co.track("currency_banner_shown",e)}function G(e){return o.co.track("currency_changed",e)}function $(){return o.co.track("currency_banner_dismissed",{})}function W(e){return{offer_id:e.offerId,offer_name:e.offerName}}function Z(e){return o.co.track("offer_activated_banner_shown",W(e))}function Q(e){return o.co.track("offer_activated_banner_tapped",W(e))}function Y(e){return o.co.track("offer_activated_banner_dismissed",W(e))}function K(e){return{game_id:e.game_id,offer_name:d(e.offer_name),branch:e.branch,reward_type:e.reward_type,reward_amount:e.reward_amount}}function J(e){return o.co.track("next_win_card_viewed",K(e))}function X(e){return o.co.track("next_win_card_tapped",K(e))}function ee(e){return o.co.track("keep_playing_tapped",{game_id:e.game_id,last_session_at:e.last_session_at,position_index:e.position_index})}},87259:function(e,t,r){"use strict";r.d(t,{Fx:function(){return l},P0:function(){return a},l7:function(){return s},yh:function(){return o}});var n=r(56253),i=r(56434);function o(e){var t=e.id,r=e.brand,n=e.category,i=e.isFeatured,o=e.liked;return{product_dynamic_id:t,product_payload_id:t,product_lender_name:null==r?void 0:r.name,product_category:null==n?void 0:n.slug,product_featured:i,product_liked:o}}function a(e){var t,r,n=e.userProfile,o=e.financialRecord,a=e.educationRecord;return{user_age:null!=n&&n.dob?(0,i.A)(n.dob):null,user_date_of_birth:null==n?void 0:n.dob,user_job_title:null==o?void 0:o.jobTitle,user_salary:null==o?void 0:o.grossAnnualIncome,user_level_of_education:null==a?void 0:a.highestEducationLevel,user_employment_status_id:null==o||null===(t=o.employmentStatus)||void 0===t?void 0:t.id,user_employment_status_label:null==o||null===(r=o.employmentStatus)||void 0===r?void 0:r.label}}function s(){return n.Em?"tablet":n.tq?"mobile":"desktop"}function l(e){return{step_number:e.number,step_name:e.name}}},93520:function(e,t,r){"use strict";r.d(t,{R:function(){return n}});var n=function(e,t){return Array.from(Array(e).keys(),t||function(e){return e})}},21982:function(e,t,r){"use strict";r.d(t,{YU:function(){return f},yr:function(){return p}}),r(63517),r(68983),r(74413),r(62285),r(69108),r(20779),r(63115);var n=r(61672);function i(e){return i="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},i(e)}function o(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){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}
2var l="prograd_click_ids",u=/^[A-Za-z0-9._\-~]+$/,c=function(e){if("string"==typeof e){var t=e.trim();if(t&&!(t.length>256)&&u.test(t))return t}},d=function(e){var t=c(e.gclid),r=c(e.gbraid);return a(a({},t&&{gclid:t}),r&&{gbraid:r})},f=function(){var e=function(){var e=document.cookie.split("; ").find(function(e){return e.startsWith("".concat(l,"="))});if(e)return decodeURIComponent(e.split("=").slice(1).join("="))}();if(!e)return{};try{var t=JSON.parse(e);return t&&"object"===i(t)?d(t):{}}catch(e){return{}}},p=function(){if("undefined"!=typeof window){var e,t,r,i,o,a=d((0,n.W)(window.location.search));(a.gclid||a.gbraid)&&(e=JSON.stringify(a),r=new Date(Date.now()+7776e6).toUTCString(),i="undefined"!=typeof window&&"https:"===(null===(t=window.location)||void 0===t?void 0:t.protocol),o=["".concat(l,"=").concat(encodeURIComponent(e)),"expires=".concat(r),"path=/","SameSite=Lax"],i&&o.push("Secure"),document.cookie=o.join("; "))}}},32190:function(e,t,r){"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.map(function(e,t){return 0===t?e:".".concat(e)}).join("")}r.d(t,{e:function(){return n}})},27090:function(e,t,r){"use strict";r.d(t,{Dt:function(){return o},_c:function(){return s},yu:function(){return a}});var n=r(64083),i=new Date("2025-07-15"),o=((0,n.Z)(i,14),{UK:"[email protected]",GLOBAL:"[email protected]"}),a="web",s=24},71213:function(e,t,r){"use strict";r.d(t,{B:function(){return i},o:function(){return n}}),r(74413),r(62285);var n=function(e){if(!window.UC_UI)return!1;try{var t;return(null===(t=window)||void 0===t||null===(t=t.UC_UI)||void 0===t||null===(t=t.getServicesBaseInfo())||void 0===t||null===(t=t.filter(function(t){return t.name===e}))||void 0===t||null===(t=t[0])||void 0===t?void 0:t.consent.status)||!1}catch(e){return!1}},i=function(){window.UC_UI.showSecondLayer()}},92023:function(e,t,r){"use strict";r.d(t,{GG:function(){return n},d3:function(){return i}});var n=function(e){return"on_sign_up"===e||"on_first_cashout"===e?e:null},i=function(e){var t=e.emailVerified,r=e.registeredBeforeEmailVerificationWasRequired,i=e.emailValidationMoment;return!t&&!r&&"on_first_cashout"!==n(i)}},46141:function(e,t,r){"use strict";r.d(t,{V:function(){return n}});var n={jobsEnabled:!0,communityEnabled:!(0,r(717).Ag)("US"),FORCE_LITE_MODE:!1,dynamicCashoutCardsEnabled:!1}},89845:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(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 o(e,t,r){return(t=function(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{l:function(){return s}}),r(63517),r(74413),r(62285),r(20779);var a={GBP:"en-GB",USD:"en-US"};function s(e){var t=e.amount,r=e.options,n=void 0===r?{}:r,s=e.currency;return new Intl.NumberFormat(a[s],function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({style:"currency",currency:s,currencyDisplay:"symbol",trailingZeroDisplay:"stripIfInteger"},n)).format(t)}},56434:function(e,t,r){"use strict";r.d(t,{A:function(){return i}});var n=r(36236);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,r=e;return"string"!=typeof r&&"number"!=typeof r||(r=new Date(r)),(0,n.Z)(t,r)}},62008:function(e,t,r){"use strict";
2function n(e){var t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=e%60;return{hours:String(t).padStart(2,"0"),minutes:String(r).padStart(2,"0"),seconds:String(n).padStart(2,"0")}}r.d(t,{B:function(){return n}})},94117:function(e,t,r){"use strict";r.d(t,{P:function(){return i}});var n=r(56253);function i(){return n.gn?"ios":n.Dt?"android":"web"}},25083:function(e,t,r){"use strict";r.d(t,{T:function(){return d},x:function(){return f}}),r(63517);var n=r(98889),i=r(31786),o=r(27378);function a(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(r,n,i,o){var a=n&&n.prototype instanceof u?n:u,c=Object.create(a.prototype);return s(c,"_invoke",function(r,n,i){var o,a,s,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return o=t,a=0,s=e,f.n=r,l}};function p(r,n){for(a=r,s=n,t=0;!d&&u&&!i&&t<c.length;t++){var i,o=c[t],p=f.p,h=o[2];r>3?(i=h===n)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=r<2&&p<o[1])?(a=0,f.v=n,f.n=o[1]):p<h&&(i=r<3||o[0]>n||n>h)&&(o[4]=r,o[5]=n,f.n=h,a=0))}if(i||r>1)return l;throw d=!0,n}return function(i,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),a=c,s=h;(t=a<2?e:s)||!d;){o||(a?a<3?(a>1&&(f.n=-1),p(a,s)):f.n=s:f.v=s);try{if(u=2,o){if(a||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,a<2&&(a=0)}else 1===a&&(t=o.return)&&t.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((t=(d=f.n<0)?s:r.call(n,f))!==l)break}catch(t){o=e,a=1,s=t}finally{u=1}}return{value:t,done:d}}}(r,i,o),!0),c}var l={};function u(){}function c(){}function d(){}t=Object.getPrototypeOf;var f=[][n]?t(t([][n]())):(s(t={},n,function(){return this}),t),p=d.prototype=u.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=d,s(p,"constructor",d),s(d,"constructor",c),c.displayName="GeneratorFunction",s(d,i,"GeneratorFunction"),s(p),s(p,i,"Generator"),s(p,n,function(){return this}),s(p,"toString",function(){return"[object Generator]"}),(a=function(){return{w:o,m:h}})()}function s(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}s=function(e,t,r,n){function o(t,r){s(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},s(e,t,r,n)}function l(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function u(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){l(o,n,i,a,s,"next",e)}function s(e){l(o,n,i,a,s,"throw",e)}a(void 0)})}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var d={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SetLastActivityDate"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"setLastActivityDate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"origin"},value:{kind:"EnumValue",value:"web"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:92,source:{body:"\n mutation SetLastActivityDate {\n setLastActivityDate(origin: web) {\n id\n }\n }\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}};function f(){var e,t,r=(e=(0,i.useMutation)(d),t=1,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}
2finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],s=(0,n.useLocation)(),l=(0,o.useRef)(s.pathname),f=(0,o.useCallback)(function(){return r()},[r]);(0,o.useEffect)(function(){f()},[f]),(0,o.useEffect)(function(){s.pathname!==l.current&&(l.current=s.pathname,f())},[s.pathname,f]);var p=(0,o.useCallback)(function(e){return u(a().m(function t(){var r,n=arguments;return a().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,e.apply(void 0,n);case 1:return r=t.v,f(),t.a(2,r)}},t)}))},[f]);return{updateLastActivityDate:f,withActivityTracking:p}}},22595:function(e,t,r){"use strict";r.d(t,{$:function(){return u},jg:function(){return l}}),r(63517);var n=r(49621),i=r(27378),o=r(62008);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var s=120;function l(e){return Math.max(0,(0,n.Z)(new Date(e),new Date))}function u(e){var t,r,n,u,c,d,f,p,h=(f=(0,i.useState)(function(){return e?l(e):0}),p=2,function(e){if(Array.isArray(e))return e}(f)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(f,p)||function(e,t){if(e){if("string"==typeof e)return a(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)?a(e,t):void 0}}(f,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=h[0],v=h[1];return(0,i.useEffect)(function(){if(e){var t=l(e);if(v(t),!(t<=0)){var r=setInterval(function(){var t=l(e);v(t),t<=0&&clearInterval(r)},1e3);return function(){return clearInterval(r)}}}else v(0)},[e]),{formattedTimeRemaining:(t=m,r=(0,o.B)(t),n=r.hours,u=r.minutes,c=r.seconds,d=60*Number(n)+Number(u),"".concat(d,":").concat(c)),isExpired:m<=0,remainingSeconds:m,isUrgent:m>0&&m<s}}},94717:function(e,t,r){"use strict";r.d(t,{s:function(){return i},y:function(){return o}});var n=r(27378),i=(0,n.createContext)(void 0);function o(e){var t=e.name,r=(0,n.useContext)(i);if(!r)throw new Error("".concat(t," components cannot be rendered outside their respective component tree!"));return r}},20303:function(e,t,r){"use strict";r.d(t,{M:function(){return a}}),r(63517);var n=r(49621),i=r(27378);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e){var t,r,a=e.from,s=e.to,l=new Date,u=new Date(s),c=new Date(a),d=l,f=(0,n.Z)(u,c),p=(0,n.Z)(d,c),h=(0,n.Z)(u,d),m=(t=(0,i.useState)({expiresInSeconds:h,secondsFromCreatedAt:p}),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,r)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}
2(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=m[0],g=m[1];return(0,i.useEffect)(function(){var e=setInterval(function(){g(function(e){return{expiresInSeconds:e.expiresInSeconds-1,secondsFromCreatedAt:e.secondsFromCreatedAt+1}})},1e3);return function(){clearInterval(e)}},[]),{timer:v,delta:f}}},10251:function(e,t,r){"use strict";r.d(t,{Q:function(){return s}}),r(63517),r(74413),r(62285),r(20779);var n,i=r(94621);r(31786);var o,a,s=(0,i.ZP)(n||(o=["\n query FeatureFlagQuery($key: String!) {\n featureFlag(key: $key) {\n id\n stringValue\n booleanValue\n }\n }\n"],a||(a=o.slice(0)),n=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(a)}}))))},64452:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}}),r(63517);var n=r(27378),i=JSON.parse('{"tablet":"768px","laptop":"1024px","desktop":"1440px"}');function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var a=function(e){var t,r,a="(min-width: ".concat(i[e],")"),s=function(e){return"undefined"!=typeof window&&window.matchMedia(e).matches},l=(t=(0,n.useState)(s(a)),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,r)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=l[0],c=l[1];function d(){c(s(a))}return(0,n.useEffect)(function(){var e=window.matchMedia(a);return d(),e.addEventListener("change",d),function(){e.removeEventListener("change",d)}},[a]),u}},49793:function(e,t,r){"use strict";r.d(t,{J:function(){return l}});var n=r(31786),i=r(27378),o=r(73169),a=r(14252),s=r(10251);function l(){var e,t=(0,o.a)().currentUser,r=null==t?void 0:t.id,l=(0,n.useQuery)(s.Q,{variables:{key:"rewards_structure_ui"},skip:!r,fetchPolicy:"network-only"}),u=l.data,c=l.loading,d=null==u||null===(e=u.featureFlag)||void 0===e?void 0:e.booleanValue,f=Boolean(r)&&c,p=Boolean(r)&&!c&&"boolean"==typeof d,h=p&&!0===d;return(0,i.useEffect)(function(){p&&"boolean"==typeof d&&(0,a.k1)(d)},[r,p,d]),{isTreatment:h,isLoading:f}}},2182:function(e,t,r){"use strict";r.d(t,{Q:function(){return c}}),r(63517);var n=r(31786),i=r(25083);function o(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function s(r,n,i,o){var s=n&&n.prototype instanceof u?n:u,c=Object.create(s.prototype);return a(c,"_invoke",function(r,n,i){var o,a,s,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return o=t,a=0,s=e,f.n=r,l}};function p(r,n){for(a=r,s=n,t=0;!d&&u&&!i&&t<c.length;t++){var i,o=c[t],p=f.p,h=o[2];r>3?(i=h===n)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=r<2&&p<o[1])?(a=0,f.v=n,f.n=o[1]):p<h&&(i=r<3||o[0]>n||n>h)&&(o[4]=r,o[5]=n,f.n=h,a=0))}if(i||r>1)return l;throw d=!0,n}return function(i,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),a=c,s=h;(t=a<2?e:s)||!d;){o||(a?a<3?(a>1&&(f.n=-1),p(a,s)):f.n=s:f.v=s);try{if(u=2,o){if(a||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,a<2&&(a=0)}else 1===a&&(t=o.return)&&t.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((t=(d=f.n<0)?s:r.call(n,f))!==l)break}catch(t){o=e,a=1,s=t}finally{u=1}}return{value:t,done:d}}}(r,i,o),!0),c}var l={};function u(){}function c(){}function d(){}t=Object.getPrototypeOf;
2var f=[][n]?t(t([][n]())):(a(t={},n,function(){return this}),t),p=d.prototype=u.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=d,a(p,"constructor",d),a(d,"constructor",c),c.displayName="GeneratorFunction",a(d,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,n,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:s,m:h}})()}function a(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}a=function(e,t,r,n){function o(t,r){a(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},a(e,t,r,n)}function s(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e){return function(t){var r=l((0,n.useMutation)(i.T),1)[0],a=l(e(t),2),u=a[0],c=a[1],d=function(){var e,t=(e=o().m(function e(){var t,n=arguments;return o().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,u.apply(void 0,n);case 1:return(t=e.v)&&!t.errors&&r(),e.a(2,t)}},e)}),function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(e){s(o,n,i,a,l,"next",e)}function l(e){s(o,n,i,a,l,"throw",e)}a(void 0)})});return function(){return t.apply(this,arguments)}}();return[d,c]}}},4387:function(e,t,r){"use strict";r.d(t,{DZ:function(){return l},Mo:function(){return a},Q$:function(){return d},e_:function(){return c},gS:function(){return s},p7:function(){return u},rY:function(){return o},zl:function(){return i}});var n=r(27090),i="https://intercom.help/prograd-a47a6b8dc791/en/",o=!0,a=function(){"function"==typeof window.Intercom&&window.Intercom("boot",{app_id:"ce6gqacx",api_base:"https://api-iam.intercom.io"})},s=function(e,t){"function"==typeof window.Intercom&&window.Intercom("update",{email:e,user_id:t})},l=function(){"function"==typeof window.Intercom&&(window.Intercom("shutdown"),a())},u=function(){o&&"function"==typeof window.Intercom?window.Intercom("show"):window.location.href="mailto:".concat(n.Dt.GLOBAL)},c=function(e){o&&"function"==typeof window.Intercom?window.Intercom("showNewMessage",e):window.location.href="mailto:".concat(n.Dt.GLOBAL,"?subject=").concat(encodeURIComponent(e))},d=function(){o&&"function"==typeof window.Intercom?window.Intercom("show"):window.location.assign(i)}},3673:function(e,t,r){"use strict";r.d(t,{ER:function(){return a},GD:function(){return o},KP:function(){return u},Yo:function(){return s},a_:function(){return c},vF:function(){return l}}),r(66066),r(74413),r(57637),r(67551),r(54370),r(5153),r(67506),r(80566),r(50870),r(75397),r(18829),r(95498),r(51429),r(61842),r(25376),r(38333),r(95864),r(63990),r(94565),r(95073),r(65204),r(47072),r(98391),r(24338),r(22727),r(2002),r(19647);var n=1e4,i=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)$/;function o(e,t){var r,n,i,o;return"singlePunch"===e?null!==(n=null==t||null===(i=t.optionIds)||void 0===i?void 0:i[0])&&void 0!==n?n:"":"multiPunch"===e?null!==(o=null==t?void 0:t.optionIds)&&void 0!==o?o:[]:null!==(r=null==t?void 0:t.value)&&void 0!==r?r:""}function a(e){if(0===e.length)return 0;var t=e.findIndex(function(e){return null==e.userAnswer});return-1===t?e.length-1:t}function s(e,t){return"singlePunch"===e&&t>0&&t<=4?2:1}function l(e){var t=e.type,r=e.inputType,n=e.options;return null!=u({type:t,inputType:r,options:void 0===n?[]:n,draft:e.draft})}function u(e){var t=e.type,r=e.inputType,o=e.options,a=void 0===o?[]:o,s=e.draft,l=(null!=a?a:[]).map(function(e){return e.id});if("openEnd"===t){if("string"!=typeof s)return null;var u=s.trim();return!u||u.length>n?null:"number"!==r||function(e){return!!i.test(e)&&Number.isFinite(Number(e))}(u)?{value:u}:null}return"singlePunch"===t?"string"==typeof s&&l.includes(s)?{optionIds:[s]}:null:"multiPunch"===t&&Array.isArray(s)&&0!==s.length?new Set(s).size!==s.length||s.some(function(e){return!l.includes(e)})?null:{optionIds:s}:null}function c(e){var t=e.status,r=e.loading,n=e.hasData;return!(e.error||(!r||n)&&"questionnaire_required"!==t)}},61672:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(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 o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?i(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e,t,r){return(t=function(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{W:function(){return l}}),r(63517),r(74413),r(62285),r(20779),r(50785);var s=function(e){var t=e.get("gbraid")||void 0,r=e.get("gclid")||void 0;return o(o({},t&&{gbraid:t}),r&&{gclid:r})},l=function(e){if(!e)return{};try{return s(new URL(e).searchParams)}catch(t){try{return s(new URLSearchParams(e.trim().replace(/^\?/,"")))}catch(e){return{}}}}},717:function(e,t,r){"use strict";r.d(t,{Ag:function(){return o},p2:function(){return a}}),r(74413),r(57637);var n=function(e){return e.US="US",e.UK="UK",e}({}),i=function(e){return e.US="US",e.GB="GB",e}({}),o=(Object.keys(n).map(function(e){return n[e]}),function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uk";switch(null==e?void 0:e.toUpperCase()){case n.US:case"US":return n.US;case n.UK:case"UK":return n.UK;default:throw new Error("REGION environment variable: ".concat(e))}}()===e}),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uk".toUpperCase();switch(e){case n.US:case i.US:case"US":return i.US;case n.UK:case i.GB:case"UK":case"GB":return i.GB;default:throw new Error("Invalid region: ".concat(e))}}},92488:function(e,t,r){"use strict";r.d(t,{B7:function(){return s},Mt:function(){return u},Rm:function(){return l},xI:function(){return a}});var n=r(29876),i=r(89845),o=.01;function a(e){var t=e.pointsValue,r=e.exchangeRate;return Number((t*o*r).toFixed(2))}var s="currency";function l(e){var t=e.pointsValue,r=e.displayMode;return function(e){var t=e.pointsValue,r=e.displayMode,n=e.currency,o=e.exchangeRate;if("points"===(void 0===r?s:r))return t.toString();var l=a({exchangeRate:o,pointsValue:t});return(0,i.l)({amount:l,currency:n})}({pointsValue:t,displayMode:void 0===r?s:r,currency:(0,n.Mb)(),exchangeRate:(0,n.sG)()})}function u(e){var t=e.trim(),r=t.match(/^([^\d\s]+)\s*(.+)$/);return r?{symbol:r[1],amount:r[2].trim()}:{symbol:"",amount:t}}},80707:function(e,t,r){"use strict";r.d(t,{S:function(){return i}});var n={complaints:{path:"/complaints"},contact:{path:"/contact"},"cookie-policy":{path:"/cookie-policy"},privacy:{path:"/privacy"},"terms-conditions":{path:"/terms-conditions"},"referral-redemption":{path:"/referral"},referralProgram:{path:"/referral-program"}},i=function(e){return"".concat("https://prograd.uk").concat(n[e].path)}},73280:function(e,t,r){"use strict";r.d(t,{Hb:function(){return o},Py:function(){return s},bZ:function(){return a},h:function(){return i}});var n="signup_started_at";function i(){try{return!sessionStorage.getItem(n)&&(sessionStorage.setItem(n,String(Date.now())),!0)}catch(e){return!1}}function o(){try{var e=sessionStorage.getItem(n),t=e?Number(e):NaN;return Number.isFinite(t)?t:void 0}catch(e){return}}function a(){try{sessionStorage.removeItem(n)}catch(e){return}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o();if(e)return Math.max(0,Math.round((Date.now()-e)/1e3))}},88031:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxLength:100};if(e.length<=t.maxLength)return e;var r,i="",o=t.maxLength,a=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=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))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,a=e}
2,f:function(){try{s||null==r.return||r.return()}finally{if(l)throw a}}}}(e.split(/(\s+)/));try{for(a.s();!(r=a.n()).done;){var s=r.value;if(s.length>=t.maxLength?i+=s.substring(0,t.maxLength):i+=s,(o-=s.length)<=0)break}}catch(e){a.e(e)}finally{a.f()}return i===e?e:"".concat(i).concat(" "===i.at(-1)?"":" ","...")}r.d(t,{a:function(){return i}}),r(36736)},58939:function(e,t,r){"use strict";var n=r(9131),i=r(4289).default;n(t,"__esModule",{value:!0}),t.default=void 0;var o=i(r(27378)),a=i(r(27085)),s=i(r(91496)),l=i(r(73749)),u=i(r(86506));t.default=e=>{let{error:t,wrapperClassName:r,wrapperStyle:n,titleClassName:i,titleStyle:c,listClassName:d,listStyle:f,listItemClassName:p,listItemStyle:h}=e;if(!t)return null;let m=t.message;const v=[],g=!!t.graphQLErrors?.[0],y=!!t.networkError&&(0,a.default)(t.networkError).length>0;if(g){var b;m=null!==(b=t.graphQLErrors[0].message)&&void 0!==b?b:"Something went wrong","BAD_USER_INPUT"===t.graphQLErrors[0]?.extensions?.code&&(m="Errors prevented this form from being saved");const e=t.graphQLErrors[0].extensions?.properties,r=e&&e.messages;if(r)for(const e in r){var w;(0,s.default)(w=r[e]).call(w,e=>{v.push(e)})}}else if(y){var x;if(m=null!==(x=m)&&void 0!==x?x:"An error has occurred",Object.prototype.hasOwnProperty.call(t.networkError,"bodyText")){const e=t.networkError;v.push(`${e.name}: ${e.bodyText}`)}else if(Object.prototype.hasOwnProperty.call(t.networkError,"result")){const e=t.networkError;e.result.errors?.forEach(e=>{var t;"string"==typeof e.message&&((0,l.default)(t=e.message).call(t,";")>=0?v.push(e.message?.split(";")[1]):v.push(e.message))})}}return m?o.default.createElement("div",{className:r,style:n},o.default.createElement("p",{className:i,style:c},m),v.length>0&&o.default.createElement("ul",{className:d,style:f},(0,u.default)(v).call(v,(e,t)=>o.default.createElement("li",{key:t,className:p,style:h},e)))):null}},74857:function(e,t,r){"use strict";var n,i=r(9131),o=r(91496),a=r(27085),s=r(31550).default,l=r(4289).default;i(t,"__esModule",{value:!0});var u={CheckboxField:!0,ButtonField:!0,ColorField:!0,DateField:!0,DatetimeLocalField:!0,EmailField:!0,FileField:!0,HiddenField:!0,ImageField:!0,MonthField:!0,NumberField:!0,PasswordField:!0,RadioField:!0,RangeField:!0,ResetField:!0,SearchField:!0,SubmitField:!0,TelField:!0,TextField:!0,TimeField:!0,UrlField:!0,WeekField:!0,Form:!0,ServerErrorsContext:!0,FieldError:!0,InputField:!0,Label:!0,TextAreaField:!0,SelectField:!0,Submit:!0,useErrorStyles:!0,useRegister:!0,FormError:!0};t.Form=t.FileField=t.FieldError=t.EmailField=t.DatetimeLocalField=t.DateField=t.ColorField=t.CheckboxField=t.ButtonField=void 0,i(t,"FormError",{enumerable:!0,get:function(){return m.default}}),t.useRegister=t.useErrorStyles=t.WeekField=t.UrlField=t.TimeField=t.TextField=t.TextAreaField=t.TelField=t.SubmitField=t.Submit=t.ServerErrorsContext=t.SelectField=t.SearchField=t.ResetField=t.RangeField=t.RadioField=t.PasswordField=t.NumberField=t.MonthField=t.Label=t.InputField=t.ImageField=t.HiddenField=void 0;var c=l(r(91496)),d=l(r(56666)),f=s(r(27378)),p=l(r(35131)),h=r(88039);o(n=a(h)).call(n,function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(u,e)||e in t&&t[e]===h[e]||i(t,e,{enumerable:!0,get:function(){return h[e]}}))});var m=l(r(58939));const v=e=>{let{name:t,errorClassName:r,errorStyle:n,className:i,style:o}=e;const{formState:{errors:a},setError:s}=(0,h.useFormContext)(),l=(0,f.useContext)(x)[t];return f.default.useEffect(()=>{l&&s(t,{type:"server",message:l})},[l,t,s]),(t?(0,h.get)(a,t):void 0)&&(r&&(i=r),n&&(o=n)),{className:i,style:o}};t.useErrorStyles=v;const g=e=>""===e,y={valueAsDate:{emptyAsNull:e=>g(e)?null:new Date(e),emptyAsUndefined:e=>g(e)?void 0:new Date(e),emptyAsString:e=>g(e)?"":new Date(e),emptyAsZero:e=>g(e)?0:new Date(e)},valueAsJSON:{emptyAsNull:e=>{if(g(e))return null;try{return JSON.parse(e)}catch(e){return NaN}},emptyAsString:e=>{if(g(e))return"";try{return JSON.parse(e)}catch(e){return NaN}},emptyAsUndefined:e=>{if(!g(e))try{return JSON.parse(e)}catch(e){return NaN}},emptyAsZero:e=>{if(g(e))return 0;try{return JSON.parse(e)}catch(e){return NaN}}},valueAsNumber:{emptyAsNull:e=>g(e)?null:+e,emptyAsUndefined:e=>g(e)?void 0:+e,emptyAsNaN:e=>g(e)?NaN:+e,emptyAsString:e=>g(e)?"":+e,emptyAsZero:e=>g(e)?0:+e},valueAsString:{emptyAsNull:e=>g(e)?null:e,emptyAsUndefined:e=>g(e)?void 0:e,emptyAsString:e=>g(e)?"":e,emptyAsZero:e=>g(e)?0:e}},b=e=>"number"!=typeof e||!isNaN(e),w=(e,t,r)=>{const{register:n}=(0,h.useFormContext)(),i=e.validation||{required:!1};((e,t)=>
2{let r,{type:n,name:i,emptyAs:o}=t;e.setValueAs||e.valueAsBoolean||"checkbox"===n||(e.valueAsJSON?(e.validate=b,delete e.valueAsJSON,r="valueAsJSON"):r="date"===n||"datetime-local"===n||e.valueAsDate?"valueAsDate":"number"===n||e.valueAsNumber?"valueAsNumber":"valueAsString",e.setValueAs=((e,t,r,n)=>{const i=y[e];if(void 0===i)throw Error(`Type ${e} is unsupported.`);let o;switch(t){case null:o=i.emptyAsNull;break;case"undefined":o=i.emptyAsUndefined;break;case 0:o=i.emptyAsZero;break;case"":o=i.emptyAsString;break;default:if(r||n)o=i.emptyAsNull;else switch(e){case"valueAsNumber":o=i.emptyAsNaN;break;case"valueAsDate":case"valueAsJSON":o=i.emptyAsNull;break;case"valueAsString":o=i.emptyAsString}}return void 0===o&&console.error(`emptyAs prop of ${t} is unsupported for this type.`),o})(r,o,void 0!==e.required&&!1!==e.required,/Id$/.test(i||"")))})(i,{type:e.type,name:e.name,emptyAs:r});const{ref:o,onBlur:a,onChange:s,...l}=n(e.name,i);return{...l,ref:e=>{o(e),"function"==typeof t?t(e):t&&(t.current=e)},onBlur:t=>{a(t),e.onBlur?.(t)},onChange:t=>{s(t),e.onChange?.(t)}}};t.useRegister=w;const x=f.default.createContext({});function E(e,t){let{config:r,error:n,formMethods:i,onSubmit:o,children:a,...s}=e;const l=(0,h.useForm)(r),u=i||l;return f.default.createElement("form",(0,d.default)({ref:t},s,{onSubmit:u.handleSubmit((e,t)=>o?.(e,t))}),f.default.createElement(x.Provider,{value:n?.graphQLErrors?.[0]?.extensions?.properties?.messages||{}},f.default.createElement(h.FormProvider,u,a)))}t.ServerErrorsContext=x;const k=(0,f.forwardRef)(E);t.Form=k,t.Label=e=>{let{name:t,children:r,errorClassName:n,errorStyle:i,className:o,style:a,...s}=e;const l=v({name:t,errorClassName:n,errorStyle:i,className:o,style:a});return f.default.createElement("label",(0,d.default)({htmlFor:t},s,l),r||t)};const S={required:"is required",pattern:"is not formatted correctly",minLength:"is too short",maxLength:"is too long",min:"is too low",max:"is too high",validate:"is not valid"};t.FieldError=e=>{let{name:t,...r}=e;const{formState:{errors:n}}=(0,h.useFormContext)(),i=(0,h.get)(n,t),o=i&&(i.message||`${t} ${S[i.type]}`);return i?f.default.createElement("span",r,o):null};const _=(0,f.forwardRef)((e,t)=>{let{name:r,id:n,emptyAs:i,errorClassName:o,errorStyle:a,className:s,style:l,validation:u,onBlur:c,onChange:p,...h}=e;const m=v({name:r,errorClassName:o,errorStyle:a,className:s,style:l}),g=w({name:r,validation:u,onBlur:c,onChange:p},t,i);return f.default.createElement("textarea",(0,d.default)({id:n||r},h,m,g))});t.TextAreaField=_;const C=(0,f.forwardRef)((e,t)=>{let{name:r,id:n,emptyAs:i,errorClassName:o,errorStyle:a,className:s,style:l,validation:u,onBlur:c,onChange:p,...h}=e;const m=v({name:r,errorClassName:o,errorStyle:a,className:s,style:l}),g=w({name:r,validation:u,onBlur:c,onChange:p},t,i);return f.default.createElement("select",(0,d.default)({id:n||r},h,m,g))});t.SelectField=C;const O=(0,f.forwardRef)((e,t)=>{let{name:r,id:n,errorClassName:i,errorStyle:o,className:a,style:s,validation:l,onBlur:u,onChange:c,...p}=e;const h=v({name:r,errorClassName:i,errorStyle:o,className:a,style:s}),m="checkbox",g=w({name:r,validation:l,onBlur:u,onChange:c,type:m},t);return f.default.createElement("input",(0,d.default)({id:n||r},p,{type:m},h,g))});t.CheckboxField=O;const P=(0,f.forwardRef)((e,t)=>f.default.createElement("button",(0,d.default)({ref:t,type:"submit"},e)));t.Submit=P;const T=["button","color","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"],A=(0,f.forwardRef)((e,t)=>{let{name:r,id:n,emptyAs:i,errorClassName:o,errorStyle:a,className:s,style:l,validation:u,onBlur:c,onChange:p,type:h,...m}=e;const g=v({name:r,errorClassName:o,errorStyle:a,className:s,style:l}),y=w({name:r,validation:u,onBlur:c,onChange:p,type:h},t,i);return f.default.createElement("input",(0,d.default)({id:n||r},m,{type:h},g,y))});t.InputField=A;const I={};(0,c.default)(T).call(T,e=>{I[`${(0,p.default)(e)}Field`]=(0,f.forwardRef)((t,r)=>f.default.createElement(A,(0,d.default)({ref:r,type:e},t)))});const{ButtonField:N,ColorField:R,DateField:j,DatetimeLocalField:M,EmailField:D,FileField:L,HiddenField:F,ImageField:B,MonthField:U,NumberField:V,PasswordField:z,RadioField:q,RangeField:H,ResetField:G,SearchField:$,SubmitField:W,TelField:Z,TextField:Q,TimeField:Y,UrlField:K,WeekField:J}=I;t.WeekField=J,t.UrlField=K,t.TimeField=Y,t.TextField=Q,t.TelField=Z,t.SubmitField=W,t.SearchField=$,t.ResetField=G,t.RangeField=H,t.RadioField=q,t.PasswordField=z,t.NumberField=V,t.MonthField=U,t.ImageField=B,t.HiddenField=F,t.FileField=L,t.EmailField=D,t.DatetimeLocalField=M,t.DateField=j,t.ColorField=R,t.ButtonField=N},82560:function(e,t,r){"use strict";
2r(9131)(t,"__esModule",{value:!0}),t.useActivePageContext=t.ActivePageContextProvider=void 0;var n=r(27378);const i=(0,r(38388).createNamedContext)("ActivePage"),o=i.Provider;t.ActivePageContextProvider=o,t.useActivePageContext=()=>{const e=(0,n.useContext)(i);if(!e)throw new Error("useActivePageContext must be used within a ActivePageContext provider");return e}},47489:function(e,t,r){"use strict";var n=r(9131),i=r(31550).default;n(t,"__esModule",{value:!0}),t.usePageLoadingContext=t.PageLoadingContextProvider=void 0;var o=i(r(27378));const a=(0,r(38388).createNamedContext)("PageLoading");t.PageLoadingContextProvider=e=>{let{value:t,children:r}=e;const n=(0,o.useMemo)(()=>({loading:t.loading}),[t.loading]);return o.default.createElement(a.Provider,{value:n},r)},t.usePageLoadingContext=()=>{const e=(0,o.useContext)(a);if(!e)throw new Error("usePageLoadingContext must be used within a PageLoadingContext provider");return e}},91178:function(e,t,r){"use strict";var n=r(9131),i=r(31550).default,o=r(4289).default;n(t,"__esModule",{value:!0}),t.Private=function(e){const{children:t,unauthenticated:r,roles:n,wrap:i,...o}=e;return c.default.createElement(v,(0,a.default)({private:!0,unauthenticated:r,roles:n,wrap:i},o),t)},t.Set=v;var a=o(r(56666)),s=o(r(9981)),l=o(r(4475)),u=o(r(6971)),c=i(r(27378)),d=r(98904),f=r(47489),p=r(1316),h=r(46312);const m=e=>{let{children:t}=e;return c.default.createElement(c.default.Fragment,null,t)};function v(e){const{wrap:t,children:r,private:n,unauthenticated:i,roles:o,whileLoadingAuth:a,whileLoadingPage:v,...g}=e,y=(0,h.useRouterState)(),{loading:b,isAuthenticated:w,hasRole:x}=y.useAuth(),{loading:E}=(0,f.usePageLoadingContext)(),k=(0,c.useCallback)(()=>!(w&&(!o||x(o))),[w,o,x]),S=(0,s.default)(t)?t:[t||m];if(n&&k()){if(!i)throw new Error("Private Sets need to specify what route to redirect unauthorized users to by setting the `unauthenticated` prop");if(b)return a?.()||null;{const e=l.default.location.pathname+encodeURIComponent(l.default.location.search);if(!p.routes[i])throw new Error(`We could not find a route named ${i}`);let t;try{t=p.routes[i]()}catch(e){if(e instanceof Error&&/Missing parameter .* for route/.test(e.message))throw new Error(`Redirecting to route "${i}" would require route parameters, which currently is not supported. Please choose a different route`);throw new Error(`Could not redirect to the route named ${i}`)}return c.default.createElement(d.Redirect,{to:`${t}?redirectTo=${e}`})}}const _=E&&v?v():r;return(0,u.default)(S).call(S,(e,t)=>c.default.createElement(t,{...g,children:e||_}),void 0)||null}},89738:function(e,t,r){"use strict";var n=r(9131),i=r(4289).default;n(t,"__esModule",{value:!0}),t.resetFocus=t.getFocus=t.getAnnouncement=void 0;var o=i(r(4475));t.getAnnouncement=()=>{const e=o.default?.document.querySelectorAll("[data-redwood-route-announcement]")?.[0];if(e?.textContent)return e.textContent;const t=o.default?.document.querySelector("h1");return t?.textContent?t.textContent:o.default?.document.title?document.title:`new page at ${o.default?.location.pathname}`},t.getFocus=()=>{const e=o.default?.document.querySelectorAll("[data-redwood-route-focus]")?.[0];return!e||!e.children.length||e.children[0].tabIndex<0?null:e.children[0]},t.resetFocus=()=>{o.default?.document.body.setAttribute("tabindex","-1"),o.default?.document.body.focus(),o.default?.document.body.removeAttribute("tabindex")}},24644:function(e,t,r){"use strict";var n=r(9131),i=r(31550).default,o=r(4289).default;n(t,"__esModule",{value:!0}),t.ActiveRouteLoader=void 0;var a=o(r(4475)),s=o(r(31669)),l=o(r(13477)),u=o(r(65941)),c=i(r(27378)),d=r(89738),f=r(82560),p=r(47489),h=r(41065),m=r(38388),v=r(98889);const g=()=>null,y=()=>null;let b=!1;if("undefined"!=typeof window){const e=document.getElementById("redwood-app");e&&e.children.length>0&&(b=!0)}let w=!0;t.ActiveRouteLoader=e=>{let{path:t,spec:r,delay:n,params:i,whileLoadingPage:o,children:x}=e;const E=(0,v.useLocation)(),[k,S]=(0,c.useState)(""),_=(0,c.useRef)(),C=(0,c.useRef)(null),O=(0,c.useRef)(""),P=a.default.__REDWOOD__PRERENDERING||b&&w,[T,A]=(0,c.useState)({[t]:{page:P?r.prerenderLoader(r.name).default:g,specName:P?r.name:"",state:P?"DONE":"PRE_SHOW",location:E}});w&&(w=!1);const[I,N]=(0,c.useState)(x),[R,j]=(0,c.useState)(t),M=(0,h.useIsMounted)(),D=()=>{_.current&&clearTimeout(_.current)};return(0,c.useEffect)(()=>
2{if((0,m.inIframe)())return;a.default?.scrollTo(0,0),C.current&&(C.current.innerText=(0,d.getAnnouncement)());const e=(0,d.getFocus)();e?e.focus():(0,d.resetFocus)()},[k,i]),(0,c.useEffect)(()=>(r.name!==O.current?(D(),async function(e){let{loader:r,name:n}=e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;A(e=>({...e,[t]:{page:g,specName:"",state:"PRE_SHOW",location:E}})),_.current=(0,s.default)(()=>{A(e=>({...e,[t]:{page:o||y,specName:"",state:"SHOW_LOADING",location:E}})),N(x),j(t)},i),O.current=n;const a=await r();if(D(),M()&&n===O.current){A(e=>({...e,[t]:{page:a.default,specName:n,state:"DONE",location:E}}));const e=null!=x?x:a.default;N(e),j(t),S(n)}}(r,n)):(A(e=>{let n=e[t]?.page;if(!n){var i;const t=(0,l.default)(i=(0,u.default)(e)).call(i,e=>e?.specName===r.name);n=t?.page}return{...e,[t]:{page:n||g,specName:r.name,state:"DONE",location:E}}}),N(x),j(t)),()=>{D()}),[r,n,x,o,t,E,M]),c.default.createElement(v.ParamsProvider,{path:R,location:T[R]?.location},c.default.createElement(f.ActivePageContextProvider,{value:{loadingState:T}},c.default.createElement(p.PageLoadingContextProvider,{value:{loading:"SHOW_LOADING"===T[R]?.state}},I,"DONE"===T[t]?.state&&c.default.createElement("div",{id:"redwood-announcer",style:{position:"absolute",top:0,width:1,height:1,padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},role:"alert","aria-live":"assertive","aria-atomic":"true",ref:C}))))}},93674:function(e,t,r){"use strict";var n=r(9131),i=r(4289).default;n(t,"__esModule",{value:!0}),t.navigate=t.gHistory=t.back=void 0;var o=i(r(99402)),a=i(r(4475)),s=i(r(5846)),l=i(r(65941));const u=(()=>{const e={};return{listen:t=>{const r="RW_HISTORY_LISTENER_ID_"+(0,o.default)();return e[r]=t,a.default.addEventListener("popstate",t),r},navigate:(t,r)=>{const{pathname:n,search:i,hash:o}=new s.default(a.default?.location?.origin+t);a.default?.location?.pathname===n&&a.default?.location?.search===i&&a.default?.location?.hash===o||(r?.replace?a.default.history.replaceState({},"",t):a.default.history.pushState({},"",t));for(const t of(0,l.default)(e))t()},back:()=>{a.default.history.back();for(const t of(0,l.default)(e))t()},remove:t=>{if(e[t]){const r=e[t];a.default.removeEventListener("popstate",r),delete e[t]}else console.warn("History Listener with ID: "+t+" does not exist.")}}})();t.gHistory=u;const{navigate:c,back:d}=u;t.back=d,t.navigate=c},98889:function(e,t,r){"use strict";var n,i,o,a,s=r(9131),l=r(91496),u=r(27085),c=r(31550).default;s(t,"__esModule",{value:!0});var d={navigate:!0,back:!0,Link:!0,NavLink:!0,useMatch:!0,Redirect:!0,useLocation:!0,LocationProvider:!0,usePageLoadingContext:!0,PageLoadingContextProvider:!0,useParams:!0,ParamsProvider:!0,ParamsContext:!0,Router:!0,Route:!0,routes:!0,RouteAnnouncement:!0,RouteFocus:!0,parseSearch:!0,SkipNavLink:!0,SkipNavContent:!0};s(t,"Link",{enumerable:!0,get:function(){return p.Link}}),s(t,"LocationProvider",{enumerable:!0,get:function(){return h.LocationProvider}}),s(t,"NavLink",{enumerable:!0,get:function(){return p.NavLink}}),s(t,"PageLoadingContextProvider",{enumerable:!0,get:function(){return m.PageLoadingContextProvider}}),s(t,"ParamsContext",{enumerable:!0,get:function(){return v.ParamsContext}}),s(t,"ParamsProvider",{enumerable:!0,get:function(){return v.ParamsProvider}}),s(t,"Redirect",{enumerable:!0,get:function(){return p.Redirect}}),s(t,"Route",{enumerable:!0,get:function(){return g.Route}}),s(t,"RouteAnnouncement",{enumerable:!0,get:function(){return b.default}}),s(t,"RouteFocus",{enumerable:!0,get:function(){return w.default}}),s(t,"Router",{enumerable:!0,get:function(){return g.Router}}),s(t,"SkipNavContent",{enumerable:!0,get:function(){return E.SkipNavContent}}),s(t,"SkipNavLink",{enumerable:!0,get:function(){return E.SkipNavLink}}),s(t,"back",{enumerable:!0,get:function(){return f.back}}),s(t,"navigate",{enumerable:!0,get:function(){return f.navigate}}),s(t,"parseSearch",{enumerable:!0,get:function(){return x.parseSearch}}),s(t,"routes",{enumerable:!0,get:function(){return g.routes}}),s(t,"useLocation",{enumerable:!0,get:function(){return h.useLocation}}),s(t,"useMatch",{enumerable:!0,get:function(){return p.useMatch}}),s(t,"usePageLoadingContext",{enumerable:!0,get:function(){return m.usePageLoadingContext}}),s(t,"useParams",{enumerable:!0,get:function(){return v.useParams}});var f=r(93674),p=r(98904),h=r(239),m=r(47489),v=r(52899),g=r(1316),y=r(91178);l(n=u(y)).call(n,function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(d,e)||e in t&&t[e]===y[e]||s(t,e,{enumerable:!0,get:function(){return y[e]}}))});var b=c(r(84884));l(i=u(b)).call(i,function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(d,e)||e in t&&t[e]===b[e]||s(t,e,{enumerable:!0,get:function(){return b[e]}}))});var w=c(r(99423));l(o=u(w)).call(o,function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(d,e)||e in t&&t[e]===w[e]||s(t,e,{enumerable:!0,get:function(){return w[e]}}))});var x=r(38388),E=r(19063),k=r(94050);l(a=u(k)).call(a,function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(d,e)||e in t&&t[e]===k[e]||s(t,e,{enumerable:!0,get:function(){return k[e]}}))})},98904:function(e,t,r){"use strict";var n=r(9131),i=r(31550).default,o=r(4289).default;
2n(t,"__esModule",{value:!0}),t.useMatch=t.Redirect=t.NavLink=t.Link=void 0;var a=o(r(56666)),s=o(r(20808)),l=o(r(80966)),u=o(r(27085)),c=o(r(78697)),d=i(r(27378)),f=r(93674),p=r(239),h=r(38388);const m=(e,t)=>{const r=(0,p.useLocation)();if(!r)return{match:!1};if(t?.searchParams){var n;const e=new s.default(r.search);if((0,l.default)(n=t.searchParams).call(n,t=>{return"string"==typeof t?!e.has(t):(0,l.default)(r=(0,u.default)(t)).call(r,r=>t[r]!=e.get(r));var r}))return{match:!1}}return(0,h.matchPath)(e,r.pathname,{matchSubPaths:t?.matchSubPaths})};t.useMatch=m;const v=(0,d.forwardRef)((e,t)=>{let{to:r,onClick:n,...i}=e;return d.default.createElement("a",(0,a.default)({href:r,ref:t},i,{onClick:e=>{if(!(0!==e.button||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey))if(e.preventDefault(),n){const t=n(e);("boolean"!=typeof t||t)&&(0,f.navigate)(r)}else(0,f.navigate)(r)}}))});t.Link=v;const g=(0,d.forwardRef)((e,t)=>{var r;let{to:n,activeClassName:i,activeMatchParams:o,matchSubPaths:s,className:l,onClick:u,...p}=e;const[v,g]=n.split("?"),y=o||(0,h.flattenSearchParams)(g),b=m(v,{searchParams:y,matchSubPaths:s}),w=(0,c.default)(r=[l,b.match&&i]).call(r,Boolean).join(" ");return d.default.createElement("a",(0,a.default)({href:n,ref:t,className:w},p,{onClick:e=>{if(!(0!==e.button||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey))if(e.preventDefault(),u){const t=u(e);("boolean"!=typeof t||t)&&(0,f.navigate)(n)}else(0,f.navigate)(n)}}))});t.NavLink=g,t.Redirect=e=>{let{to:t,options:r}=e;return(0,d.useEffect)(()=>(0,f.navigate)(t,r),[t,r]),null}},239:function(e,t,r){"use strict";var n=r(9131),i=r(4289).default;n(t,"__esModule",{value:!0}),t.useLocation=t.LocationProvider=t.LocationContext=void 0;var o=i(r(91268)),a=i(r(27378)),s=r(93674);const l=(0,r(38388).createNamedContext)("Location");t.LocationContext=l;class u extends a.default.Component{constructor(){super(...arguments),this.HISTORY_LISTENER_ID=void 0,this.state={context:this.getContext()}}getContext(){let e;if("undefined"!=typeof window){const{pathname:t}=window.location;switch(this.props.trailingSlashes){case"never":(0,o.default)(t).call(t,"/")&&window.history.replaceState({},"",t.substr(0,t.length-1));break;case"always":(0,o.default)(t).call(t,"/")||window.history.replaceState({},"",t+"/")}e=window.location}else e={pathname:this.context?.pathname||"",search:this.context?.search||"",hash:this.context?.hash||""};const{pathname:t,search:r,hash:n}=this.props.location||e;return{pathname:t,search:r,hash:n}}componentDidMount(){this.HISTORY_LISTENER_ID=s.gHistory.listen(()=>{this.setState(()=>({context:this.getContext()}))})}componentWillUnmount(){this.HISTORY_LISTENER_ID&&s.gHistory.remove(this.HISTORY_LISTENER_ID)}render(){return a.default.createElement(l.Provider,{value:this.state.context},this.props.children)}}t.LocationProvider=u,u.contextType=l,t.useLocation=()=>{const e=a.default.useContext(l);if(void 0===e)throw new Error("useLocation must be used within a LocationProvider");return e}},52899:function(e,t,r){"use strict";var n=r(9131),i=r(31550).default;n(t,"__esModule",{value:!0}),t.useParams=t.ParamsProvider=t.ParamsContext=void 0;var o=i(r(27378)),a=r(239),s=r(46312),l=r(38388);const u=(0,l.createNamedContext)("Params");t.ParamsContext=u,t.ParamsProvider=e=>{let{path:t,location:r,children:n}=e;const{paramTypes:i}=(0,s.useRouterState)(),c=(0,a.useLocation)(),d=r||c;let f={};const p=(0,l.parseSearch)(d.search);if(t){const{match:e,params:r}=(0,l.matchPath)(t,d.pathname,{paramTypes:i});e&&void 0!==r&&(f=r)}return o.default.createElement(u.Provider,{value:{params:{...p,...f}}},n)},t.useParams=()=>{const e=(0,o.useContext)(u);if(void 0===e)throw new Error("useParams must be used within a ParamsProvider");return e.params}},84884:function(e,t,r){"use strict";var n=r(9131),i=r(4289).default;n(t,"__esModule",{value:!0}),t.default=void 0;var o=i(r(56666)),a=i(r(27378));t.default=e=>{let{children:t,visuallyHidden:r=!1,...n}=e;return a.default.createElement("div",(0,o.default)({},n,{"data-redwood-route-announcement":!0,style:r?{position:"absolute",top:"0",width:"1",height:"1",padding:"0",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}:{}}),t)}},99423:function(e,t,r){"use strict";var n=r(9131),i=r(4289).default;
2n(t,"__esModule",{value:!0}),t.default=void 0;var o=i(r(56666)),a=i(r(27378));t.default=e=>{let{children:t,...r}=e;return a.default.createElement("div",(0,o.default)({},r,{"data-redwood-route-focus":!0}),t)}},94050:function(e,t,r){"use strict";r(9131)(t,"__esModule",{value:!0})},46312:function(e,t,r){"use strict";var n=r(9131),i=r(31550).default;n(t,"__esModule",{value:!0}),t.useRouterStateSetter=t.useRouterState=t.RouterContextProvider=void 0;var o=i(r(27378)),a=r(51896);const s=(0,o.createContext)(void 0),l=(0,o.createContext)(void 0);function u(e,t){return{...e,...t}}t.RouterContextProvider=e=>{let{useAuth:t,paramTypes:r,children:n}=e;const[i,c]=(0,o.useReducer)(u,{useAuth:t||a.useNoAuth,paramTypes:r});return o.default.createElement(s.Provider,{value:i},o.default.createElement(l.Provider,{value:c},n))},t.useRouterState=()=>{const e=(0,o.useContext)(s);if(void 0===e)throw new Error("useRouterState must be used within a RouterContextProvider");return e},t.useRouterStateSetter=()=>{const e=(0,o.useContext)(l);if(void 0===e)throw new Error("useRouterStateSetter must be used within a RouterContextProvider");return e}},1316:function(e,t,r){"use strict";var n=r(9131),i=r(31550).default,o=r(4289).default;n(t,"__esModule",{value:!0}),t.Route=b,t.Router=void 0,t.isRoute=x,t.routes=void 0;var a=o(r(80966)),s=o(r(91496)),l=o(r(26387)),u=i(r(27378)),c=r(24644),d=r(82560),f=r(98904),p=r(239),h=r(52899),m=r(46312),v=r(58396),g=r(38388);const y={};function b(e){return u.default.createElement(w,e)}t.routes=y;const w=e=>{let{path:t,page:r,name:n,redirect:i,notfound:o}=e;const a=(0,m.useRouterState)(),s=(0,d.useActivePageContext)();if(o)return null;if(!t)throw new Error(`Route "${n}" needs to specify a path`);(0,g.validatePath)(t);const l=s.loadingState[t]?.location;if(!l)throw new Error(`No location for route "${n}"`);const{params:c}=(0,g.matchPath)(t,l.pathname,{paramTypes:a.paramTypes}),p={...(0,g.parseSearch)(l.search),...c};if(i){const e=(0,g.replaceParams)(i,p);return u.default.createElement(f.Redirect,{to:e})}if(!r||!n)throw new Error("A route that's not a redirect or notfound route needs to specify both a `page` and a `name`");const h=s.loadingState[t]?.page||(()=>null);return delete p.ref,delete p.key,u.default.createElement(h,p)};function x(e){return(0,u.isValidElement)(e)&&e.type===b}t.Router=e=>{let{useAuth:t,paramTypes:r,pageLoadingDelay:n,trailingSlashes:i="never",children:o}=e;return u.default.createElement(p.LocationProvider,{trailingSlashes:i},u.default.createElement(E,{useAuth:t,paramTypes:r,pageLoadingDelay:n},o))};const E=e=>{let{useAuth:t,paramTypes:r,pageLoadingDelay:n,children:i}=e;const o=(0,p.useLocation)(),d=(0,g.flattenAll)(i),b=(0,a.default)(d).call(d,e=>!!x(e)&&"/"===e.props.path),w=!(1===d.length&&x(d[0])&&d[0].props.notfound),E=!b&&"/"===o.pathname||!w;if((0,s.default)(d).call(d,e=>{if(x(e)){const{name:t,path:r}=e.props;r&&((0,g.validatePath)(r),t&&r&&(y[t]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,g.replaceParams)(r,e)}))}}),E&&void 0!==v.SplashPage)return u.default.createElement(v.SplashPage,{hasGeneratedRoutes:w,routes:d});const{root:k,activeRoute:S,NotFoundPage:_}=function(e,t,r){let n,i;const o=function e(o){var a;return(0,l.default)(a=u.default.Children.toArray(o)).call(a,(o,a)=>{if(o)return o;if(x(a)){if(a.props.notfound&&a.props.page&&(n=a.props.page),function(e){if(e.props.path){const{match:n}=(0,g.matchPath)(e.props.path,t,{paramTypes:r});if(n)return!0}return!1}(a)){const e=u.default.cloneElement(a,{...a.props,key:".rw-route"});return i=e,e}}else if((0,u.isValidElement)(a)&&a.props.children){const t=e(a.props.children);if(t)return u.default.cloneElement(a,a.props,t)}return o},void 0)}(e);return{root:o,activeRoute:i,NotFoundPage:n}}(i,o.pathname,r);if(!S)return _?u.default.createElement(m.RouterContextProvider,{useAuth:t,paramTypes:r},u.default.createElement(h.ParamsProvider,null,u.default.createElement(c.ActiveRouteLoader,{spec:(0,g.normalizePage)(_),delay:n,path:o.pathname}))):null;const{path:C,page:O,name:P,redirect:T,whileLoadingPage:A}=S.props;if(!C)throw new Error(`Route "${P}" needs to specify a path`);(0,g.validatePath)(C);const{params:I}=(0,g.matchPath)(C,o.pathname,{paramTypes:r}),N={...(0,g.parseSearch)(o.search),...I};return u.default.createElement(m.RouterContextProvider,{useAuth:t,paramTypes:r},T&&u.default.createElement(f.Redirect,{to:(0,g.replaceParams)(T,N)}),!T&&O&&u.default.createElement(c.ActiveRouteLoader,{path:C,spec:(0,g.normalizePage)(O),delay:n,params:N,whileLoadingPage:A},k))}},41065:function(e,t,r){"use strict";
2r(9131)(t,"__esModule",{value:!0}),t.useIsMounted=void 0;var n=r(27378);t.useIsMounted=()=>{const e=(0,n.useRef)(!0);return(0,n.useEffect)(()=>()=>{e.current=!1},[]),(0,n.useCallback)(()=>e.current,[])}},38388:function(e,t,r){"use strict";var n=r(9131),i=r(31550).default,o=r(4289).default;n(t,"__esModule",{value:!0}),t.createNamedContext=void 0,t.flattenAll=function e(t){const r=w.Children.toArray(t);return(0,y.default)(r).call(r,t=>(0,w.isValidElement)(t)&&t.props.children?[t,...e(t.props.children)]:[t])},t.flattenSearchParams=function(e){const t=[];for(const[r,n]of(0,b.default)(k(e)))t.push({[r]:n});return t},t.inIframe=function(){try{return r.g?.self!==r.g?.top}catch(e){return!0}},t.isSpec=S,t.matchPath=void 0,t.normalizePage=function(e){return S(e)?e:{name:e.name,loader:async()=>({default:e}),prerenderLoader:()=>({default:e})}},t.validatePath=t.replaceParams=t.parseSearch=t.paramsForRoute=void 0;var a=o(r(39244)),s=o(r(86506)),l=o(r(46287)),u=o(r(26387)),c=o(r(20808)),d=o(r(42410)),f=o(r(23997)),p=o(r(73749)),h=o(r(91496)),m=o(r(78697)),v=o(r(27085)),g=o(r(92959)),y=o(r(11)),b=o(r(42274)),w=i(r(27378));t.createNamedContext=(e,t)=>
2{const r=w.default.createContext(t);return r.displayName=e,r};const x=e=>{var t;const r=[...(0,a.default)(e).call(e,/\{([^}]+)\}/g)];return(0,s.default)(t=(0,s.default)(r).call(r,e=>e[1])).call(t,e=>{const t=e.split(":");let r=t[0];"..."===(0,l.default)(r).call(r,-3)&&(r=(0,l.default)(r).call(r,0,-3));let n=t[1];return n||(n="..."===(0,l.default)(e).call(e,-3)?"Glob":"String"),[r,n,`{${e}}`]})};t.paramsForRoute=x;const E={String:{match:/[^/]+/},Int:{match:/\d+/,parse:Number},Float:{match:/[-+]?(?:\d*\.?\d+|\d+\.?\d*)(?:[eE][-+]?\d+)?/,parse:Number},Boolean:{match:/true|false/,parse:e=>"true"===e},Glob:{match:/.*/}};t.matchPath=function(e,t){var r;let{paramTypes:n,matchSubPaths:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=x(e),s={...E,...n};let c=e;for(const[e,t,r]of o){const e=s[t]?.match,n=e?.source||"[^/]+";c=c.replace(r,`(${n})`)}const d=i?new RegExp(`^${c}(?:/.*)?$`,"g"):new RegExp(`^${c}$`,"g"),f=[...(0,a.default)(t).call(t,d)];if(0===f.length)return{match:!1};const p=(0,l.default)(r=f[0]).call(r,1);return o.length>0?{match:!0,params:(0,u.default)(p).call(p,(e,t,r)=>{const[n,i]=o[r],a=s[i];let l=t;return"function"==typeof a?.parse&&(l=a.parse(t)),{...e,[n]:l}},{})}:{match:!0}};const k=e=>{var t;const r=new c.default(e);return(0,u.default)(t=[...(0,d.default)(r).call(r)]).call(t,(e,t)=>({...e,[t]:r.get(t)}),{})};function S(e){return void 0!==e.loader}t.parseSearch=k,t.validatePath=e=>{if(!(0,f.default)(e).call(e,"/"))throw new Error(`Route path does not begin with a slash: "${e}"`);if((0,p.default)(e).call(e," ")>=0)throw new Error(`Route path contains spaces: "${e}"`);if(/{(?:ref|key)(?::|})/.test(e))throw new Error([`Route contains ref or key as a path parameter: "${e}"`,"`ref` and `key` shouldn't be used as path parameters because they're special React props.","You can fix this by renaming the path parameter."].join("\n"));const t=(0,a.default)(e).call(e,/\{([^}]+)\}/g),r={};for(const n of t){const t=n[1].split(":")[0];if(r[t])throw new Error(`Route path contains duplicate parameter: "${e}"`);r[t]=!0}},t.replaceParams=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=x(e);let i=e;(0,h.default)(n).call(n,t=>{const[n,o,a]=t,s=r[n];if(void 0===s)throw new Error(`Missing parameter '${n}' for route '${e}' when generating a navigation URL.`);i=i.replace(a,s)});const o=(0,s.default)(n).call(n,e=>e[0]),a=(0,m.default)(t=(0,v.default)(r)).call(t,e=>!(0,g.default)(o).call(o,e)),l=[];return(0,h.default)(a).call(a,e=>{l.push(`${e}=${r[e]}`)}),l.length&&(i+=`?${l.join("&")}`),i}},35189:function(e,t,r){e.exports=r(57225)},57225:function(e,t,r){"use strict";var n=r(9131),i=r(31550).default,o=r(4289).default;n(t,"__esModule",{value:!0}),t.RedwoodApolloProvider=void 0;var a=o(r(27378)),s=o(r(86506)),l=i(r(58392)),u=r(54413),c=r(54785),d=r(51896);r(78984);var f=r(47011),p=r(7982);const{ApolloProvider:h,ApolloClient:m,ApolloLink:v,HttpLink:g,InMemoryCache:y,useQuery:b,useMutation:w,setLogVerbosity:x}=l,E=e=>{let{config:t,children:r,useAuth:n=d.useNoAuth,logLevel:i}=e;x(i);const{getToken:o,type:l}=n(),p={mostRecentRequest:void 0,mostRecentResponse:void 0},y=new v((e,t)=>{var r;const{operationName:n,query:i,variables:o}=e;return p.mostRecentRequest={},p.mostRecentRequest.operationName=n,p.mostRecentRequest.operationKind=i?.kind.toString(),p.mostRecentRequest.variables=o,p.mostRecentRequest.query=i&&(0,c.print)(e.query),(0,s.default)(r=t(e)).call(r,e=>(p.mostRecentResponse=e,e))}),b=(0,u.setContext)(async()=>({token:await o()})),{headers:w,uri:E}=(0,f.useFetchConfig)(),S=new v((e,t)=>{const{token:r}=e.getContext(),n=r?{"auth-provider":l,authorization:`Bearer ${r}`}:{};return e.setContext(()=>({headers:{...w,...n}})),t(e)}),{httpLinkConfig:_,link:C,...O}=null!=t?t:{},P=[b,S,y,new g({uri:E,..._})];let T=v.from(P);C&&(T="function"==typeof C?C(P):C);const A=new m({defaultOptions:{watchQuery:{fetchPolicy:"cache-and-network",notifyOnNetworkStatusChange:!0}},link:T,...O});return a.default.createElement(h,{client:A},a.default.createElement(k,{onError:(e,t)=>{throw e.mostRecentRequest=p.mostRecentRequest,e.mostRecentResponse=p.mostRecentResponse,e}},r))};class k extends a.default.Component{componentDidCatch(){this.setState({}),this.props.onError(...arguments)}render(){return this.props.children}}t.RedwoodApolloProvider=e=>{let{graphQLClientConfig:t,useAuth:r=d.useNoAuth,logLevel:n="debug",children:i}=e;const{cacheConfig:o,...s}=null!=t?t:{},l=new y(o);return a.default.createElement(f.FetchConfigProvider,{useAuth:r},a.default.createElement(E,{config:{cache:l,...s},useAuth:r,logLevel:n},a.default.createElement(p.GraphQLHooksProvider,{useQuery:b,useMutation:w},i)))}},78984:function(e,t,r){"use strict";
2r(9131)(t,"__esModule",{value:!0})},25508:function(){},15814:function(e,t,r){"use strict";var n=r(9131),i=r(31550).default;n(t,"__esModule",{value:!0}),t.CellCacheContextProvider=void 0,t.useCellCacheContext=function(){const e=(0,o.useContext)(a);if(!e)throw new Error("useCellCacheContext must be used within a CellCacheContextProvider");return e};var o=i(r(27378));const a=(0,o.createContext)(void 0);t.CellCacheContextProvider=e=>{let{queryCache:t,children:r}=e;return o.default.createElement(a.Provider,{value:{queryCache:t}},r)}},28116:function(e,t,r){"use strict";var n=r(9131),i=r(4289).default;n(t,"__esModule",{value:!0}),t.default=void 0;var o=i(r(27378));class a extends o.default.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?o.default.createElement("h1",null,"Something went wrong and we are unable to show this page."):this.props.children}}class s extends o.default.Component{constructor(){super(...arguments),this.state={hasError:!1,error:void 0}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}render(){const{page:e}=this.props;return this.state.hasError?o.default.createElement(a,null,o.default.createElement(e,{error:this.state.error})):this.props.children}}var l=s;t.default=l},47011:function(e,t,r){"use strict";var n=r(9131),i=r(4289).default;n(t,"__esModule",{value:!0}),t.useFetchConfig=t.getApiGraphQLUrl=t.FetchConfigProvider=t.FetchConfigContext=void 0;var o=i(r(56666)),a=i(r(4475)),s=i(r(27378)),l=r(51896);const u=()=>a.default.RWJS_API_GRAPHQL_URL;t.getApiGraphQLUrl=u;const c=s.default.createContext({uri:u()});t.FetchConfigContext=c,t.FetchConfigProvider=e=>{let{useAuth:t=l.useNoAuth,...r}=e;const{isAuthenticated:n,type:i}=t();return n?s.default.createElement(c.Provider,(0,o.default)({value:{uri:u(),headers:{"auth-provider":i}}},r)):s.default.createElement(c.Provider,(0,o.default)({value:{uri:u()}},r))},t.useFetchConfig=()=>s.default.useContext(c)},7982:function(e,t,r){"use strict";var n=r(9131),i=r(4289).default;n(t,"__esModule",{value:!0}),t.GraphQLHooksProvider=t.GraphQLHooksContext=void 0,t.useMutation=function(e,t){return o.default.useContext(a).useMutation(e,t)},t.useQuery=function(e,t){return o.default.useContext(a).useQuery(e,t)};var o=i(r(27378));const a=o.default.createContext({useQuery:()=>{throw new Error("You must register a useQuery hook via the `GraphQLHooksProvider`")},useMutation:()=>{throw new Error("You must register a useMutation hook via the `GraphQLHooksProvider`")}});t.GraphQLHooksContext=a,t.GraphQLHooksProvider=e=>{let{useQuery:t,useMutation:r,children:n}=e;return o.default.createElement(a.Provider,{value:{useQuery:t,useMutation:r}},n)}},57339:function(e,t,r){"use strict";var n=r(9131),i=r(4289).default;n(t,"__esModule",{value:!0}),t.MetaTags=void 0;var o=i(r(9981)),a=i(r(27378)),s=r(31786);t.MetaTags=e=>{const{tag:t="og:image",ogType:r="website",ogContentUrl:n,robots:i,contentType:l,ogWidth:u,ogHeight:c,ogUrl:d,title:f,locale:p,description:h,author:m,children:v}=e;return a.default.createElement(a.default.Fragment,null,f&&a.default.createElement(s.Head,null,a.default.createElement("title",null,f),a.default.createElement("meta",{property:"og:title",content:f,key:"title"}),a.default.createElement("meta",{property:"twitter:title",content:f})),h&&a.default.createElement(s.Head,null,a.default.createElement("meta",{name:"description",content:h}),a.default.createElement("meta",{name:"twitter:description",content:h}),a.default.createElement("meta",{property:"og:description",content:h})),m&&a.default.createElement(s.Head,null,a.default.createElement("meta",{name:"author",content:m}),a.default.createElement("meta",{name:"twitter:site",content:m}),a.default.createElement("meta",{name:"twitter:creator",content:m})),d&&a.default.createElement(s.Head,null,a.default.createElement("meta",{property:"og:url",content:d})),p&&a.default.createElement(s.Head,null,a.default.createElement("html",{lang:p}),a.default.createElement("meta",{property:"og:locale",content:p})),a.default.createElement(s.Head,null,a.default.createElement("meta",{property:"og:type",content:r})),n&&a.default.createElement(s.Head,null,a.default.createElement("meta",{property:t,content:n})),l&&a.default.createElement(s.Head,null,a.default.createElement("meta",{property:`${t}:type`,content:l})),"og:image"===t&&a.default.createElement(s.Head,null,u&&a.default.createElement("meta",{property:"image:width",content:u}),c&&a.default.createElement("meta",{property:"image:height",content:c}),a.default.createElement("meta",{property:"twitter:card",content:"summary_large_image"}),a.default.createElement("meta",{property:"twitter:image",content:n})),i&&a.default.createElement(s.Head,null,a.default.createElement("meta",{name:"robots",content:(0,o.default)(i)?i.join(", "):i})),v)}},18407:function(e,t,r){"use strict";var n=r(9131),i=r(4289).default;
2n(t,"__esModule",{value:!0}),t.RedwoodProvider=void 0;var o=i(r(27378)),a=i(r(4475)),s=r(92883);t.RedwoodProvider=e=>{let{children:t,titleTemplate:r}=e;const n=a.default.__REDWOOD__APP_TITLE;return o.default.createElement(s.HelmetProvider,{context:a.default.__REDWOOD__HELMET_CONTEXT},o.default.createElement(s.Helmet,{titleTemplate:(()=>{if(r){let e=r.replace(/%AppTitle/g,n);return e=e.replace(/%PageTitle/g,"%s"),e}return""})(),defaultTitle:n},o.default.createElement("title",null,n)),t)}},84117:function(e,t,r){"use strict";var n=r(9131),i=r(31550).default,o=r(4289).default;n(t,"__esModule",{value:!0}),t.createCell=function(e){let{QUERY:t,beforeQuery:r=e=>({variables:e,fetchPolicy:"cache-and-network",notifyOnNetworkStatusChange:!0}),afterQuery:n=e=>({...e}),isEmpty:i=v,Loading:o=()=>f.default.createElement(f.default.Fragment,null,"Loading..."),Failure:s,Empty:l,Success:u,displayName:g="Cell"}=e;function y(e){const{children:y,...b}=e,w=r(b),x="function"==typeof t?t(w):t;let{error:E,loading:k,data:S,..._}=(0,m.useQuery)(x,w);if(c.default.__REDWOOD__PRERENDERING){const{queryCache:e}=(0,h.useCellCacheContext)(),t=(0,p.getOperationName)(x);let r;if(!t)throw new Error(`The gql query in ${"Cell"===g?"the cell":g} is missing an operation name. Something like FindBlogPostQuery in \`query FindBlogPostQuery($id: Int!)\``);r=t+"_"+(0,d.default)(b);const n=e[r];n?.renderLoading?k=!0:n?.hasProcessed?(k=!1,S=n.data,_={variables:b}):e[r]||(e[r]={query:x,variables:w.variables,hasProcessed:!1})}if(E){var C;if(s)return f.default.createElement(s,(0,a.default)({error:E,errorCode:null!==(C=_.errorCode)&&void 0!==C?C:E.graphQLErrors?.[0]?.extensions?.code},e,{updating:k,queryResult:_}));throw E}if(S){const t=n(S);return i(S,{isDataEmpty:v})&&l?f.default.createElement(l,(0,a.default)({},e,t,{updating:k,queryResult:_})):f.default.createElement(u,(0,a.default)({},e,t,{updating:k,queryResult:_}))}if(k)return f.default.createElement(o,(0,a.default)({},e,{queryResult:_}));throw console.warn("If you're using Apollo Client, check for its debug logs here in the console, which may help explain the error."),new Error("Cannot render Cell: reached an unexpected state where the query succeeded but `data` is `null`. If this happened in Storybook, your query could be missing fields; otherwise this is most likely a GraphQL caching bug. Note that adding an `id` field to all the fields on your query may fix the issue.")}return y.displayName=g,e=>f.default.createElement(f.Suspense,{fallback:null},f.default.createElement(y,e))};var a=o(r(56666)),s=o(r(9981)),l=o(r(47919)),u=o(r(65941)),c=o(r(4475)),d=o(r(75443)),f=i(r(27378)),p=r(52093),h=r(15814),m=r(7982);function v(e){var t;return(0,l.default)(t=(0,u.default)(e)).call(t,e=>{return null===e||(t=e,(0,s.default)(t)&&0===t.length);var t})}},69543:function(e,t,r){"use strict";var n=(0,r(4289).default)(r(4475));n.default.RWJS_API_GRAPHQL_URL="https://api.app.prograd.uk/graphql",n.default.RWJS_API_URL="https://api.app.prograd.uk",n.default.__REDWOOD__APP_TITLE="Prograd"},31016:function(e,t,r){"use strict";var n=r(4289).default,i=n(r(27378)),o=r(37634),a=n(r(83136));const s=document.getElementById("redwood-app");s.children?.length>0?(0,o.hydrateRoot)(s,i.default.createElement(a.default,null)):(0,o.createRoot)(s).render(i.default.createElement(a.default,null))},3813:function(e,t,r){"use strict";r(9131)(t,"__esModule",{value:!0})},52093:function(e,t,r){"use strict";r(9131)(t,"__esModule",{value:!0}),t.getOperationName=function(e){for(const t of e.definitions)if("OperationDefinition"===t.kind&&t.name?.value)return t.name.value;return""}},31786:function(e,t,r){"use strict";var n,i,o,a,s=r(9131),l=r(91496),u=r(27085),c=r(4289).default;s(t,"__esModule",{value:!0});var d={FatalErrorBoundary:!0,FetchConfigProvider:!0,useFetchConfig:!0,GraphQLHooksProvider:!0,useQuery:!0,useMutation:!0,createCell:!0,CellProps:!0,CellFailureProps:!0,CellLoadingProps:!0,CellSuccessProps:!0,CellSuccessData:!0,Head:!0,Helmet:!0};s(t,"CellFailureProps",{enumerable:!0,get:function(){return v.CellFailureProps}}),s(t,"CellLoadingProps",{enumerable:!0,get:function(){return v.CellLoadingProps}}),s(t,"CellProps",{enumerable:!0,get:function(){return v.CellProps}}),s(t,"CellSuccessData",{enumerable:!0,get:function(){return v.CellSuccessData}}),s(t,"CellSuccessProps",{enumerable:!0,get:function(){return v.CellSuccessProps}}),s(t,"FatalErrorBoundary",{enumerable:!0,get:function(){return f.default}}),s(t,"FetchConfigProvider",{enumerable:!0,get:function(){return p.FetchConfigProvider}}),s(t,"GraphQLHooksProvider",{enumerable:!0,get:function(){return h.GraphQLHooksProvider}}),s(t,"Head",{enumerable:!0,get:function(){return w.Helmet}}),s(t,"Helmet",{enumerable:!0,get:function(){return w.Helmet}}),s(t,"createCell",{enumerable:!0,get:function(){return v.createCell}}),s(t,"useFetchConfig",{enumerable:!0,get:function(){return p.useFetchConfig}}),s(t,"useMutation",{enumerable:!0,get:function(){return h.useMutation}}),s(t,"useQuery",{enumerable:!0,get:function(){return h.useQuery}}),r(3813),r(69543),r(25508);var f=c(r(28116)),p=r(47011),h=r(7982),m=r(15814);l(n=u(m)).call(n,function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(d,e)||e in t&&t[e]===m[e]||s(t,e,{enumerable:!0,get:function(){return m[e]}}))});var v=r(84117),g=r(52093);l(i=u(g)).call(i,function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(d,e)||e in t&&t[e]===g[e]||s(t,e,{enumerable:!0,get:function(){return g[e]}}))});var y=r(18407);l(o=u(y)).call(o,function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(d,e)||e in t&&t[e]===y[e]||s(t,e,{enumerable:!0,get:function(){return y[e]}}))});var b=r(57339);l(a=u(b)).call(a,function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(d,e)||e in t&&t[e]===b[e]||s(t,e,{enumerable:!0,get:function(){return b[e]}}))});var w=r(92883)},73487:function(e,t,r){"use strict";var n,i=r(9131),o=r(91496),a=r(27085),s=r(31550).default;
2i(t,"__esModule",{value:!0});var l={toast:!0};i(t,"toast",{enumerable:!0,get:function(){return u.default}});var u=s(r(22809));o(n=a(u)).call(n,function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(l,e)||e in t&&t[e]===u[e]||i(t,e,{enumerable:!0,get:function(){return u[e]}}))})},81006:function(e,t,r){e.exports=r(73487)},75856:function(e,t){!function(e){"use strict";var t=function(){return t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)},r=function(){function e(e,r,n){var i=this;this.endVal=r,this.options=n,this.version="2.10.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",autoAnimate:!1,autoAnimateDelay:200,autoAnimateOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(e){i.startTime||(i.startTime=e);var t=e-i.startTime;i.remaining=i.duration-t,i.useEasing?i.countDown?i.frameVal=i.startVal-i.easingFn(t,0,i.startVal-i.endVal,i.duration):i.frameVal=i.easingFn(t,i.startVal,i.endVal-i.startVal,i.duration):i.frameVal=i.startVal+(i.endVal-i.startVal)*(t/i.duration);var r=i.countDown?i.frameVal<i.endVal:i.frameVal>i.endVal;i.frameVal=r?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),t<i.duration?i.rAF=requestAnimationFrame(i.count):null!==i.finalEndVal?i.update(i.finalEndVal):i.options.onCompleteCallback&&i.options.onCompleteCallback()},this.formatNumber=function(e){var t,r,n,o,a=e<0?"-":"";t=Math.abs(e).toFixed(i.options.decimalPlaces);var s=(t+="").split(".");if(r=s[0],n=s.length>1?i.options.decimal+s[1]:"",i.options.useGrouping){o="";for(var l=3,u=0,c=0,d=r.length;c<d;++c)i.options.useIndianSeparators&&4===c&&(l=2,u=1),0!==c&&u%l==0&&(o=i.options.separator+o),u++,o=r[d-c-1]+o;r=o}return i.options.numerals&&i.options.numerals.length&&(r=r.replace(/[0-9]/g,function(e){return i.options.numerals[+e]}),n=n.replace(/[0-9]/g,function(e){return i.options.numerals[+e]})),a+i.options.prefix+r+n+i.options.suffix},this.easeOutExpo=function(e,t,r,n){return r*(1-Math.pow(2,-10*e/n))*1024/1023+t},this.options=t(t({},this.defaults),n),this.options.enableScrollSpy&&(this.options.autoAnimate=!0),void 0!==this.options.scrollSpyDelay&&(this.options.autoAnimateDelay=this.options.scrollSpyDelay),this.options.scrollSpyOnce&&(this.options.autoAnimateOnce=!0),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.el="string"==typeof e?document.getElementById(e):e,r=null==r?this.parse(this.el.innerHTML):r,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(r),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined","undefined"!=typeof window&&this.options.autoAnimate&&(this.error||"undefined"==typeof IntersectionObserver?this.error?console.error(this.error,e):console.error("IntersectionObserver is not supported by this browser"):this.setupObserver())}return e.prototype.setupObserver=function(){var t=this,r=e.observedElements.get(this.el);r&&r.unobserve(),e.observedElements.set(this.el,this),this.observer=new IntersectionObserver(function(e){for(var r=0,n=e;r<n.length;r++){var i=n[r];i.isIntersecting&&t.paused&&!t.once?(t.paused=!1,t.autoAnimateTimeout=setTimeout(function(){return t.start()},t.options.autoAnimateDelay),t.options.autoAnimateOnce&&(t.once=!0,t.observer.disconnect())):i.isIntersecting||t.paused||(clearTimeout(t.autoAnimateTimeout),t.reset())}},{threshold:0}),this.observer.observe(this.el)},e.prototype.unobserve=function(){var t;clearTimeout(this.autoAnimateTimeout),null===(t=this.observer)||void 0===t||t.disconnect(),e.observedElements.delete(this.el)},e.prototype.onDestroy=function(){clearTimeout(this.autoAnimateTimeout),cancelAnimationFrame(this.rAF),this.paused=!0,this.unobserve(),this.options.onCompleteCallback=null,this.options.onStartCallback=null},e.prototype.determineDirectionAndSmartEasing=function(){var e=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>e;var t=e-this.startVal;if(Math.abs(t)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=e;var r=this.countDown?1:-1;
2this.endVal=e+r*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(e){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),e&&(this.options.onCompleteCallback=e),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){clearTimeout(this.autoAnimateTimeout),cancelAnimationFrame(this.rAF),this.paused=!0,this.once=!1,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(e){var t;if(this.el){var r=this.formattingFn(e);(null===(t=this.options.plugin)||void 0===t?void 0:t.render)?this.options.plugin.render(this.el,r):"INPUT"===this.el.tagName?this.el.value=r:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=r:this.el.innerHTML=r}},e.prototype.ensureNumber=function(e){return"number"==typeof e&&!isNaN(e)},e.prototype.validateValue=function(e){var t=Number(e);return this.ensureNumber(t)?t:(this.error="[CountUp] invalid start or end value: ".concat(e),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e.prototype.parse=function(e){var t=function(e){return e.replace(/([.,'Â ])/g,"\\$1")},r=t(this.options.separator),n=t(this.options.decimal),i=e.replace(new RegExp(r,"g"),"").replace(new RegExp(n,"g"),".");return parseFloat(i)},e.observedElements=new WeakMap,e}();e.CountUp=r}(t)},98739:function(e,t,r){var n=r(4190),i=r(64674),o=r(48273),a=0,s=Math.pow(36,4);function l(){return i((o()*s|0).toString(36),4)}function u(){return a=a<s?a:0,++a-1}function c(){return"c"+(new Date).getTime().toString(36)+i(u().toString(36),4)+n()+(l()+l())}c.slug=function(){var e=(new Date).getTime().toString(36),t=u().toString(36).slice(-4),r=n().slice(0,1)+n().slice(-1),i=l().slice(-2);return e.slice(-2)+t+r+i},c.isCuid=function(e){return"string"==typeof e&&!!e.startsWith("c")},c.isSlug=function(e){if("string"!=typeof e)return!1;var t=e.length;return t>=7&&t<=10},c.fingerprint=n,e.exports=c},4190:function(e,t,r){var n=r(64674),i="object"==typeof window?window:self,o=Object.keys(i).length,a=n(((navigator.mimeTypes?navigator.mimeTypes.length:0)+navigator.userAgent.length).toString(36)+o.toString(36),4);e.exports=function(){return a}},48273:function(e){var t,r="undefined"!=typeof window&&(window.crypto||window.msCrypto)||"undefined"!=typeof self&&self.crypto;if(r){var n=Math.pow(2,32)-1;t=function(){return Math.abs(r.getRandomValues(new Uint32Array(1))[0]/n)}}else t=Math.random;e.exports=t},64674:function(e){e.exports=function(e,t){var r="000000000"+e;return r.substr(r.length-t)}},49290:function(e,t,r){"use strict";function n(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}r.d(t,{Z:function(){return n}})},25902:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var o={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(e){return function(t,r){var n;if("formatting"===(null!=r&&r.context?String(r.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=r&&r.width?String(r.width):i;n=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!=r&&r.width?String(r.width):e.defaultWidth;n=e.values[s]||e.values[a]}return n[e.argumentCallback?e.argumentCallback(t):t]}}var l={ordinalNumber:function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
2ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function u(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}(l,function(e){return e.test(s)}):function(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}(l,function(e){return e.test(s)});return a=e.valueCallback?e.valueCallback(u):u,{value:a=r.valueCallback?r.valueCallback(a):a,rest:t.slice(s.length)}}}var c,d={ordinalNumber:(c={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.match(c.matchPattern);if(!r)return null;var n=r[0],i=e.match(c.parsePattern);if(!i)return null;var o=c.valueCallback?c.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(n.length)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},f={code:"en-US",formatDistance:function(e,t,r){var i,o=n[e];return i="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i},formatLong:o,formatRelative:function(e,t,r,n){return a[e]},localize:l,match:d,options:{weekStartsOn:0,firstWeekContainsDate:1}}},51155:function(e,t,r){"use strict";r.d(t,{j:function(){return i}});var n={};function i(){return n}},76415:function(e,t,r){"use strict";function n(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}r.d(t,{Z:function(){return n}})},85902:function(e,t,r){"use strict";function n(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}r.d(t,{Z:function(){return n}})},66288:function(e,t,r){"use strict";r.d(t,{u:function(){return o}});var n={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},i="trunc";function o(e){return e?n[e]:n[i]}}
2,99907:function(e,t,r){"use strict";function n(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}r.d(t,{Z:function(){return n}})},64083:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(99907),i=r(32825),o=r(85902);function a(e,t){(0,o.Z)(2,arguments);var r=(0,i.Z)(e),a=(0,n.Z)(t);return isNaN(a)?new Date(NaN):a?(r.setDate(r.getDate()+a),r):r}},68578:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(99907),i=r(32825),o=r(85902);function a(e,t){(0,o.Z)(2,arguments);var r=(0,i.Z)(e).getTime(),a=(0,n.Z)(t);return new Date(r+a)}},42601:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(99907),i=r(68578),o=r(85902),a=6e4;function s(e,t){(0,o.Z)(2,arguments);var r=(0,n.Z)(t);return(0,i.Z)(e,r*a)}},32457:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(32825),i=r(85902);function o(e,t){(0,i.Z)(2,arguments);var r=(0,n.Z)(e),o=(0,n.Z)(t),a=r.getTime()-o.getTime();return a<0?-1:a>0?1:a}},20129:function(e,t,r){"use strict";r.d(t,{qk:function(){return o},vh:function(){return i},yJ:function(){return n}}),Math.pow(10,8);var n=6e4,i=36e5,o=1e3},14964:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(32825),i=r(76415),o=r(23544),a=r(85902),s=864e5;function l(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function u(e,t){(0,a.Z)(2,arguments);var r=(0,n.Z)(e),u=(0,n.Z)(t),c=l(r,u),d=Math.abs(function(e,t){(0,a.Z)(2,arguments);var r=(0,o.Z)(e),n=(0,o.Z)(t),l=r.getTime()-(0,i.Z)(r),u=n.getTime()-(0,i.Z)(n);return Math.round((l-u)/s)}(r,u));r.setDate(r.getDate()-c*d);var f=c*(d-Number(l(r,u)===-c));return 0===f?0:f}},89154:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(32825),i=r(85902);function o(e,t){return(0,i.Z)(2,arguments),(0,n.Z)(e).getTime()-(0,n.Z)(t).getTime()}},1738:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(20129),i=r(89154),o=r(85902),a=r(66288);function s(e,t,r){(0,o.Z)(2,arguments);var s=(0,i.Z)(e,t)/n.yJ;return(0,a.u)(null==r?void 0:r.roundingMethod)(s)}},61655:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(32825),i=r(85902),o=r(32457),a=r(25480),s=r(18309);function l(e,t){(0,i.Z)(2,arguments);var r,l=(0,n.Z)(e),u=(0,n.Z)(t),c=(0,o.Z)(l,u),d=Math.abs(function(e,t){(0,i.Z)(2,arguments);var r=(0,n.Z)(e),o=(0,n.Z)(t);return 12*(r.getFullYear()-o.getFullYear())+(r.getMonth()-o.getMonth())}(l,u));if(d<1)r=0;else{1===l.getMonth()&&l.getDate()>27&&l.setDate(30),l.setMonth(l.getMonth()-c*d);var f=(0,o.Z)(l,u)===-c;(function(e){(0,i.Z)(1,arguments);var t=(0,n.Z)(e);return(0,a.Z)(t).getTime()===(0,s.Z)(t).getTime()})((0,n.Z)(e))&&1===d&&1===(0,o.Z)(e,u)&&(f=!1),r=c*(d-Number(f))}return 0===r?0:r}},49621:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(89154),i=r(85902),o=r(66288);function a(e,t,r){(0,i.Z)(2,arguments);var a=(0,n.Z)(e,t)/1e3;return(0,o.u)(null==r?void 0:r.roundingMethod)(a)}},36236:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(32825),i=r(85902),o=r(32457);function a(e,t){(0,i.Z)(2,arguments);var r=(0,n.Z)(e),a=(0,n.Z)(t),s=(0,o.Z)(r,a),l=Math.abs(function(e,t){(0,i.Z)(2,arguments);var r=(0,n.Z)(e),o=(0,n.Z)(t);return r.getFullYear()-o.getFullYear()}(r,a));r.setFullYear(1584),a.setFullYear(1584);var u=(0,o.Z)(r,a)===-s,c=s*(l-Number(u));return 0===c?0:c}},25480:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(32825),i=r(85902);function o(e){(0,i.Z)(1,arguments);var t=(0,n.Z)(e);return t.setHours(23,59,59,999),t}},18309:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(32825),i=r(85902);function o(e){(0,i.Z)(1,arguments);var t=(0,n.Z)(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}},20564:function(e,t,r){"use strict";r.d(t,{Z:function(){return v}});var n=r(51155),i=r(32457),o=r(61655),a=r(49621),s=r(25902),l=r(32825),u=r(49290),c=r(76415),d=r(85902),f=1440,p=2520,h=43200,m=86400;function v(e,t,r){var v,g;(0,d.Z)(2,arguments);var y=(0,n.j)(),b=null!==(v=null!==(g=null==r?void 0:r.locale)&&void 0!==g?g:y.locale)&&void 0!==v?v:s.Z;if(!b.formatDistance)throw new RangeError("locale must contain formatDistance property");var w=(0,i.Z)(e,t);if(isNaN(w))throw new RangeError("Invalid time value");var x,E,k,S=(0,u.Z)((x=r,(0,u.Z)({},x)),{addSuffix:Boolean(null==r?void 0:r.addSuffix),comparison:w});w>0?(E=(0,l.Z)(t),k=(0,l.Z)(e)):(E=(0,l.Z)(e),k=(0,l.Z)(t));var _,C=(0,a.Z)(k,E),O=((0,c.Z)(k)-(0,c.Z)(E))/1e3,P=Math.round((C-O)/60);if(P<2)return null!=r&&r.includeSeconds?C<5?b.formatDistance("lessThanXSeconds",5,S):C<10?b.formatDistance("lessThanXSeconds",10,S):C<20?b.formatDistance("lessThanXSeconds",20,S):C<40?b.formatDistance("halfAMinute",0,S):C<60?b.formatDistance("lessThanXMinutes",1,S):b.formatDistance("xMinutes",1,S):0===P?b.formatDistance("lessThanXMinutes",1,S):b.formatDistance("xMinutes",P,S);if(P<45)return b.formatDistance("xMinutes",P,S);if(P<90)return b.formatDistance("aboutXHours",1,S);if(P<f){var T=Math.round(P/60);return b.formatDistance("aboutXHours",T,S)}if(P<p)return b.formatDistance("xDays",1,S);if(P<h){var A=Math.round(P/f);return b.formatDistance("xDays",A,S)}if(P<m)return _=Math.round(P/h),b.formatDistance("aboutXMonths",_,S);if((_=(0,o.Z)(k,E))<12){var I=Math.round(P/h);return b.formatDistance("xMonths",I,S)}var N=_%12,R=Math.floor(_/12);return N<3?b.formatDistance("aboutXYears",R,S):N<9?b.formatDistance("overXYears",R,S):b.formatDistance("almostXYears",R+1,S)}},47663:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(20564),i=r(85902);function o(e,t){return(0,i.Z)(1,arguments),(0,n.Z)(e,Date.now(),t)}},26992:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(32825),i=r(85902);function o(e,t){(0,i.Z)(2,arguments);var r=(0,n.Z)(e),o=(0,n.Z)(t);return r.getTime()>o.getTime()}},94762:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(32825),i=r(85902);function o(e,t){(0,i.Z)(2,arguments);var r=(0,n.Z)(e),o=(0,n.Z)(t);return r.getTime()<o.getTime()}},23544:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(32825),i=r(85902);function o(e){(0,i.Z)(1,arguments);var t=(0,n.Z)(e);return t.setHours(0,0,0,0),t}},32825:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(33940),i=r(85902);function o(e){(0,i.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,n.Z)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.
21 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},21857:function(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function i(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,r,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=n;var u=Array.isArray(r);return u===Array.isArray(e)?u?l.arrayMerge(e,r,l):function(e,t,r){var i={};return r.isMergeableObject(e)&&o(e).forEach(function(t){i[t]=n(e[t],r)}),o(t).forEach(function(o){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(a(e,o)&&r.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return s;var r=t.customMerge(e);return"function"==typeof r?r:s}(o,r)(e[o],t[o],r):i[o]=n(t[o],r))}),i}(e,r,l):n(r,l)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return s(e,r,t)},{})};var l=s;e.exports=l},94621:function(e,t,r){"use strict";r.d(t,{ZP:function(){return ae},J9:function(){return X},_t:function(){return K},wO:function(){return J},Ps:function(){return Q},HW:function(){return Y}});var n=r(85556);function i(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const o=/\r\n|[\n\r]/g;function a(e,t){let r=0,n=1;for(const a of e.body.matchAll(o)){if("number"==typeof a.index||i(!1),a.index>=t)break;r=a.index+a[0].length,n+=1}return{line:n,column:t+1-r}}function s(e){return l(e.source,a(e.source,e.start))}function l(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?r:0,l=t.column+s,c=`${e.name}:${a}:${l}\n`,d=n.split(/\r\n|[\n\r]/g),f=d[i];if(f.length>120){const e=Math.floor(l/80),t=l%80,r=[];for(let e=0;e<f.length;e+=80)r.push(f.slice(e,e+80));return c+u([[`${a} |`,r[0]],...r.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",r[e+1]]])}return c+u([[a-1+" |",d[i-1]],[`${a} |`,f],["|","^".padStart(l)],[`${a+1} |`,d[i+1]]])}function u(e){const t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join("\n")}class c extends Error{constructor(e,...t){var r,n,i;const{nodes:o,source:s,positions:l,path:u,originalError:f,extensions:p}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=f?f:void 0,this.nodes=d(Array.isArray(o)?o:o?[o]:void 0);const h=d(null===(r=this.nodes)||void 0===r?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=s?s:null==h||null===(n=h[0])||void 0===n?void 0:n.source,this.positions=null!=l?l:null==h?void 0:h.map(e=>e.start),this.locations=l&&s?l.map(e=>a(s,e)):null==h?void 0:h.map(e=>a(e.source,e.start));const m="object"==typeof(v=null==f?void 0:f.extensions)&&null!==v?null==f?void 0:f.extensions:void 0;var v;this.extensions=null!==(i=null!=p?p:m)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,c):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+s(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+l(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function d(e){return void 0===e||0===e.length?void 0:e}function f(e,t,r){return new c(`Syntax Error: ${r}`,{source:e,positions:[t]})}var p,h=r(35239);!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(p||(p={}));var m,v,g=r(57554),y=r(25965),b=r(76714);(v=m||(m={})).SOF="<SOF>",v.EOF="<EOF>",v.BANG="!",v.DOLLAR="$",v.AMP="&",v.PAREN_L="(",v.PAREN_R=")",v.SPREAD="...",v.COLON=":",v.EQUALS="=",v.AT="@",v.BRACKET_L="[",v.BRACKET_R="]",v.BRACE_L="{",v.PIPE="|",v.BRACE_R="}
2",v.NAME="Name",v.INT="Int",v.FLOAT="Float",v.STRING="String",v.BLOCK_STRING="BlockString",v.COMMENT="Comment";class w{constructor(e){const t=new h.WU(m.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==m.EOF)do{if(e.next)e=e.next;else{const t=O(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===m.COMMENT);return e}}function x(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function E(e,t){return k(e.charCodeAt(t))&&S(e.charCodeAt(t+1))}function k(e){return e>=55296&&e<=56319}function S(e){return e>=56320&&e<=57343}function _(e,t){const r=e.source.body.codePointAt(t);if(void 0===r)return m.EOF;if(r>=32&&r<=126){const e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function C(e,t,r,n,i){const o=e.line,a=1+r-e.lineStart;return new h.WU(t,r,n,o,a,i)}function O(e,t){const r=e.source.body,n=r.length;let i=t;for(;i<n;){const t=r.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===r.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return P(e,i);case 33:return C(e,m.BANG,i,i+1);case 36:return C(e,m.DOLLAR,i,i+1);case 38:return C(e,m.AMP,i,i+1);case 40:return C(e,m.PAREN_L,i,i+1);case 41:return C(e,m.PAREN_R,i,i+1);case 46:if(46===r.charCodeAt(i+1)&&46===r.charCodeAt(i+2))return C(e,m.SPREAD,i,i+3);break;case 58:return C(e,m.COLON,i,i+1);case 61:return C(e,m.EQUALS,i,i+1);case 64:return C(e,m.AT,i,i+1);case 91:return C(e,m.BRACKET_L,i,i+1);case 93:return C(e,m.BRACKET_R,i,i+1);case 123:return C(e,m.BRACE_L,i,i+1);case 124:return C(e,m.PIPE,i,i+1);case 125:return C(e,m.BRACE_R,i,i+1);case 34:return 34===r.charCodeAt(i+1)&&34===r.charCodeAt(i+2)?L(e,i):I(e,i)}if((0,b.X1)(t)||45===t)return T(e,i,t);if((0,b.LQ)(t))return F(e,i);throw f(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":x(t)||E(r,i)?`Unexpected character: ${_(e,i)}.`:`Invalid character: ${_(e,i)}.`)}return C(e,m.EOF,n,n)}function P(e,t){const r=e.source.body,n=r.length;let i=t+1;for(;i<n;){const e=r.charCodeAt(i);if(10===e||13===e)break;if(x(e))++i;else{if(!E(r,i))break;i+=2}}return C(e,m.COMMENT,t,i,r.slice(t+1,i))}function T(e,t,r){const n=e.source.body;let i=t,o=r,a=!1;if(45===o&&(o=n.charCodeAt(++i)),48===o){if(o=n.charCodeAt(++i),(0,b.X1)(o))throw f(e.source,i,`Invalid number, unexpected digit after 0: ${_(e,i)}.`)}else i=A(e,i,o),o=n.charCodeAt(i);if(46===o&&(a=!0,o=n.charCodeAt(++i),i=A(e,i,o),o=n.charCodeAt(i)),69!==o&&101!==o||(a=!0,o=n.charCodeAt(++i),43!==o&&45!==o||(o=n.charCodeAt(++i)),i=A(e,i,o),o=n.charCodeAt(i)),46===o||(0,b.LQ)(o))throw f(e.source,i,`Invalid number, expected digit but got: ${_(e,i)}.`);return C(e,a?m.FLOAT:m.INT,t,i,n.slice(t,i))}function A(e,t,r){if(!(0,b.X1)(r))throw f(e.source,t,`Invalid number, expected digit but got: ${_(e,t)}.`);const n=e.source.body;let i=t+1;for(;(0,b.X1)(n.charCodeAt(i));)++i;return i}function I(e,t){const r=e.source.body,n=r.length;let i=t+1,o=i,a="";for(;i<n;){const n=r.charCodeAt(i);if(34===n)return a+=r.slice(o,i),C(e,m.STRING,t,i+1,a);if(92===n){a+=r.slice(o,i);const t=117===r.charCodeAt(i+1)?123===r.charCodeAt(i+2)?N(e,i):R(e,i):D(e,i);a+=t.value,i+=t.size,o=i;continue}if(10===n||13===n)break;if(x(n))++i;else{if(!E(r,i))throw f(e.source,i,`Invalid character within String: ${_(e,i)}.`);i+=2}}throw f(e.source,i,"Unterminated string.")}function N(e,t){const r=e.source.body;let n=0,i=3;for(;i<12;){const e=r.charCodeAt(t+i++);if(125===e){if(i<5||!x(n))break;return{value:String.fromCodePoint(n),size:i}}if(n=n<<4|M(e),n<0)break}throw f(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}function R(e,t){const r=e.source.body,n=j(r,t+2);if(x(n))return{value:String.fromCodePoint(n),size:6};if(k(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){const e=j(r,t+8);if(S(e))return{value:String.fromCodePoint(n,e),size:12}}throw f(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}function j(e,t){return M(e.charCodeAt(t))<<12|M(e.charCodeAt(t+1))<<8|M(e.charCodeAt(t+2))<<4|M(e.charCodeAt(t+3))}function M(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function D(e,t){const r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw f(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function L(e,t){const r=e.source.body,n=r.length;let i=e.lineStart,o=t+3,a=o,s="";const l=[];for(;o<n;){const n=r.charCodeAt(o);if(34===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)){s+=r.slice(a,o),l.push(s);const n=C(e,m.BLOCK_STRING,t,o+3,(0,y.wv)(l).join("\n"));return e.line+=l.length-1,e.lineStart=i,n}if(92!==n||34!==r.charCodeAt(o+1)||34!==r.charCodeAt(o+2)||34!==r.charCodeAt(o+3))if(10!==n&&13!==n)if(x(n))++o;else{if(!E(r,o))throw f(e.source,o,`Invalid character within String: ${_(e,o)}.`);o+=2}else s+=r.slice(a,o),l.push(s),13===n&&10===r.charCodeAt(o+1)?o+=2:++o,s="",a=o,i=o;else s+=r.slice(a,o),a=o+1,o+=4}throw f(e.source,o,"Unterminated string.")}function F(e,t){const r=e.source.body,n=r.length;let i=t+1;for(;i<n;){const e=r.charCodeAt(i);if(!(0,b.HQ)(e))break;++i}return C(e,m.NAME,t,i,r.slice(t,i))}var B=r(65839);class U{constructor(e,t={}){const r=(0,B.T)(e)?e:new B.H(e);this._lexer=new w(r),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(m.NAME);return this.node(e,{kind:g.h.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:g.h.DOCUMENT,definitions:this.many(m.SOF,this.parseDefinition,m.EOF)})}parseDefinition(){if(this.peek(m.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===m.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw f(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(m.BRACE_L))return this.node(e,{kind:g.h.OPERATION_DEFINITION,operation:h.ku.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let r;return this.peek(m.NAME)&&(r=this.parseName()),this.node(e,{kind:g.h.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(m.NAME);switch(e.value){case"query":return h.ku.QUERY;case"mutation":return h.ku.MUTATION;case"subscription":return h.ku.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(m.PAREN_L,this.parseVariableDefinition,m.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:g.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(m.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(m.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(m.DOLLAR),this.node(e,{kind:g.h.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:g.h.SELECTION_SET,selections:this.many(m.BRACE_L,this.parseSelection,m.BRACE_R)})}parseSelection(){return this.peek(m.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let r,n;return this.expectOptionalToken(m.COLON)?(r=t,n=this.parseName()):n=t,this.node(e,{kind:g.h.FIELD,alias:r,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(m.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(m.PAREN_L,t,m.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,r=this.parseName();return this.expectToken(m.COLON),this.node(t,{kind:g.h.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(m.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(m.NAME)?this.node(e,{kind:g.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:g.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:g.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:g.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case m.BRACKET_L:return this.parseList(e);case m.BRACE_L:return this.parseObject(e);case m.INT:return this.advanceLexer(),this.node(t,{kind:g.h.INT,value:t.value});case m.FLOAT:return this.advanceLexer(),this.node(t,{kind:g.h.FLOAT,value:t.value});case m.STRING:case m.BLOCK_STRING:return this.parseStringLiteral();case m.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:g.h.BOOLEAN,value:!0});case"false":return this.node(t,{kind:g.h.BOOLEAN,value:!1});case"null":return this.node(t,{kind:g.h.NULL});default:return this.node(t,{kind:g.h.ENUM,value:t.value})}case m.DOLLAR:if(e){if(this.expectToken(m.DOLLAR),this._lexer.token.kind===m.NAME){const e=this._lexer.token.value;throw f(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:g.h.STRING,value:e.value,block:e.kind===m.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:g.h.LIST,values:this.any(m.BRACKET_L,()=>this.parseValueLiteral(e),m.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:g.h.OBJECT,fields:this.any(m.BRACE_L,()=>this.parseObjectField(e),m.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,r=this.parseName();return this.expectToken(m.COLON),this.node(t,{kind:g.h.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(m.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(m.AT),this.node(t,{kind:g.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(m.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(m.BRACKET_R),t=this.node(e,{kind:g.h.LIST_TYPE,type:r})}else t=this.parseNamedType();return this.expectOptionalToken(m.BANG)?this.node(e,{kind:g.h.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:g.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(m.STRING)||this.peek(m.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.many(m.BRACE_L,this.parseOperationTypeDefinition,m.BRACE_R);return this.node(e,{kind:g.h.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(m.COLON);const r=this.parseNamedType();return this.node(e,{kind:g.h.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:g.h.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:g.h.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(m.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(m.BRACE_L,this.parseFieldDefinition,m.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(m.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:g.h.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(m.PAREN_L,this.parseInputValueDef,m.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(m.COLON);const n=this.parseTypeReference();let i;this.expectOptionalToken(m.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:g.h.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();
2return this.node(e,{kind:g.h.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:g.h.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(m.EQUALS)?this.delimitedMany(m.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:g.h.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(m.BRACE_L,this.parseEnumValueDefinition,m.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:g.h.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw f(this._lexer.source,this._lexer.token.start,`${V(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:g.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(m.BRACE_L,this.parseInputValueDef,m.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===m.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),r=this.optionalMany(m.BRACE_L,this.parseOperationTypeDefinition,m.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:g.h.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:g.h.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:g.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();
2return this.node(e,{kind:g.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:g.h.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:g.h.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:g.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(m.AT);const r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:g.h.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(m.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(p,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new h.Ye(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw f(this._lexer.source,t.start,`Expected ${z(e)}, found ${V(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==m.NAME||t.value!==e)throw f(this._lexer.source,t.start,`Expected "${e}", found ${V(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===m.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return f(this._lexer.source,t.start,`Unexpected ${V(t)}.`)}any(e,t,r){this.expectToken(e);const n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);const n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==m.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw f(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function V(e){const t=e.value;return z(e.kind)+(null!=t?` "${t}"`:"")}function z(e){return function(e){return e===m.BANG||e===m.DOLLAR||e===m.AMP||e===m.PAREN_L||e===m.PAREN_R||e===m.SPREAD||e===m.COLON||e===m.EQUALS||e===m.AT||e===m.BRACKET_L||e===m.BRACKET_R||e===m.BRACE_L||e===m.PIPE||e===m.BRACE_R}(e)?`"${e}"`:e}var q=new Map,H=new Map,G=!0,$=!1;function W(e){return e.replace(/[\s,]+/g," ").trim()}function Z(e){var t=W(e);if(!q.has(t)){var r=function(e,t){return new U(e,t).parseDocument()}(e,{experimentalFragmentVariables:$,allowLegacyFragmentVariables:$});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");q.set(t,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(r){var n=e[r];n&&"object"==typeof n&&t.add(n)})});var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}(function(e){var t=new Set,r=[];return e.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,i=W((a=e.loc).source.body.substring(a.start,a.end)),o=H.get(n);o&&!o.has(i)?G&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||H.set(n,o=new Set),o.add(i),t.has(i)||(t.add(i),r.push(e))}else r.push(e);var a}),(0,n.pi)((0,n.pi)({},e),{definitions:r})}(r)))}return q.get(t)}function Q(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]}),Z(n)}function Y(){q.clear(),H.clear()}function K(){G=!1}function J(){$=!0}function X(){$=!1}var ee,te=Q,re=Y,ne=K,ie=J,oe=X;(ee=Q||(Q={})).gql=te,ee.resetCaches=re,ee.disableFragmentWarnings=ne,ee.enableExperimentalFragmentVariables=ie,ee.disableExperimentalFragmentVariables=oe,Q.default=Q;var ae=Q},3996:function(e){"use strict";
2e.exports=function(e,t,r,n,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,i,o,a,s],c=0;(l=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},29610:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(27378),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const o=(e,t)=>{const r=(0,n.forwardRef)(({color:r="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:s,children:l,...u},c)=>{return(0,n.createElement)("svg",{ref:c,...i,width:o,height:o,stroke:r,strokeWidth:s?24*Number(a)/Number(o):a,className:`lucide lucide-${d=e,d.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,...u},[...t.map(([e,t])=>(0,n.createElement)(e,t)),...(Array.isArray(l)?l:[l])||[]]);var d});return r.displayName=`${e}`,r}},82558:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});const n=(0,r(29610).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},58396:function(){},35131:function(e){e.exports=e=>{if(null==e)return"";if("function"!=typeof e.toString)return"";let t=e.toString().trim();if(""===t)return"";if(1===t.length)return t.toLocaleUpperCase();let r=t.match(/[a-zA-Z0-9]+/g);return r?r.map(e=>(e=>e[0].toLocaleUpperCase()+e.slice(1))(e)).join(""):t}},58772:function(e,t,r){"use strict";var n=r(90331);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i}
2;return r.PropTypes=r,r}},23615:function(e,t,r){e.exports=r(58772)()},90331:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},25086:function(e,t,r){"use strict";var n=r(27378),i=r(75856);function o(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){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function l(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;function d(e){var t=n.useRef(e);return c(function(){t.current=e}),n.useCallback(function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current.apply(void 0,r)},[])}var f=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],p={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},h=function(e){var t=Object.fromEntries(Object.entries(e).filter(function(e){return void 0!==(t=e,r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,r)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.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)?u(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];var t,r})),r=n.useMemo(function(){return a(a({},p),t)},[e]),o=r.ref,s=r.startOnMount,c=r.enableReinitialize,h=r.delay,m=r.onEnd,v=r.onStart,g=r.onPauseResume,y=r.onReset,b=r.onUpdate,w=l(r,f),x=n.useRef(),E=n.useRef(),k=n.useRef(!1),S=d(function(){return function(e,t){var r=t.decimal,n=t.decimals,o=t.duration,a=t.easingFn,s=t.end,l=t.formattingFn,u=t.numerals,c=t.prefix,d=t.separator,f=t.start,p=t.suffix,h=t.useEasing,m=t.useGrouping,v=t.useIndianSeparators,g=t.enableScrollSpy,y=t.scrollSpyDelay,b=t.scrollSpyOnce,w=t.plugin;
2return new i.CountUp(e,s,{startVal:f,duration:o,decimal:r,decimalPlaces:n,easingFn:a,formattingFn:l,numerals:u,separator:d,prefix:c,suffix:p,plugin:w,useEasing:h,useIndianSeparators:v,useGrouping:m,enableScrollSpy:g,scrollSpyDelay:y,scrollSpyOnce:b})}("string"==typeof o?o:o.current,w)}),_=d(function(e){var t=x.current;if(t&&!e)return t;var r=S();return x.current=r,r}),C=d(function(){var e=function(){return _(!0).start(function(){null==m||m({pauseResume:O,reset:P,start:A,update:T})})};h&&h>0?E.current=setTimeout(e,1e3*h):e(),null==v||v({pauseResume:O,reset:P,update:T})}),O=d(function(){_().pauseResume(),null==g||g({reset:P,start:A,update:T})}),P=d(function(){_().el&&(E.current&&clearTimeout(E.current),_().reset(),null==y||y({pauseResume:O,start:A,update:T}))}),T=d(function(e){_().update(e),null==b||b({pauseResume:O,reset:P,start:A})}),A=d(function(){P(),C()}),I=d(function(e){s&&(e&&P(),C())});return n.useEffect(function(){k.current?c&&I(!0):(k.current=!0,I())},[c,k,I,h,e.start,e.suffix,e.prefix,e.duration,e.separator,e.decimals,e.decimal,e.formattingFn]),n.useEffect(function(){return function(){P()}},[P]),{start:A,pauseResume:O,reset:P,update:T,getCountUp:_}},m=["className","redraw","containerProps","children","style"];t.ZP=function(e){var t=e.className,r=e.redraw,i=e.containerProps,o=e.children,u=e.style,c=l(e,m),f=n.useRef(null),p=n.useRef(!1),v=h(a(a({},c),{},{ref:f,startOnMount:"function"!=typeof o||0===e.delay,enableReinitialize:!1})),g=v.start,y=v.reset,b=v.update,w=v.pauseResume,x=v.getCountUp,E=d(function(){g()}),k=d(function(t){e.preserveValue||y(),b(t)}),S=d(function(){"function"!=typeof e.children||f.current instanceof Element?x():console.error('Couldn\'t find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. <span ref={containerRef} />.')});n.useEffect(function(){S()},[S]),n.useEffect(function(){p.current&&k(e.end)},[e.end,k]);var _=r&&e;return n.useEffect(function(){r&&p.current&&E()},[E,r,_]),n.useEffect(function(){!r&&p.current&&E()},[E,r,e.start,e.suffix,e.prefix,e.duration,e.separator,e.decimals,e.decimal,e.className,e.formattingFn]),n.useEffect(function(){p.current=!0},[]),"function"==typeof o?o({countUpRef:f,start:g,reset:y,update:b,pauseResume:w,getCountUp:x}):n.createElement("span",s({className:t,ref:f,style:u},i),void 0!==e.start?x().formattingFn(e.start):"")}},56253:function(e,t,r){"use strict";(n=r(27378))&&"object"==typeof n&&"default"in n&&n.default;var n,i=r(90394),o=new i,a=o.getBrowser(),s=(o.getCPU(),o.getDevice()),l=o.getEngine(),u=o.getOS(),c=o.getUA();var d="mobile",f="tablet",p="Chrome",h="Firefox",m="Opera",v="Yandex",g="Safari",y="Internet Explorer",b="Edge",w="Chromium",x="IE",E="Mobile Safari",k="MIUI Browser",S="Samsung Browser",_="iOS",C="Android",O="Windows Phone",P="Windows",T="Mac OS",A=function(e){return e||(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none")},I=function(){return!("undefined"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},N=function(e){var t=I();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},R=function(e){return e.type===d},j=function(e){return e.type===f},M=function(e){var t=e.type;return t===d||t===f},D=function(e){return"smarttv"===e.type},L=function(e){return void 0===e.type},F=function(e){return"wearable"===e.type},B=function(e){return"console"===e.type},U=function(e){return"embedded"===e.type},V=function(e){var t=e.vendor;return A(t)},z=function(e){var t=e.model;return A(t)},q=function(e){var t=e.type;return A(t,"browser")},H=function(e){return e.name===C},G=function(e){return e.name===P},$=function(e){return e.name===T},W=function(e){return e.name===O},Z=function(e){return e.name===_},Q=function(e){var t=e.version;return A(t)},Y=function(e){var t=e.name;return A(t)},K=function(e){return e.name===p},J=function(e){return e.name===h},X=function(e){return e.name===w},ee=function(e){return e.name===b},te=function(e){return e.name===v},re=function(e){var t=e.name;return t===g||t===E},ne=function(e){return e.name===E},ie=function(e){return e.name===m},oe=function(e){var t=e.name;return t===y||t===x},ae=function(e){return e.name===k},se=function(e){return e.name===S},le=function(e){var t=e.version;return A(t)},ue=function(e){var t=e.major;return A(t)},ce=function(e){var t=e.name;return A(t)},de=function(e){var t=e.name;return A(t)},fe=function(e){var t=e.version;return A(t)},pe=function(){var e=I(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"==typeof t&&/electron/.test(t)},he=function(e){return"string"==typeof e&&-1!==e.indexOf("Edg/")},me=function(){var e=I();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},ve=function(){return N("iPad")},ge=function(){return N("iPhone")},ye=function(){return N("iPod")},be=function(e){return A(e)};D(s),B(s),F(s),U(s),ne(a)||ve(),X(a);var we=M(s)||ve(),xe=(R(s),j(s)||ve()),Ee=(L(s),L(s),H(u)),ke=(W(u),Z(u)||ve());K(a),J(a),re(a),ie(a),oe(a),Q(u),Y(u),le(a),ue(a),ce(a),V(s),z(s),de(l),fe(l),be(c),ee(a)||he(c),te(a),q(s),me(),ve(),ge(),ye(),pe(),he(c),ee(a)&&he(c),G(u),$(u),ae(a),se(a);t.Dt=Ee,t.gn=ke,t.tq=we,t.Em=xe},90394:function(e,t,r){var n;!function(i,o){"use strict";var a="function",s="undefined",l="object",u="string",c="major",d="model",f="name",p="type",h="vendor",m="version",v="architecture",g="console",y="mobile",b="tablet",w="smarttv",x="wearable",E="embedded",k="Amazon",S="Apple",_="ASUS",C="BlackBerry",O="Browser",P="Chrome",T="Firefox",A="Google",I="Honor",N="Huawei",R="LG",j="Microsoft",M="Motorola",D="Nvidia",L="OnePlus",F="Opera",B="OPPO",U="Samsung",V="Sharp",z="Sony",q="Xiaomi",H="Zebra",G="Facebook",$="Chromium OS",W="Mac OS",Z=" Browser",Q=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},Y=function(e,t){return typeof e===u&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},J=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},X=function(e,t){for(var r,n,i,s,u,c,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(r=n=0;r<f.length&&!u&&f[r];)if(u=f[r++].exec(e))for(i=0;i<p.length;i++)c=u[++n],typeof(s=p[i])===l&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):o:this[s[0]]=c?s[1].call(this,c,s[2]):o:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):o):this[s]=c||o;d+=2}},ee=function(e,t){for(var r in t)if(typeof t[r]===l&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(Y(t[r][n],e))return"?"===r?o:r}else if(Y(t[r],e))return"?"===r?o:r;return t.hasOwnProperty("*")?t["*"]:e},te={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},re={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,m],[/opios[\/ ]+([\w\.]+)/i],[m,[f,F+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[f,F+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[f,F]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[f,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[m,[f,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[f,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[f,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[f,"UC"+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[f,"Smart Lenovo "+O]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+O],m],[/\bfocus\/([\w\.]+)/i],[m,[f,T+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[f,F+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[f,F+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[f,"MIUI"+Z]],[/fxios\/([\w\.-]+)/i],[m,[f,T]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[f,"3
260"]],[/\b(qq)\/([\w\.]+)/i],[[f,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1"+Z],m],[/samsungbrowser\/([\w\.]+)/i],[m,[f,U+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[m,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[f,m],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[f],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[m,f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,G],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[f,P+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,P+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[f,"Android "+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[m,ee,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],m],[/(wolvic|librewolf)\/([\w\.]+)/i],[f,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[f,T+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[f,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[f,[m,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[v,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[v,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[v,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[v,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[v,/ower/,"",K]],[/ sun4\w[;\)]/i],[[v,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[v,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[h,U],[p,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[d,[h,U],[p,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[h,S],[p,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[h,S],[p,b]],[/(macintosh);/i],[d,[h,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[h,V],[p,y]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[d,[h,I],[p,b]],[/honor([-\w ]+)[;\)]/i],[d,[h,I],[p,y]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[d,[h,N],[p,b]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[h,N],[p,y]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[d,/_/g," "],[h,q],[p,b]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[d,/_/g," "],[h,q],[p,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[h,B],[p,y]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[d,[h,ee,{OnePlus:["304","403","203"],"*":B}],[p,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[h,"Vivo"],[p,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[h,"Realme"],[p,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[h,M],[p,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[h,M],[p,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[h,R],[p,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[h,R],[p,y]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
2(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[d,[h,"Lenovo"],[p,b]],[/(nokia) (t[12][01])/i],[h,d,[p,b]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[d,/_/g," "],[p,y],[h,"Nokia"]],[/(pixel (c|tablet))\b/i],[d,[h,A],[p,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[h,A],[p,y]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[h,z],[p,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[h,z],[p,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[h,L],[p,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[h,k],[p,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[h,k],[p,y]],[/(playbook);[-\w\),; ]+(rim)/i],[d,h,[p,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[h,C],[p,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[h,_],[p,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[h,_],[p,y]],[/(nexus 9)/i],[d,[h,"HTC"],[p,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[d,/_/g," "],[p,y]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[d,[h,"TCL"],[p,b]],[/(itel) ((\w+))/i],[[h,K],d,[p,ee,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[h,"Acer"],[p,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[h,"Meizu"],[p,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[h,"Ulefone"],[p,y]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[d,[h,"Energizer"],[p,y]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[d,[h,"Cat"],[p,y]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[d,[h,"Smartfren"],[p,y]],[/droid.+; (a(?:015|06[35]|142p?))/i],[d,[h,"Nothing"],[p,y]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[d,[h,"Archos"],[p,b]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[d,[h,"Archos"],[p,y]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[h,d,[p,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[h,d,[p,y]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,d,[p,b]],[/(surface duo)/i],[d,[h,j],[p,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[h,"Fairphone"],[p,y]],[/(u304aa)/i],[d,[h,"AT&T"],[p,y]],[/\bsie-(\w*)/i],[d,[h,"Siemens"],[p,y]],[/\b(rct\w+) b/i],[d,[h,"RCA"],[p,b]],[/\b(venue[\d ]{2,7}) b/i],[d,[h,"Dell"],[p,b]],[/\b(q(?:mv|ta)\w+) b/i],[d,[h,"Verizon"],[p,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[h,"Barnes & Noble"],[p,b]],[/\b(tm\d{3}\w+) b/i],[d,[h,"NuVision"],[p,b]],[/\b(k88) b/i],[d,[h,"ZTE"],[p,b]],[/\b(nx\d{3}j) b/i],[d,[h,"ZTE"],[p,y]],[/\b(gen\d{3}) b.+49h/i],[d,[h,"Swiss"],[p,y]],[/\b(zur\d{3}) b/i],[d,[h,"Swiss"],[p,b]],[/\b((zeki)?tb.*\b) b/i],[d,[h,"Zeki"],[p,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],d,[p,b]],[/\b(ns-?\w{0,9}) b/i],[d,[h,"Insignia"],[p,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[h,"NextBook"],[p,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],d,[p,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],d,[p,y]],[/\b(ph-1) /i],[d,[h,"Essential"],[p,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[h,"Envizen"],[p,b]],[/\b(trio[-\w\. ]+) b/i],[d,[h,"MachSpeed"],[p,b]],[/\btu_(1491) b/i],[d,[h,"Rotor"],[p,b]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[d,[h,D],[p,b]],[/(sprint) (\w+)/i],[h,d,[p,y]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[h,j],[p,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[h,H],[p,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[h,H],[p,y]],[/smart-tv.+(samsung)/i],[h,[p,w]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[h,U],[p,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,R],[p,w]],[/(apple) ?tv/i],[h,[d,S+" TV"],[p,w]],[/crkey/i],[[d,P+"cast"],[h,A],[p,w]],[/droid.+aft(\w+)( bui|\))/i],[d,[h,k],[p,w]],[/(shield \w+ tv)/i],[d,[h,D],[p,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[h,V],[p,w]],[/(bravia[\w ]+)( bui|\))/i],[d,[h,z],[p,w]],[/(mi(tv|box)-?\w+) bui/i],[d,[h,q],[p,w]],[/Hbbtv.*(technisat) (.*);/i],[h,d,[p,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,J],[d,J],[p,w]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[d,[p,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,d,[p,g]],[/droid.+; (shield)( bui|\))/i],[d,[h,D],[p,g]],[/(playstation \w+)/i],[d,[h,z],[p,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[h,j],[p,g]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[d,[h,U],[p,x]],[/((pebble))app/i,/(asu
vendor: 5,064 bytes, line 2
2s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[h,d,[p,x]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[d,[h,B],[p,x]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[h,S],[p,x]],[/(opwwe\d{3})/i],[d,[h,L],[p,x]],[/(moto 360)/i],[d,[h,M],[p,x]],[/(smartwatch 3)/i],[d,[h,z],[p,x]],[/(g watch r)/i],[d,[h,R],[p,x]],[/droid.+; (wt63?0{2,3})\)/i],[d,[h,H],[p,x]],[/droid.+; (glass) \d/i],[d,[h,A],[p,x]],[/(pico) (4|neo3(?: link|pro)?)/i],[h,d,[p,x]],[/; (quest( \d| pro)?)/i],[d,[h,G],[p,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[p,E]],[/(aeobc)\b/i],[d,[h,k],[p,E]],[/(homepod).+mac os/i],[d,[h,S],[p,E]],[/windows iot/i],[[p,E]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[p,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[p,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,y]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[d,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[f,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[f,m],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,m],[/ladybird\//i],[[f,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,m],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[f,[m,ee,te]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,ee,te],[f,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,W],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,f],[/(ubuntu) ([\w\.]+) like android/i],[[f,/(.+)/,"$1 Touch"],m],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[f,m],[/\(bb(10);/i],[m,[f,C]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[m,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[f,T+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[f,P+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,$],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,m],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,m]]},ne=function(e,t){if(typeof e===l&&(t=e,e=o),!(this instanceof ne))return new ne(e,t).getResult();var r=typeof i!==s&&i.navigator?i.navigator:o,n=e||(r&&r.userAgent?r.userAgent:""),g=r&&r.userAgentData?r.userAgentData:o,w=t?function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r}(re,t):re,x=r&&r.userAgent==n;return this.getBrowser=function(){var e,t={};return t[f]=o,t[m]=o,X.call(t,n,w.browser),t[c]=typeof(e=t[m])===u?e.replace(/[^\d\.]/g,"").split(".")[0]:o,x&&r&&r.brave&&typeof r.brave.isBrave==a&&(t[f]="Brave"),t},this.getCPU=function(){var e={};return e[v]=o,X.call(e,n,w.cpu),e},this.getDevice=function(){var e={};return e[h]=o,e[d]=o,e[p]=o,X.call(e,n,w.device),x&&!e[p]&&g&&g.mobile&&(e[p]=y),x&&"Macintosh"==e[d]&&r&&typeof r.standalone!==s&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[d]="iPad",e[p]=b),e},this.getEngine=function(){var e={};return e[f]=o,e[m]=o,X.call(e,n,w.engine),e},this.getOS=function(){var e={};return e[f]=o,e[m]=o,X.call(e,n,w.os),x&&!e[f]&&g&&g.platform&&"Unknown"!=g.platform&&(e[f]=g.platform.replace(/chrome os/i,$).replace(/macos/i,W)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===u&&e.length>500?J(e,500):e,this},this.setUA(n),this};ne.VERSION="1.0.41",ne.BROWSER=Q([f,m,c]),ne.CPU=Q([v]),ne.DEVICE=Q([d,h,p,g,y,w,b,x,E]),ne.ENGINE=ne.OS=Q([f,m]),typeof t!==s?(e.exp
2orts&&(t=e.exports=ne),t.UAParser=ne):r.amdO?(n=function(){return ne}.call(t,r,t,e))===o||(e.exports=n):typeof i!==s&&(i.UAParser=ne);var ie=typeof i!==s&&(i.jQuery||i.Zepto);if(ie&&!ie.ua){var oe=new ne;ie.ua=oe.getResult(),ie.ua.get=function(){return oe.getUA()},ie.ua.set=function(e){oe.setUA(e);var t=oe.getResult();for(var r in t)ie.ua[r]=t[r]}}}("object"==typeof window?window:this)},43577:function(e,t,r){"use strict";var n=r(27378),i=r(91102);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,r,n,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){v[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){v[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){v[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){v[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){v[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,r,n){var i=v.hasOwnProperty(t)?v[t]:null;(null!==i?0!==i.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,i,n)&&(r=null),n||null===i?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=null===r?3!==i.type&&"":r:(t=i.attributeName,n=i.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(i=i.type)||4===i&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
2-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var w=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),E=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),O=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var j=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=j&&e[j]||e["@@iterator"])?e:null}var D,L=Object.assign;function F(e){if(void 0===D)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var B=!1;function U(e,t){if(!e||B)return"";B=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=n.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?F(e):""}function V(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return U(e.type,!1);case 11:return U(e.type.render,!1);case 1:return U(e.type,!0);default:return""}}function z(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case k:return"Fragment";case E:return"Portal";case _:return"Profiler";case S:return"StrictMode";case T:return"Suspense";case A:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return z(e(t))}catch(e){}}return null}function q(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function W(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=G(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function Z(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var r=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function Y(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=H(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){K(e,t);var r=H(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,r):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}
vendor: 4,257 bytes, line 2
2""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ee(e,t,r){"number"===t&&Z(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var te=Array.isArray;function re(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+H(r),t=null,i=0;i<e.length;i++){if(e[i].value===r)return e[i].selected=!0,void(n&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(o(92));if(te(r)){if(1<r.length)throw Error(o(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:H(r)}}function oe(e,t){var r=H(t.value),n=H(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction(function(){return ce(e,t)})}:ce);function fe(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),i=me(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}Object.keys(pe).forEach(function(e){he.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var ge=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.n
vendor: 11,284 bytes, line 2
2odeType?e.parentNode:e}var Ee=null,ke=null,Se=null;function _e(e){if(e=bi(e)){if("function"!=typeof Ee)throw Error(o(280));var t=e.stateNode;t&&(t=xi(t),Ee(e.stateNode,e.type,t))}}function Ce(e){ke?Se?Se.push(e):Se=[e]:ke=e}function Oe(){if(ke){var e=ke,t=Se;if(Se=ke=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function Pe(e,t){return e(t)}function Te(){}var Ae=!1;function Ie(e,t,r){if(Ae)return e(t,r);Ae=!0;try{return Pe(e,t,r)}finally{Ae=!1,(null!==ke||null!==Se)&&(Te(),Oe())}}function Ne(e,t){var r=e.stateNode;if(null===r)return null;var n=xi(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(o(231,t,typeof r));return r}var Re=!1;if(c)try{var je={};Object.defineProperty(je,"passive",{get:function(){Re=!0}}),window.addEventListener("test",je,je),window.removeEventListener("test",je,je)}catch(ce){Re=!1}function Me(e,t,r,n,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(e){this.onError(e)}}var De=!1,Le=null,Fe=!1,Be=null,Ue={onError:function(e){De=!0,Le=e}};function Ve(e,t,r,n,i,o,a,s,l){De=!1,Le=null,Me.apply(Ue,arguments)}function ze(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function He(e){if(ze(e)!==e)throw Error(o(188))}function Ge(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(o(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(n=i.return)){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return He(i),e;if(a===n)return He(i),t;a=a.sibling}throw Error(o(188))}if(r.return!==n.return)r=i,n=a;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,n=a;break}if(l===n){s=!0,n=i,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,n=i;break}if(l===n){s=!0,n=a,r=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(r.alternate!==n)throw Error(o(190))}if(3!==r.tag)throw Error(o(188));return r.stateNode.current===r?e:t}(e))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$e(e);if(null!==t)return t;e=e.sibling}return null}var We=i.unstable_scheduleCallback,Ze=i.unstable_cancelCallback,Qe=i.unstable_shouldYield,Ye=i.unstable_requestPaint,Ke=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,Xe=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,rt=i.unstable_LowPriority,nt=i.unstable_IdlePriority,it=null,ot=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&r;if(0!==a){var s=a&~i;0!==s?n=dt(s):0!==(o&=a)&&(n=dt(o))}else 0!==(a=r&~i)?n=dt(a):0!==o&&(n=dt(o));if(0===n)return 0;if(0!==t&&t!==n&&0===(t&i)&&((i=n&-n)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&n&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)i=1<<(r=31-at(t)),n|=e[r],t&=~i;return n}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function vt(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function gt(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=r}function yt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-at(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var xt,Et,kt,St,_t,Ct=!1,Ot=[],Pt=null,Tt=null,At=null,It=new Map,Nt=new Map,Rt=[],jt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nt.delete(t.pointerId)}}function Dt(e,t,r,n,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=bi(t))&&Et(t),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Lt(e){var t=yi(e.target);if(null!==t){var r=ze(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=qe(r)))return e.blockedOn=t,void _t(e.priority,function(){kt(r)})}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=bi(r))&&Et(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);we=n,r.target.dispatchEvent(n),we=null,t.shift()}return!0}function Bt(e,t,r){Ft(e)&&r.delete(t)}function Ut(){Ct=!1,null!==Pt&&Ft(Pt)&&(Pt=null),null!==Tt&&Ft(Tt)&&(Tt=null),null!==At&&Ft(At)&&(At=null),It.forEach(Bt),Nt.forEach(Bt)}function Vt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ut)))}function zt(e){function t(t){return Vt(t,e)}if(0<Ot.length){Vt(Ot[0],e);for(var r=1;r<Ot.length;r++){var n=Ot[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==Pt&&Vt(Pt,e),null!==Tt&&Vt(Tt,e),null!==At&&Vt(At,e),It.forEach(t),Nt.forEach(t),r=0;r<Rt.length;r++)(n=Rt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Rt.length&&null===(r=Rt[0]).blockedOn;)Lt(r),null===r.blockedOn&&Rt.shift()}var qt=w.ReactCurrentBatchConfig,Ht=!0;function Gt(e,t,r,n){var i=bt,o=qt.transition;qt.transition=null;try{bt=1,Wt(e,t,r,n)}finally{bt=i,qt.transition=o}}function $t(e,t,r,n){var i=bt,o=qt.transition;qt.transition=null;try{bt=4,Wt(e,t,r,n)}finally{bt=i,qt.transition=o}}function Wt(e,t,r,n){if(Ht){var i=Qt(e,t,r,n);if(null===i)Hn(e,t,n,Zt,r),Mt(e,n);else if(function(e,t,r,n,i){switch(t){case"focusin":return Pt=Dt(Pt,e,t,r,n,i),!0;case"dragenter":return Tt=Dt(Tt,e,t,r,n,i),!0;case"mouseover":return At=Dt(At,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return It.set(o,Dt(It.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Nt.set(o,Dt(Nt.get(o)||null,e,t,r,n,i)),!0}return!1}(i,e,t,r,n))n.stopPropagation();else if(Mt(e,n),4&t&&-1<jt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&xt(o),null===(o=Qt(e,t,r,n))&&Hn(e,t,n,Zt,r),o===i)break;i=o}null!==i&&n.stopPropagation()}else Hn(e,t,n,null,r)}}var Zt=null;function Qt(e,t,r,n){if(Zt=null,null!==(e=yi(e=xe(n))))if(null===(t=ze(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=qe(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Zt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Xe:return 1;case et:return 4;case tt:case rt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Kt=null,Jt=null,Xt=null;function er(){if(Xt)return Xt;var e,t,r=Jt,n=r.length,i="value"in Kt?Kt.value:Kt.textContent,o=i.length;for(e=0;e<n&&r[e]===i[e];e++);var a=n-e;for(t=1;t<=a&&r[n-t]===i[o-t];t++);return Xt=i.slice(e,1<t?1-t:void 0)}function tr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rr(){return!0}function nr(){return!1}function ir(e){function t(t,r,n,i,o){for(var a in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?rr:nr,this.isPropagationStopped=nr,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var or,ar,sr,lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ur=ir(lr),cr=L({},lr,{view:0,detail:0}),dr=ir(cr),fr=L({},cr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 9,168 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sr&&(sr&&"mousemove"===e.type?(or=e.screenX-sr.screenX,ar=e.screenY-sr.screenY):ar=or=0,sr=e),or)},movementY:function(e){return"movementY"in e?e.movementY:ar}}),pr=ir(fr),hr=ir(L({},fr,{dataTransfer:0})),mr=ir(L({},cr,{relatedTarget:0})),vr=ir(L({},lr,{animationName:0,elapsedTime:0,pseudoElement:0})),gr=L({},lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yr=ir(gr),br=ir(L({},lr,{data:0})),wr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Er={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Er[e])&&!!t[e]}function Sr(){return kr}var _r=L({},cr,{key:function(e){if(e.key){var t=wr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sr,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cr=ir(_r),Or=ir(L({},fr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pr=ir(L({},cr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sr})),Tr=ir(L({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ar=L({},fr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ir=ir(Ar),Nr=[9,13,27,32],Rr=c&&"CompositionEvent"in window,jr=null;c&&"documentMode"in document&&(jr=document.documentMode);var Mr=c&&"TextEvent"in window&&!jr,Dr=c&&(!Rr||jr&&8<jr&&11>=jr),Lr=String.fromCharCode(32),Fr=!1;function Br(e,t){switch(e){case"keyup":return-1!==Nr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ur(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vr=!1,zr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zr[e.type]:"textarea"===t}function Hr(e,t,r,n){Ce(n),0<(t=$n(t,"onChange")).length&&(r=new ur("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Gr=null,$r=null;function Wr(e){Fn(e,0)}function Zr(e){if(W(wi(e)))return e}function Qr(e,t){if("change"===e)return t}var Yr=!1;if(c){var Kr;if(c){var Jr="oninput"in document;if(!Jr){var Xr=document.createElement("div");Xr.setAttribute("oninput","return;"),Jr="function"==typeof Xr.oninput}Kr=Jr}else Kr=!1;Yr=Kr&&(!document.documentMode||9<document.documentMode)}function en(){Gr&&(Gr.detachEvent("onpropertychange",tn),$r=Gr=null)}function tn(e){if("value"===e.propertyName&&Zr($r)){var t=[];Hr(t,$r,e,xe(e)),Ie(Wr,t)}}function rn(e,t,r){"focusin"===e?(en(),$r=r,(Gr=t).attachEvent("onpropertychange",tn)):"focusout"===e&&en()}function nn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zr($r)}function on(e,t){if("click"===e)return Zr(t)}function an(e,t){if("input"===e||"change"===e)return Zr(t)}var sn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ln(e,t){if(sn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!d.call(t,i)||!sn(e[i],t[i]))return!1}return!0}function un(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cn(e,t){var r,n=un(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=un(n)}}function dn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fn(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=Z((e=t.contentWindow).document)}return t}function pn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hn(e){var t=fn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&dn(r.ownerDocument.documentElement,r)){if(null!==n&&pn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=void 0===n.end?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=cn(r,o);var a=cn(r,n);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mn=c&&"documentMode"in document&&11>=document.documentMode,vn=null,gn=null,yn=null,bn=!1;function wn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;bn||null==vn||vn!==Z(n)||(n="selectionStart"in(n=vn)&&pn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},yn&&ln(yn,n)||(yn=n,0<(n=$n(gn,"onSelect")).length&&(t=new ur("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=vn)))}function xn(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var En={animationend:xn("Animation","AnimationEnd"),animationiteration:xn("Animation","AnimationIteration"),animationstart:xn("Animation","AnimationStart"),transitionend:xn("Transition","TransitionEnd")},kn={},Sn={};function _n(e){if(kn[e])return kn[e];if(!En[e])return e;var t,r=En[e];for(t in r)if(r.hasOwnProperty(t)&&t in Sn)return kn[e]=r[t];return e}c&&(Sn=document.createElement("div").style,"AnimationEvent"in window||(delete En.animationend.animation,delete En.animationiteration.animation,delete En.animationstart.animation),"TransitionEvent"in window||delete En.transitionend.transition);var Cn=_n("animationend"),On=_n("animationiteration"),Pn=_n("animationstart"),Tn=_n("transitionend"),An=new Map,In="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Nn(e,t){An.set(e,t),l(t,[e])}for(var Rn=0;Rn<In.length;Rn++){var jn=In[Rn];Nn(jn.toLowerCase(),"on"+(jn[0].toUpperCase()+jn.slice(1)))}Nn(Cn,"onAnimationEnd"),Nn(On,"onAnimationIteration"),Nn(Pn,"onAnimationStart"),Nn("dblclick","onDoubleClick"),Nn("focusin","onFocus"),Nn("focusout","onBlur"),Nn(Tn,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dn=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mn));function Ln(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,i,a,s,l,u){if(Ve.apply(this,arguments),De){if(!De)throw Error(o(198));var c=Le;De=!1,Le=null,Fe||(Fe=!0,Be=c)}}(n,t,void 0,e),e.currentTarget=null}function Fn(e,t){t=!!(4&t);for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Ln(i,s,u),o=l}else for(a=0;a<n.length;a++){if(l=(s=n[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Ln(i,s,u),o=l}}}if(Fe)throw e=Be,Fe=!1,Be=null,e}function Bn(e,t){var r=t[mi];void 0===r&&(r=t[mi]=new Set);var n=e+"__bubble";r.has(n)||(qn(t,e,2,!1),r.add(n))}function Un(e,t,r){var n=0;t&&(n|=4),qn(r,e,n,t)}var Vn="_reactListening"+Math.random().toString(36).slice(2);function zn(e){if(!e[Vn]){e[Vn]=!0,a.forEach(function(t){"selectionchange"!==t&&(Dn.has(t)||Un(t,!1,e),Un(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vn]||(t[Vn]=!0,Un("selectionchange",!1,t))}}function qn(e,t,r,n){switch(Yt(t)){case 1:var i=Gt;break;case 4:i=$t;break;default:i=Wt}r=i.bind(null,t,r,e),i=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),n?void 0!==i?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):void 0!==i?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Hn(e,t,r,n,i){var o=n;if(!(1&t||2&t||null===n))e:for(;;){if(null===n)return;var a=n.tag;if(3===a||4===a){var s=n.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=n.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){n=o=a;continue e}s=s.parentNode}}n=n.return}Ie(function(){var n=o,i=xe(r),a=[];e:{var s=An.get(e);if(void 0!==s){var l=ur,u=e;switch(e){case"keypress":if(0===tr(r))break e;case"keydown":case"keyup":l=Cr;break;case"focusin":u="focus",l=mr;break;case"focusout":u="blur",l=mr;break;case"beforeblur":case"afterblur":l=mr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=hr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pr;break;case Cn:case On:case Pn:l=vr;break;case Tn:l=Tr;break;case"scroll":l=dr;break;case"wheel":l=Ir;break;case"copy":case"cut":case"paste":l=yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Or}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=n;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&null!=(m=Ne(h,f))&&c.push(Gn(h,m,p))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,r,i),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===we||!(u=r.relatedTarget||r.fromElement)||!yi(u)&&!u[hi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(u=(u=r.relatedTarget||r.toElement)?yi(u):null)&&(u!==(d=ze(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=n),l!==u)){if(c=pr,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Or,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:wi(l),p=null==u?s:wi(u),(s=new c(m,h+"leave",l,r,i)).target=d,s.relatedTarget=p,m=null,yi(i)===n&&((c=new c(f,h+"enter",u,r,i)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Wn(p))h++;for(p=0,m=f;m;m=Wn(m))p++;for(;0<h-p;)c=Wn(c),h--;for(;0<p-h;)f=Wn(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Wn(c),f=Wn(f)}c=null}else c=null;null!==l&&Zn(a,s,l,c,!1),null!==u&&null!==d&&Zn(a,d,u,c,!0)}if("select"===(l=(s=n?wi(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Qr;else if(qr(s))if(Yr)v=an;else{v=nn;var g=rn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=on);switch(v&&(v=v(e,n))?Hr(a,v,r,i):(g&&g(e,s,n),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=n?wi(n):window,e){case"focusin":(qr(g)||"true"===g.contentEditable)&&(vn=g,gn=n,yn=null);break;case"focusout":yn=gn=vn=null;break;case"mousedown":bn=!0;break;case"contextmenu":case"mouseup":case"dragend":bn=!1,wn(a,r,i);break;case"selectionchange":if(mn)break;case"keydown":case"keyup":wn(a,r,i)}var y;if(Rr)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vr?Br(e,r)&&(b="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(b="onCompositionStart");b&&(Dr&&"ko"!==r.locale&&(Vr||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vr&&(y=er()):(Jt="value"in(Kt=i)?Kt.value:Kt.textContent,Vr=!0)),0<(g=$n(n,b)).length&&(b=new br(b,e,null,r,i),a.push({event:b,listeners:g}
vendor: 4,521 bytes, line 2
2),(y||null!==(y=Ur(r)))&&(b.data=y))),(y=Mr?function(e,t){switch(e){case"compositionend":return Ur(t);case"keypress":return 32!==t.which?null:(Fr=!0,Lr);case"textInput":return(e=t.data)===Lr&&Fr?null:e;default:return null}}(e,r):function(e,t){if(Vr)return"compositionend"===e||!Rr&&Br(e,t)?(e=er(),Xt=Jt=Kt=null,Vr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dr&&"ko"!==t.locale?null:t.data}}(e,r))&&0<(n=$n(n,"onBeforeInput")).length&&(i=new br("onBeforeInput","beforeinput",null,r,i),a.push({event:i,listeners:n}),i.data=y)}Fn(a,t)})}function Gn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function $n(e,t){for(var r=t+"Capture",n=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ne(e,r))&&n.unshift(Gn(e,o,i)),null!=(o=Ne(e,t))&&n.push(Gn(e,o,i))),e=e.return}return n}function Wn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Zn(e,t,r,n,i){for(var o=t._reactName,a=[];null!==r&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Ne(r,o))&&a.unshift(Gn(r,l,s)):i||null!=(l=Ne(r,o))&&a.push(Gn(r,l,s))),r=r.return}0!==a.length&&e.push({event:t,listeners:a})}var Qn=/\r\n?/g,Yn=/\u0000|\uFFFD/g;function Kn(e){return("string"==typeof e?e:""+e).replace(Qn,"\n").replace(Yn,"")}function Jn(e,t,r){if(t=Kn(t),Kn(e)!==t&&r)throw Error(o(425))}function Xn(){}var ei=null,ti=null;function ri(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ni="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,oi="function"==typeof Promise?Promise:void 0,ai="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(e){return oi.resolve(null).then(e).catch(si)}:ni;function si(e){setTimeout(function(){throw e})}function li(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&8===i.nodeType)if("/$"===(r=i.data)){if(0===n)return e.removeChild(i),void zt(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=i}while(r);zt(t)}function ui(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,pi="__reactProps$"+di,hi="__reactContainer$"+di,mi="__reactEvents$"+di,vi="__reactListeners$"+di,gi="__reactHandles$"+di;function yi(e){var t=e[fi];if(t)return t;for(var r=e.parentNode;r;){if(t=r[hi]||r[fi]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=ci(e);null!==e;){if(r=e[fi])return r;e=ci(e)}return t}r=(e=r).parentNode}return null}function bi(e){return!(e=e[fi]||e[hi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function xi(e){return e[pi]||null}var Ei=[],ki=-1;function Si(e){return{current:e}}function _i(e){0>ki||(e.current=Ei[ki],Ei[ki]=null,ki--)}function Ci(e,t){ki++,Ei[ki]=e.current,e.current=t}var Oi={},Pi=Si(Oi),Ti=Si(!1),Ai=Oi;function Ii(e,t){var r=e.type.contextTypes;if(!r)return Oi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in r)o[i]=t[i];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ni(e){return null!=e.childContextTypes}function Ri(){_i(Ti),_i(Pi)}function ji(e,t,r){if(Pi.current!==Oi)throw Error(o(168));Ci(Pi,t),Ci(Ti,r)}function Mi(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var i in n=n.getChildContext())if(!(i in t))throw Error(o(108,q(e)||"Unknown",i));return L({},r,n)}function Di(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oi,Ai=Pi.current,Ci(Pi,e),Ci(Ti,Ti.current),!0}function Li(e,t,r){var n=e.stateNode;if(!n)throw Error(o(169));r?(e=Mi(e,t,Ai),n.__reactInternalMemoizedMergedChildContext=e,_i(T
vendor: 4,605 bytes, line 2
2i),_i(Pi),Ci(Pi,e)):_i(Ti),Ci(Ti,r)}var Fi=null,Bi=!1,Ui=!1;function Vi(e){null===Fi?Fi=[e]:Fi.push(e)}function zi(){if(!Ui&&null!==Fi){Ui=!0;var e=0,t=bt;try{var r=Fi;for(bt=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Fi=null,Bi=!1}catch(t){throw null!==Fi&&(Fi=Fi.slice(e+1)),We(Xe,zi),t}finally{bt=t,Ui=!1}}return null}var qi=[],Hi=0,Gi=null,$i=0,Wi=[],Zi=0,Qi=null,Yi=1,Ki="";function Ji(e,t){qi[Hi++]=$i,qi[Hi++]=Gi,Gi=e,$i=t}function Xi(e,t,r){Wi[Zi++]=Yi,Wi[Zi++]=Ki,Wi[Zi++]=Qi,Qi=e;var n=Yi;e=Ki;var i=32-at(n)-1;n&=~(1<<i),r+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,Yi=1<<32-at(t)+i|r<<i|n,Ki=o+e}else Yi=1<<o|r<<i|n,Ki=e}function eo(e){null!==e.return&&(Ji(e,1),Xi(e,1,0))}function to(e){for(;e===Gi;)Gi=qi[--Hi],qi[Hi]=null,$i=qi[--Hi],qi[Hi]=null;for(;e===Qi;)Qi=Wi[--Zi],Wi[Zi]=null,Ki=Wi[--Zi],Wi[Zi]=null,Yi=Wi[--Zi],Wi[Zi]=null}var ro=null,no=null,io=!1,oo=null;function ao(e,t){var r=Nu(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function so(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ro=e,no=ui(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ro=e,no=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Qi?{id:Yi,overflow:Ki}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=Nu(18,null,null,0)).stateNode=t,r.return=e,e.child=r,ro=e,no=null,!0);default:return!1}}function lo(e){return!(!(1&e.mode)||128&e.flags)}function uo(e){if(io){var t=no;if(t){var r=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ui(r.nextSibling);var n=ro;t&&so(e,t)?ao(n,r):(e.flags=-4097&e.flags|2,io=!1,ro=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,ro=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ro=e}function fo(e){if(e!==ro)return!1;if(!io)return co(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ri(e.type,e.memoizedProps)),t&&(t=no)){if(lo(e))throw po(),Error(o(418));for(;t;)ao(e,t),t=ui(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){no=ui(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}no=null}}else no=ro?ui(e.stateNode.nextSibling):null;return!0}function po(){for(var e=no;e;)e=ui(e.nextSibling)}function ho(){no=ro=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var vo=w.ReactCurrentBatchConfig;function go(e,t){if(e&&e.defaultProps){for(var r in t=L({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var yo=Si(null),bo=null,wo=null,xo=null;function Eo(){xo=wo=bo=null}function ko(e){var t=yo.current;_i(yo),e._currentValue=t}function So(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function _o(e,t){bo=e,xo=wo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ws=!0),e.firstContext=null)}function Co(e){var t=e._currentValue;if(xo!==e)if(e={context:e,memoizedValue:t,next:null},null===wo){if(null===bo)throw Error(o(308));wo=e,bo.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var Oo=null;function Po(e){null===Oo?Oo=[e]:Oo.push(e)}function To(e,t,r,n){var i=t.interleaved;return null===i?(r.next=r,Po(t)):(r.next=i.next,i.next=r),t.interleaved=r,Ao(e,n)}function Ao(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var Io=!1;function No(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ro(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function jo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mo(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,2&Tl){var i=n.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Ao(e,r)}return null===(i=n.interleaved)?(t.next=t,Po(n)):(t.next=i.next,i.next=t),n.interleaved=t,Ao(e,r)}
vendor: 6,286 bytes, line 2
2function Do(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}function Lo(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var i=null,o=null;if(null!==(r=r.firstBaseUpdate)){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===o?i=o=a:o=o.next=a,r=r.next}while(null!==r);null===o?i=o=t:o=o.next=t}else i=o=t;return r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Fo(e,t,r,n){var i=e.updateQueue;Io=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var f=s.lane,p=s.eventTime;if((n&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=r,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=L({},d,f);break e;case 2:Io=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Ll|=a,e.lanes=a,e.memoizedState=d}}function Bo(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(null!==i){if(n.callback=null,n=r,"function"!=typeof i)throw Error(o(191,i));i.call(n)}}}var Uo=(new n.Component).refs;function Vo(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:L({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var zo={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=tu(),i=ru(e),o=jo(n,i);o.payload=t,null!=r&&(o.callback=r),null!==(t=Mo(e,o,i))&&(nu(t,e,i,n),Do(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=tu(),i=ru(e),o=jo(n,i);o.tag=1,o.payload=t,null!=r&&(o.callback=r),null!==(t=Mo(e,o,i))&&(nu(t,e,i,n),Do(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=tu(),n=ru(e),i=jo(r,n);i.tag=2,null!=t&&(i.callback=t),null!==(t=Mo(e,i,n))&&(nu(t,e,n,r),Do(t,e,n))}};function qo(e,t,r,n,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&ln(r,n)&&ln(i,o))}function Ho(e,t,r){var n=!1,i=Oi,o=t.contextType;return"object"==typeof o&&null!==o?o=Co(o):(i=Ni(t)?Ai:Pi.current,o=(n=null!=(n=t.contextTypes))?Ii(e,i):Oi),t=new t(r,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=zo,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Go(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&zo.enqueueReplaceState(t,t.state,null)}function $o(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=Uo,No(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=Co(o):(o=Ni(t)?Ai:Pi.current,i.context=Ii(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(Vo(e,t,o,r),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&zo.enqueueReplaceState(i,i.state,null),Fo(e,r,i,n),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function Wo(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(o(309));var n=r.stateNode}if(!n)throw Error(o(147,e));var i=n,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===Uo&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!r._owner)throw Error(o(290,e))}return e}function Zo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qo(e){return(0,e._init)(e._payload)}function Yo(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=ju(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,r,n){return null===t||6!==t.tag?((t=Fu(r,e.mode,n)).return=e,t):((t=i(t,r)).return=e,t)}function u(e,t,r,n){var o=r.type;return o===k?d(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===N&&Qo(o)===t.type)?((n=i(t,r.props)).ref=Wo(e,t,r),n.return=e,n):((n=Mu(r.type,r.key,r.props,null,e.mode,n)).ref=Wo(e,t,r),n.return=e,n)}function c(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=
vendor: 5,464 bytes, line 2
2Bu(r,e.mode,n)).return=e,t):((t=i(t,r.children||[])).return=e,t)}function d(e,t,r,n,o){return null===t||7!==t.tag?((t=Du(r,e.mode,n,o)).return=e,t):((t=i(t,r)).return=e,t)}function f(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Fu(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(r=Mu(t.type,t.key,t.props,null,e.mode,r)).ref=Wo(e,null,t),r.return=e,r;case E:return(t=Bu(t,e.mode,r)).return=e,t;case N:return f(e,(0,t._init)(t._payload),r)}if(te(t)||M(t))return(t=Du(t,e.mode,r,null)).return=e,t;Zo(e,t)}return null}function p(e,t,r,n){var i=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==i?null:l(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return r.key===i?u(e,t,r,n):null;case E:return r.key===i?c(e,t,r,n):null;case N:return p(e,t,(i=r._init)(r._payload),n)}if(te(r)||M(r))return null!==i?null:d(e,t,r,n,null);Zo(e,r)}return null}function h(e,t,r,n,i){if("string"==typeof n&&""!==n||"number"==typeof n)return l(t,e=e.get(r)||null,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return u(t,e=e.get(null===n.key?r:n.key)||null,n,i);case E:return c(t,e=e.get(null===n.key?r:n.key)||null,n,i);case N:return h(e,t,r,(0,n._init)(n._payload),i)}if(te(n)||M(n))return d(t,e=e.get(r)||null,n,i,null);Zo(t,n)}return null}function m(i,o,s,l){for(var u=null,c=null,d=o,m=o=0,v=null;null!==d&&m<s.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=p(i,d,s[m],l);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(i,d),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g,d=v}if(m===s.length)return r(i,d),io&&Ji(i,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],l))&&(o=a(d,o,m),null===c?u=d:c.sibling=d,c=d);return io&&Ji(i,m),u}for(d=n(i,d);m<s.length;m++)null!==(v=h(d,i,m,s[m],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v);return e&&d.forEach(function(e){return t(i,e)}),io&&Ji(i,m),u}function v(i,s,l,u){var c=M(l);if("function"!=typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var d=c=null,m=s,v=s=0,g=null,y=l.next();null!==m&&!y.done;v++,y=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(i,m,y.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,v),null===d?c=b:d.sibling=b,d=b,m=g}if(y.done)return r(i,m),io&&Ji(i,v),c;if(null===m){for(;!y.done;v++,y=l.next())null!==(y=f(i,y.value,u))&&(s=a(y,s,v),null===d?c=y:d.sibling=y,d=y);return io&&Ji(i,v),c}for(m=n(i,m);!y.done;v++,y=l.next())null!==(y=h(m,i,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=a(y,s,v),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(i,e)}),io&&Ji(i,v),c}return function e(n,o,a,l){if("object"==typeof a&&null!==a&&a.type===k&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===k){if(7===c.tag){r(n,c.sibling),(o=i(c,a.props.children)).return=n,n=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===N&&Qo(u)===c.type){r(n,c.sibling),(o=i(c,a.props)).ref=Wo(n,c,a),o.return=n,n=o;break e}r(n,c);break}t(n,c),c=c.sibling}a.type===k?((o=Du(a.props.children,n.mode,l,a.key)).return=n,n=o):((l=Mu(a.type,a.key,a.props,null,n.mode,l)).ref=Wo(n,o,a),l.return=n,n=l)}return s(n);case E:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=Bu(a,n.mode,l)).return=n,n=o}return s(n);case N:return e(n,o,(c=a._init)(a._payload),l)}if(te(a))return m(n,o,a,l);if(M(a))return v(n,o,a,l);Zo(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=Fu(a,n.mode,l)).return=n,n=o),s(n)):r(n,o)}}var Ko=Yo(!0),Jo=Yo(!1),Xo={},ea=Si(Xo),ta=Si(Xo),ra=Si(Xo);function na(e){if(e===Xo)throw Error(o(174));return e}function ia(e,t){switch(Ci(ra,t),Ci(ta,e),Ci(ea,Xo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_i(ea),Ci(ea,t)}function oa(){_i(ea),_i(ta),_i(ra)}function aa(e){na(ra.current);var t=na(ea.current),r=le(t,e.type);t!==r&&(Ci(ta,e),Ci(ea,r))}function sa(e){ta.current===e&&(_i(ea),_i(ta))}var la=Si(0);function ua(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=[];function da(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var fa=w.ReactCurrentDispatcher,pa=w.ReactCurrentBatchConfig,ha=0,ma=null,va=null,ga=null,ya=!1,ba=!1,wa=0,xa=0;function Ea(){throw Error(o(321))}function ka(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!sn(e[r],t[r]))return!1;return!0}function Sa(e,t,r,n,i,a){if(ha=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?ss:ls,e=r(n,i),ba){a=0;
vendor: 5,728 bytes, line 2
2do{if(ba=!1,wa=0,25<=a)throw Error(o(301));a+=1,ga=va=null,t.updateQueue=null,fa.current=us,e=r(n,i)}while(ba)}if(fa.current=as,t=null!==va&&null!==va.next,ha=0,ga=va=ma=null,ya=!1,t)throw Error(o(300));return e}function _a(){var e=0!==wa;return wa=0,e}function Ca(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ga?ma.memoizedState=ga=e:ga=ga.next=e,ga}function Oa(){if(null===va){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=va.next;var t=null===ga?ma.memoizedState:ga.next;if(null!==t)ga=t,va=e;else{if(null===e)throw Error(o(310));e={memoizedState:(va=e).memoizedState,baseState:va.baseState,baseQueue:va.baseQueue,queue:va.queue,next:null},null===ga?ma.memoizedState=ga=e:ga=ga.next=e}return ga}function Pa(e,t){return"function"==typeof t?t(e):t}function Ta(e){var t=Oa(),r=t.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=e;var n=va,i=n.baseQueue,a=r.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}n.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,n=n.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((ha&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=n):u=u.next=f,ma.lanes|=d,Ll|=d}c=c.next}while(null!==c&&c!==a);null===u?s=n:u.next=l,sn(n,t.memoizedState)||(ws=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=u,r.lastRenderedState=n}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,ma.lanes|=a,Ll|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Aa(e){var t=Oa(),r=t.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sn(a,t.memoizedState)||(ws=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function Ia(){}function Na(e,t){var r=ma,n=Oa(),i=t(),a=!sn(n.memoizedState,i);if(a&&(n.memoizedState=i,ws=!0),n=n.queue,Ha(Ma.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==ga&&1&ga.memoizedState.tag){if(r.flags|=2048,Ba(9,ja.bind(null,r,n,i,t),void 0,null),null===Al)throw Error(o(349));30&ha||Ra(r,t,i)}return i}function Ra(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function ja(e,t,r,n){t.value=r,t.getSnapshot=n,Da(t)&&La(e)}function Ma(e,t,r){return r(function(){Da(t)&&La(e)})}function Da(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!sn(e,r)}catch(e){return!0}}function La(e){var t=Ao(e,1);null!==t&&nu(t,e,1,-1)}function Fa(e){var t=Ca();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},t.queue=e,e=e.dispatch=rs.bind(null,ma,e),[t.memoizedState,e]}function Ba(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Ua(){return Oa().memoizedState}function Va(e,t,r,n){var i=Ca();ma.flags|=e,i.memoizedState=Ba(1|t,r,void 0,void 0===n?null:n)}function za(e,t,r,n){var i=Oa();n=void 0===n?null:n;var o=void 0;if(null!==va){var a=va.memoizedState;if(o=a.destroy,null!==n&&ka(n,a.deps))return void(i.memoizedState=Ba(t,r,o,n))}ma.flags|=e,i.memoizedState=Ba(1|t,r,o,n)}function qa(e,t){return Va(8390656,8,e,t)}function Ha(e,t){return za(2048,8,e,t)}function Ga(e,t){return za(4,2,e,t)}function $a(e,t){return za(4,4,e,t)}function Wa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Za(e,t,r){return r=null!=r?r.concat([e]):null,za(4,4,Wa.bind(null,t,e),r)}function Qa(){}function Ya(e,t){var r=Oa();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ka(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Ka(e,t){var r=Oa();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ka(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Ja(e,t,r){return 21&ha?(sn(r,t)||(r=mt(),ma.lanes|=r,Ll|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=r)}function Xa(e,t){var r=bt;bt=0!==r&&4>r?r:4,e(!0);var n=pa.transition;pa.transition={};try{e(!1),t()}finally{bt=r,pa.transition=n}}function es(){return Oa().memoizedState}function ts(e,t,r){var n=ru(e);r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},ns(e)?is(t,r):null!==(r=To(e,t,r,n))&&(nu(r,e,n,tu()),os(r,t,n))}function rs(e,t,r){var n=ru(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(ns(e))is(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,sn(s,a)){var l=t.interleaved;return null===l?(i.next=i,Po(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(r=To(e,t,i,n))&&(nu(r,e,n,i=tu()),os(r,t,n))}}function ns(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function is(e,t){ba=ya=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function os(e,t,r){if(4194240&r){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}var as={readContext:Co,useCallback:Ea,useContext:Ea,useEffect:Ea,useImperativeHandle:Ea,useInsertionEffect:Ea,useLayoutEffect:Ea,useMemo:Ea,useReducer:Ea,useRef
vendor: 5,764 bytes, line 2
2:Ea,useState:Ea,useDebugValue:Ea,useDeferredValue:Ea,useTransition:Ea,useMutableSource:Ea,useSyncExternalStore:Ea,useId:Ea,unstable_isNewReconciler:!1},ss={readContext:Co,useCallback:function(e,t){return Ca().memoizedState=[e,void 0===t?null:t],e},useContext:Co,useEffect:qa,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Va(4194308,4,Wa.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Va(4194308,4,e,t)},useInsertionEffect:function(e,t){return Va(4,2,e,t)},useMemo:function(e,t){var r=Ca();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ca();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=ts.bind(null,ma,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Ca().memoizedState=e},useState:Fa,useDebugValue:Qa,useDeferredValue:function(e){return Ca().memoizedState=e},useTransition:function(){var e=Fa(!1),t=e[0];return e=Xa.bind(null,e[1]),Ca().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ma,i=Ca();if(io){if(void 0===r)throw Error(o(407));r=r()}else{if(r=t(),null===Al)throw Error(o(349));30&ha||Ra(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,qa(Ma.bind(null,n,a,e),[e]),n.flags|=2048,Ba(9,ja.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Ca(),t=Al.identifierPrefix;if(io){var r=Ki;t=":"+t+"R"+(r=(Yi&~(1<<32-at(Yi)-1)).toString(32)+r),0<(r=wa++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=xa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:Co,useCallback:Ya,useContext:Co,useEffect:Ha,useImperativeHandle:Za,useInsertionEffect:Ga,useLayoutEffect:$a,useMemo:Ka,useReducer:Ta,useRef:Ua,useState:function(){return Ta(Pa)},useDebugValue:Qa,useDeferredValue:function(e){return Ja(Oa(),va.memoizedState,e)},useTransition:function(){return[Ta(Pa)[0],Oa().memoizedState]},useMutableSource:Ia,useSyncExternalStore:Na,useId:es,unstable_isNewReconciler:!1},us={readContext:Co,useCallback:Ya,useContext:Co,useEffect:Ha,useImperativeHandle:Za,useInsertionEffect:Ga,useLayoutEffect:$a,useMemo:Ka,useReducer:Aa,useRef:Ua,useState:function(){return Aa(Pa)},useDebugValue:Qa,useDeferredValue:function(e){var t=Oa();return null===va?t.memoizedState=e:Ja(t,va.memoizedState,e)},useTransition:function(){return[Aa(Pa)[0],Oa().memoizedState]},useMutableSource:Ia,useSyncExternalStore:Na,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var r="",n=t;do{r+=V(n),n=n.return}while(n);var i=r}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function ds(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var ps="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,r){(r=jo(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Gl||(Gl=!0,$l=n),fs(0,t)},r}function ms(e,t,r){(r=jo(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){fs(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(r.callback=function(){fs(0,t),"function"!=typeof n&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function vs(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new ps;var i=new Set;n.set(t,i)}else void 0===(i=n.get(t))&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=Cu.bind(null,e,t,r),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,r,n,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=jo(-1,1)).tag=2,Mo(r,t,1))),r.lanes|=1),e)}var bs=w.ReactCurrentOwner,ws=!1;function xs(e,t,r,n){t.child=null===e?Jo(t,null,r,n):Ko(t,e.child,r,n)}function Es(e,t,r,n,i){r=r.render;var o=t.ref;return _o(t,i),n=Sa(e,t,r,n,o,i),r=_a(),null===e||ws?(io&&r&&eo(t),t.flags|=1,xs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gs(e,t,i))}function ks(e,t,r,n,i){if(null===e){var o=r.type;return"function"!=typeof o||Ru(o)||void 0!==o.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Mu(r.type,null,n,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ss(e,t,o,n,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((r=null!==(r=r.compare)?r:ln)(a,n)&&e.ref===t.ref)return Gs(e,t,i)}return t.flags|=1,(e=ju(o,n)).ref=t.ref,e.return=t,t.child=e}function Ss(e,t,r,n,i){if(null!==e){var o=e.memoizedProps;if(ln(o,n)&&e.ref===t.ref){if(ws=!1,t.pendingProps=n=o,0===(e.lanes&i))return t.lanes=e.lanes,Gs(e,t,i);131072&e.flags&&(ws=!0)}}return Os(e,t,r,n,i)}function _s(e,t,r){var n=t.pendingProps,i=n.children,o=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(1&t.mode){if(!(1073741824&r))return e=null!==o?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ci(jl,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==o?o.baseLanes:r,Ci(jl,Rl),Rl|=n}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ci(jl,Rl),Rl|=r;else null!==o?(n=o.baseLanes|r,t.memoizedState=null):n=r,Ci(jl,Rl),Rl|=n;return xs(e,t,i,r),t.child}function Cs(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}
vendor: 6,018 bytes, line 2
2function Os(e,t,r,n,i){var o=Ni(r)?Ai:Pi.current;return o=Ii(t,o),_o(t,i),r=Sa(e,t,r,n,o,i),n=_a(),null===e||ws?(io&&n&&eo(t),t.flags|=1,xs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gs(e,t,i))}function Ps(e,t,r,n,i){if(Ni(r)){var o=!0;Di(t)}else o=!1;if(_o(t,i),null===t.stateNode)Hs(e,t),Ho(t,r,n),$o(t,r,n,i),n=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=r.contextType;u="object"==typeof u&&null!==u?Co(u):Ii(t,u=Ni(r)?Ai:Pi.current);var c=r.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||l!==u)&&Go(t,a,n,u),Io=!1;var f=t.memoizedState;a.state=f,Fo(t,n,a,i),l=t.memoizedState,s!==n||f!==l||Ti.current||Io?("function"==typeof c&&(Vo(t,r,c,n),l=t.memoizedState),(s=Io||qo(t,r,s,n,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=u,n=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,Ro(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:go(t.type,s),a.props=u,d=t.pendingProps,f=a.context,l="object"==typeof(l=r.contextType)&&null!==l?Co(l):Ii(t,l=Ni(r)?Ai:Pi.current);var p=r.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&Go(t,a,n,l),Io=!1,f=t.memoizedState,a.state=f,Fo(t,n,a,i);var h=t.memoizedState;s!==d||f!==h||Ti.current||Io?("function"==typeof p&&(Vo(t,r,p,n),h=t.memoizedState),(u=Io||qo(t,r,u,n,f,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(n,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=h),a.props=n,a.state=h,a.context=l,n=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return Ts(e,t,r,n,o,i)}function Ts(e,t,r,n,i,o){Cs(e,t);var a=!!(128&t.flags);if(!n&&!a)return i&&Li(t,r,!1),Gs(e,t,o);n=t.stateNode,bs.current=t;var s=a&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&a?(t.child=Ko(t,e.child,null,o),t.child=Ko(t,null,s,o)):xs(e,t,s,o),t.memoizedState=n.state,i&&Li(t,r,!0),t.child}function As(e){var t=e.stateNode;t.pendingContext?ji(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ji(0,t.context,!1),ia(e,t.containerInfo)}function Is(e,t,r,n,i){return ho(),mo(i),t.flags|=256,xs(e,t,r,n),t.child}var Ns,Rs,js,Ms,Ds={dehydrated:null,treeContext:null,retryLane:0};function Ls(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fs(e,t,r){var n,i=t.pendingProps,a=la.current,s=!1,l=!!(128&t.flags);if((n=l)||(n=(null===e||null!==e.memoizedState)&&!!(2&a)),n?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ci(la,1&a),null===e)return uo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=Lu(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Du(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ls(r),t.memoizedState=Ds,e):Bs(t,l));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,i,a,s){if(r)return 256&t.flags?(t.flags&=-257,Us(e,t,s,n=ds(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=Lu({mode:"visible",children:n.children},i,0,null),(a=Du(a,i,s,null)).flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,1&t.mode&&Ko(t,e.child,null,s),t.child.memoizedState=Ls(s),t.memoizedState=Ds,a);if(!(1&t.mode))return Us(e,t,s,null);if("$!"===i.data){if(n=i.nextSibling&&i.nextSibling.dataset)var l=n.dgst;return n=l,Us(e,t,s,n=ds(a=Error(o(419)),n,void 0))}if(l=0!==(s&e.childLanes),ws||l){if(null!==(n=Al)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(n.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Ao(e,i),nu(n,e,i,-1))}return vu(),Us(e,t,s,n=ds(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Pu.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,no=ui(i.nextSibling),ro=t,io=!0,oo=null,null!==e&&(Wi[Zi++]=Yi,Wi[Zi++]=Ki,Wi[Zi++]=Qi,Yi=e.id,Ki=e.overflow,Qi=t),(t=Bs(t,n.children)).flags|=4096,t)}(e,t,l,i,n,a,r);if(s){s=i.fallback,l=t.mode,n=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&l||t.child===a?(i=ju(a,u)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==n?s=ju(n,s):(s=Du(s,l,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ls(r):{base
vendor: 12,794 bytes, line 2
2Lanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Ds,i}return e=(s=e.child).sibling,i=ju(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function Bs(e,t){return(t=Lu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Us(e,t,r,n){return null!==n&&mo(n),Ko(t,e.child,null,r),(e=Bs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Vs(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),So(e.return,t,r)}function zs(e,t,r,n,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function qs(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(xs(e,t,n.children,r),2&(n=la.current))n=1&n|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Vs(e,r,t);else if(19===e.tag)Vs(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ci(la,n),1&t.mode)switch(i){case"forwards":for(r=t.child,i=null;null!==r;)null!==(e=r.alternate)&&null===ua(e)&&(i=r),r=r.sibling;null===(r=i)?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),zs(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ua(e)){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}zs(t,!0,r,null,o);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Hs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ll|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(r=ju(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=ju(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function $s(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=14680064&i.subtreeFlags,n|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Zs(e,t,r){var n=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return Ni(t.type)&&Ri(),Ws(t),null;case 3:return n=t.stateNode,oa(),_i(Ti),_i(Pi),da(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==oo&&(su(oo),oo=null))),Rs(e,t),Ws(t),null;case 5:sa(t);var i=na(ra.current);if(r=t.type,null!==e&&null!=t.stateNode)js(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(o(166));return Ws(t),null}if(e=na(ea.current),fo(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[fi]=t,n[pi]=a,e=!!(1&t.mode),r){case"dialog":Bn("cancel",n),Bn("close",n);break;case"iframe":case"object":case"embed":Bn("load",n);break;case"video":case"audio":for(i=0;i<Mn.length;i++)Bn(Mn[i],n);break;case"source":Bn("error",n);break;case"img":case"image":case"link":Bn("error",n),Bn("load",n);break;case"details":Bn("toggle",n);break;case"input":Y(n,a),Bn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Bn("invalid",n);break;case"textarea":ie(n,a),Bn("invalid",n)}for(var l in ye(r,a),i=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?n.textContent!==u&&(!0!==a.suppressHydrationWarning&&Jn(n.textContent,u,e),i=["children",u]):"number"==typeof u&&n.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Jn(n.textContent,u,e),i=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Bn("scroll",n)}switch(r){case"input":$(n),X(n,a,!0);break;case"textarea":$(n),ae(n);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(n.onclick=Xn)}n=i,t.updateQueue=n,null!==n&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),"select"===r&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[fi]=t,e[pi]=n,Ns(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(r,n),r){case"dialog":Bn("cancel",e),Bn("close",e),i=n;break;case"iframe":case"object":case"embed":Bn("load",e),i=n;break;case"video":case"audio":for(i=0;i<Mn.length;i++)Bn(Mn[i],e);i=n;break;case"source":Bn("error",e),i=n;break;case"img":case"image":case"link":Bn("error",e),Bn("load",e),i=n;break;case"details":Bn("toggle",e),i=n;break;case"input":Y(e,n),i=Q(e,n),Bn("invalid",e);break;case"option":default:i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=L({},n,{value:void 0}),Bn("invalid",e);break;case"textarea":ie(e,n),i=ne(e,n),Bn("invalid",e)}for(a in ye(r,i),u=i)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ve(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==r||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Bn("scroll",e):null!=c&&b(e,a,c,l))}switch(r){case"input":$(e),X(e,n,!1);break;case"textarea":$(e),ae(e);break;case"option":null!=n.value&&e.setAttribute("value",""+H(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?re(e,!!n.multiple,a,!1):null!=n.defaultValue&&re(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Xn)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ws(t),null;case 6:if(e&&null!=t.stateNode)Ms(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(o(166));if(r=na(ra.current),na(ea.current),fo(t)){if(n=t.stateNode,r=t.memoizedProps,n[fi]=t,(a=n.nodeValue!==r)&&null!==(e=ro))switch(e.tag){case 3:Jn(n.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jn(n.nodeValue,r,!!(1&e.mode))}a&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[fi]=t,t.stateNode=n}return Ws(t),null;case 13:if(_i(la),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==no&&1&t.mode&&!(128&t.flags))po(),ho(),t.flags|=98560,a=!1;else if(a=fo(t),null!==n&&null!==n.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else ho(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ws(t),a=!1}else null!==oo&&(su(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((n=null!==n)!=(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,1&t.mode&&(null===e||1&la.current?0===Ml&&(Ml=3):vu())),null!==t.updateQueue&&(t.flags|=4),Ws(t),null);case 4:return oa(),Rs(e,t),null===e&&zn(t.stateNode.containerInfo),Ws(t),null;case 10:return ko(t.type._context),Ws(t),null;case 19:if(_i(la),null===(a=t.memoizedState))return Ws(t),null;if(n=!!(128&t.flags),null===(l=a.rendering))if(n)$s(a,!1);else{if(0!==Ml||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ua(e))){for(t.flags|=128,$s(a,!1),null!==(n=l.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ci(la,1&la.current|2),t.child}e=e.sibling}null!==a.tail&&Ke()>ql&&(t.flags|=128,n=!0,$s(a,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=ua(l))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),$s(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Ws(t),null}else 2*Ke()-a.renderingStartTime>ql&&1073741824!==r&&(t.flags|=128,n=!0,$s(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=a.last)?r.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ke(),t.sibling=null,r=la.current,Ci(la,n?1&r|2:1&r),t):(Ws(t),null);case 22:case 23:return fu(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&1&t.mode?!!(1073741824&Rl)&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Qs(e,t){switch(to(t),t.tag){case 1:return Ni(t.type)&&Ri(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),_i(Ti),_i(Pi),da(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(_i(la),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _i(la),null;case 4:return oa(),null;case 10:return ko(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}Ns=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Rs=function(){},js=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,na(ea.current);var o,a=null;switch(r){case"input":i=Q(e,i),n=Q(e,n),a=[];break;case"select":i=L({},i,{value:void 0}),n=L({},n,{value:void 0}),a=[];break;case"textarea":i=ne(e,i),n=ne(e,n),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof n.onClick&&(e.onclick=Xn)}for(c in ye(r,n),r=null,i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in n){var u=n[c];if(l=null!=i?i[c]:void 0,n.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(r||(r={}),r[o]=u[o])}else r||(a||(a=[]),a.push(c,r)),r=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Bn("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}r&&(a=a||[]).push("style",r);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ms=function(e,t,r,n){r!==n&&(t.flags|=4)};var Ys=!1,Ks=!1,Js="function"==typeof WeakSet?WeakSet:Set,Xs=null;function el(e,t){var r=e.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(r){_u(e,t,r)}else r.current=null}function tl(e,t,r){try{r()}catch(r){_u(e,t,r)}}var rl=!1;function nl(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&tl(t,r,o)}i=i.next}while(i!==n)}}function il(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}
vendor: 4,303 bytes, line 2
2while(r!==t)}}function ol(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"==typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[fi],delete t[pi],delete t[mi],delete t[vi],delete t[gi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ul(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Xn));else if(4!==n&&null!==(e=e.child))for(ul(e,t,r),e=e.sibling;null!==e;)ul(e,t,r),e=e.sibling}function cl(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(cl(e,t,r),e=e.sibling;null!==e;)cl(e,t,r),e=e.sibling}var dl=null,fl=!1;function pl(e,t,r){for(r=r.child;null!==r;)hl(e,t,r),r=r.sibling}function hl(e,t,r){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,r)}catch(e){}switch(r.tag){case 5:Ks||el(r,t);case 6:var n=dl,i=fl;dl=null,pl(e,t,r),fl=i,null!==(dl=n)&&(fl?(e=dl,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):dl.removeChild(r.stateNode));break;case 18:null!==dl&&(fl?(e=dl,r=r.stateNode,8===e.nodeType?li(e.parentNode,r):1===e.nodeType&&li(e,r),zt(e)):li(dl,r.stateNode));break;case 4:n=dl,i=fl,dl=r.stateNode.containerInfo,fl=!0,pl(e,t,r),dl=n,fl=i;break;case 0:case 11:case 14:case 15:if(!Ks&&null!==(n=r.updateQueue)&&null!==(n=n.lastEffect)){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&tl(r,t,a),i=i.next}while(i!==n)}pl(e,t,r);break;case 1:if(!Ks&&(el(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(e){_u(r,t,e)}pl(e,t,r);break;case 21:pl(e,t,r);break;case 22:1&r.mode?(Ks=(n=Ks)||null!==r.memoizedState,pl(e,t,r),Ks=n):pl(e,t,r);break;default:pl(e,t,r)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Js),t.forEach(function(t){var n=Tu.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))})}}function vl(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var i=r[n];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,fl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,fl=!0;break e}l=l.return}if(null===dl)throw Error(o(160));hl(a,s,i),dl=null,fl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){_u(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vl(t,e),yl(e),4&n){try{nl(3,e,e.return),il(3,e)}catch(t){_u(e,e.return,t)}try{nl(5,e,e.return)}catch(t){_u(e,e.return,t)}}break;case 1:vl(t,e),yl(e),512&n&&null!==r&&el(r,r.return);break;case 5:if(vl(t,e),yl(e),512&n&&null!==r&&el(r,r.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(t){_u(e,e.return,t)}}if(4&n&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&K(i,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?ve(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):b(i,d,f,c)}switch(l){case"input":J(i,a);break;case"textarea":oe(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?re(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?re(i,!!a.multiple,a.defaultValue,!0):re(i,!!a.multiple,a.multiple?[]:"",!1))}i[pi]=a}catch(t){_u(e,e.return,t)}}break;
vendor: 5,721 bytes, line 2
2case 6:if(vl(t,e),yl(e),4&n){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){_u(e,e.return,t)}}break;case 3:if(vl(t,e),yl(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(t){_u(e,e.return,t)}break;case 4:default:vl(t,e),yl(e);break;case 13:vl(t,e),yl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(zl=Ke())),4&n&&ml(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Ks=(c=Ks)||d,vl(t,e),Ks=c):vl(t,e),yl(e),8192&n){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Xs=e,d=e.child;null!==d;){for(f=Xs=d;null!==Xs;){switch(h=(p=Xs).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:el(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){n=p,r=p.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){_u(n,r,e)}}break;case 5:el(p,p.return);break;case 22:if(null!==p.memoizedState){El(f);continue}}null!==h?(h.return=p,Xs=h):El(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){_u(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){_u(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:vl(t,e),yl(e),4&n&&ml(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(sl(r)){var n=r;break e}r=r.return}throw Error(o(160))}switch(n.tag){case 5:var i=n.stateNode;32&n.flags&&(fe(i,""),n.flags&=-33),cl(e,ll(e),i);break;case 3:case 4:var a=n.stateNode.containerInfo;ul(e,ll(e),a);break;default:throw Error(o(161))}}catch(t){_u(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,r){Xs=e,wl(e,t,r)}function wl(e,t,r){for(var n=!!(1&e.mode);null!==Xs;){var i=Xs,o=i.child;if(22===i.tag&&n){var a=null!==i.memoizedState||Ys;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Ks;s=Ys;var u=Ks;if(Ys=a,(Ks=l)&&!u)for(Xs=i;null!==Xs;)l=(a=Xs).child,22===a.tag&&null!==a.memoizedState?kl(i):null!==l?(l.return=a,Xs=l):kl(i);for(;null!==o;)Xs=o,wl(o,t,r),o=o.sibling;Xs=i,Ys=s,Ks=u}xl(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,Xs=o):xl(e)}}function xl(e){for(;null!==Xs;){var t=Xs;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ks||il(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Ks)if(null===r)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:go(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Bo(t,a,n);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Bo(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&zt(f)}}}break;default:throw Error(o(163))}Ks||512&t.flags&&ol(t)}catch(e){_u(t,t.return,e)}}if(t===e){Xs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Xs=r;break}Xs=t.return}}function El(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var r=t.sibling;if(null!==r){r.return=t.return,Xs=r;break}Xs=t.return}}function kl(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{il(4,t)}catch(e){_u(t,r,e)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var i=t.return;try{n.componentDidMount()}catch(e){_u(t,i,e)}}var o=t.return;try{ol(t)}catch(e){_u(t,o,e)}break;case 5:var a=t.return;try{ol(t)}catch(e){_u(t,a,e)}}}catch(e){_u(t,t.return,e)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var Sl,_l=Math.ceil,Cl=w.ReactCurrentDispatcher,Ol=w.ReactCurrentOwner,Pl=w.ReactCurrentBatchConfig,Tl=0,Al=null,Il=null,Nl=0,Rl=0,jl=Si(0),Ml=0,Dl=null,Ll=0,Fl=0,Bl=0,Ul=null,Vl=null,zl=0,ql=1/0,Hl=null,Gl=!1,$l=null,Wl=null,Zl=!1,Ql=null,Yl=0,Kl=0,Jl=null,Xl=-1,eu=0;function tu(){return 6&Tl?Ke():-1!==Xl?Xl:Xl=Ke()}function ru(e){return 1&e.mode?2&Tl&&0!==Nl?Nl&-Nl:null!==vo.transition?(0===eu&&(eu=mt()),eu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Yt(e.type):1}function nu(e,t,r,n){if(50<Kl)throw Kl=0,Jl=null,Error(o(185));gt(e,r,n),2&Tl&&e===Al||(e===Al&&(!(2&Tl)&&(Fl|=r),4===Ml&&lu(e,Nl)),iu(e,n),1===r&&0===Tl&&!(1&t.mode)&&(ql=Ke()+500,Bi&&zi()))}function iu(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!==(s&r)&&0===(s&n)||(i[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var n=ft(e,e===Al?Nl:0);if(0===n)null!==r&&Ze(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Ze(r),1===t)0===e.tag?function(e){Bi=!0,Vi(e)}(uu.bind(null,e)):Vi(uu.bind(null,e)),ai(function(){!(6&Tl)&&zi()}
vendor: 23,360 bytes, line 2
2),r=null;else{switch(wt(n)){case 1:r=Xe;break;case 4:r=et;break;case 16:default:r=tt;break;case 536870912:r=nt}r=Au(r,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function ou(e,t){if(Xl=-1,eu=0,6&Tl)throw Error(o(327));var r=e.callbackNode;if(ku()&&e.callbackNode!==r)return null;var n=ft(e,e===Al?Nl:0);if(0===n)return null;if(30&n||0!==(n&e.expiredLanes)||t)t=gu(e,n);else{t=n;var i=Tl;Tl|=2;var a=mu();for(Al===e&&Nl===t||(Hl=null,ql=Ke()+500,pu(e,t));;)try{bu();break}catch(t){hu(e,t)}Eo(),Cl.current=a,Tl=i,null!==Il?t=0:(Al=null,Nl=0,t=Ml)}if(0!==t){if(2===t&&0!==(i=ht(e))&&(n=i,t=au(e,i)),1===t)throw r=Dl,pu(e,0),lu(e,n),iu(e,Ke()),r;if(6===t)lu(e,n);else{if(i=e.current.alternate,!(30&n||function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var i=r[n],o=i.getSnapshot;i=i.value;try{if(!sn(o(),i))return!1}catch(e){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=gu(e,n),2===t&&(a=ht(e),0!==a&&(n=a,t=au(e,a))),1!==t)))throw r=Dl,pu(e,0),lu(e,n),iu(e,Ke()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(o(345));case 2:case 5:Eu(e,Vl,Hl);break;case 3:if(lu(e,n),(130023424&n)===n&&10<(t=zl+500-Ke())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&n)!==n){tu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ni(Eu.bind(null,e,Vl,Hl),t);break}Eu(e,Vl,Hl);break;case 4:if(lu(e,n),(4194240&n)===n)break;for(t=e.eventTimes,i=-1;0<n;){var s=31-at(n);a=1<<s,(s=t[s])>i&&(i=s),n&=~a}if(n=i,10<(n=(120>(n=Ke()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*_l(n/1960))-n)){e.timeoutHandle=ni(Eu.bind(null,e,Vl,Hl),n);break}Eu(e,Vl,Hl);break;default:throw Error(o(329))}}}return iu(e,Ke()),e.callbackNode===r?ou.bind(null,e):null}function au(e,t){var r=Ul;return e.current.memoizedState.isDehydrated&&(pu(e,t).flags|=256),2!==(e=gu(e,t))&&(t=Vl,Vl=r,null!==t&&su(t)),e}function su(e){null===Vl?Vl=e:Vl.push.apply(Vl,e)}function lu(e,t){for(t&=~Bl,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-at(t),n=1<<r;e[r]=-1,t&=~n}}function uu(e){if(6&Tl)throw Error(o(327));ku();var t=ft(e,0);if(!(1&t))return iu(e,Ke()),null;var r=gu(e,t);if(0!==e.tag&&2===r){var n=ht(e);0!==n&&(t=n,r=au(e,n))}if(1===r)throw r=Dl,pu(e,0),lu(e,t),iu(e,Ke()),r;if(6===r)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Eu(e,Vl,Hl),iu(e,Ke()),null}function cu(e,t){var r=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=r)&&(ql=Ke()+500,Bi&&zi())}}function du(e){null!==Ql&&0===Ql.tag&&!(6&Tl)&&ku();var t=Tl;Tl|=1;var r=Pl.transition,n=bt;try{if(Pl.transition=null,bt=1,e)return e()}finally{bt=n,Pl.transition=r,!(6&(Tl=t))&&zi()}}function fu(){Rl=jl.current,_i(jl)}function pu(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,ii(r)),null!==Il)for(r=Il.return;null!==r;){var n=r;switch(to(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&Ri();break;case 3:oa(),_i(Ti),_i(Pi),da();break;case 5:sa(n);break;case 4:oa();break;case 13:case 19:_i(la);break;case 10:ko(n.type._context);break;case 22:case 23:fu()}r=r.return}if(Al=e,Il=e=ju(e.current,null),Nl=Rl=t,Ml=0,Dl=null,Bl=Fl=Ll=0,Vl=Ul=null,null!==Oo){for(t=0;t<Oo.length;t++)if(null!==(n=(r=Oo[t]).interleaved)){r.interleaved=null;var i=n.next,o=r.pending;if(null!==o){var a=o.next;o.next=i,n.next=a}r.pending=n}Oo=null}return e}function hu(e,t){for(;;){var r=Il;try{if(Eo(),fa.current=as,ya){for(var n=ma.memoizedState;null!==n;){var i=n.queue;null!==i&&(i.pending=null),n=n.next}ya=!1}if(ha=0,ga=va=ma=null,ba=!1,wa=0,Ol.current=null,null===r||null===r.return){Ml=1,Dl=t,Il=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=Nl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,ys(h,s,l,0,t),1&h.mode&&vs(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var v=new Set;v.add(u),t.updateQueue=v}else m.add(u);break e}if(!(1&t)){vs(a,c,t),vu();break e}u=Error(o(426))}else if(io&&1&l.mode){var g=gs(s);if(null!==g){!(65536&g.flags)&&(g.flags|=256),ys(g,s,l,0,t),mo(cs(u,l));break e}}a=u=cs(u,l),4!==Ml&&(Ml=2),null===Ul?Ul=[a]:Ul.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Lo(a,hs(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Wl&&Wl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Lo(a,ms(a,l,t));break e}}a=a.return}while(null!==a)}xu(r)}catch(e){t=e,Il===r&&null!==r&&(Il=r=r.return);continue}break}}function mu(){var e=Cl.current;return Cl.current=as,null===e?as:e}function vu(){0!==Ml&&3!==Ml&&2!==Ml||(Ml=4),null===Al||!(268435455&Ll)&&!(268435455&Fl)||lu(Al,Nl)}function gu(e,t){var r=Tl;Tl|=2;var n=mu();for(Al===e&&Nl===t||(Hl=null,pu(e,t));;)try{yu();break}catch(t){hu(e,t)}if(Eo(),Tl=r,Cl.current=n,null!==Il)throw Error(o(261));return Al=null,Nl=0,Ml}function yu(){for(;null!==Il;)wu(Il)}function bu(){for(;null!==Il&&!Qe();)wu(Il)}function wu(e){var t=Sl(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?xu(e):Il=t,Ol.current=null}function xu(e){var t=e;do{var r=t.alternate;if(e=t.return,32768&t.flags){if(null!==(r=Qs(r,t)))return r.flags&=32767,void(Il=r);if(null===e)return Ml=6,void(Il=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(r=Zs(r,t,Rl)))return void(Il=r);if(null!==(t=t.sibling))return void(Il=t);Il=t=e}while(null!==t);0===Ml&&(Ml=5)}function Eu(e,t,r){var n=bt,i=Pl.transition;try{Pl.transition=null,bt=1,function(e,t,r,n){do{ku()}while(null!==Ql);if(6&Tl)throw Error(o(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-at(r),o=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~o}}(e,a),e===Al&&(Il=Al=null,Nl=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Zl||(Zl=!0,Au(tt,function(){return ku(),null})),a=!!(15990&r.flags),15990&r.subtreeFlags||a){a=Pl.transition,Pl.transition=null;var s=bt;bt=1;var l=Tl;Tl|=4,Ol.current=null,function(e,t){if(ei=Ht,pn(e=fn())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==n&&3!==f.nodeType||(u=s+n),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++c===i&&(l=s),p===a&&++d===n&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(ti={focusedElem:e,selectionRange:r},Ht=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var v=m.memoizedProps,g=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:go(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(e){_u(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}m=rl,rl=!1}(e,r),gl(r,e),hn(ti),Ht=!!ei,ti=ei=null,e.current=r,bl(r,e,i),Ye(),Tl=l,bt=s,Pl.transition=a}else e.current=r;if(Zl&&(Zl=!1,Ql=e,Yl=i),0===(a=e.pendingLanes)&&(Wl=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),iu(e,Ke()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)n((i=t[r]).value,{componentStack:i.stack,digest:i.digest});if(Gl)throw Gl=!1,e=$l,$l=null,e;!!(1&Yl)&&0!==e.tag&&ku(),1&(a=e.pendingLanes)?e===Jl?Kl++:(Kl=0,Jl=e):Kl=0,zi()}(e,t,r,n)}finally{Pl.transition=i,bt=n}return null}function ku(){if(null!==Ql){var e=wt(Yl),t=Pl.transition,r=bt;try{if(Pl.transition=null,bt=16>e?16:e,null===Ql)var n=!1;else{if(e=Ql,Ql=null,Yl=0,6&Tl)throw Error(o(331));var i=Tl;for(Tl|=4,Xs=e.current;null!==Xs;){var a=Xs,s=a.child;if(16&Xs.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Xs=c;null!==Xs;){var d=Xs;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Xs=f;else for(;null!==Xs;){var p=(d=Xs).sibling,h=d.return;if(al(d),d===c){Xs=null;break}if(null!==p){p.return=h,Xs=p;break}Xs=h}}}var m=a.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Xs=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Xs=s;else e:for(;null!==Xs;){if(2048&(a=Xs).flags)switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Xs=y;break e}Xs=a.return}}var b=e.current;for(Xs=b;null!==Xs;){var w=(s=Xs).child;if(2064&s.subtreeFlags&&null!==w)w.return=s,Xs=w;else e:for(s=b;null!==Xs;){if(2048&(l=Xs).flags)try{switch(l.tag){case 0:case 11:case 15:il(9,l)}}catch(e){_u(l,l.return,e)}if(l===s){Xs=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Xs=x;break e}Xs=l.return}}if(Tl=i,zi(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}n=!0}return n}finally{bt=r,Pl.transition=t}}return!1}function Su(e,t,r){e=Mo(e,t=hs(0,t=cs(r,t),1),1),t=tu(),null!==e&&(gt(e,1,t),iu(e,t))}function _u(e,t,r){if(3===e.tag)Su(e,e,r);else for(;null!==t;){if(3===t.tag){Su(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Wl||!Wl.has(n))){t=Mo(t,e=ms(t,e=cs(r,e),1),1),e=tu(),null!==t&&(gt(t,1,e),iu(t,e));break}}t=t.return}}function Cu(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&r,Al===e&&(Nl&r)===r&&(4===Ml||3===Ml&&(130023424&Nl)===Nl&&500>Ke()-zl?pu(e,0):Bl|=r),iu(e,t)}function Ou(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var r=tu();null!==(e=Ao(e,t))&&(gt(e,t,r),iu(e,r))}function Pu(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),Ou(e,r)}function Tu(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(o(314))}null!==n&&n.delete(t),Ou(e,r)}function Au(e,t){return We(e,t)}function Iu(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nu(e,t,r,n){return new Iu(e,t,r,n)}function Ru(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ju(e,t){var r=e.alternate;return null===r?((r=Nu(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Mu(e,t,r,n,i,a){var s=2;if(n=e,"function"==typeof e)Ru(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case k:return Du(r.children,i,a,t);case S:s=8,i|=8;break;case _:return(e=Nu(12,r,t,2|i)).elementType=_,e.lanes=a,e;case T:return(e=Nu(13,r,t,i)).elementType=T,e.lanes=a,e;case A:return(e=Nu(19,r,t,i)).elementType=A,e.lanes=a,e;case R:return Lu(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case O:s=9;break e;case P:s=11;break e;case I:s=14;break e;case N:s=16,n=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Nu(s,r,t,i)).elementType=e,t.type=n,t.lanes=a,t}function Du(e,t,r,n){return(e=Nu(7,e,n,t)).lanes=r,e}function Lu(e,t,r,n){return(e=Nu(22,e,n,t)).elementType=R,e.lanes=r,e.stateNode={isHidden:!1},e}function Fu(e,t,r){return(e=Nu(6,e,null,t)).lanes=r,e}function Bu(e,t,r){return(t=Nu(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uu(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Vu(e,t,r,n,i,o,a,s,l){return e=new Uu(e,t,r,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Nu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},No(o),e}function zu(e){if(!e)return Oi;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ni(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var r=e.type;if(Ni(r))return Mi(e,r,t)}return t}function qu(e,t,r,n,i,o,a,s,l){return(e=Vu(r,n,!0,e,0,o,0,s,l)).context=zu(null),r=e.current,(o=jo(n=tu(),i=ru(r))).callback=null!=t?t:null,Mo(r,o,i),e.current.lanes=i,gt(e,i,n),iu(e,n),e}function Hu(e,t,r,n){var i=t.current,o=tu(),a=ru(i);return r=zu(r),null===t.context?t.context=r:t.pendingContext=r,(t=jo(o,a)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Mo(i,t,a))&&(nu(e,i,a,o),Do(e,i,a)),a}function Gu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $u(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Wu(e,t){$u(e,t),(e=e.alternate)&&$u(e,t)}Sl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ti.current)ws=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return ws=!1,function(e,t,r){switch(t.tag){case 3:As(t),ho();break;case 5:aa(t);break;case 1:Ni(t.type)&&Di(t);break;case 4:ia(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Ci(yo,n._currentValue),n._currentValue=i;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(Ci(la,1&la.current),t.flags|=128,null):0!==(r&t.child.childLanes)?Fs(e,t,r):(Ci(la,1&la.current),null!==(e=Gs(e,t,r))?e.sibling:null);Ci(la,1&la.current);break;case 19:if(n=0!==(r&t.childLanes),128&e.flags){if(n)return qs(e,t,r);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ci(la,la.current),n)break;return null;case 22:case 23:return t.lanes=0,_s(e,t,r)}return Gs(e,t,r)}(e,t,r);ws=!!(131072&e.flags)}else ws=!1,io&&1048576&t.flags&&Xi(t,$i,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Hs(e,t),e=t.pendingProps;var i=Ii(t,Pi.current);_o(t,r),i=Sa(null,t,n,e,i,r);var a=_a();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ni(n)?(a=!0,Di(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,No(t),i.updater=zo,t.stateNode=i,i._reactInternals=t,$o(t,n,e,r),t=Ts(null,t,n,!0,a,r)):(t.tag=0,io&&a&&eo(t),xs(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,n=(i=n._init)(n._payload),t.type=n,i=t.tag=function(e){if("function"==typeof e)return Ru(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===I)return 14}return 2}(n),e=go(n,e),i){case 0:t=Os(null,t,n,e,r);break e;case 1:t=Ps(null,t,n,e,r);break e;case 11:t=Es(null,t,n,e,r);break e;case 14:t=ks(null,t,n,go(n.type,e),r);break e}throw Error(o(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,Os(e,t,n,i=t.elementType===n?i:go(n,i),r);case 1:return n=t.type,i=t.pendingProps,Ps(e,t,n,i=t.elementType===n?i:go(n,i),r);case 3:e:{if(As(t),null===e)throw Error(o(387));n=t.pendingProps,i=(a=t.memoizedState).element,Ro(e,t),Fo(t,n,null,r);var s=t.memoizedState;if(n=s.element,a.isDehydrated){if(a={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Is(e,t,n,r,i=cs(Error(o(423)),t));break e}if(n!==i){t=Is(e,t,n,r,i=cs(Error(o(424)),t));break e}for(no=ui(t.stateNode.containerInfo.firstChild),ro=t,io=!0,oo=null,r=Jo(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ho(),n===i){t=Gs(e,t,r);break e}xs(e,t,n,r)}t=t.child}return t;case 5:return aa(t),null===e&&uo(t),n=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ri(n,i)?s=null:null!==a&&ri(n,a)&&(t.flags|=32),Cs(e,t),xs(e,t,s,r),t.child;case 6:return null===e&&uo(t),null;case 13:return Fs(e,t,r);case 4:return ia(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Ko(t,null,n,r):xs(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,Es(e,t,n,i=t.elementType===n?i:go(n,i),r);case 7:return xs(e,t,t.pendingProps,r),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ci(yo,n._currentValue),n._currentValue=s,null!==a)if(sn(a.value,s)){if(a.children===i.children&&!Ti.current){t=Gs(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===n){if(1===a.tag){(u=jo(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=r,null!==(u=a.alternate)&&(u.lanes|=r),So(a.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),So(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}xs(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,_o(t,r),n=n(i=Co(i)),t.flags|=1,xs(e,t,n,r),t.child;case 14:return i=go(n=t.type,t.pendingProps),ks(e,t,n,i=go(n.type,i),r);case 15:return Ss(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:go(n,i),Hs(e,t),t.tag=1,Ni(n)?(e=!0,Di(t)):e=!1,_o(t,r),Ho(t,n,i),$o(t,n,i,r),Ts(null,t,n,!0,e,r);case 19:return qs(e,t,r);case 22:return _s(e,t,r)}throw Error(o(156,t.tag))};var Zu="function"==typeof reportError?reportError:function(e){console.error(e)};function Qu(e){this._internalRoot=e}function Yu(e){this._internalRoot=e}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xu(){}function ec(e,t,r,n,i){var o=r._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=Gu(a);s.call(e)}}Hu(t,a,e,i)}else a=function(e,t,r,n,i){if(i){if("function"==typeof n){var o=n;n=function(){var e=Gu(a);o.call(e)}}var a=qu(t,n,e,0,null,!1,0,"",Xu);return e._reactRootContainer=a,e[hi]=a.current,zn(8===e.nodeType?e.parentNode:e),du(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof n){var s=n;n=function(){var e=Gu(l);s.call(e)}}var l=Vu(e,0,!1,null,0,!1,0,"",Xu);return e._reactRootContainer=l,e[hi]=l.current,zn(8===e.nodeType?e.parentNode:e),du(function(){Hu(t,l,r,n)}),l}(r,t,e,i,n);return Gu(a)}Yu.prototype.render=Qu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Hu(e,t,null,null)},Yu.prototype.unmount=Qu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du(function(){Hu(null,e,null,null)}),t[hi]=null}},Yu.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Rt.length&&0!==t&&t<Rt[r].priority;r++);Rt.splice(r,0,e),0===r&&Lt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=dt(t.pendingLanes);0!==r&&(yt(t,1|r),iu(t,Ke()),!(6&Tl)&&(ql=Ke()+500,zi()))}break;case 13:du(function(){var t=Ao(e,1);if(null!==t){var r=tu();nu(t,e,1,r)}}),Wu(e,1)}},Et=function(e){if(13===e.tag){var t=Ao(e,134217728);null!==t&&nu(t,e,134217728,tu()),Wu(e,134217728)}},kt=function(e){if(13===e.tag){var t=ru(e),r=Ao(e,t);null!==r&&nu(r,e,t,tu()),Wu(e,t)}},St=function(){return bt},_t=function(e,t){var r=bt;try{return bt=e,t()}finally{bt=r}},Ee=function(e,t,r){switch(t){case"input":if(J(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=xi(n);if(!i)throw Error(o(90));W(n),J(n,i)}}}break;case"textarea":oe(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Pe=cu,Te=du;var tc={usingClientEntryPoint:!1,Events:[bi,wi,xi,Ce,Oe,cu]},rc={findFiberByHostInstance:yi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nc={bundleType:rc.bundleType,version:rc.version,rendererPackageName:rc.rendererPackageName,rendererConfig:rc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ge(e))?null:e.stateNode},findFiberByHostInstance:rc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ic.isDisabled&&ic.supportsFiber)try{it=ic.inject(nc),ot=ic}catch(ce){}}
vendor: 4,475 bytes, line 2
2t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ku(t))throw Error(o(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.createRoot=function(e,t){if(!Ku(e))throw Error(o(299));var r=!1,n="",i=Zu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Vu(e,1,!1,null,0,r,0,n,i),e[hi]=t.current,zn(8===e.nodeType?e.parentNode:e),new Qu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=Ge(t))?null:e.stateNode},t.flushSync=function(e){return du(e)},t.hydrate=function(e,t,r){if(!Ju(t))throw Error(o(200));return ec(null,e,t,!0,r)},t.hydrateRoot=function(e,t,r){if(!Ku(e))throw Error(o(405));var n=null!=r&&r.hydratedSources||null,i=!1,a="",s=Zu;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=qu(t,null,e,1,null!=r?r:null,i,0,a,s),e[hi]=t.current,zn(e),n)for(e=0;e<n.length;e++)i=(i=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Yu(t)},t.render=function(e,t,r){if(!Ju(t))throw Error(o(200));return ec(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(o(40));return!!e._reactRootContainer&&(du(function(){ec(null,null,e,!1,function(){e._reactRootContainer=null,e[hi]=null})}),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Ju(r))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return ec(e,t,r,!1,n)},t.version="18.2.0-next-9e3b772b8-20220608"},37634:function(e,t,r){"use strict";var n=r(31542);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},31542:function(e,t,r){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(43577)},54335:function(e){var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,u,c;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!o(e[l],a[l]))return!1;return!0}if(r&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=e.entries();!(l=c.next()).done;)if(!o(l.value[1],a.get(l.value[0])))return!1;return!0}if(n&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof a.toString)return e.toString()===a.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!e.$$typeof)&&!o(e[u[l]],a[u[l]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return o(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},92883:function(e,t,r){"use strict";r.r(t),r.d(t,{Helmet:function(){return X},HelmetData:function(){return V},HelmetProvider:function(){return G}});var n=r(27378),i=r(23615),o=r.n(i),a=r(54335),s=r.n(a),l=r(3996),u=r.n(l),c=r(74445),d=r.
2n(c);function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function p(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}var v={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},g={rel:["amphtml","canonical","alternate"]},y={type:["application/ld+json"]},b={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},w=Object.keys(v).map(function(e){return v[e]}),x={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},E=Object.keys(x).reduce(function(e,t){return e[x[t]]=t,e},{}),k=function(e,t){for(var r=e.length-1;r>=0;r-=1){var n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},S=function(e){var t=k(e,v.TITLE),r=k(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,function(){return t});var n=k(e,"defaultTitle");return t||n||void 0},_=function(e){return k(e,"onChangeClientState")||function(){}},C=function(e,t){return t.filter(function(t){return void 0!==t[e]}).map(function(t){return t[e]}).reduce(function(e,t){return f({},e,t)},{})},O=function(e,t){return t.filter(function(e){return void 0!==e[v.BASE]}).map(function(e){return e[v.BASE]}).reverse().reduce(function(t,r){if(!t.length)for(var n=Object.keys(r),i=0;i<n.length;i+=1){var o=n[i].toLowerCase();if(-1!==e.indexOf(o)&&r[o])return t.concat(r)}return t},[])},P=function(e,t,r){var n={};return r.filter(function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)}).map(function(t){return t[e]}).reverse().reduce(function(e,r){var i={};r.filter(function(e){for(var r,o=Object.keys(e),a=0;a<o.length;a+=1){var s=o[a],l=s.toLowerCase();-1===t.indexOf(l)||"rel"===r&&"canonical"===e[r].toLowerCase()||"rel"===l&&"stylesheet"===e[l].toLowerCase()||(r=l),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(r=s)}if(!r||!e[r])return!1;var u=e[r].toLowerCase();return n[r]||(n[r]={}),i[r]||(i[r]={}),!n[r][u]&&(i[r][u]=!0,!0)}).reverse().forEach(function(t){return e.push(t)});for(var o=Object.keys(i),a=0;a<o.length;a+=1){var s=o[a],l=f({},n[s],i[s]);n[s]=l}return e},[]).reverse()},T=function(e,t){if(Array.isArray(e)&&e.length)for(var r=0;r<e.length;r+=1)if(e[r][t])return!0;return!1},A=function(e){return Array.isArray(e)?e.join(""):e},I=function(e,t){return Array.isArray(e)?e.reduce(function(e,r){return function(e,t){for(var r=Object.keys(e),n=0;n<r.length;n+=1)if(t[r[n]]&&t[r[n]].includes(e[r[n]]))return!0;return!1}(r,t)?e.priority.push(r):e.default.push(r),e},{priority:[],default:[]}):{default:e}},N=function(e,t){var r;return f({},e,((r={})[t]=void 0,r))},R=[v.NOSCRIPT,v.SCRIPT,v.STYLE],j=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},M=function(e){return Object.keys(e).reduce(function(t,r){var n=void 0!==e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n},"")},D=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce(function(t,r){return t[x[r]||r]=e[r],t},t)},L=function(e,t){return t.map(function(t,r){var i,o=((i={key:r})["data-rh"]=!0,i);return Object.keys(t).forEach(function(e){var r=x[e]||e;"innerHTML"===r||"cssText"===r?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[r]=t[e]}),n.createElement(e,o)})},F=function(e,t,r){switch(e){case v.TITLE:return{toComponent:function(){return r=t.titleAttributes,(i={key:e=t.title})["data-rh"]=!0,o=D(r,i),[n.createElement(v.TITLE,o,e)];var e,r,i,o},toString:function(){return function(e,t,r,n){var i=M(r),o=A(t);return i?"<"+e+' data-rh="true" '+i+">"+j(o,n)+"</"+e+">":"<"+e+' data-rh="true">'+j(o,n)+"</"+e+">"}(e,t.title,t.titleAttributes,r)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return D(t)},toString:function(){return M(t)}};default:return{toComponent:function(){return L(e,t)},toString:function(){return function(e,t,r){return t.reduce(function(t,n){var i=Object.keys(n).filter(function(e){return!("innerHTML"===e||"cssText"===e)}).reduce(function(e,t){var i=void 0===n[t]?t:t+'="'+j(n[t],r)+'"';return e?e+" "+i:i},""),o=n.innerHTML||n.cssText||"",a=-1===R.indexOf(e);return t+"<"+e+' data-rh="true" '+i+(a?"/>":">"+o+"</"+e+">")},"")}(e,t,r)}}}},B=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,i=e.htmlAttributes,o=e.noscriptTags,a=e.styleTags,s=e.title,l=void 0===s?"":s,u=e.titleAttributes,c=e.linkTags,d=e.metaTags,f=e.scriptTags,p={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var h=function(e){var t=e.linkTags,r=e.scriptTags,n=e.encode,i=I(e.metaTags,b),o=I(t,g),a=I(r,y);return{priorityMethods:{toComponent:function(){return[].concat(L(v.META,i.priority),L(v.LINK,o.priority),L(v.SCRIPT,a.priority))},toString:function(){return F(v.META,i.priority,n)+" "+F(v.LINK,o.priority,n)+" "+F(v.SCRIPT,a.priority,n)}},metaTags:i.default,linkTags:o.default,scriptTags:a.default}}(e);p=h.priorityMethods,c=h.linkTags,d=h.metaTags,f=h.scriptTags}return{priority:p,base:F(v.BASE,t,n),bodyAttributes:F("bodyAttributes",r,n),htmlAttributes:F("htmlAttributes",i,n),link:F(v.LINK,c,n),meta:F(v.META,d,n),noscript:F(v.NOSCRIPT,o,n),script:F(v.SCRIPT,f,n),style:F(v.STYLE,a,n),title:F(v.TIT
2LE,{title:l,titleAttributes:u},n)}},U=[],V=function(e,t){var r=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){r.context.helmet=e},helmetInstances:{get:function(){return r.canUseDOM?U:r.instances},add:function(e){(r.canUseDOM?U:r.instances).push(e)},remove:function(e){var t=(r.canUseDOM?U:r.instances).indexOf(e);(r.canUseDOM?U:r.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=B({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},z=n.createContext({}),q=o().shape({setHelmet:o().func,helmetInstances:o().shape({get:o().func,add:o().func,remove:o().func})}),H="undefined"!=typeof document,G=function(e){function t(r){var n;return(n=e.call(this,r)||this).helmetData=new V(n.props.context,t.canUseDOM),n}return p(t,e),t.prototype.render=function(){return n.createElement(z.Provider,{value:this.helmetData.value},this.props.children)},t}(n.Component);G.canUseDOM=H,G.propTypes={context:o().shape({helmet:o().shape()}),children:o().node.isRequired},G.defaultProps={context:{}}
2,G.displayName="HelmetProvider";var $=function(e,t){var r,n=document.head||document.querySelector(v.HEAD),i=n.querySelectorAll(e+"[data-rh]"),o=[].slice.call(i),a=[];return t&&t.length&&t.forEach(function(t){var n=document.createElement(e);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&("innerHTML"===i?n.innerHTML=t.innerHTML:"cssText"===i?n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText)):n.setAttribute(i,void 0===t[i]?"":t[i]));n.setAttribute("data-rh","true"),o.some(function(e,t){return r=t,n.isEqualNode(e)})?o.splice(r,1):a.push(n)}),o.forEach(function(e){return e.parentNode.removeChild(e)}),a.forEach(function(e){return n.appendChild(e)}),{oldTags:o,newTags:a}},W=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute("data-rh"),i=n?n.split(","):[],o=[].concat(i),a=Object.keys(t),s=0;s<a.length;s+=1){var l=a[s],u=t[l]||"";r.getAttribute(l)!==u&&r.setAttribute(l,u),-1===i.indexOf(l)&&i.push(l);var c=o.indexOf(l);-1!==c&&o.splice(c,1)}for(var d=o.length-1;d>=0;d-=1)r.removeAttribute(o[d]);i.length===o.length?r.removeAttribute("data-rh"):r.getAttribute("data-rh")!==a.join(",")&&r.setAttribute("data-rh",a.join(","))}},Z=function(e,t){var r=e.baseTag,n=e.htmlAttributes,i=e.linkTags,o=e.metaTags,a=e.noscriptTags,s=e.onChangeClientState,l=e.scriptTags,u=e.styleTags,c=e.title,d=e.titleAttributes;W(v.BODY,e.bodyAttributes),W(v.HTML,n),function(e,t){void 0!==e&&document.title!==e&&(document.title=A(e)),W(v.TITLE,t)}(c,d);var f={baseTag:$(v.BASE,r),linkTags:$(v.LINK,i),metaTags:$(v.META,o),noscriptTags:$(v.NOSCRIPT,a),scriptTags:$(v.SCRIPT,l),styleTags:$(v.STYLE,u)},p={},h={};Object.keys(f).forEach(function(e){var t=f[e],r=t.newTags,n=t.oldTags;r.length&&(p[e]=r),n.length&&(h[e]=f[e].oldTags)}),t&&t(),s(e,p,h)},Q=null,Y=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).rendered=!1,t}p(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return!d()(e,this.props)},r.componentDidUpdate=function(){this.emitChange()},r.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},r.emitChange=function(){var e,t,r=this.props.context,n=r.setHelmet,i=null,o=(e=r.helmetInstances.get().map(function(e){var t=f({},e.props);return delete t.context,t}),{baseTag:O(["href"],e),bodyAttributes:C("bodyAttributes",e),defer:k(e,"defer"),encode:k(e,"encodeSpecialCharacters"),htmlAttributes:C("htmlAttributes",e),linkTags:P(v.LINK,["rel","href"],e),metaTags:P(v.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:P(v.NOSCRIPT,["innerHTML"],e),onChangeClientState:_(e),scriptTags:P(v.SCRIPT,["src","innerHTML"],e),styleTags:P(v.STYLE,["cssText"],e),title:S(e),titleAttributes:C("titleAttributes",e),prioritizeSeoTags:T(e,"prioritizeSeoTags")});G.canUseDOM?(t=o,Q&&cancelAnimationFrame(Q),t.defer?Q=requestAnimationFrame(function(){Z(t,function(){Q=null})}):(Z(t),Q=null)):B&&(i=B(o)),n(i)},r.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},r.render=function(){return this.init(),null},t}(n.Component);Y.propTypes={context:q.isRequired},Y.displayName="HelmetDispatcher";var K=["children"],J=["children"],X=function(e){function t(){return e.apply(this,arguments)||this}p(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return!s()(N(this.props,"helmetData"),N(e,"helmetData"))},r.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case v.SCRIPT:case v.NOSCRIPT:return{innerHTML:t};case v.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},r.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren;return f({},n,((t={})[r.type]=[].concat(n[r.type]||[],[f({},e.newChildProps,this.mapNestedChildrenToProps(r,e.nestedChildren))]),t))},r.mapObjectTypeChildren=function(e){var t,r,n=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(n.type){case v.TITLE:return f({},i,((t={})[n.type]=a,t.titleAttributes=f({},o),t));case v.BODY:return f({},i,{bodyAttributes:f({},o)});case v.HTML:return f({},i,{htmlAttributes:f({},o)});default:return f({},i,((r={})[n.type]=f({},o),r))}},r.mapArrayTypeChildrenToProps=function(e,t){var r=f({},t);return Object.keys(e).forEach(function(t){var n;r=f({},r,((n={})[t]=e[t],n))}),r}
2,r.warnOnInvalidChildren=function(e,t){return u()(w.some(function(t){return e.type===t}),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+w.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),u()(!t||"string"==typeof t||Array.isArray(t)&&!t.some(function(e){return"string"!=typeof e}),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},r.mapChildrenToProps=function(e,t){var r=this,i={};return n.Children.forEach(e,function(e){if(e&&e.props){var n=e.props,o=n.children,a=m(n,K),s=Object.keys(a).reduce(function(e,t){return e[E[t]||t]=a[t],e},{}),l=e.type;switch("symbol"==typeof l?l=l.toString():r.warnOnInvalidChildren(e,o),l){case v.FRAGMENT:t=r.mapChildrenToProps(o,t);break;case v.LINK:case v.META:case v.NOSCRIPT:case v.SCRIPT:case v.STYLE:i=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:i,newChildProps:s,nestedChildren:o});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:o})}}}),this.mapArrayTypeChildrenToProps(i,t)},r.render=function(){var e=this.props,t=e.children,r=m(e,J),i=f({},r),o=r.helmetData;return t&&(i=this.mapChildrenToProps(t,i)),!o||o instanceof V||(o=new V(o.context,o.instances)),o?n.createElement(Y,f({},i,{context:o.value,helmetData:void 0})):n.createElement(z.Consumer,null,function(e){return n.createElement(Y,f({},i,{context:e}))})},t}(n.Component);X.propTypes={base:o().object,bodyAttributes:o().object,children:o().oneOfType([o().arrayOf(o().node),o().node]),defaultTitle:o().string,defer:o().bool,encodeSpecialCharacters:o().bool,htmlAttributes:o().object,link:o().arrayOf(o().object),meta:o().arrayOf(o().object),noscript:o().arrayOf(o().object),onChangeClientState:o().func,script:o().arrayOf(o().object),style:o().arrayOf(o().object),title:o().string,titleAttributes:o().object,titleTemplate:o().string,prioritizeSeoTags:o().bool,helmetData:o().object},X.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},X.displayName="Helmet"},22809:function(e,t,r){"use strict";var n,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,c=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))!u.call(e,i)&&i!==r&&o(e,i,{get:()=>t[i],enumerable:!(n=a(t,i))||n.enumerable});return e},d=(e,t,r)=>(r=null!=e?i(l(e)):{},c(!t&&e&&e.__esModule?r:o(r,"default",{value:e,enumerable:!0}),e)),f={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(f,{CheckmarkIcon:()=>$,ErrorIcon:()=>B,LoaderIcon:()=>z,ToastBar:()=>re,ToastIcon:()=>K,Toaster:()=>se,default:()=>le,resolveValue:()=>p,toast:()=>C,useToaster:()=>A,useToasterStore:()=>S}),e.exports=(n=f,c(o({},"__esModule",{value:!0}),n));var p=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,h=(()=>{let e=0;return()=>(++e).toString()})(),m=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),v=r(27378),g=new Map,y=e=>{if(g.has(e))return;let t=setTimeout(()=>{g.delete(e),E({type:4,toastId:e})},1e3);g.set(e,t)},b=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&(e=>{let t=g.get(e);t&&clearTimeout(t)})(t.toast.id),{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:r}=t;return e.toasts.find(e=>e.id===r.id)?b(e,{type:1,toast:r}):b(e,{type:0,toast:r});case 3:let{toastId:n}=t;return n?y(n):e.toasts.forEach(e=>{y(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||void 0===n?{...e,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+i}))}}},w=[],x={toasts:[],pausedAt:void 0},E=e=>
2{x=b(x,e),w.forEach(e=>{e(x)})},k={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},S=(e={})=>{let[t,r]=(0,v.useState)(x);(0,v.useEffect)(()=>(w.push(r),()=>{let e=w.indexOf(r);e>-1&&w.splice(e,1)}),[t]);let n=t.toasts.map(t=>{var r,n;return{...e,...e[t.type],...t,duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||k[t.type],style:{...e.style,...null==(n=e[t.type])?void 0:n.style,...t.style}}});return{...t,toasts:n}},_=e=>(t,r)=>{let n=((e,t="blank",r)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||h()}))(t,e,r);return E({type:2,toast:n}),n.id},C=(e,t)=>_("blank")(e,t);C.error=_("error"),C.success=_("success"),C.loading=_("loading"),C.custom=_("custom"),C.dismiss=e=>{E({type:3,toastId:e})},C.remove=e=>E({type:4,toastId:e}),C.promise=(e,t,r)=>{let n=C.loading(t.loading,{...r,...null==r?void 0:r.loading});return e.then(e=>(C.success(p(t.success,e),{id:n,...r,...null==r?void 0:r.success}),e)).catch(e=>{C.error(p(t.error,e),{id:n,...r,...null==r?void 0:r.error})}),e};var O=r(27378),P=(e,t)=>{E({type:1,toast:{id:e,height:t}})},T=()=>{E({type:5,time:Date.now()})},A=e=>{let{toasts:t,pausedAt:r}=S(e);(0,O.useEffect)(()=>{if(r)return;let e=Date.now(),n=t.map(t=>{if(t.duration===1/0)return;let r=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(r<0))return setTimeout(()=>C.dismiss(t.id),r);t.visible&&C.dismiss(t.id)});return()=>{n.forEach(e=>e&&clearTimeout(e))}},[t,r]);let n=(0,O.useCallback)(()=>{r&&E({type:6,time:Date.now()})},[r]),i=(0,O.useCallback)((e,r)=>{let{reverseOrder:n=!1,gutter:i=8,defaultPosition:o}=r||{},a=t.filter(t=>(t.position||o)===(e.position||o)&&t.height),s=a.findIndex(t=>t.id===e.id),l=a.filter((e,t)=>t<s&&e.visible).length;return a.filter(e=>e.visible).slice(...n?[l+1]:[0,l]).reduce((e,t)=>e+(t.height||0)+i,0)},[t]);return{toasts:t,handlers:{updateHeight:P,startPause:T,endPause:n,calculateOffset:i}}},I=d(r(27378)),N=r(82029),R=d(r(27378)),j=r(82029),M=r(82029),D=M.keyframes` 3from { 4 transform: scale(0) rotate(45deg); 5 opacity: 0; 6} 7to { 8 transform: scale(1) rotate(45deg); 9 opacity: 1; 10}`,L=M.keyframes` 11from { 12 transform: scale(0); 13 opacity: 0; 14} 15to { 16 transform: scale(1); 17 opacity: 1; 18}`,F=M.keyframes` 19from { 20 transform: scale(0) rotate(90deg); 21 opacity: 0; 22} 23to { 24 transform: scale(1) rotate(90deg); 25 opacity: 1; 26}`,B=(0,M.styled)("div")` 27 width: 20px; 28 opacity: 0; 29 height: 20px; 30 border-radius: 10px; 31 background: ${e=>e.primary||"#ff4b4b"}; 32 position: relative; 33 transform: rotate(45deg); 34 35 animation: ${D} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 36 forwards; 37 animation-delay: 100ms; 38 39 &:after, 40 &:before { 41 content: ''; 42 animation: ${L} 0.15s ease-out forwards; 43 animation-delay: 150ms; 44 position: absolute; 45 border-radius: 3px; 46 opacity: 0; 47 background: ${e=>e.secondary||"#fff"}; 48 bottom: 9px; 49 left: 4px; 50 height: 2px; 51 width: 12px; 52 } 53 54 &:before { 55 animation: ${F} 0.15s ease-out forwards; 56 animation-delay: 180ms; 57 transform: rotate(90deg); 58 } 59`,U=r(82029),V=U.keyframes` 60 from { 61 transform: rotate(0deg); 62 } 63 to { 64 transform: rotate(360deg); 65 } 66`,z=(0,U.styled)("div")` 67 width: 12px; 68 height: 12px; 69 box-sizing: border-box; 70 border: 2px solid; 71 border-radius: 100%; 72 border-color: ${e=>e.secondary||"#e0e0e0"}; 73 border-right-color: ${e=>e.primary||"#616161"}; 74 animation: ${V} 1s linear infinite; 75`,q=r(82029),H=q.keyframes` 76from { 77 transform: scale(0) rotate(45deg); 78 opacity: 0; 79} 80to { 81 transform: scale(1) rotate(45deg); 82 opacity: 1; 83}`,G=q.keyframes` 840% { 85 height: 0; 86 width: 0; 87 opacity: 0; 88} 8940% { 90 height: 0; 91 width: 6px; 92 opacity: 1; 93} 94100% { 95 opacity: 1; 96 height: 10px; 97}`,$=(0,q.styled)("div")` 98 width: 20px; 99 opacity: 0; 100 height: 20px; 101 border-radius: 10px; 102 background: ${e=>e.primary||"#61d345"}; 103 position: relative; 104 transform: rotate(45deg); 105 106 animation: ${H} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 107 forwards; 108 animation-delay: 100ms; 109 &:after { 110 content: ''; 111 box-sizing: border-box; 112 animation: ${G} 0.2s ease-out forwards; 113 opacity: 0; 114 animation-delay: 200ms; 115 position: absolute; 116 border-right: 2px solid; 117 border-bottom: 2px solid; 118 border-color: ${e=>e.secondary||"#fff"}; 119 bottom: 6px; 120 left: 6px; 121 height: 10px; 122 width: 6px; 123 } 124`,W=(0,j.styled)("div")` 125 position: absolute; 126`,Z=(0,j.styled)("div")` 127 position: relative; 128 display: flex; 129 justify-content: center; 130 align-items: center;
131 min-width: 20px; 132 min-height: 20px; 133`,Q=j.keyframes` 134from { 135 transform: scale(0.6); 136 opacity: 0.4; 137} 138to { 139 transform: scale(1); 140 opacity: 1; 141}`,Y=(0,j.styled)("div")` 142 position: relative; 143 transform: scale(0.6); 144 opacity: 0.4; 145 min-width: 20px; 146 animation: ${Q} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) 147 forwards; 148`,K=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return void 0!==t?"string"==typeof t?R.createElement(Y,null,t):t:"blank"===r?null:R.createElement(Z,null,R.createElement(z,{...n}),"loading"!==r&&R.createElement(W,null,"error"===r?R.createElement(B,{...n}):R.createElement($,{...n})))},J=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,X=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,ee=(0,N.styled)("div")` 149 display: flex; 150 align-items: center; 151 background: #fff; 152 color: #363636; 153 line-height: 1.3; 154 will-change: transform; 155 box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); 156 max-width: 350px; 157 pointer-events: auto; 158 padding: 8px 10px; 159 border-radius: 8px; 160`,te=(0,N.styled)("div")` 161 display: flex; 162 justify-content: center; 163 margin: 4px 10px; 164 color: inherit; 165 flex: 1 1 auto; 166 white-space: pre-line; 167`,re=I.memo(({toast:e,position:t,style:r,children:n})=>{let i=e.height?((e,t)=>{let r=e.includes("top")?1:-1,[n,i]=m()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[J(r),X(r)];return{animation:t?`${(0,N.keyframes)(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${(0,N.keyframes)(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},o=I.createElement(K,{toast:e}),a=I.createElement(te,{...e.ariaProps},p(e.message,e));return I.createElement(ee,{className:e.className,style:{...i,...r,...e.style}},"function"==typeof n?n({icon:o,message:a}):I.createElement(I.Fragment,null,o,a))}),ne=r(82029),ie=d(r(27378));(0,ne.setup)(ie.createElement);var oe=({id:e,className:t,style:r,onHeightUpdate:n,children:i})=>{let o=ie.useCallback(t=>{if(t){let r=()=>{let r=t.getBoundingClientRect().height;n(e,r)};r(),new MutationObserver(r).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return ie.createElement("div",{ref:o,className:t,style:r},i)},ae=ne.css` 168 z-index: 9999; 169 > * { 170 pointer-events: auto; 171 } 172`,se=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:i,containerStyle:o,containerClassName:a})=>{let{toasts:s,handlers:l}=A(r);return ie.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...o},className:a,onMouseEnter:l.startPause,onMouseLeave:l.endPause},s.map(r=>{let o=r.position||t,a=((e,t)=>{let r=e.includes("top"),n=r?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:m()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...n,...i}})(o,l.calculateOffset(r,{reverseOrder:e,gutter:n,defaultPosition:t}));return ie.createElement(oe,{id:r.id,key:r.id,onHeightUpdate:l.updateHeight,className:r.visible?ae:"",style:a},"custom"===r.type?p(r.message,r):i?i(r):ie.createElement(re,{toast:r,position:o}))}))},le=C},28186:function(e){"use strict";var t=function(e,t){return e+r(t)},r=function(e){return null===e||"boolean"==typeof e||void 0===e?"":"number"==typeof e?e.toString():"string"==typeof e?e:Array.isArray(e)?e.reduce(t,""):function(e){return Object.prototype.hasOwnProperty.call(e,"props")}(e)&&Object.prototype.hasOwnProperty.call(e.props,"children")?r(e.props.children):""};r.default=r,e.exports=r},41535:function(e,t){"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function g(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||h}function y(){}function b(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var w=b.prototype=new y;w.constructor=b,m(w,g.prototype),w.isPureReactComponent=!0;var x=Array.isArray,E=Object.prototype.hasOwnProperty,k={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,i)&&!S.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:r,type:e,key:a,ref:s,props:o,_owner:k.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var O=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function T(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case r:case n:l=!0}}if(l)return a=a(l=e),e=""===o?"."+P(l,0):o,x(a)?(i="",null!=e&&(i=e.replace(O,"$&/")+"/"),T(a,t,i,"",function(e){return e})):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",x(e))for(var u=0;u<e.length;u++){var c=o+P(s=e[u],u);l+=T(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=T(s=s.value,t,i,c=o+P(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function A(e,t,r){if(null==e)return e;var n=[],i=0;return T(e,n,"","",function(e){return t.call(r,e,i++)}),n}function I(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N={current:null},R={transition:null},j={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:R,ReactCurrentOwner:k};t.Children={map:A,forEach:function(e,t,r){A(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INT
vendor: 5,347 bytes, line 172
172ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=k.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)E.call(t,u)&&!S.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:r,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return N.current.useCallback(e,t)},t.useContext=function(e){return N.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return N.current.useDeferredValue(e)},t.useEffect=function(e,t){return N.current.useEffect(e,t)},t.useId=function(){return N.current.useId()},t.useImperativeHandle=function(e,t,r){return N.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.current.useMemo(e,t)},t.useReducer=function(e,t,r){return N.current.useReducer(e,t,r)},t.useRef=function(e){return N.current.useRef(e)},t.useState=function(e){return N.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return N.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return N.current.useTransition()},t.version="18.2.0"},27378:function(e,t,r){"use strict";e.exports=r(41535)},73323:function(e,t){"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(!(0<o(i,t)))break e;e[n]=t,e[r]=i,r=n}}function n(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length,a=i>>>1;n<a;){var s=2*(n+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,r))u<i&&0>o(c,l)?(e[n]=c,e[u]=r,n=u):(e[n]=l,e[s]=r,n=s);else{if(!(u<i&&0>o(c,r)))break e;e[n]=c,e[u]=r,n=u}}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,p=3,h=!1,m=!1,v=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=n(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,r(u,t)}t=n(c)}}function x(e){if(v=!1,w(e),!m)if(null!==n(u))m=!0,R(E);else{var t=n(c);null!==t&&j(x,t.startTime-e)}}function E(e,r){m=!1,v&&(v=!1,y(C),C=-1),h=!0;var o=p;try{for(w(r),f=n(u);null!==f&&(!(f.expirationTime>r)||e&&!T());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=r);r=t.unstable_now(),"function"==typeof s?f.callback=s:f===n(u)&&i(u),w(r)}else i(u);f=n(u)}if(null!==f)var l=!0;else{var d=n(c);null!==d&&j(x,d.startTime-r),l=!1}return l}finally{f=null,p=o,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,_=null,C=-1,O=5,P=-1;function T(){return!(t.unstable_now()-P<O)}function A(){if(null!==_){var e=t.unstable_now();P=e;var r=!0;try{r=_(!0,e)}finally{r?k():(S=!1,_=null)}}else S=!1}if("function"==typeof b)k=function(){b(A)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,N=I.port2;I.port1.onmessage=A,k=function(){N.postMessage(null)}}else k=function(){g(A,0)};function R(e){_=e,S||(S=!0,k())}function j(e,r){C=g(function(){e(t.unstable_now())},r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,R(E))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return n(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}
172var r=p;p=t;try{return e()}finally{p=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=p;p=e;try{return t()}finally{p=r}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,r(c,e),null===n(u)&&e===n(c)&&(v?(y(C),C=-1):v=!0,j(x,o-a))):(e.sortIndex=s,r(u,e),m||h||(m=!0,R(E))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=p;return function(){var r=p;p=t;try{return e.apply(this,arguments)}finally{p=r}}}},91102:function(e,t,r){"use strict";e.exports=r(73323)},51835:function(e){var t=new Error("Element already at target scroll position"),r=new Error("Scroll cancelled"),n=Math.min,i=Date.now;function o(e){return function(o,l,u,c){"function"==typeof(u=u||{})&&(c=u,u={}),"function"!=typeof c&&(c=s);var d=i(),f=o[e],p=u.ease||a,h=isNaN(u.duration)?350:+u.duration,m=!1;return f===l?c(t,o[e]):requestAnimationFrame(function t(a){if(m)return c(r,o[e]);var s=i(),u=n(1,(s-d)/h),v=p(u);o[e]=v*(l-f)+f,u<1?requestAnimationFrame(t):requestAnimationFrame(function(){c(null,o[e])})}),function(){m=!0}}}function a(e){return.5*(1-Math.cos(Math.PI*e))}function s(){}e.exports={left:o("scrollLeft"),top:o("scrollTop")}},2650:function(e,t){var r,n;void 0===(n="function"==typeof(r=function(){function e(e){var t=getComputedStyle(e,null).getPropertyValue("overflow");return t.indexOf("scroll")>-1||t.indexOf("auto")>-1}return function(t){if(t instanceof HTMLElement||t instanceof SVGElement){for(var r=t.parentNode;r.parentNode;){if(e(r))return r;r=r.parentNode}return document.scrollingElement||document.documentElement}}})?r.apply(t,[]):r)||(e.exports=n)},74445:function(e){e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var u=o[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(i=r?r.call(n,c,d,u):void 0)||void 0===i&&c!==d)return!1}return!0}},33834:function(e,t,r){"use strict";var n=r(27378),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return s(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},87718:function(e,t,r){"use strict";var n=r(27378),i=r(70644),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=n.useRef,l=n.useEffect,u=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=u(function(){function e(e){if(!l){if(l=!0,a=e,e=n(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(a=e,t):(a=e,s=r)}var a,s,l=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,i]);var p=a(e,d[0],d[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},70644:function(e,t,r){"use strict";e.exports=r(33834)},60626:function(e,t,r){"use strict";e.exports=r(87718)},52304:function(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},9981:function(e,t,r){e.exports=r(55918)},99402:function(e,t,r){e.exports=r(71719)},4475:function(e,t,r){e.exports=r(96889)},9060:function(e,t,r){e.exports=r(11725)},91268:function(e,t,r){e.exports=r(93039)},47919:function(e,t,r){e.exports=r(10390)},78697:function(e,t,r){e.exports=r(56505)},13477:function(e,t,r){e.exports=r(30716)},11:function(e,t,r){e.exports=r(54870)},91496:function(e,t,r){e.exports=r(72229)},92959:function(e,t,r){e.exports=r(85541)},73749:function(e,t,r){e.exports=r(35615)},42410:function(e,t,r){e.exports=r(38431)},86506:function(e,t,r){e.exports=r(34970)},39244:function(e,t,r){e.exports=r(22963)},6971:function(e,t,r){e.exports=r(92752)}
172,26387:function(e,t,r){e.exports=r(55542)},46287:function(e,t,r){e.exports=r(50742)},80966:function(e,t,r){e.exports=r(58162)},23997:function(e,t,r){e.exports=r(33922)},75443:function(e,t,r){e.exports=r(15406)},76763:function(e,t,r){e.exports=r(81250)},9131:function(e,t,r){e.exports=r(74981)},42274:function(e,t,r){e.exports=r(57805)},5063:function(e,t,r){e.exports=r(69041)},27085:function(e,t,r){e.exports=r(40250)},65941:function(e,t,r){e.exports=r(33962)},31669:function(e,t,r){e.exports=r(95329)},67150:function(e,t,r){e.exports=r(65912)},12185:function(e,t,r){e.exports=r(99631)},20808:function(e,t,r){e.exports=r(42395)},5846:function(e,t,r){e.exports=r(43508)},87075:function(e,t,r){e.exports=r(87856)},56666:function(e,t,r){var n=r(76763),i=r(9060);function o(){var t;return e.exports=o=n?i(t=n).call(t):function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,o.apply(this,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},4289:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},31550:function(e,t,r){var n=r(15480).default,i=r(87075),o=r(9131),a=r(5063);function s(e){if("function"!=typeof i)return null;var t=new i,r=new i;return(s=function(e){return e?r:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var i={},l=o&&a;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var c=l?a(e,u):null;c&&(c.get||c.set)?o(i,u,c):i[u]=e[u]}return i.default=e,r&&r.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports},15480:function(e,t,r){var n=r(67150),i=r(12185);function o(t){return e.exports=o="function"==typeof n&&"symbol"==typeof i?function(e){return typeof e}:function(e){return e&&"function"==typeof n&&e.constructor===n&&e!==n.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,o(t)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},90005:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,o(r)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},99819:function(e,t,r){"use strict";var n=r(95238);e.exports=n},87932:function(e,t,r){"use strict";var n=r(56098);e.exports=n},89413:function(e,t,r){"use strict";var n=r(61824);e.exports=n},62185:function(e,t,r){"use strict";var n=r(26011);e.exports=n},66939:function(e,t,r){"use strict";var n=r(33219);e.exports=n},23426:function(e,t,r){"use strict";var n=r(17474);e.exports=n},16958:function(e,t,r){"use strict";var n=r(46513);e.exports=n},15167:function(e,t,r){"use strict";var n=r(40497);e.exports=n},69439:function(e,t,r){"use strict";var n=r(48523);e.exports=n},96668:function(e,t,r){"use strict";var n=r(25329);e.exports=n},81107:function(e,t,r){"use strict";var n=r(57686);e.exports=n},24773:function(e,t,r){"use strict";var n=r(76469);e.exports=n},95167:function(e,t,r){"use strict";var n=r(90576);e.exports=n},79641:function(e,t,r){"use strict";var n=r(76905);e.exports=n},43058:function(e,t,r){"use strict";var n=r(43325);e.exports=n},49474:function(e,t,r){"use strict";var n=r(49375);e.exports=n},41311:function(e,t,r){"use strict";var n=r(29017);e.exports=n},35770:function(e,t,r){"use strict";var n=r(98498);e.exports=n},18833:function(e,t,r){"use strict";var n=r(439);e.exports=n},13062:function(e,t,r){"use strict";var n=r(60);e.exports=n},48430:function(e,t,r){"use strict";var n=r(40092);e.exports=n},88761:function(e,t,r){"use strict";var n=r(10257);e.exports=n},27084:function(e,t,r){"use strict";var n=r(60056);e.exports=n},45281:function(e,t,r){"use strict";var n=r(98311);e.exports=n},58901:function(e,t,r){"use strict";var n=r(27405);e.exports=n},71432:function(e,t,r){"use strict";var n=r(64191);e.exports=n},53633:function(e,t,r){"use strict";var n=r(11138);e.exports=n},86143:function(e,t,r){"use strict";var n=r(66582);e.exports=n},88549:function(e,t,r){"use strict";var n=r(99230);r(88447),r(51716),r(43666),r(62844),e.exports=n},37196:function(e,t,r){"use strict";var n=r(14126);e.exports=n},55843:function(e,t,r){"use strict";var n=r(50741);e.exports=n},78146:function(e,t,r){"use strict";var n=r(73082);e.exports=n},78233:function(e,t,r){"use strict";var n=r(22652);r(9503),r(74769),e.exports=n},74062:function(e,t,r){"use strict";r(33858);var n=r(8613);e.exports=n.Array.isArray},98514:function(e,t,r){"use strict";r(12621);var n=r(88816);e.exports=n("Array","every")},71086:function(e,t,r){"use strict";r(73249);var n=r(88816);e.exports=n("Array","filter")},51845:function(e,t,r){"use strict";r(10373);var n=r(88816);e.exports=n("Array","find")},32178:function(e,t,r){"use strict";r(32482),r(78576);var n=r(88816);e.exports=n("Array","flatMap")},91033:function(e,t,r){"use strict";r(15371);var n=r(88816);e.exports=n("Array","forEach")},8366:function(e,t,r){"use strict";r(28143);var n=r(88816);e.exports=n("Array","includes")},67900:function(e,t,r){"use strict";r(77037);var n=r(88816);e.exports=n("Array","indexOf")},55214:function(e,t,r){"use strict";r(63413),r(77784);var n=r(88816);e.exports=n("Array","keys")},45597:function(e,t,r){"use strict";r(34711);var n=r(88816);e.exports=n("Array","map")},31501:function(e,t,r){"use strict";r(56124);var n=r(88816);e.exports=n("Array","reduceRight")},98198:function(e,t,r){"use strict";r(26333);var n=r(88816);e.exports=n("Array","reduce")},57493:function(e,t,r){"use strict";r(16710);var n=r(88816);e.exports=n("Array","slice")},77937:function(e,t,r){"use strict";r(29493);var n=r(88816);e.exports=n("Array","some")},46075:function(e,t,r){"use strict";r(62982);var n=r(8613);e.exports=n.Date.now},50527:function(e,t,r){"use strict";r(34955);var n=r(88816);e.exports=n("Function","bind")},10755:function(e,t,r){"use strict";r(70924),e.exports=r(78705)},7456:function(e,t,r){"use strict";var n=r(59565),i=r(50527),o=Function.prototype;e.exports=function(e){var t=e.bind;return e===o||n(o,e)&&t===o.bind?i:t}},73296:function(e,t,r){"use strict";var n=r(59565),i=r(88428),o=String.prototype;e.exports=function(e){var t=e.endsWith;return"string"==typeof e||e===o||n(o,e)&&t===o.endsWith?i:t}},75359:function(e,t,r){"use strict";var n=r(59565),i=r(98514),o=Array.prototype;e.exports=function(e){var t=e.every;return e===o||n(o,e)&&t===o.every?i:t}},34975:function(e,t,r){"use strict";var n=r(59565),i=r(71086),o=Array.prototype;e.exports=function(e){var t=e.filter;return e===o||n(o,e)&&t===o.filter?i:t}},23966:function(e,t,r){"use strict";var n=r(59565),i=r(51845),o=Array.prototype;e.exports=function(e){var t=e.find;return e===o||n(o,e)&&t===o.find?i:t}},25680:function(e,t,r){"use strict";var n=r(59565),i=r(32178),o=Array.prototype;e.exports=function(e){var t=e.flatMap;return e===o||n(o,e)&&t===o.flatMap?i:t}},76707:function(e,t,r){"use strict";var n=r(59565),i=r(8366),o=r(75052),a=Array.prototype,s=String.prototype;e.exports=function(e){var t=e.includes;return e===a||n(a,e)&&t===a.includes?i:"string"==typeof e||e===s||n(s,e)&&t===s.includes?o:t}},42225:function(e,t,r){"use strict";var n=r(59565),i=r(67900),o=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===o||n(o,e)&&t===o.indexOf?i:t}},84361:function(e,t,r){"use strict";var n=r(59565),i=r(45597),o=Array.prototype;e.exports=function(e){var t=e.map;return e===o||n(o,e)&&t===o.map?i:t}},4443:function(e,t,r){"use strict";var n=r(59565),i=r(6372),o=String.prototype;e.exports=function(e){var t=e.matchAll;return"string"==typeof e||e===o||n(o,e)&&t===o.matchAll?i:t}},50198:function(e,t,r){"use strict";var n=r(59565),i=r(31501),o=Array.prototype;e.exports=function(e){var t=e.reduceRight;return e===o||n(o,e)&&t===o.reduceRight?i:t}},12526:function(e,t,r){"use strict";var n=r(59565),i=r(98198),o=Array.prototype;e.exports=function(e){var t=e.reduce;return e===o||n(o,e)&&t===o.reduce?i:t}},51285:function(e,t,r){"use strict";var n=r(59565),i=r(57493),o=Array.prototype;e.exports=function(e){var t=e.slice;return e===o||n(o,e)&&t===o.slice?i:t}},7637:function(e,t,r){"use strict";var n=r(59565),i=r(77937),o=Array.prototype;e.exports=function(e){var t=e.some;return e===o||n(o,e)&&t===o.some?i:t}},92087:function(e,t,r){"use strict";var n=r(59565),i=r(14788),o=String.prototype;e.exports=function(e){var t=e.startsWith;return"string"==typeof e||e===o||n(o,e)&&t===o.startsWith?i:t}},92816:function(e,t,r){"use strict";r(62309),r(16286);var n=r(8613),i=r(47865);n.JSON||(n.JSON={stringify:JSON.stringify}),e.exports=function(e,t,r){return i(n.JSON.stringify,null,arguments)}},54826:function(e,t,r){"use strict";r(50993);var n=r(8613);e.exports=n.Object.assign},89116:function(e,t,r){"use strict";r(31559);var n=r(8613).Object,i=e.exports=function(e,t,r){return n.defineProperty(e,t,r)};n.defineProperty.sham&&(i.sham=!0)},49544:function(e,t,r){"use strict";r(6682);var n=r(8613);e.exports=n.Object.entries},68430:function(e,t,r){"use strict";r(97140);var n=r(8613).Object,i=e.exports=function(e,t){return n.getOwnPropertyDescriptor(e,t)};n.getOwnPropertyDescriptor.sham&&(i.sham=!0)},49248:function(e,t,r){"use strict";r(80488);var n=r(8613);e.exports=n.Object.keys},64267:function(e,t,r){"use strict";r(7875);var n=r(8613);e.exports=n.Object.values},88428:function(e,t,r){"use strict";r(93506);var n=r(88816);e.exports=n("String","endsWith")},75052:function(e,t,r){"use strict";r(39143);var n=r(88816);e.exports=n("String","includes")},6372:function(e,t,r){"use strict";r(77784),r(50882),r(17429);var n=r(88816);e.exports=n("String","matchAll")},14788:function(e,t,r){"use strict";r(98220);var n=r(88816);e.exports=n("String","startsWith")},14398:function(e,t,r){"use strict";r(39824),r(77784),r(76787),r(66316),r(8912),r(71387),r(44451),r(40359),r(66635),r(19949),r(71753),r(10284),r(68689),r(58145),r(94708),r(13343),r(21397),r(13975),r(90875),r(9240),r(54926),r(6861);var n=r(8613);e.exports=n.Symbol},98770:function(e,t,r){"use strict";r(63413),r(77784),r(73603),r(19949);var n=r(9994);e.exports=n.f("iterator")},23012:function(e,t,r){"use strict";r(63413),r(77784),r(52859),r(79911),r(53534);var n=r(8613);e.exports=n.WeakMap},55918:function(e,t,r){"use strict";e.exports=r(57497)},71719:function(e,t,r){"use strict";e.exports=r(73057)},96889:function(e,t,r){"use strict";e.exports=r(90144)},11725:function(e,t,r){"use strict";e.exports=r(84002)},93039:function(e,t,r){"use strict";e.exports=r(56678)},10390:function(e,t,r){"use strict";e.exports=r(33856)},56505:function(e,t,r){"use strict";e.exports=r(63e3)},30716:function(e,t,r){"use strict";e.exports=r(86006)},54870:function(e,t,r){"use strict";e.exports=r(69520)},72229:function(e,t,r){"use strict";e.exports=r(30767)},85541:function(e,t,r){"use strict";e.exports=r(79170)},35615:function(e,t,r){"use strict";e.exports=r(91164)},38431:function(e,t,r){"use strict";e.exports=r(46320)},34970:function(e,t,r){"use strict";e.exports=r(68494)},22963:function(e,t,r){"use strict";e.exports=r(65424)},92752:function(e,t,r){"use strict";e.exports=r(31638)},55542:function(e,t,r){"use strict";e.exports=r(40956)},50742:function(e,t,r){"use strict";e.exports=r(38134)},58162:function(e,t,r){"use strict";e.exports=r(42822)},33922:function(e,t,r){"use strict";e.exports=r(57776)},15406:function(e,t,r){"use strict";e.exports=r(24815)},81250:function(e,t,r){"use strict";e.exports=r(58399)},74981:function(e,t,r){"use strict";e.exports=r(24660)},57805:function(e,t,r){"use strict";e.exports=r(19318)},69041:function(e,t,r){"use strict";e.exports=r(92670)},40250:function(e,t,r){"use strict";e.exports=r(21101)},33962:function(e,t,r){"use strict";e.exports=r(33869)},95329:function(e,t,r){"use strict";e.exports=r(61651)},65912:function(e,t,r){"use strict";e.exports=r(80674)},99631:function(e,t,r){"use strict";e.exports=r(94406)},42395:function(e,t,r){"use strict";e.exports=r(7805)},43508:function(e,t,r){"use strict";e.exports=r(429)},87856:function(e,t,r){"use strict";e.exports=r(75811)},57497:function(e,t,r){"use strict";var n=r(99819);e.exports=n},73057:function(e,t,r){"use strict";var n=r(87932);e.exports=n},90144:function(e,t,r){"use strict";r(14720);var n=r(89413);e.exports=n},84002:function(e,t,r){"use strict";var n=r(62185);e.exports=n},56678:function(e,t,r){"use strict";var n=r(66939);e.exports=n},33856:function(e,t,r){"use strict";var n=r(23426);e.exports=n},63e3:function(e,t,r){"use strict";var n=r(16958);e.exports=n},86006:function(e,t,r){"use strict";var n=r(15167);e.exports=n},69520:function(e,t,r){"use strict";var n=r(69439);e.exports=n},30767:function(e,t,r){"use strict";var n=r(96668);e.exports=n},79170:function(e,t,r){"use strict";var n=r(81107);e.exports=n},91164:function(e,t,r){"use strict";var n=r(24773);e.exports=n},46320:function(e,t,r){"use strict";var n=r(95167);e.exports=n},68494:function(e,t,r){"use strict";var n=r(79641);e.exports=n},65424:function(e,t,r){"use strict";r(43227);var n=r(43058);e.exports=n},31638:function(e,t,r){"use strict";var n=r(49474);e.exports=n},40956:function(e,t,r){"use strict";var n=r(41311);e.exports=n},38134:function(e,t,r){"use strict";var n=r(35770);e.exports=n},42822:function(e,t,r){"use strict";var n=r(18833);e.exports=n},57776:function(e,t,r){"use strict";var n=r(13062);e.exports=n},24815:function(e,t,r){"use strict";var n=r(48430);e.exports=n},58399:function(e,t,r){"use strict";var n=r(88761);e.exports=n},24660:function(e,t,r){"use strict";var n=r(27084);e.exports=n},19318:function(e,t,r){"use strict";var n=r(45281);e.exports=n},92670:function(e,t,r){"use strict";var n=r(58901);e.exports=n},21101:function(e,t,r){"use strict";var n=r(71432);e.exports=n},33869:function(e,t,r){"use strict";var n=r(53633);e.exports=n},61651:function(e,t,r){"use strict";var n=r(86143);e.exports=n},80674:function(e,t,r){"use strict";var n=r(88549);r(55701),r(3377),r(43089),r(72142),r(57982),r(19532),r(93348),r(62527),r(71146),r(54192),e.exports=n},94406:function(e,t,r){"use strict";var n=r(37196);e.exports=n},7805:function(e,t,r){"use strict";var n=r(55843);e.exports=n},429:function(e,t,r){"use strict";var n=r(78146);e.exports=n},75811:function(e,t,r){"use strict";var n=r(78233);r(73603),r(11966),r(91376),r(49895),r(9503),r(74769),r(32584),r(68076),e.exports=n},42889:function(e,t,r){"use strict";var n=r(8804),i=r(91394),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a function")}},69618:function(e,t,r){"use strict";var n=r(17382),i=r(91394),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a constructor")}},7986:function(e,t,r){"use strict";var n=r(80977),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},82781:function(e,t,r){"use strict";var n=r(71102),i=new n.WeakMap,o=n.set,a=n.remove;e.exports=function(e){return o(i,e,1),a(i,e),e}},63309:function(e,t,r){"use strict";var n=r(91394),i=TypeError;e.exports=function(e){if("object"==typeof e&&"has"in e&&"get"in e&&"set"in e&&"delete"in e)return e;throw new i(n(e)+" is not a weakmap")}},87478:function(e){"use strict";e.exports=function(){}},77892:function(e,t,r){"use strict";var n=r(96823).charAt;e.exports=function(e,t,r){return t+(r&&n(e,t).length||1)}},1385:function(e,t,r){"use strict";var n=r(59565),i=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new i("Incorrect invocation")}},11506:function(e,t,r){"use strict";var n=r(28046),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not an object")}},13582:function(e,t,r){"use strict";var n=r(458);e.exports=n(function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})},39634:function(e,t,r){"use strict";
172var n=r(21098).forEach,i=r(13423)("forEach");e.exports=i?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},83909:function(e,t,r){"use strict";var n=r(76698),i=r(27746),o=r(3199),a=r(28424),s=r(96489),l=r(17382),u=r(97079),c=r(31405),d=r(68826),f=r(74172),p=r(70540),h=r(13791),m=Array;e.exports=function(e){var t=l(this),r=arguments.length,v=r>1?arguments[1]:void 0,g=void 0!==v;g&&(v=n(v,r>2?arguments[2]:void 0));var y,b,w,x,E,k,S=o(e),_=p(S),C=0;if(!_||this===m&&s(_))for(y=u(S),b=t?new this(y):m(y);y>C;C++)k=g?v(S[C],C):S[C],c(b,C,k);else for(b=t?new this:[],E=(x=f(S,_)).next;!(w=i(E,x)).done;C++){k=g?a(x,v,[w.value,C],!0):w.value;try{c(b,C,k)}catch(e){h(x,"throw",e)}}return d(b,C),b}},19333:function(e,t,r){"use strict";var n=r(40300),i=r(42048),o=r(97079),a=function(e){return function(t,r,a){var s=n(t),l=o(s);if(0===l)return!e&&-1;var u,c=i(a,l);if(e&&r!=r){for(;l>c;)if((u=s[c++])!=u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===r)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},21098:function(e,t,r){"use strict";var n=r(76698),i=r(22529),o=r(3199),a=r(97079),s=r(4857),l=r(31405),u=function(e){var t=1===e,r=2===e,u=3===e,c=4===e,d=6===e,f=7===e,p=5===e||d;return function(h,m,v){for(var g,y,b=o(h),w=i(b),x=a(w),E=n(m,v),k=0,S=0,_=t?s(h,x):r||f?s(h,0):void 0;x>k;k++)if((p||k in w)&&(y=E(g=w[k],k,b),e))if(t)l(_,k,y);else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return k;case 2:l(_,S++,g)}else switch(e){case 4:return!1;case 7:l(_,S++,g)}return d?-1:u||c?c:_}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},30361:function(e,t,r){"use strict";var n=r(458),i=r(87549),o=r(73991),a=i("species");e.exports=function(e){return o>=51||!n(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},13423:function(e,t,r){"use strict";var n=r(458);e.exports=function(e,t){var r=[][e];return!!r&&n(function(){r.call(null,t||function(){return 1},1)})}},29067:function(e,t,r){"use strict";var n=r(42889),i=r(3199),o=r(22529),a=r(97079),s=TypeError,l="Reduce of empty array with no initial value",u=function(e){return function(t,r,u,c){var d=i(t),f=o(d),p=a(d);if(n(r),0===p&&u<2)throw new s(l);var h=e?p-1:0,m=e?-1:1;if(u<2)for(;;){if(h in f){c=f[h],h+=m;break}if(h+=m,e?h<0:p<=h)throw new s(l)}for(;e?h>=0:p>h;h+=m)h in f&&(c=r(c,f[h],h,d));return c}};e.exports={left:u(!1),right:u(!0)}},68826:function(e,t,r){"use strict";var n=r(83870),i=r(11367),o=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!a(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},57943:function(e,t,r){"use strict";var n=r(1781);e.exports=n([].slice)},33386:function(e,t,r){"use strict";var n=r(57943),i=Math.floor,o=function(e,t){var r=e.length;if(r<8)for(var a,s,l=1;l<r;){for(s=l,a=e[l];s&&t(e[s-1],a)>0;)e[s]=e[--s];s!==l++&&(e[s]=a)}else for(var u=i(r/2),c=o(n(e,0,u),t),d=o(n(e,u),t),f=c.length,p=d.length,h=0,m=0;h<f||m<p;)e[h+m]=h<f&&m<p?t(c[h],d[m])<=0?c[h++]:d[m++]:h<f?c[h++]:d[m++];return e};e.exports=o},13511:function(e,t,r){"use strict";var n=r(11367),i=r(17382),o=r(28046),a=r(87549)("species"),s=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(i(t)&&(t===s||n(t.prototype))||o(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},4857:function(e,t,r){"use strict";var n=r(13511);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},28424:function(e,t,r){"use strict";var n=r(11506),i=r(13791);e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){i(e,"throw",t)}}},8645:function(e){"use strict";e.exports=function(e,t){return 1===t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}}},33179:function(e,t,r){"use strict";var n=r(1781),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},2377:function(e,t,r){"use strict";
172var n=r(41352),i=r(8804),o=r(33179),a=r(87549)("toStringTag"),s=Object,l="Arguments"===o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?r:l?o(t):"Object"===(n=o(t))&&i(t.callee)?"Arguments":n}},71763:function(e,t,r){"use strict";var n=r(76698),i=r(11506),o=r(3199),a=r(54216);e.exports=function(e,t,r){return function(s){var l=o(s),u=arguments.length,c=u>1?arguments[1]:void 0,d=void 0!==c,f=d?n(c,u>2?arguments[2]:void 0):void 0,p=new e,h=0;return a(l,function(e){var n=d?f(e,h++):e;r?t(p,i(n)[0],n[1]):t(p,n)}),p}}},72786:function(e,t,r){"use strict";var n=r(11506);e.exports=function(e,t,r){return function(){for(var i=new e,o=arguments.length,a=0;a<o;a++){var s=arguments[a];r?t(i,n(s)[0],s[1]):t(i,s)}return i}}},75485:function(e,t,r){"use strict";var n=r(1781),i=r(10211),o=r(90714).getWeakData,a=r(1385),s=r(11506),l=r(69330),u=r(28046),c=r(54216),d=r(21098),f=r(84511),p=r(27233),h=p.set,m=p.getterFor,v=d.find,g=d.findIndex,y=n([].splice),b=0,w=function(e){return e.frozen||(e.frozen=new x)},x=function(){this.entries=[]},E=function(e,t){return v(e.entries,function(e){return e[0]===t})};x.prototype={get:function(e){var t=E(this,e);if(t)return t[1]},has:function(e){return!!E(this,e)},set:function(e,t){var r=E(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,function(t){return t[0]===e});return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,r,n){var d=e(function(e,i){a(e,p),h(e,{type:t,id:b++,frozen:null}),l(i)||c(i,e[n],{that:e,AS_ENTRIES:r})}),p=d.prototype,v=m(t),g=function(e,t,r){var n=v(e),i=o(s(t),!0);return!0===i?w(n).set(t,r):i[n.id]=r,e};return i(p,{delete:function(e){var t=v(this);if(!u(e))return!1;var r=o(e);return!0===r?w(t).delete(e):r&&f(r,t.id)&&delete r[t.id]},has:function(e){var t=v(this);if(!u(e))return!1;var r=o(e);return!0===r?w(t).has(e):r&&f(r,t.id)}}),i(p,r?{get:function(e){var t=v(this);if(u(e)){var r=o(e);if(!0===r)return w(t).get(e);if(r)return r[t.id]}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),d}}},61045:function(e,t,r){"use strict";var n=r(77153),i=r(78705),o=r(90714),a=r(27746),s=r(458),l=r(68266),u=r(54216),c=r(1385),d=r(8804),f=r(28046),p=r(69330),h=r(2979),m=r(24574).f,v=r(21098).forEach,g=r(83870),y=r(27233),b=y.set,w=y.getterFor;e.exports=function(e,t,r){var y,x=-1!==e.indexOf("Map"),E=-1!==e.indexOf("Weak"),k=x?"set":"add",S=i[e],_=S&&S.prototype,C={};if(g&&d(S)&&(E||_.forEach&&!s(function(){(new S).entries().next()}))){var O=(y=t(function(t,r){b(c(t,O),{type:e,collection:new S}),p(r)||u(r,t[k],{that:t,AS_ENTRIES:x})})).prototype,P=w(e);v(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(e){var t="add"===e||"set"===e;!(e in _)||E&&"clear"===e||l(O,e,function(r,n){var i=this,o=P(i).collection;if(!t&&E&&!f(r))return"get"===e&&void 0;var s=o[e]("forEach"===e?function(e,t){a(r,n,e,t,i)}:0===r?0:r,n);return t?i:s})}),E||m(O,"size",{configurable:!0,get:function(){return P(this).collection.size}})}else y=r.getConstructor(t,e,x,k),o.enable();return h(y,e,!1,!0),C[e]=y,n({global:!0,forced:!0},C),E||r.setStrong(y,e,x),y}},98153:function(e,t,r){"use strict";var n=r(87549)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},75580:function(e,t,r){"use strict";var n=r(458);e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},948:function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},68266:function(e,t,r){"use strict";
172var n=r(83870),i=r(24574),o=r(68435);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},68435:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},31405:function(e,t,r){"use strict";var n=r(83870),i=r(24574),o=r(68435);e.exports=function(e,t,r){n?i.f(e,t,o(0,r)):e[t]=r}},59129:function(e,t,r){"use strict";var n=r(1781),i=r(458),o=r(56495).start,a=RangeError,s=isFinite,l=Math.abs,u=Date.prototype,c=u.toISOString,d=n(u.getTime),f=n(u.getUTCDate),p=n(u.getUTCFullYear),h=n(u.getUTCHours),m=n(u.getUTCMilliseconds),v=n(u.getUTCMinutes),g=n(u.getUTCMonth),y=n(u.getUTCSeconds);e.exports=i(function(){return"0385-07-25T07:06:39.999Z"!==c.call(new Date(-50000000000001))})||!i(function(){c.call(new Date(NaN))})?function(){if(!s(d(this)))throw new a("Invalid time value");var e=this,t=p(e),r=m(e),n=t<0?"-":t>9999?"+":"";return n+o(l(t),n?6:4,0)+"-"+o(g(e)+1,2,0)+"-"+o(f(e),2,0)+"T"+o(h(e),2,0)+":"+o(v(e),2,0)+":"+o(y(e),2,0)+"."+o(r,3,0)+"Z"}:c},86999:function(e,t,r){"use strict";var n=r(24574);e.exports=function(e,t,r){return n.f(e,t,r)}},90334:function(e,t,r){"use strict";var n=r(68266);e.exports=function(e,t,r,i){return i&&i.enumerable?e[t]=r:n(e,t,r),e}},10211:function(e,t,r){"use strict";var n=r(90334);e.exports=function(e,t,r){for(var i in t)r&&r.unsafe&&e[i]?e[i]=t[i]:n(e,i,t[i],r);return e}},94802:function(e,t,r){"use strict";var n=r(78705),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},83870:function(e,t,r){"use strict";var n=r(458);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},12115:function(e,t,r){"use strict";var n=r(78705),i=r(28046),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},93794:function(e){"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw new t("Maximum allowed index exceeded");return e}},64035:function(e){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},80587:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},57915:function(e,t,r){"use strict";var n=r(47869);e.exports="NODE"===n},18306:function(e,t,r){"use strict";var n=r(78705).navigator,i=n&&n.userAgent;e.exports=i?String(i):""},73991:function(e,t,r){"use strict";var n,i,o=r(78705),a=r(18306),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(i=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=+n[1]),e.exports=i},47869:function(e,t,r){"use strict";var n=r(78705),i=r(18306),o=r(33179),a=function(e){return i.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},77153:function(e,t,r){"use strict";var n=r(78705),i=r(47865),o=r(80388),a=r(8804),s=r(58805).f,l=r(5309),u=r(8613),c=r(76698),d=r(68266),f=r(84511);
172r(18721);var p=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return i(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,i,h,m,v,g,y,b,w,x=e.target,E=e.global,k=e.stat,S=e.proto,_=E?n:k?n[x]:n[x]&&n[x].prototype,C=E?u:u[x]||d(u,x,{})[x],O=C.prototype;for(m in t)i=!(r=l(E?m:x+(k?".":"#")+m,e.forced))&&_&&f(_,m),g=C[m],i&&(y=e.dontCallGetSet?(w=s(_,m))&&w.value:_[m]),v=i&&y?y:t[m],(r||S||typeof g!=typeof v)&&(b=e.bind&&i?c(v,n):e.wrap&&i?p(v):S&&a(v)?o(v):v,(e.sham||v&&v.sham||g&&g.sham)&&d(b,"sham",!0),d(C,m,b),S&&(f(u,h=x+"Prototype")||d(u,h,{}),d(u[h],m,v),e.real&&O&&(r||!O[m])&&d(O,m,v)))}},458:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},72352:function(e,t,r){"use strict";var n=r(11367),i=r(97079),o=r(93794),a=r(76698),s=r(31405),l=function(e,t,r,u,c,d,f,p){for(var h,m,v=c,g=0,y=!!f&&a(f,p);g<u;)g in r&&(h=y?y(r[g],g,t):r[g],d>0&&n(h)?(m=i(h),v=l(e,t,h,m,v,d-1)-1):(o(v+1),s(e,v,h)),v++),g++;return v};e.exports=l},33860:function(e,t,r){"use strict";var n=r(458);e.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},47865:function(e,t,r){"use strict";var n=r(59866),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(o):function(){return a.apply(o,arguments)})},76698:function(e,t,r){"use strict";var n=r(80388),i=r(42889),o=r(59866),a=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},59866:function(e,t,r){"use strict";var n=r(458);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},20975:function(e,t,r){"use strict";var n=r(1781),i=r(42889),o=r(28046),a=r(84511),s=r(57943),l=r(59866),u=Function,c=n([].concat),d=n([].join),f={};e.exports=l?u.bind:function(e){var t=i(this),r=t.prototype,n=s(arguments,1),l=function(){var r=c(n,s(arguments));return this instanceof l?function(e,t,r){if(!a(f,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";f[t]=u("C,a","return new C("+d(n,",")+")")}return f[t](e,r)}(t,r.length,r):t.apply(e,r)};return o(r)&&(l.prototype=r),l}},27746:function(e,t,r){"use strict";var n=r(59866),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},5215:function(e,t,r){"use strict";var n=r(83870),i=r(84511),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},55184:function(e,t,r){"use strict";var n=r(1781),i=r(42889);e.exports=function(e,t,r){try{return n(i(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},80388:function(e,t,r){"use strict";var n=r(33179),i=r(1781);e.exports=function(e){if("Function"===n(e))return i(e)}},1781:function(e,t,r){"use strict";var n=r(59866),i=Function.prototype,o=i.call,a=n&&i.bind.bind(o,o);e.exports=n?a:function(e){return function(){return o.apply(e,arguments)}}},88816:function(e,t,r){"use strict";var n=r(78705),i=r(8613);e.exports=function(e,t){var r=i[e+"Prototype"],o=r&&r[t];if(o)return o;var a=n[e],s=a&&a.prototype;return s&&s[t]}},98982:function(e,t,r){"use strict";var n=r(8613),i=r(78705),o=r(8804),a=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(n[e])||a(i[e]):n[e]&&n[e][t]||i[e]&&i[e][t]}},70540:function(e,t,r){"use strict";var n=r(2377),i=r(80720),o=r(69330),a=r(66701),s=r(87549)("iterator");e.exports=function(e){if(!o(e))return i(e,s)||i(e,"@@iterator")||a[n(e)]}},74172:function(e,t,r){"use strict";var n=r(27746),i=r(42889),o=r(11506),a=r(91394),s=r(70540),l=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(i(r))return o(n(r,e));throw new l(a(e)+" is not iterable")}},80720:function(e,t,r){"use strict";var n=r(42889),i=r(69330);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},78705:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},84511:function(e,t,r){"use strict";var n=r(1781),i=r(3199),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},65076:function(e){"use strict";e.exports={}},72623:function(e,t,r){"use strict";var n=r(98982);e.exports=n("document","documentElement")},15978:function(e,t,r){"use strict";var n=r(83870),i=r(458),o=r(12115);e.exports=!n&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},22529:function(e,t,r){"use strict";var n=r(1781),i=r(458),o=r(33179),a=Object,s=n("".split);e.exports=i(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?s(e,""):a(e)}:a},92182:function(e,t,r){"use strict";
vendor: 12,014 bytes, line 172
172var n=r(1781),i=r(8804),o=r(18721),a=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},90714:function(e,t,r){"use strict";var n=r(77153),i=r(1781),o=r(65076),a=r(28046),s=r(84511),l=r(24574).f,u=r(64811),c=r(31154),d=r(6941),f=r(41201),p=r(33860),h=!1,m=f("meta"),v=0,g=function(e){l(e,m,{value:{objectID:"O"+v++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},h=!0;var e=u.f,t=i([].splice),r={};r[m]=1,e(r).length&&(u.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===m){t(n,i,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!d(e))return"F";if(!t)return"E";g(e)}return e[m].objectID},getWeakData:function(e,t){if(!s(e,m)){if(!d(e))return!0;if(!t)return!1;g(e)}return e[m].weakData},onFreeze:function(e){return p&&h&&d(e)&&!s(e,m)&&g(e),e}};o[m]=!0},27233:function(e,t,r){"use strict";var n,i,o,a=r(7135),s=r(78705),l=r(28046),u=r(68266),c=r(84511),d=r(18721),f=r(29068),p=r(65076),h="Object already initialized",m=s.TypeError,v=s.WeakMap;if(a||d.state){var g=d.state||(d.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new m(h);return t.facade=e,g.set(e,t),t},i=function(e){return g.get(e)||{}},o=function(e){return g.has(e)}}else{var y=f("state");p[y]=!0,n=function(e,t){if(c(e,y))throw new m(h);return t.facade=e,u(e,y,t),t},i=function(e){return c(e,y)?e[y]:{}},o=function(e){return c(e,y)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=i(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return r}}}},96489:function(e,t,r){"use strict";var n=r(87549),i=r(66701),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},11367:function(e,t,r){"use strict";var n=r(33179);e.exports=Array.isArray||function(e){return"Array"===n(e)}},8804:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},17382:function(e,t,r){"use strict";var n=r(1781),i=r(458),o=r(8804),a=r(2377),s=r(98982),l=r(92182),u=function(){},c=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=n(d.exec),p=!d.test(u),h=function(e){if(!o(e))return!1;try{return c(u,[],e),!0}catch(e){return!1}},m=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(d,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!c||i(function(){var e;return h(h.call)||!h(Object)||!h(function(){e=!0})||e})?m:h},5309:function(e,t,r){"use strict";var n=r(458),i=r(8804),o=/#|\.prototype\./,a=function(e,t){var r=l[s(e)];return r===c||r!==u&&(i(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},69330:function(e){"use strict";e.exports=function(e){return null==e}},28046:function(e,t,r){"use strict";var n=r(8804);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},80977:function(e,t,r){"use strict";var n=r(28046);e.exports=function(e){return n(e)||null===e}},72145:function(e){"use strict";e.exports=!0},14678:function(e,t,r){"use strict";var n=r(28046),i=r(27233).get;e.exports=function(e){if(!n(e))return!1;var t=i(e);return!!t&&"RawJSON"===t.type}},45251:function(e,t,r){"use strict";var n=r(28046),i=r(33179),o=r(87549)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===i(e))}},34319:function(e,t,r){"use strict";var n=r(98982),i=r(8804),o=r(59565),a=r(12746),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&o(t.prototype,s(e))}},54216:function(e,t,r){"use strict";var n=r(76698),i=r(27746),o=r(11506),a=r(91394),s=r(96489),l=r(97079),u=r(59565),c=r(74172),d=r(70540),f=r(13791),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,r){var v,g,y,b,w,x,E,k=r&&r.that,S=!(!r||!r.AS_ENTRIES),_=!(!r||!r.IS_RECORD),C=!(!r||!r.IS_ITERATOR),O=!(!r||!r.INTERRUPTED),P=n(t,k),T=function(e){var t=v;return v=void 0,t&&f(t,"normal"),new h(!0,e)},A=function(e){return S?(o(e),O?P(e[0],e[1],T):P(e[0],e[1])):O?P(e,T):P(e)};if(_)v=e.iterator;else if(C)v=e;else{if(!(g=d(e)))throw new p(a(e)+" is not iterable");if(s(g)){for(y=0,b=l(e);b>y;y++)if((w=A(e[y]))&&u(m,w))return w;return new h(!1)}v=c(e,g)}for(x=_?e.next:v.next;!(E=i(x,v)).done;){var I=E.value;try{w=A(I)}catch(e){if(!v)throw e;f(v,"throw",e)}if("object"==typeof w&&w&&u(m,w))return w}return new h(!1)}},13791:function(e,t,r){"use strict";var n=r(27746),i=r(11506),o=r(80720);e.exports=function(e,t,r){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw r;if(s)throw a;return i(a),r}},8650:function(e,t,r){"use strict";var n=r(52215).IteratorPrototype,i=r(55963),o=r(68435),a=r(2979),s=r(66701),l=function(){return this};e.exports=function(e,t,r,u){var c=t+" Iterator";return e.prototype=i(n,{next:o(+!u,r)}),a(e,c,!1,!0),s[c]=l,e}},6775:function(e,t,r){"use strict";var n=r(77153),i=r(27746),o=r(72145),a=r(5215),s=r(8804),l=r(8650),u=r(77608),c=r(87144),d=r(2979),f=r(68266),p=r(90334),h=r(87549),m=r(66701),v=r(52215),g=a.PROPER,y=a.CONFIGURABLE,b=v.IteratorPrototype,w=v.BUGGY_SAFARI_ITERATORS,x=h("iterator"),E="keys",k="values",S="entries",_=function(){return this};e.exports=function(e,t,r,a,h,v,C){l(r,t,a);var O,P,T,A=function(e){if(e===h&&M)return M;if(!w&&e&&e in R)return R[e];switch(e){case E:case k:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},I=t+" Iterator",N=!1,R=e.prototype,j=R[x]||R["@@iterator"]||h&&R[h],M=!w&&j||A(h),D="Array"===t&&R.entries||j;if(D&&(O=u(D.call(new e)))!==Object.prototype&&O.next&&(o||u(O)===b||(c?c(O,b):s(O[x])||p(O,x,_)),d(O,I,!0,!0),o&&(m[I]=_)),g&&h===k&&j&&j.name!==k&&(!o&&y?f(R,"name",k):(N=!0,M=function(){return i(j,this)})),h)if(P={values:A(k),keys:v?M:A(E),entries:A(S)},C)for(T in P)(w||N||!(T in R))&&p(R,T,P[T]);else n({target:t,proto:!0,forced:w||N},P);return o&&!C||R[x]===M||p(R,x,M,{name:h}),m[t]=M,P}},52215:function(e,t,r){"use strict";var n,i,o,a=r(458),s=r(8804),l=r(28046),u=r(55963),c=r(77608),d=r(90334),f=r(87549),p=r(72145),h=f("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(i=c(c(o)))!==Object.prototype&&(n=i):m=!0),!l(n)||a(function(){var e={};return n[h].call(e)!==e})?n={}:p&&(n=u(n)),s(n[h])||d(n,h,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},66701:function(e){"use strict";e.exports={}},97079:function(e,t,r){"use strict";var n=r(81036);e.exports=function(e){return n(e.length)}},69602:function(e,t,r){"use strict";var n=r(27746),i=r(42889),o=r(8804),a=r(11506),s=TypeError;e.exports=function(e,t){var r,l=a(this),u=i(l.get),c=i(l.has),d=i(l.set),f=arguments.length>2?arguments[2]:void 0;if(!o(t)&&!o(f))throw new s("At least one callback required");return n(c,l,e)?(r=n(u,l,e),o(t)&&(r=t(r),n(d,l,e,r))):o(f)&&(r=f(),n(d,l,e,r)),r}},12814:function(e){"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},65030:function(e,t,r){"use strict";var n=r(458);e.exports=!n(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})},36238:function(e,t,r){"use strict";var n=r(45251),i=TypeError;e.exports=function(e){if(n(e))throw new i("The method doesn't accept regular expressions");return e}},15179:function(e,t,r){"use strict";var n=r(83870),i=r(1781),o=r(27746),a=r(458),s=r(44944),l=r(85241),u=r(93982),c=r(3199),d=r(22529),f=Object.assign,p=Object.defineProperty,h=i([].concat);e.exports=!f||a(function(){if(n&&1!==f({b:1},f(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach(function(e){t[e]=e}),7!==f({},e)[r]||s(f({},t)).join("")!==i})?function(e,t){for(var r=c(e),i=arguments.length,a=1,f=l.f,p=u.f;i>a;)for(var m,v=d(arguments[a++]),g=f?h(s(v),f(v)):s(v),y=g.length,b=0;y>b;)m=g[b++],n&&!o(p,v,m)||(r[m]=v[m]);return r}:f},55963:function(e,t,r){"use strict";var n,i=r(11506),o=r(72341),a=r(80587),s=r(65076),l=r(72623),u=r(12115),c=r(29068),d="prototype",f="script",p=c("IE_PROTO"),h=function(){},m=function(e){return"<"+f+">"+e+"</"+f+">"},v=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;g="undefined"!=typeof document?document.domain&&n?v(n):(t=u("iframe"),r="java"+f+":",t.style.display="none",l.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):v(n);for(var i=a.length;i--;)delete g[d][a[i]];return g()};s[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(h[d]=i(e),r=new h,h[d]=null,r[p]=e):r=g(),void 0===t?r:o.f(r,t)}},72341:function(e,t,r){"use strict";var n=r(83870),i=r(15022),o=r(24574),a=r(11506),s=r(40300),l=r(44944);t.f=n&&!i?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),i=l(t),u=i.length,c=0;u>c;)o.f(e,r=i[c++],n[r]);return e}},24574:function(e,t,r){"use strict";var n=r(83870),i=r(15978),o=r(15022),a=r(11506),s=r(98372),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",p="writable";t.f=n?o?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var n=c(e,t);n&&n[p]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:d in r?r[d]:n[d],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(a(e),t=s(t),a(r),i)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},58805:function(e,t,r){"use strict";var n=r(83870),i=r(27746),o=r(93982),a=r(68435),s=r(40300),l=r(98372),u=r(84511),c=r(15978),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=s(e),t=l(t),c)try{return d(e,t)}catch(e){}if(u(e,t))return a(!i(o.f,e,t),e[t])}},31154:function(e,t,r){"use strict";var n=r(33179),i=r(40300),o=r(64811).f,a=r(57943),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===n(e)?function(e){try{return o(e)}catch(e){return a(s)}}(e):o(i(e))}},64811:function(e,t,r){"use strict";var n=r(74890),i=r(80587).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},85241:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},77608:function(e,t,r){"use strict";var n=r(84511),i=r(8804),o=r(3199),a=r(29068),s=r(75580),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=o(e);if(n(t,l))return t[l];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof u?c:null}},6941:function(e,t,r){"use strict";var n=r(458),i=r(28046),o=r(33179),a=r(13582),s=Object.isExtensible,l=n(function(){s(1)});e.exports=l||a?function(e){return!!i(e)&&(!a||"ArrayBuffer"!==o(e))&&(!s||s(e))}:s},59565:function(e,t,r){"use strict";var n=r(1781);e.exports=n({}.isPrototypeOf)},74890:function(e,t,r){"use strict";var n=r(1781),i=r(84511),o=r(40300),a=r(19333).indexOf,s=r(65076),l=n([].push);e.exports=function(e,t){var r,n=o(e),u=0,c=[];for(r in n)!i(s,r)&&i(n,r)&&l(c,r);for(;t.length>u;)i(n,r=t[u++])&&(~a(c,r)||l(c,r));return c}},44944:function(e,t,r){"use strict";var n=r(74890),i=r(80587);e.exports=Object.keys||function(e){return n(e,i)}},93982:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},87144:function(e,t,r){"use strict";var n=r(55184),i=r(28046),o=r(88384),a=r(7986);
172e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),a(n),i(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},10328:function(e,t,r){"use strict";var n=r(83870),i=r(458),o=r(1781),a=r(77608),s=r(44944),l=r(40300),u=o(r(93982).f),c=o([].push),d=n&&i(function(){var e=Object.create(null);return e[2]=2,!u(e,2)}),f=function(e){return function(t){for(var r,i=l(t),o=s(i),f=d&&null===a(i),p=o.length,h=0,m=[];p>h;)r=o[h++],n&&!(f?r in i:u(i,r))||c(m,e?[r,i[r]]:i[r]);return m}};e.exports={entries:f(!0),values:f(!1)}},19181:function(e,t,r){"use strict";var n=r(41352),i=r(2377);e.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},39107:function(e,t,r){"use strict";var n=r(27746),i=r(8804),o=r(28046),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&i(r=e.toString)&&!o(s=n(r,e)))return s;if(i(r=e.valueOf)&&!o(s=n(r,e)))return s;if("string"!==t&&i(r=e.toString)&&!o(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},60627:function(e,t,r){"use strict";var n=r(1781),i=r(84511),o=SyntaxError,a=parseInt,s=String.fromCharCode,l=n("".charAt),u=n("".slice),c=n(/./.exec),d={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},f=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var r=!0,n="";t<e.length;){var h=l(e,t);if("\\"===h){var m=u(e,t,t+2);if(i(d,m))n+=d[m],t+=2;else{if("\\u"!==m)throw new o('Unknown escape sequence: "'+m+'"');var v=u(e,t+=2,t+4);if(!c(f,v))throw new o("Bad Unicode escape at: "+t);n+=s(a(v,16)),t+=4}}else{if('"'===h){r=!1,t++;break}if(c(p,h))throw new o("Bad control character in string literal at: "+t);n+=h,t++}}if(r)throw new o("Unterminated string at: "+t);return{value:n,end:t}}},8613:function(e){"use strict";e.exports={}},66354:function(e,t,r){"use strict";var n=r(27746),i=r(11506),o=r(8804),a=r(33179),s=r(58449),l=TypeError;e.exports=function(e,t){var r=e.exec;if(o(r)){var u=n(r,e,t);return null!==u&&i(u),u}if("RegExp"===a(e))return n(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},58449:function(e){"use strict";e.exports=/./.exec},52836:function(e,t,r){"use strict";var n=r(78705),i=r(458),o=n.RegExp,a=!i(function(){var e=!0;try{o(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",i=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(a.hasIndices="d"),a)i(s,a[s]);return Object.getOwnPropertyDescriptor(o.prototype,"flags").get.call(t)!==n||r!==n});e.exports={correct:a}},60299:function(e,t,r){"use strict";var n=r(11506);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},18718:function(e,t,r){"use strict";var n=r(27746),i=r(84511),o=r(59565),a=r(52836),s=r(60299),l=RegExp.prototype;e.exports=a.correct?function(e){return e.flags}:function(e){return a.correct||!o(l,e)||i(e,"flags")?e.flags:n(s,e)}},88384:function(e,t,r){"use strict";var n=r(69330),i=TypeError;e.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},61:function(e,t,r){"use strict";var n=r(78705),i=r(83870),o=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return n[e];var t=o(n,e);return t&&t.value}},44898:function(e,t,r){"use strict";var n,i=r(78705),o=r(47865),a=r(8804),s=r(47869),l=r(18306),u=r(57943),c=r(17661),d=i.Function,f=/MSIE .\./.test(l)||"BUN"===s&&((n=i.Bun.version.split(".")).length<3||"0"===n[0]&&(n[1]<3||"3"===n[1]&&"0"===n[2]));e.exports=function(e,t){var r=t?2:1;return f?function(n,i){var s=c(arguments.length,1)>r,l=a(n)?n:d(n),f=s?u(arguments,r):[],p=s?function(){o(l,this,f)}:l;return t?e(p,i):e(p)}:e}},2979:function(e,t,r){"use strict";var n=r(41352),i=r(24574).f,o=r(68266),a=r(84511),s=r(19181),l=r(87549)("toStringTag");e.exports=function(e,t,r,u){var c=r?e:e&&e.prototype;c&&(a(c,l)||i(c,l,{configurable:!0,value:t}),u&&!n&&o(c,"toString",s))}},29068:function(e,t,r){"use strict";var n=r(85790),i=r(41201),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},18721:function(e,t,r){"use strict";var n=r(72145),i=r(78705),o=r(94802),a="__core-js_shared__",s=e.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.49.0",mode:n?"pure":"global",copyright:"© 2013â2025 Denis Pushkarev (zloirock.ru), 2025â2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},85790:function(e,t,r){"use strict";var n=r(18721);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},35627:function(e,t,r){"use strict";var n=r(11506),i=r(69618),o=r(69330),a=r(87549)("species");e.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||o(r=n(s)[a])?t:i(r)}},96823:function(e,t,r){"use strict";var n=r(1781),i=r(44216),o=r(45174),a=r(88384),s=n("".charAt),l=n("".charCodeAt),u=n("".slice),c=function(e){return function(t,r){var n,c,d=o(a(t)),f=i(r),p=d.length;return f<0||f>=p?e?"":void 0:(n=l(d,f))<55296||n>56319||f+1===p||(c=l(d,f+1))<56320||c>57343?e?s(d,f):n:e?u(d,f,f+2):c-56320+(n-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},56495:function(e,t,r){"use strict";var n=r(1781),i=r(81036),o=r(45174),a=r(84588),s=r(88384),l=n(a),u=n("".slice),c=Math.ceil,d=function(e){return function(t,r,n){var a=o(s(t)),d=i(r),f=a.length;if(d<=f)return a;var p,h,m=void 0===n?" ":o(n);return""===m?a:((h=l(m,c((p=d-f)/m.length))).length>p&&(h=u(h,0,p)),e?a+h:h+a)}};e.exports={start:d(!1),end:d(!0)}},89673:function(e,t,r){"use strict";var n=r(1781),i=2147483647,o=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",l=RangeError,u=n(a.exec),c=Math.floor,d=String.fromCharCode,f=n("".charCodeAt),p=n([].join),h=n([].push),m=n("".replace),v=n("".split),g=n("".toLowerCase),y=function(e){return e+22+75*(e<26)},b=function(e,t,r){var n=0;for(e=r?c(e/700):e>>1,e+=c(e/t);e>455;)e=c(e/35),n+=36;return c(n+36*e/(e+38))},w=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=f(e,r++);if(i>=55296&&i<=56319&&r<n){var o=f(e,r++);56320==(64512&o)?h(t,((1023&i)<<10)+(1023&o)+65536):(h(t,i),r--)}else h(t,i)}return t}(e);var r,n,o=e.length,a=128,u=0,m=72;for(r=0;r<e.length;r++)(n=e[r])<128&&h(t,d(n));var v=t.length,g=v;for(v&&h(t,"-");g<o;){var w=i;for(r=0;r<e.length;r++)(n=e[r])>=a&&n<w&&(w=n);var x=g+1;if(w-a>c((i-u)/x))throw new l(s);for(u+=(w-a)*x,a=w,r=0;r<e.length;r++){if((n=e[r])<a&&++u>i)throw new l(s);if(n===a){for(var E=u,k=36;;){var S=k<=m?1:k>=m+26?26:k-m;if(E<S)break;var _=E-S,C=36-S;h(t,d(y(S+_%C))),E=c(_/C),k+=36}h(t,d(y(E))),m=b(u,x,g===v),u=0,g++}}u++,a++}return p(t,"")};e.exports=function(e){var t,r,n=[],i=v(m(g(e),a,"."),".");for(t=0;t<i.length;t++)r=i[t],h(n,u(o,r)?"xn--"+w(r):r);return p(n,".")}},84588:function(e,t,r){"use strict";
172var n=r(44216),i=r(45174),o=r(88384),a=RangeError,s=Math.floor;e.exports=function(e){var t=i(o(this)),r="",l=n(e);if(l<0||l===1/0)throw new a("Wrong number of repetitions");for(;l>0;(l=s(l/2))&&(t+=t))l%2&&(r+=t);return r}},75264:function(e,t,r){"use strict";var n=r(73991),i=r(458),o=r(78705).String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},24650:function(e,t,r){"use strict";var n=r(27746),i=r(98982),o=r(87549),a=r(90334);e.exports=function(){var e=i("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,s=o("toPrimitive");t&&!t[s]&&a(t,s,function(e){return n(r,this)},{arity:1})}},56852:function(e,t,r){"use strict";var n=r(98982),i=r(1781),o=n("Symbol"),a=o.keyFor,s=i(o.prototype.valueOf);e.exports=o.isRegisteredSymbol||function(e){try{return void 0!==a(s(e))}catch(e){return!1}}},53098:function(e,t,r){"use strict";for(var n=r(85790),i=r(98982),o=r(1781),a=r(34319),s=r(87549),l=i("Symbol"),u=l.isWellKnownSymbol,c=i("Object","getOwnPropertyNames"),d=o(l.prototype.valueOf),f=n("wks"),p=0,h=c(l),m=h.length;p<m;p++)try{var v=h[p];a(l[v])&&s(v)}catch(e){}e.exports=function(e){if(u&&u(e))return!0;try{for(var t=d(e),r=0,n=c(f),i=n.length;r<i;r++)if(f[n[r]]==t)return!0}catch(e){}return!1}},88515:function(e,t,r){"use strict";var n=r(75264);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},42048:function(e,t,r){"use strict";var n=r(44216),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},40300:function(e,t,r){"use strict";var n=r(22529),i=r(88384);e.exports=function(e){return n(i(e))}},44216:function(e,t,r){"use strict";var n=r(12814);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},81036:function(e,t,r){"use strict";var n=r(44216),i=Math.min;e.exports=function(e){var t=n(e);return t>0?i(t,9007199254740991):0}},3199:function(e,t,r){"use strict";var n=r(88384),i=Object;e.exports=function(e){return i(n(e))}},73562:function(e,t,r){"use strict";var n=r(27746),i=r(28046),o=r(34319),a=r(80720),s=r(39107),l=r(87549),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var r,l=a(e,c);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!i(r)||o(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},98372:function(e,t,r){"use strict";var n=r(73562),i=r(34319);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},41352:function(e,t,r){"use strict";var n={};n[r(87549)("toStringTag")]="z",e.exports="[object z]"===String(n)},45174:function(e,t,r){"use strict";var n=r(2377),i=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},91394:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},41201:function(e,t,r){"use strict";var n=r(1781),i=0,o=Math.random(),a=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},60165:function(e,t,r){"use strict";var n=r(458),i=r(87549),o=r(83870),a=r(72145),s=i("iterator");e.exports=!n(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach(function(e,r){t.delete("b"),n+=r+e}),r.delete("a",2),r.delete("b",void 0),a&&(!e.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b"))||!t.size&&(a||!o)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://ÑеÑÑ").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host})},12746:function(e,t,r){"use strict";var n=r(75264);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},15022:function(e,t,r){"use strict";var n=r(83870),i=r(458);e.exports=n&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},17661:function(e){"use strict";var t=TypeError;e.exports=function(e,r){if(e<r)throw new t("Not enough arguments");return e}},7135:function(e,t,r){"use strict";var n=r(78705),i=r(8804),o=n.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},71102:function(e,t,r){"use strict";var n=r(98982),i=r(8645);e.exports={WeakMap:n("WeakMap"),set:i("set",2),get:i("get",1),has:i("has",1),remove:i("delete",1)}},15964:function(e,t,r){"use strict";var n=r(8613),i=r(84511),o=r(9994),a=r(24574).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},9994:function(e,t,r){"use strict";var n=r(87549);t.f=n},87549:function(e,t,r){"use strict";var n=r(78705),i=r(85790),o=r(84511),a=r(41201),s=r(75264),l=r(12746),u=n.Symbol,c=i("wks"),d=l?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)||(c[e]=s&&o(u,e)?u[e]:d("Symbol."+e)),c[e]}},39824:function(e,t,r){"use strict";var n=r(77153),i=r(458),o=r(11367),a=r(28046),s=r(3199),l=r(97079),u=r(93794),c=r(31405),d=r(68826),f=r(4857),p=r(30361),h=r(87
172549),m=r(73991),v=h("isConcatSpreadable"),g=m>=51||!i(function(){var e=[];return e[v]=!1,e.concat()[0]!==e}),y=function(e){if(!a(e))return!1;var t=e[v];return void 0!==t?!!t:o(e)};n({target:"Array",proto:!0,arity:1,forced:!g||!p("concat")},{concat:function(e){var t,r,n,i,o,a=s(this),p=f(a,0),h=0;for(t=-1,n=arguments.length;t<n;t++)if(y(o=-1===t?a:arguments[t]))for(i=l(o),u(h+i),r=0;r<i;r++,h++)r in o&&c(p,h,o[r]);else u(h+1),c(p,h++,o);return d(p,h),p}})},12621:function(e,t,r){"use strict";var n=r(77153),i=r(21098).every;n({target:"Array",proto:!0,forced:!r(13423)("every")},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},73249:function(e,t,r){"use strict";var n=r(77153),i=r(21098).filter;n({target:"Array",proto:!0,forced:!r(30361)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},10373:function(e,t,r){"use strict";var n=r(77153),i=r(21098).find,o=r(87478),a="find",s=!0;a in[]&&Array(1)[a](function(){s=!1}),n({target:"Array",proto:!0,forced:s},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},32482:function(e,t,r){"use strict";var n=r(77153),i=r(72352),o=r(42889),a=r(3199),s=r(97079),l=r(4857);n({target:"Array",proto:!0},{flatMap:function(e){var t,r=a(this),n=s(r);return o(e),t=l(r,0),i(t,r,r,n,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},15371:function(e,t,r){"use strict";var n=r(77153),i=r(39634);n({target:"Array",proto:!0,forced:[].forEach!==i},{forEach:i})},28143:function(e,t,r){"use strict";var n=r(77153),i=r(19333).includes,o=r(458),a=r(87478),s=o(function(){return!Array(1).includes()}),l=o(function(){return[,1].includes(void 0,1)});n({target:"Array",proto:!0,forced:s||l},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},77037:function(e,t,r){"use strict";var n=r(77153),i=r(80388),o=r(19333).indexOf,a=r(13423),s=i([].indexOf),l=!!s&&1/s([1],1,-0)<0;n({target:"Array",proto:!0,forced:l||!a("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?s(this,e,t)||0:o(this,e,t)}})},33858:function(e,t,r){"use strict";r(77153)({target:"Array",stat:!0},{isArray:r(11367)})},63413:function(e,t,r){"use strict";var n=r(40300),i=r(87478),o=r(66701),a=r(27233),s=r(24574).f,l=r(6775),u=r(948),c=r(72145),d=r(83870),f="Array Iterator",p=a.set,h=a.getterFor(f);e.exports=l(Array,"Array",function(e,t){p(this,{type:f,target:n(e),index:0,kind:t})},function(){var e=h(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)},"values");var m=o.Arguments=o.Array;
172if(i("keys"),i("values"),i("entries"),!c&&d&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(e){}},34711:function(e,t,r){"use strict";var n=r(77153),i=r(21098).map;n({target:"Array",proto:!0,forced:!r(30361)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},56124:function(e,t,r){"use strict";var n=r(77153),i=r(29067).right,o=r(13423),a=r(73991);n({target:"Array",proto:!0,forced:!r(57915)&&a>79&&a<83||!o("reduceRight")},{reduceRight:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},26333:function(e,t,r){"use strict";var n=r(77153),i=r(29067).left,o=r(13423),a=r(73991);n({target:"Array",proto:!0,forced:!r(57915)&&a>79&&a<83||!o("reduce")},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},16710:function(e,t,r){"use strict";var n=r(77153),i=r(11367),o=r(17382),a=r(28046),s=r(42048),l=r(97079),u=r(40300),c=r(31405),d=r(68826),f=r(87549),p=r(30361),h=r(57943),m=p("slice"),v=f("species"),g=Array,y=Math.max;n({target:"Array",proto:!0,forced:!m},{slice:function(e,t){var r,n,f,p=u(this),m=l(p),b=s(e,m),w=s(void 0===t?m:t,m);if(i(p)&&(r=p.constructor,(o(r)&&(r===g||i(r.prototype))||a(r)&&null===(r=r[v]))&&(r=void 0),r===g||void 0===r))return h(p,b,w);for(n=new(void 0===r?g:r)(y(w-b,0)),f=0;b<w;b++,f++)b in p&&c(n,f,p[b]);return d(n,f),n}})},29493:function(e,t,r){"use strict";var n=r(77153),i=r(21098).some;n({target:"Array",proto:!0,forced:!r(13423)("some")},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},78576:function(e,t,r){"use strict";r(87478)("flatMap")},62982:function(e,t,r){"use strict";var n=r(77153),i=r(1781),o=Date,a=i(o.prototype.getTime);n({target:"Date",stat:!0},{now:function(){return a(new o)}})},62309:function(e,t,r){"use strict";var n=r(77153),i=r(27746),o=r(3199),a=r(73562),s=r(59129),l=r(33179);n({target:"Date",proto:!0,forced:r(458)(function(){return null!==new Date(NaN).toJSON()||1!==i(Date.prototype.toJSON,{toISOString:function(){return 1}})})},{toJSON:function(e){var t=o(this),r=a(t,"number");return"number"!=typeof r||isFinite(r)?"toISOString"in t||"Date"!==l(t)?t.toISOString():i(s,t):null}})},34955:function(e,t,r){"use strict";var n=r(77153),i=r(20975);n({target:"Function",proto:!0,forced:Function.bind!==i},{bind:i})},70924:function(e,t,r){"use strict";var n=r(77153),i=r(78705);n({global:!0,forced:i.globalThis!==i},{globalThis:i})},16286:function(e,t,r){"use strict";var n=r(77153),i=r(98982),o=r(47865),a=r(27746),s=r(1781),l=r(458),u=r(11367),c=r(8804),d=r(14678),f=r(34319),p=r(33179),h=r(45174),m=r(57943),v=r(60627),g=r(41201),y=r(75264),b=r(65030),w=String,x=i("JSON","stringify"),E=s(/./.exec),k=s("".charAt),S=s("".charCodeAt),_=s("".replace),C=s("".slice),O=s([].push),P=s(1.1.toString),T=/[\uD800-\uDFFF]/g,A=/^[\uD800-\uDBFF]$/,I=/^[\uDC00-\uDFFF]$/,N=g(),R=N.length,j=!y||l(function(){var e=i("Symbol")("stringify detection");return"[null]"!==x([e])||"{}"!==x({a:e})||"{}"!==x(Object(e))}),M=l(function(){return'"\\udf06\\ud834"'!==x("\udf06\ud834")||'"\\udead"'!==x("\udead")}),D=j?function(e,t){var r=m(arguments),n=F(t);if(c(n)||void 0!==e&&!f(e))return r[1]=function(e,t){if(c(n)&&(t=a(n,this,w(e),t)),!f(t))return t},o(x,null,r)}:x,L=function(e,t,r){var n=k(r,t-1),i=k(r,t+1);return E(A,e)&&!E(I,i)||E(I,e)&&!E(A,n)?"\\u"+P(S(e,0),16):e},F=function(e){if(c(e))return e;if(u(e)){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];"string"==typeof i?O(r,i):"number"!=typeof i&&"Number"!==p(i)&&"String"!==p(i)||O(r,h(i))}var o=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(u(this))return t;for(var n=0;n<o;n++)if(r[n]===e)return t}}};x&&n({target:"JSON",stat:!0,arity:3,forced:j||M||!b},{stringify:function(e,t,r){var n=F(t),i=[],o=D(e,function(e,t){var r=c(n)?a(n,this,w(e),t):t;return!b&&d(r)?N+(O(i,r.rawJSON)-1):r},r);if("string"!=typeof o)return o;if(M&&(o=_(o,T,L)),b)return o;for(var s="",l=o.length,u=0;u<l;u++){var f=k(o,u);if('"'===f){var p=v(o,++u).end-1,h=C(o,u,p);s+=C(h,0,R)===N?i[C(h,R)]:'"'+h+'"',u=p}else s+=f}return s}})},9240:function(e,t,r){"use strict";var n=r(78705);r(2979)(n.JSON,"JSON",!0)},54926:function(){},50993:function(e,t,r){"use strict";var n=r(77153),i=r(15179);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},31559:function(e,t,r){"use strict";var n=r(77153),i=r(83870),o=r(24574).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==o,sham:!i},{defineProperty:o})},6682:function(e,t,r){"use strict";var n=r(77153),i=r(10328).entries;n({target:"Object",stat:!0},{entries:function(e){return i(e)}})},97140:function(e,t,r){"use strict";var n=r(77153),i=r(458),o=r(40300),a=r(58805).f,s=r(83870);n({target:"Object",stat:!0,forced:!s||i(function(){a(1)}),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},48519:function(e,t,r){"use strict";
172var n=r(77153),i=r(75264),o=r(458),a=r(85241),s=r(3199);n({target:"Object",stat:!0,forced:!i||o(function(){a.f(1)})},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},80488:function(e,t,r){"use strict";var n=r(77153),i=r(3199),o=r(44944);n({target:"Object",stat:!0,forced:r(458)(function(){o(1)})},{keys:function(e){return o(i(e))}})},77784:function(){},7875:function(e,t,r){"use strict";var n=r(77153),i=r(10328).values;n({target:"Object",stat:!0},{values:function(e){return i(e)}})},6861:function(){},50882:function(){},93506:function(e,t,r){"use strict";var n,i=r(77153),o=r(80388),a=r(58805).f,s=r(81036),l=r(45174),u=r(36238),c=r(88384),d=r(98153),f=r(72145),p=o("".slice),h=Math.min,m=d("endsWith");i({target:"String",proto:!0,forced:!(!f&&!m&&(n=a(String.prototype,"endsWith"),n&&!n.writable)||m)},{endsWith:function(e){var t=l(c(this));u(e);var r=l(e),n=arguments.length>1?arguments[1]:void 0,i=t.length,o=void 0===n?i:h(s(n),i);return p(t,o-r.length,o)===r}})},90554:function(e,t,r){"use strict";var n=r(77153),i=r(1781),o=r(42048),a=RangeError,s=String.fromCharCode,l=String.fromCodePoint,u=i([].join);n({target:"String",stat:!0,arity:1,forced:!!l&&1!==l.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,i=0;n>i;){if(o(t=+arguments[i],1114111)!==t)throw new a(t+" is not a valid code point");r[i++]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return u(r,"")}})},39143:function(e,t,r){"use strict";var n=r(77153),i=r(1781),o=r(36238),a=r(88384),s=r(45174),l=r(98153),u=i("".indexOf);n({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},73603:function(e,t,r){"use strict";var n=r(96823).charAt,i=r(45174),o=r(27233),a=r(6775),s=r(948),l="String Iterator",u=o.set,c=o.getterFor(l);a(String,"String",function(e){u(this,{type:l,string:i(e),index:0})},function(){var e,t=c(this),r=t.string,i=t.index;return i>=r.length?s(void 0,!0):(e=n(r,i),t.index+=e.length,s(e,!1))})},17429:function(e,t,r){"use strict";var n=r(77153),i=r(27746),o=r(80388),a=r(8650),s=r(948),l=r(88384),u=r(81036),c=r(45174),d=r(11506),f=r(28046),p=r(33179),h=r(45251),m=r(18718),v=r(80720),g=r(90334),y=r(458),b=r(87549),w=r(35627),x=r(77892),E=r(66354),k=r(27233),S=r(72145),_=b("matchAll"),C="RegExp String",O=C+" Iterator",P=k.set,T=k.getterFor(O),A=RegExp.prototype,I=TypeError,N=o("".indexOf),R=o("".matchAll),j=!!R&&!y(function(){R("a",/./)}),M=a(function(e,t,r,n){P(this,{type:O,regexp:e,string:t,global:r,unicode:n,done:!1})},C,function(){var e=T(this);if(e.done)return s(void 0,!0);var t=e.regexp,r=e.string,n=E(t,r);return null===n?(e.done=!0,s(void 0,!0)):e.global?(""===c(n[0])&&(t.lastIndex=x(r,u(t.lastIndex),e.unicode)),s(n,!1)):(e.done=!0,s(n,!1))}),D=function(e){var t,r,n,i=d(this),o=c(e),a=w(i,RegExp),s=c(m(i));return t=new a(a===RegExp?i.source:i,s),r=!!~N(s,"g"),n=!!~N(s,"u")||!!~N(s,"v"),t.lastIndex=u(i.lastIndex),new M(t,o,r,n)};n({target:"String",proto:!0,forced:j},{matchAll:function(e){var t,r,n,o,a=l(this);if(f(e)){if(h(e)&&(t=c(l(m(e))),!~N(t,"g")))throw new I("`.matchAll` does not allow non-global regexes");if(j)return R(a,e);if(void 0===(n=v(e,_))&&S&&"RegExp"===p(e)&&(n=D),n)return i(n,e,a)}else if(j)return R(a,e);return r=c(a),o=new RegExp(e,"g"),S?i(D,o,r):o[_](r)}}),S||_ in A||g(A,_,D)},98220:function(e,t,r){"use strict";var n,i=r(77153),o=r(80388),a=r(58805).f,s=r(81036),l=r(45174),u=r(36238),c=r(88384),d=r(98153),f=r(72145),p=o("".slice),h=Math.min,m=d("startsWith");i({target:"String",proto:!0,forced:!(!f&&!m&&(n=a(String.prototype,"startsWith"),n&&!n.writable)||m)},{startsWith:function(e){var t=l(c(this));u(e);var r=l(e),n=s(h(arguments.length>1?arguments[1]:void 0,t.length));return p(t,n,n+r.length)===r}})},66316:function(e,t,r){"use strict";r(15964)("asyncDispose")},8912:function(e,t,r){"use strict";r(15964)("asyncIterator")},25536:function(e,t,r){"use strict";var n=r(77153),i=r(78705),o=r(27746),a=r(1781),s=r(72145),l=r(83870),u=r(75264),c=r(458),d=r(84511),f=r(59565),p=r(11506),h=r(40300),m=r(98372),v=r(45174),g=r(68435),y=r(55963),b=r(44944),w=r(64811),x=r
172(31154),E=r(85241),k=r(58805),S=r(24574),_=r(72341),C=r(93982),O=r(90334),P=r(86999),T=r(85790),A=r(29068),I=r(65076),N=r(41201),R=r(87549),j=r(9994),M=r(15964),D=r(24650),L=r(2979),F=r(27233),B=r(21098).forEach,U=A("hidden"),V="Symbol",z="prototype",q=F.set,H=F.getterFor(V),G=Object[z],$=i.Symbol,W=$&&$[z],Z=i.RangeError,Q=i.TypeError,Y=i.QObject,K=k.f,J=S.f,X=x.f,ee=C.f,te=a([].push),re=T("symbols"),ne=T("op-symbols"),ie=T("wks"),oe=!Y||!Y[z]||!Y[z].findChild,ae=function(e,t,r){var n=K(G,t);return n&&delete G[t],J(e,t,r),n&&e!==G&&J(G,t,n),e},se=l&&c(function(){return 7!==y(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a})?ae:J,le=function(e,t){var r=re[e]=y(W);return q(r,{type:V,tag:e,description:t}),l||(r.description=t),r},ue=function(e,t,r){e===G&&ue(ne,t,r),p(e);var n=m(t);return p(r),d(re,n)?(("enumerable"in r?!r.enumerable:!d(e,n)||d(e,U)&&e[U][n])?(d(e,U)||J(e,U,g(1,y(null))),e[U][n]=!0):(d(e,U)&&e[U][n]&&(e[U][n]=!1),r=y(r,{enumerable:g(0,!1)})),se(e,n,r)):J(e,n,r)},ce=function(e,t){p(e);var r=h(t),n=b(r).concat(he(r));return B(n,function(t){l&&!o(de,r,t)||ue(e,t,r[t])}),e},de=function(e){var t=m(e),r=o(ee,this,t);return!(this===G&&d(re,t)&&!d(ne,t))&&(!(r||!d(this,t)||!d(re,t)||d(this,U)&&this[U][t])||r)},fe=function(e,t){var r=h(e),n=m(t);if(r!==G||!d(re,n)||d(ne,n)){var i=K(r,n);return!i||!d(re,n)||d(r,U)&&r[U][n]||(i.enumerable=!0),i}},pe=function(e){var t=X(h(e)),r=[];return B(t,function(e){d(re,e)||d(I,e)||te(r,e)}),r},he=function(e){var t=e===G,r=X(t?ne:h(e)),n=[];return B(r,function(e){!d(re,e)||t&&!d(G,e)||te(n,re[e])}),n};u||($=function(){if(f(W,this))throw new Q("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,t=N(e),r=function(e){var n=void 0===this?i:this;n===G&&o(r,ne,e),d(n,U)&&d(n[U],t)&&(n[U][t]=!1);var a=g(1,e);try{se(n,t,a)}catch(e){if(!(e instanceof Z))throw e;ae(n,t,a)}};return l&&oe&&se(G,t,{configurable:!0,set:r}),le(t,e)},O(W=$[z],"toString",function(){return H(this).tag}),O($,"withoutSetter",function(e){return le(N(e),e)}),C.f=de,S.f=ue,_.f=ce,k.f=fe,w.f=x.f=pe,E.f=he,j.f=function(e){return le(R(e),e)},l&&(P(W,"description",{configurable:!0,get:function(){return H(this).description}}),s||O(G,"propertyIsEnumerable",de,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:$}),B(b(ie),function(e){M(e)}),n({target:V,stat:!0,forced:!u},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?y(e):ce(y(e),t)},defineProperty:ue,defineProperties:ce,getOwnPropertyDescriptor:fe}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pe}),D(),L($,V),I[U]=!0},71387:function(){},44451:function(e,t,r){"use strict";r(15964)("dispose")},49723:function(e,t,r){"use strict";var n=r(77153),i=r(98982),o=r(84511),a=r(45174),s=r(85790),l=r(88515),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(o(u,t))return u[t];var r=i("Symbol")(t);return u[t]=r,c[r]=t,r}})},40359:function(e,t,r){"use strict";r(15964)("hasInstance")},66635:function(e,t,r){"use strict";r(15964)("isConcatSpreadable")},19949:function(e,t,r){"use strict";r(15964)("iterator")},76787:function(e,t,r){"use strict";r(25536),r(49723),r(21726),r(16286),r(48519)},21726:function(e,t,r){"use strict";var n=r(77153),i=r(84511),o=r(34319),a=r(91394),s=r(85790),l=r(88515),u=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!o(e))throw new TypeError(a(e)+" is not a symbol");if(i(u,e))return u[e]}})},10284:function(e,t,r){"use strict";r(15964)("matchAll")},71753:function(e,t,r){"use strict";r(15964)("match")},68689:function(e,t,r){"use strict";r(15964)("replace")},58145:function(e,t,r){"use strict";r(15964)("search")},94708:function(e,t,r){"use strict";r(15964)("species")},13343:function(e,t,r){"use strict";r(15964)("split")},21397:function(e,t,r){"use strict";var n=r(15964),i=r(24650);n("toPrimitive"),i()},13975:function(e,t,r){"use strict";var n=r(98982),i=r(15964),o=r(2979);i("toStringTag"),o(n("Symbol"),"Symbol")},90875:function(e,t,r){"use strict";r(15964)("unscopables")}
172,36817:function(e,t,r){"use strict";var n,i=r(33860),o=r(78705),a=r(1781),s=r(10211),l=r(90714),u=r(61045),c=r(75485),d=r(28046),f=r(27233).enforce,p=r(458),h=r(7135),m=Object,v=Array.isArray,g=m.isExtensible,y=m.isFrozen,b=m.isSealed,w=m.freeze,x=m.seal,E=!o.ActiveXObject&&"ActiveXObject"in o,k=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},S=u("WeakMap",k,c),_=S.prototype,C=a(_.set);if(h)if(E){n=c.getConstructor(k,"WeakMap",!0),l.enable();var O=a(_.delete),P=a(_.has),T=a(_.get);s(_,{delete:function(e){if(d(e)&&!g(e)){var t=f(this);return t.frozen||(t.frozen=new n),O(this,e)||t.frozen.delete(e)}return O(this,e)},has:function(e){if(d(e)&&!g(e)){var t=f(this);return t.frozen||(t.frozen=new n),P(this,e)||t.frozen.has(e)}return P(this,e)},get:function(e){if(d(e)&&!g(e)){var t=f(this);return t.frozen||(t.frozen=new n),P(this,e)?T(this,e):t.frozen.get(e)}return T(this,e)},set:function(e,t){if(d(e)&&!g(e)){var r=f(this);r.frozen||(r.frozen=new n),P(this,e)?C(this,e,t):r.frozen.set(e,t)}else C(this,e,t);return this}})}else i&&p(function(){var e=w([]);return C(new S,e,1),!y(e)})&&s(_,{set:function(e,t){var r;return v(e)&&(y(e)?r=w:b(e)&&(r=x)),C(this,e,t),r&&r(e),this}})},53534:function(e,t,r){"use strict";var n=r(77153),i=r(42889),o=r(63309),a=r(82781),s=r(71102),l=r(72145),u=s.get,c=s.has,d=s.set;n({target:"WeakMap",proto:!0,real:!0,forced:l||!function(){try{WeakMap.prototype.getOrInsertComputed&&(new WeakMap).getOrInsertComputed(1,function(){throw 1})}catch(e){return e instanceof TypeError}}()},{getOrInsertComputed:function(e,t){if(l||o(this),a(e),i(t),c(this,e))return u(this,e);var r=t(e);return d(this,e,r),r}})},79911:function(e,t,r){"use strict";
172var n=r(77153),i=r(71102),o=r(72145),a=i.get,s=i.has,l=i.set;n({target:"WeakMap",proto:!0,real:!0,forced:o},{getOrInsert:function(e,t){return s(this,e)?a(this,e):(l(this,e,t),t)}})},52859:function(e,t,r){"use strict";r(36817)},88447:function(e,t,r){"use strict";var n=r(87549),i=r(24574).f,o=n("metadata"),a=Function.prototype;void 0===a[o]&&i(a,o,{value:null})},14720:function(e,t,r){"use strict";r(70924)},43227:function(e,t,r){"use strict";r(17429)},51716:function(e,t,r){"use strict";r(66316)},43089:function(e,t,r){"use strict";r(15964)("customMatcher")},43666:function(e,t,r){"use strict";r(44451)},55701:function(e,t,r){"use strict";r(77153)({target:"Symbol",stat:!0},{isRegisteredSymbol:r(56852)})},57982:function(e,t,r){"use strict";r(77153)({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:r(56852)})},3377:function(e,t,r){"use strict";r(77153)({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:r(53098)})},19532:function(e,t,r){"use strict";r(77153)({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:r(53098)})},93348:function(e,t,r){"use strict";r(15964)("matcher")},62527:function(e,t,r){"use strict";r(15964)("metadataKey")},62844:function(e,t,r){"use strict";r(15964)("metadata")},72142:function(e,t,r){"use strict";r(15964)("observable")},71146:function(e,t,r){"use strict";r(15964)("patternMatch")},54192:function(e,t,r){"use strict";r(15964)("replaceAll")},32584:function(e,t,r){"use strict";var n=r(77153),i=r(63309),o=r(71102).remove;n({target:"WeakMap",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=i(this),r=!0,n=0,a=arguments.length;n<a;n++)e=o(t,arguments[n]),r=r&&e;return!!r}})},49895:function(e,t,r){"use strict";var n=r(77153),i=r(63309),o=r(71102),a=o.get,s=o.has,l=o.set;n({target:"WeakMap",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,o=i(this);return s(o,e)?(r=a(o,e),"update"in t&&(r=t.update(r,e,o),l(o,e,r)),r):(n=t.insert(e,o),l(o,e,n),n)}})},11966:function(e,t,r){"use strict";var n=r(77153),i=r(71102);n({target:"WeakMap",stat:!0,forced:!0},{from:r(71763)(i.WeakMap,i.set,!0)})},74769:function(e,t,r){"use strict";r(53534)},9503:function(e,t,r){"use strict";r(79911)},91376:function(e,t,r){"use strict";var n=r(77153),i=r(71102);n({target:"WeakMap",stat:!0,forced:!0},{of:r(72786)(i.WeakMap,i.set,!0)})},68076:function(e,t,r){"use strict";r(77153)({target:"WeakMap",proto:!0,real:!0,forced:!0},{upsert:r(69602)})},87307:function(){},97015:function(e,t,r){"use strict";r(63413);var n=r(64035),i=r(78705),o=r(2979),a=r(66701);for(var s in n)o(i[s],s),a[s]=a.Array},71040:function(e,t,r){"use strict";var n=r(77153),i=r(78705),o=r(44898)(i.setInterval,!0);n({global:!0,bind:!0,forced:i.setInterval!==o},{setInterval:o})},35210:function(e,t,r){"use strict";var n=r(77153),i=r(78705),o=r(44898)(i.setTimeout,!0);n({global:!0,bind:!0,forced:i.setTimeout!==o},{setTimeout:o})},41573:function(e,t,r){"use strict";r(71040),r(35210)},9887:function(e,t,r){"use strict";r(63413),r(90554);var n=r(77153),i=r(78705),o=r(61),a=r(98982),s=r(27746),l=r(1781),u=r(83870),c=r(60165),d=r(90334),f=r(86999),p=r(10211),h=r(2979),m=r(8650),v=r(27233),g=r(1385),y=r(8804),b=r(84511),w=r(76698),x=r(2377),E=r(11506),k=r(28046),S=r(45174),_=r(55963),C=r(68435),O=r(74172),P=r(70540),T=r(948),A=r(17661),I=r(87549),N=r(33386),R=I("iterator"),j="URLSearchParams",M=j+"Iterator",D=v.set,L=v.getterFor(j),F=v.getterFor(M),B=o("fetch"),U=o("Request"),V=o("Headers"),z=U&&U.prototype,q=V&&V.prototype,H=i.TypeError,G=i.encodeURIComponent,$=String.fromCharCode,W=a("String","fromCodePoint"),Z=parseInt,Q=l("".charAt),Y=l([].join),K=l([].push),J=l("".replace),X=l([].shift),ee=l([].splice),te=l("".split),re=l("".slice),ne=l(/./.exec),ie=/\+/g,oe=/^[0-9a-f]+$/i,ae=function(e,t){var r=re(e,t,t+2);return ne(oe,r)?Z(r,16):NaN},se=function(e){for(var t=0,r=128;r>0&&0!==(e&r);r>>=1)t++;return t},le=function(e){var t=null,r=e.length;switch(r){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return null===t||t>1114111||t>=55296&&t<=57343||t<(r>3?65536:r>2?2048:r>1?128:0)?null:t},ue=function(e){for(var t=(e=J(e,ie," ")).length,r="",n=0;n<t;){var i=Q(e,n);if("%"===i){if("%"===Q(e,n+1)||n+3>t){r+="%",n++;continue}var o=ae(e,n+1);if(o!=o){r+=i,n++;continue}n+=2;var a=se(o);if(0===a)i=$(o);else{if(1===a||a>4){r+="�",n++;continue}for(var s=[o],l=1;l<a&&!(3+ ++n>t||"%"!==Q(e,n));){var u=ae(e,n+1);if(u!=u||u>191||u<128)break;
vendor: 4,846 bytes, line 172
172if(1===l){if(224===o&&u<160)break;if(237===o&&u>159)break;if(240===o&&u<144)break;if(244===o&&u>143)break}K(s,u),n+=2,l++}if(s.length!==a){r+="�";continue}var c=le(s);if(null===c){for(var d=0;d<a;d++)r+="�";n++;continue}i=W(c)}}r+=i,n++}return r},ce=/[!'()~]|%20/g,de={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},fe=function(e){return de[e]},pe=function(e){return J(G(e),ce,fe)},he=m(function(e,t){D(this,{type:M,target:L(e).entries,index:0,kind:t})},j,function(){var e=F(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,T(void 0,!0);var n=t[r];switch(e.kind){case"keys":return T(n.key,!1);case"values":return T(n.value,!1)}return T([n.key,n.value],!1)},!0),me=function(e){this.entries=[],this.url=null,void 0!==e&&(k(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Q(e,0)?re(e,1):e:S(e)))};me.prototype={type:j,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,l,u=this.entries,c=P(e);if(c)for(r=(t=O(e,c)).next;!(n=s(r,t)).done;){if(o=(i=O(E(n.value))).next,(a=s(o,i)).done||(l=s(o,i)).done||!s(o,i).done)throw new H("Expected sequence with length 2");K(u,{key:S(a.value),value:S(l.value)})}else for(var d in e)b(e,d)&&K(u,{key:d,value:S(e[d])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=te(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(r=te(t,"="),K(n,{key:ue(X(r)),value:ue(Y(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],K(r,pe(e.key)+"="+pe(e.value));return Y(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ve=function(){g(this,ge);var e=D(this,new me(arguments.length>0?arguments[0]:void 0));u||(this.size=e.entries.length)},ge=ve.prototype;if(p(ge,{append:function(e,t){var r=L(this);A(arguments.length,2),K(r.entries,{key:S(e),value:S(t)}),u||this.size++,r.updateURL()},delete:function(e){for(var t=L(this),r=A(arguments.length,1),n=t.entries,i=S(e),o=r<2?void 0:arguments[1],a=void 0===o?o:S(o),s=0;s<n.length;){var l=n[s];l.key!==i||void 0!==a&&l.value!==a?s++:ee(n,s,1)}u||(this.size=n.length),t.updateURL()},get:function(e){var t=L(this).entries;A(arguments.length,1);for(var r=S(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=L(this).entries;A(arguments.length,1);for(var r=S(e),n=[],i=0;i<t.length;i++)t[i].key===r&&K(n,t[i].value);return n},has:function(e){for(var t=L(this).entries,r=A(arguments.length,1),n=S(e),i=r<2?void 0:arguments[1],o=void 0===i?i:S(i),a=0;a<t.length;){var s=t[a++];if(s.key===n&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var r=L(this);A(arguments.length,2);for(var n,i=r.entries,o=!1,a=S(e),s=S(t),l=0;l<i.length;l++)(n=i[l]).key===a&&(o?ee(i,l--,1):(o=!0,n.value=s));o||K(i,{key:a,value:s}),u||(this.size=i.length),r.updateURL()},sort:function(){var e=L(this);N(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,r=L(this).entries,n=w(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new he(this,"keys")},values:function(){return new he(this,"values")},entries:function(){return new he(this,"entries")}},{enumerable:!0}),d(ge,R,ge.entries,{name:"entries"}),d(ge,"toString",function(){return L(this).serialize()},{enumerable:!0}),u&&f(ge,"size",{get:function(){return L(this).entries.length},configurable:!0,enumerable:!0}),h(ve,j),n({global:!0,constructor:!0,forced:!c},{URLSearchParams:ve}),!c&&y(V)){var ye=l(q.has),be=l(q.set),we=function(e){if(k(e)){var t,r=e.body;if(x(r)===j)return t=e.headers?new V(e.headers):new V,ye(t,"content-type")||be(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),_(e,{body:C(0,S(r)),headers:C(0,t)})}return e};if(y(B)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return B(e,arguments.length>1?we(arguments[1]):{})}}),y(U)){var xe=function(e){return g(this,z),new U(e,arguments.length>1?we(arguments[1]):{})};z.constructor=xe,xe.prototype=z,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:xe})}}e.exports={URLSearchParams:ve,getState:L}},47189:function(){},75538:function(){},77135:function(e,t,r){"use strict";r(9887)},49642:function(){},71860:function(e,t,r){"use strict";var n=r(77153),i=r(98982),o=r(458),a=r(17661),s=r(45174),l=r(60165),u=i("URL"),c=l&&o(function(){u.canParse()}),d=o(function(){return 1!==u.canParse.length});n({target:"URL",stat:!0,forced:!c||d},{canParse:function(e){var t=a(arguments.length,1),r=s(e),n=t<2||void 0===arguments[1]?void 0:s(arguments[1]);try{return!!new u(r,n)}catch(e){return!1}}})},75831:function(e,t,r){"use strict";r(73603);var n,i=r(77153),o=r(83870),a=r(60165),s=r(78705),l=r(76698),u=r(1781),c=r(90334),d=r(86999),f=r(1385),p=r(84511),h=r(151
vendor: 4,902 bytes, line 172
17279),m=r(83909),v=r(57943),g=r(96823).codeAt,y=r(89673),b=r(45174),w=r(2979),x=r(17661),E=r(9887),k=r(27233),S=k.set,_=k.getterFor("URL"),C=E.URLSearchParams,O=E.getState,P=s.URL,T=s.TypeError,A=s.encodeURIComponent,I=s.parseInt,N=Math.floor,R=Math.pow,j=u("".charAt),M=u(/./.exec),D=u([].join),L=u(1.1.toString),F=u([].pop),B=u([].push),U=u("".replace),V=u([].shift),z=u("".split),q=u("".slice),H=u("".toLowerCase),G=u([].unshift),$="Invalid scheme",W="Invalid host",Z="Invalid port",Q=/[a-z]/i,Y=/[\d+\-.a-z]/i,K=/\d/,J=/^0x/i,X=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,re=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,ie=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ae=/[\t\n\r]/g,se=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)G(t,e%256),e=N(e/256);return D(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r?n:t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=L(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},le={},ue=h({},le,{" ":1,'"':1,"#":1,"<":1,">":1}),ce=h({},ue,{"'":1}),de=h({},le,{" ":1,'"':1,"<":1,">":1,"`":1}),fe=h({},de,{"#":1,"?":1,"{":1,"}":1,"^":1}),pe=h({},fe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),he=function(e,t){var r=g(e,0);return r>=32&&r<127&&!p(t,e)?e:"'"===e&&p(t,e)?"%27":A(e)},me={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ve=function(e,t){var r;return 2===e.length&&M(Q,j(e,0))&&(":"===(r=j(e,1))||!t&&"|"===r)},ge=function(e){var t;return e.length>1&&ve(q(e,0,2))&&(2===e.length||"/"===(t=j(e,2))||"\\"===t||"?"===t||"#"===t)},ye=function(e){return"."===e||"%2e"===H(e)},be=function(e){return".."===(e=H(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},we={},xe={},Ee={},ke={},Se={},_e={},Ce={},Oe={},Pe={},Te={},Ae={},Ie={},Ne={},Re={},je={},Me={},De={},Le={},Fe={},Be={},Ue={},Ve=function(e,t,r){var n,i,o,a=b(e);if(t){if(i=this.parse(a))throw new T(i);this.searchParams=null}else{if(void 0!==r&&(n=new Ve(r,!0)),i=this.parse(a,null,n))throw new T(i);(o=O(new C)).bindURL(this),this.searchParams=o}};Ve.prototype={type:"URL",parse:function(e,t,r){var i,o,a,s,l=this,u=t||we,c=0,d="",f=!1,h=!1,g=!1;for(e=b(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=U(e,ie,""),e=U(e,oe,"$1")),e=U(e,ae,""),i=m(e);c<=i.length;){switch(o=i[c],u){case we:if(!o||!M(Q,o)){if(t)return $;u=Ee;continue}d+=H(o),u=xe;break;case xe:if(o&&M(Y,o))d+=H(o);else{if(":"!==o){if(t)return $;d="",u=Ee,c=0;continue}if(t&&(l.isSpecial()!==p(me,d)||"file"===d&&(l.includesCredentials()||null!==l.port)||"file"===l.scheme&&""===l.host))return;if(l.scheme=d,t)return void(l.isSpecial()&&me[l.scheme]===l.port&&(l.port=null));d="","file"===l.scheme?u=Re:l.isSpecial()&&r&&r.scheme===l.scheme?u=ke:l.isSpecial()?u=Oe:"/"===i[c+1]?(u=Se,c++):(l.cannotBeABaseURL=!0,B(l.path,""),u=Fe)}break;case Ee:if(!r||r.cannotBeABaseURL&&"#"!==o)return $;if(r.cannotBeABaseURL&&"#"===o){l.scheme=r.scheme,l.path=v(r.path),l.query=r.query,l.fragment="",l.cannotBeABaseURL=!0,u=Ue;break}u="file"===r.scheme?Re:_e;continue;case ke:if("/"!==o||"/"!==i[c+1]){u=_e;continue}u=Pe,c++;break;case Se:if("/"===o){u=Te;break}u=Le;continue;case _e:if(l.scheme=r.scheme,o===n)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=v(r.path),l.query=r.query;else if("/"===o||"\\"===o&&l.isSpecial())u=Ce;else if("?"===o)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=v(r.path),l.query="",u=Be;else{if("#"!==o){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=v(r.path),l.path.length&&l.path.length--,u=Le;continue}l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=v(r.path),l.query=r.query,l.fragment="",u=Ue}break;case Ce:if(!l.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,u=Le;continue}u=Te}else u=Pe;break;case Oe:if(u=Pe,"/"!==o||"/"!==i[c+1])continue;c++;break;case Pe:if("/"!==o&&"\\"!==o){u=Te;continue}break;case Te:if("@"===o){f&&(d="%40"+d),f=!0,a=m(d);for(var y=0;y<a.length;y++){var w=a[y];if(":"!==w||g){var x=he(w,pe);g?l.password+=x:l.username+=x}else g=!0}d=""}else if(o===n||"/"===o||"?"===o||"#"===o||"\\"===o&&l.isSpecial()){if(f&&""===d)return"Invalid authority";c-=m(d).length+1,d="",u=Ae}else d+=o;break;case Ae:case Ie:if(t&&"file"===l.scheme){u=Me;continue}if(":"!==o||h){if(o===n||"/"===o||"?"===o||"#"===o||"\\"===o&&l.isSpecial()){if(l.isSpecial()&&""===d)return W;if(t&&""===d&&(l.includesCredentials()||null!==l.port))return;if(s=l.parseHost(d))return s;if(d="",u=De,t)return;continue}"["===o?h=!0:"]"===o&&(h=!1),d+=o}else{if(""===d)return W;if(t===Ie)return;if(s=l.parseHost(d))return s;d="",u=Ne}break;
vendor: 5,464 bytes, line 172
172case Ne:if(!M(K,o)){if(o===n||"/"===o||"?"===o||"#"===o||"\\"===o&&l.isSpecial()||t){if(""!==d){var E=I(d,10);if(E>65535)return Z;l.port=l.isSpecial()&&E===me[l.scheme]?null:E,d=""}if(t)return;u=De;continue}return Z}d+=o;break;case Re:if(l.scheme="file",l.host="","/"===o||"\\"===o)u=je;else{if(!r||"file"!==r.scheme){u=Le;continue}switch(o){case n:l.host=r.host,l.path=v(r.path),l.query=r.query;break;case"?":l.host=r.host,l.path=v(r.path),l.query="",u=Be;break;case"#":l.host=r.host,l.path=v(r.path),l.query=r.query,l.fragment="",u=Ue;break;default:l.host=r.host,ge(D(v(i,c),""))||(l.path=v(r.path),l.shortenPath()),u=Le;continue}}break;case je:if("/"===o||"\\"===o){u=Me;break}r&&"file"===r.scheme&&(l.host=r.host,!ge(D(v(i,c),""))&&ve(r.path[0],!0)&&B(l.path,r.path[0])),u=Le;continue;case Me:if(o===n||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&ve(d))u=Le;else if(""===d){if(l.host="",t)return;u=De}else{if(s=l.parseHost(d))return s;if("localhost"===l.host&&(l.host=""),t)return;d="",u=De}continue}d+=o;break;case De:if(l.isSpecial()){if(u=Le,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==n&&(u=Le,"/"!==o))continue}else l.fragment="",u=Ue;else l.query="",u=Be;break;case Le:if(o===n||"/"===o||"\\"===o&&l.isSpecial()||!t&&("?"===o||"#"===o)){if(be(d)?(l.shortenPath(),"/"===o||"\\"===o&&l.isSpecial()||B(l.path,"")):ye(d)?"/"===o||"\\"===o&&l.isSpecial()||B(l.path,""):("file"===l.scheme&&!l.path.length&&ve(d)&&(null!==l.host&&""!==l.host&&(l.host=""),d=j(d,0)+":"),B(l.path,d)),d="","file"===l.scheme&&(o===n||"?"===o||"#"===o))for(;l.path.length>1&&""===l.path[0];)V(l.path);"?"===o?(l.query="",u=Be):"#"===o&&(l.fragment="",u=Ue)}else d+=he(o,fe);break;case Fe:"?"===o?(l.query="",u=Be):"#"===o?(l.fragment="",u=Ue):o!==n&&(l.path[0]+=he(o,le));break;case Be:t||"#"!==o?o!==n&&(l.query+=he(o,l.isSpecial()?ce:ue)):(l.fragment="",u=Ue);break;case Ue:o!==n&&(l.fragment+=he(o,de))}c++}},parseHost:function(e){var t,r,n;if("["===j(e,0)){if("]"!==j(e,e.length-1))return W;if(t=function(e){var t,r,n,i,o,a,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,d=0,f=function(){return j(e,d)};if(":"===f()){if(":"!==j(e,1))return;d+=2,c=++u}for(;f();){if(8===u)return;if(":"!==f()){for(t=r=0;r<4&&M(te,f());)t=16*t+I(f(),16),d++,r++;if("."===f()){if(0===r)return;if(d-=r,u>6)return;for(n=0;f();){if(i=null,n>0){if(!("."===f()&&n<4))return;d++}if(!M(K,f()))return;for(;M(K,f());){if(o=I(f(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}l[u]=256*l[u]+i,2!==++n&&4!==n||u++}if(4!==n)return;break}if(":"===f()){if(d++,!f())return}else if(f())return;l[u++]=t}else{if(null!==c)return;d++,c=++u}}if(null!==c)for(a=u-c,u=7;0!==u&&a>0;)s=l[u],l[u--]=l[c+a-1],l[c+--a]=s;else if(8!==u)return;return l}(q(e,1,-1)),!t)return W;this.host=t}else if(this.isSpecial()){if(e=y(e),M(re,e))return W;if(function(e){var t,r,n=z(e,".");if(""===n[n.length-1]){if(1===n.length)return!1;n.length--}return t=n[n.length-1],!!M(ee,t)||!!M(J,t)&&(""===(r=q(t,2))||!!M(te,r))}(e)){if(t=function(e){var t,r,n,i,o,a,s,l=z(e,".");if(l.length&&""===l[l.length-1]&&l.length--,(t=l.length)>4)return null;for(r=[],n=0;n<t;n++){if(""===(i=l[n]))return null;if(o=10,i.length>1&&"0"===j(i,0)&&(o=M(J,i)?16:8,i=q(i,8===o?1:2)),""===i)a=0;else{if(!M(10===o?ee:8===o?X:te,i))return null;a=I(i,o)}B(r,a)}for(n=0;n<t;n++)if(a=r[n],n===t-1){if(a>=R(256,5-t))return null}else if(a>255)return null;for(s=F(r),n=0;n<r.length;n++)s+=r[n]*R(256,3-n);return s}(e),null===t)return W;this.host=t}else this.host=e}else{if(M(ne,e))return W;for(t="",r=m(e),n=0;n<r.length;n++)t+=he(r[n],le);this.host=t}},cannotHaveUsernamePasswordPort:function(){return null===this.host||""===this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return p(me,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&ve(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,u=t+":";return null!==i?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=se(i),null!==o&&(u+=":"+o)):"file"===t&&(u+="//"),null===i&&!e.cannotBeABaseURL&&a.length>1&&""===a[0]&&(u+="/."),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+D(a,"/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},setHref:function(e){var t=this.parse(e);if(t)throw new T(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new ze(this.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+se(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",we)},getUsername:function(){return this.username},setUsername:function(e){var t=m(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=he(t[r],pe)}},getPassword:function(){return this.password},setPassword:function(e){var t=m(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=he(t[r],pe)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?se(e):se(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ae)},getHostname:function(){var e=this.host;return null===e?"":se(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ie)},getPort:function(){var e=this.port;
vendor: 20,131 bytes, line 172
172return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=b(e))?this.port=null:this.parse(e,Ne))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+D(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,De))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=b(e))?this.query=null:("?"===j(e,0)&&(e=q(e,1)),this.query="",this.parse(e,Be)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=b(e))?("#"===j(e,0)&&(e=q(e,1)),this.fragment="",this.parse(e,Ue)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var ze=function(e){var t=f(this,qe),r=x(arguments.length,1)>1?arguments[1]:void 0,n=S(t,new Ve(e,!1,r));o||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},qe=ze.prototype,He=function(e,t){return{get:function(){return _(this)[e]()},set:t&&function(e){return _(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(d(qe,"href",He("serialize","setHref")),d(qe,"origin",He("getOrigin")),d(qe,"protocol",He("getProtocol","setProtocol")),d(qe,"username",He("getUsername","setUsername")),d(qe,"password",He("getPassword","setPassword")),d(qe,"host",He("getHost","setHost")),d(qe,"hostname",He("getHostname","setHostname")),d(qe,"port",He("getPort","setPort")),d(qe,"pathname",He("getPathname","setPathname")),d(qe,"search",He("getSearch","setSearch")),d(qe,"searchParams",He("getSearchParams")),d(qe,"hash",He("getHash","setHash"))),c(qe,"toJSON",function(){return _(this).serialize()},{enumerable:!0}),c(qe,"toString",function(){return _(this).serialize()},{enumerable:!0}),P){var Ge=P.createObjectURL,$e=P.revokeObjectURL;Ge&&c(ze,"createObjectURL",l(Ge,P)),$e&&c(ze,"revokeObjectURL",l($e,P))}w(ze,"URL"),i({global:!0,constructor:!0,forced:!a,sham:!o},{URL:ze})},85643:function(e,t,r){"use strict";r(75831)},12908:function(e,t,r){"use strict";var n=r(77153),i=r(98982),o=r(17661),a=r(45174),s=r(60165),l=i("URL");n({target:"URL",stat:!0,forced:!s},{parse:function(e){var t=o(arguments.length,1),r=a(e),n=t<2||void 0===arguments[1]?void 0:a(arguments[1]);try{return new l(r,n)}catch(e){return null}}})},82588:function(){},95238:function(e,t,r){"use strict";var n=r(74062);e.exports=n},52457:function(e,t,r){"use strict";var n=r(91033);e.exports=n},58505:function(e,t,r){"use strict";var n=r(55214);e.exports=n},56098:function(e,t,r){"use strict";var n=r(46075);e.exports=n},61824:function(e,t,r){"use strict";var n=r(10755);e.exports=n},26011:function(e,t,r){"use strict";var n=r(7456);e.exports=n},33219:function(e,t,r){"use strict";var n=r(73296);e.exports=n},17474:function(e,t,r){"use strict";var n=r(75359);e.exports=n},46513:function(e,t,r){"use strict";var n=r(34975);e.exports=n},40497:function(e,t,r){"use strict";var n=r(23966);e.exports=n},48523:function(e,t,r){"use strict";var n=r(25680);e.exports=n},25329:function(e,t,r){"use strict";var n=r(2377),i=r(84511),o=r(59565),a=r(52457);r(87307);var s=Array.prototype,l={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===s||o(s,e)&&t===s.forEach||i(l,n(e))?a:t}},57686:function(e,t,r){"use strict";var n=r(76707);e.exports=n},76469:function(e,t,r){"use strict";var n=r(42225);e.exports=n},90576:function(e,t,r){"use strict";r(97015);var n=r(2377),i=r(84511),o=r(59565),a=r(58505),s=Array.prototype,l={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.keys;return e===s||o(s,e)&&t===s.keys||i(l,n(e))?a:t}},76905:function(e,t,r){"use strict";var n=r(84361);e.exports=n},43325:function(e,t,r){"use strict";var n=r(4443);e.exports=n},49375:function(e,t,r){"use strict";var n=r(50198);e.exports=n},29017:function(e,t,r){"use strict";var n=r(12526);e.exports=n},98498:function(e,t,r){"use strict";var n=r(51285);e.exports=n},439:function(e,t,r){"use strict";var n=r(7637);e.exports=n},60:function(e,t,r){"use strict";var n=r(92087);e.exports=n},40092:function(e,t,r){"use strict";var n=r(92816);e.exports=n},10257:function(e,t,r){"use strict";var n=r(54826);e.exports=n},60056:function(e,t,r){"use strict";var n=r(89116);e.exports=n},98311:function(e,t,r){"use strict";var n=r(49544);e.exports=n},27405:function(e,t,r){"use strict";var n=r(68430);e.exports=n},64191:function(e,t,r){"use strict";var n=r(49248);e.exports=n},11138:function(e,t,r){"use strict";var n=r(64267);e.exports=n},66582:function(e,t,r){"use strict";r(41573);var n=r(8613);e.exports=n.setTimeout},99230:function(e,t,r){"use strict";var n=r(14398);r(97015),e.exports=n},14126:function(e,t,r){"use strict";var n=r(98770);r(97015),e.exports=n},50741:function(e,t,r){"use strict";var n=r(19316);r(97015),e.exports=n},73082:function(e,t,r){"use strict";var n=r(20822);e.exports=n},22652:function(e,t,r){"use strict";var n=r(23012);r(97015),e.exports=n},19316:function(e,t,r){"use strict";r(77135),r(47189),r(75538),r(49642);var n=r(8613);e.exports=n.URLSearchParams},20822:function(e,t,r){"use strict";r(19316),r(85643),r(71860),r(12908),r(82588);var n=r(8613);e.exports=n.URL},61575:function(e,t,r){"use strict";var n=r(55893),i=r(85545),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a function")}},26188:function(e,t,r){"use strict";var n=r(63843).has;e.exports=function(e){return n(e),e}},99272:function(e,t,r){"use strict";var n=r(60545),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},77085:function(e,t,r){"use strict";var n=r(17276).has;e.exports=function(e){return n(e),e}},49408:function(e,t,r){"use strict";var n=r(67936),i=r(9464),o=r(27144).f,a=n("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},49064:function(e,t,r){"use strict";var n=r(2075),i=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new i("Incorrect invocation")}},99972:function(e,t,r){"use strict";var n=r(15287),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not an object")}},22971:function(e,t,r){"use strict";var n=r(79405),i=r(29961),o=r(19969),a=function(e){return function(t,r,a){var s=n(t),l=o(s);if(0===l)return!e&&-1;var u,c=i(a,l);if(e&&r!=r){for(;l>c;)if((u=s[c++])!=u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===r)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},58576:function(e,t,r){"use strict";var n=r(3877),i=r(65289),o=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!a(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},30039:function(e,t,r){"use strict";var n=r(46406);e.exports=n([].slice)},30608:function(e,t,r){"use strict";var n=r(99972),i=r(36335);e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){i(e,"throw",t)}}},63048:function(e,t,r){"use strict";var n=r(46406),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},85683:function(e,t,r){"use strict";var n=r(46623),i=r(55893),o=r(63048),a=r(67936)("toStringTag"),s=Object,l="Arguments"===o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?r:l?o(t):"Object"===(n=o(t))&&i(t.callee)?"Arguments":n}},30779:function(e,t,r){"use strict";var n=r(4130),i=r(6627),o=r(20010),a=r(27144);e.exports=function(e,t,r){for(var s=i(t),l=a.f,u=o.f,c=0;c<s.length;c++){var d=s[c];n(e,d)||r&&n(r,d)||l(e,d,u(t,d))}}},29494:function(e,t,r){"use strict";var n=r(5306);e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},64160:function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},89251:function(e,t,r){"use strict";var n=r(3877),i=r(27144),o=r(49637);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},49637:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},76968:function(e,t,r){"use strict";var n=r(3877),i=r(27144),o=r(49637);e.exports=function(e,t,r){n?i.f(e,t,o(0,r)):e[t]=r}},15023:function(e,t,r){"use strict";var n=r(73911),i=r(27144);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),i.f(e,t,r)}},67205:function(e,t,r){"use strict";var n=r(55893),i=r(27144),o=r(73911),a=r(13630);e.exports=function(e,t,r,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(n(r)&&o(r,u,s),s.global)l?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},89990:function(e,t,r){"use strict";var n=r(67205);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},13630:function(e,t,r){"use strict";var n=r(43460),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},3877:function(e,t,r){"use strict";var n=r(5306);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},19800:function(e,t,r){"use strict";var n=r(43460),i=r(15287),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},59060:function(e){"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw new t("Maximum allowed index exceeded");return e}},16968:function(e){"use strict";e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},14286:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},64779:function(e,t,r){"use strict";var n=r(43460).navigator,i=n&&n.userAgent;e.exports=i?String(i):""},51111:function(e,t,r){"use strict";var n,i,o=r(43460),a=r(64779),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(i=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=+n[1]),e.exports=i},93939:function(e,t,r){"use strict";var n=r(46406),i=Error,o=n("".replace),a=String(new i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!i.prepareStackTrace)for(;t--;)e=o(e,s,"");return e}},92390:function(e,t,r){"use strict";var n=r(43460),i=r(20010).f,o=r(89251),a=r(67205),s=r(13630),l=r(30779),u=r(75031);e.exports=function(e,t){var r,c,d,f,p,h=e.target,m=e.global,v=e.stat;if(r=m?n:v?n[h]||s(h,{}):n[h]&&n[h].prototype)for(c in t){if(f=t[c],d=e.dontCallGetSet?(p=i(r,c))&&p.value:r[c],!u(m?c:h+(v?".":"#")+c,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(r,c,f,e)}}},5306:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},56415:function(e,t,r){"use strict";var n=r(67219),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(o):function(){return a.apply(o,arguments)})},45898:function(e,t,r){"use strict";var n=r(38717),i=r(61575),o=r(67219),a=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},67219:function(e,t,r){"use strict";var n=r(5306);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},11550:function(e,t,r){"use strict";var n=r(67219),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},9656:function(e,t,r){"use strict";var n=r(3877),i=r(4130),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},28692:function(e,t,r){"use strict";var n=r(46406),i=r(61575);e.exports=function(e,t,r){try{return n(i(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},38717:function(e,t,r){"use strict";var n=r(63048),i=r(46406);e.exports=function(e){if("Function"===n(e))return i(e)}},46406:function(e,t,r){"use strict";var n=r(67219),i=Function.prototype,o=i.call,a=n&&i.bind.bind(o,o);e.exports=n?a:function(e){return function(){return o.apply(e,arguments)}}},51570:function(e,t,r){"use strict";var n=r(43460),i=r(55893);e.exports=function(e,t){return arguments.length<2?(r=n[e],i(r)?r:void 0):n[e]&&n[e][t];var r}},10066:function(e){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},39832:function(e,t,r){"use strict";var n=r(11550),i=r(99972),o=r(10066),a=r(85536);e.exports=function(e,t){t&&"string"==typeof e||i(e);var r=a(e);return o(i(void 0!==r?n(r,e):e))}},85536:function(e,t,r){"use strict";var n=r(85683),i=r(56628),o=r(87707),a=r(59921),s=r(67936)("iterator");e.exports=function(e){if(!o(e))return i(e,s)||i(e,"@@iterator")||a[n(e)]}},43159:function(e,t,r){"use strict";var n=r(11550),i=r(61575),o=r(99972),a=r(85545),s=r(85536),l=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(i(r))return o(n(r,e));throw new l(a(e)+" is not iterable")}},56628:function(e,t,r){"use strict";var n=r(61575),i=r(87707);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},30460:function(e,t,r){"use strict";var n=r(61575),i=r(99972),o=r(11550),a=r(15930),s=r(10066),l="Invalid size",u=RangeError,c=TypeError,d=Math.max,f=function(e,t){this.set=e,this.size=d(t,0),this.has=n(e.has),this.keys=n(e.keys)};f.prototype={getIterator:function(){return s(i(o(this.keys,this.set)))},includes:function(e){return o(this.has,this.set,e)}},e.exports=function(e){i(e);var t=+e.size;if(t!=t)throw new c(l);var r=a(t);if(r<0)throw new u(l);return new f(e,r)}},43460:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4130:function(e,t,r){"use strict";var n=r(46406),i=r(85864),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},63421:function(e){"use strict";e.exports={}},12343:function(e,t,r){"use strict";var n=r(51570);e.exports=n("document","documentElement")},33075:function(e,t,r){"use strict";var n=r(3877),i=r(5306),o=r(19800);e.exports=!n&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},25366:function(e,t,r){"use strict";var n=r(46406),i=r(5306),o=r(63048),a=Object,s=n("".split);e.exports=i(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?s(e,""):a(e)}:a},91074:function(e,t,r){"use strict";var n=r(55893),i=r(15287),o=r(71126);e.exports=function(e,t,r){var a,s;return o&&n(a=t.constructor)&&a!==r&&i(s=a.prototype)&&s!==r.prototype&&o(e,s),e}},85088:function(e,t,r){"use strict";var n=r(46406),i=r(55893),o=r(64830),a=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},9930:function(e,t,r){"use strict";var n,i,o,a=r(45585),s=r(43460),l=r(15287),u=r(89251),c=r(4130),d=r(64830),f=r(50139),p=r(63421),h="Object already initialized",m=s.TypeError,v=s.WeakMap;if(a||d.state){var g=d.state||(d.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new m(h);return t.facade=e,g.set(e,t),t},i=function(e){return g.get(e)||{}},o=function(e){return g.has(e)}}else{var y=f("state");p[y]=!0,n=function(e,t){if(c(e,y))throw new m(h);return t.facade=e,u(e,y,t),t},i=function(e){return c(e,y)?e[y]:{}},o=function(e){return c(e,y)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=i(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return r}}}},52943:function(e,t,r){"use strict";var n=r(67936),i=r(59921),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},65289:function(e,t,r){"use strict";var n=r(63048);e.exports=Array.isArray||function(e){return"Array"===n(e)}},55893:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},75031:function(e,t,r){"use strict";var n=r(5306),i=r(55893),o=/#|\.prototype\./,a=function(e,t){var r=l[s(e)];return r===c||r!==u&&(i(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},47456:function(e,t,r){"use strict";var n=r(85683),i=r(4130),o=r(87707),a=r(67936),s=r(59921),l=a("iterator"),u=Object;e.exports=function(e){if(o(e))return!1;var t=u(e);return void 0!==t[l]||"@@iterator"in t||i(s,n(t))}},87707:function(e){"use strict";e.exports=function(e){return null==e}},15287:function(e,t,r){"use strict";var n=r(55893);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},60545:function(e,t,r){"use strict";var n=r(15287);e.exports=function(e){return n(e)||null===e}},99:function(e){"use strict";e.exports=!1},85956:function(e,t,r){"use strict";var n=r(15287),i=r(9930).get;e.exports=function(e){if(!n(e))return!1;var t=i(e);return!!t&&"RawJSON"===t.type}},103:function(e,t,r){"use strict";var n=r(51570),i=r(55893),o=r(2075),a=r(90345),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&o(t.prototype,s(e))}},82557:function(e,t,r){"use strict";var n=r(11550);e.exports=function(e,t,r){for(var i,o,a=r?e:e.iterator,s=e.next;!(i=n(s,a)).done;)if(void 0!==(o=t(i.value)))return o}},82003:function(e,t,r){"use strict";var n=r(45898),i=r(11550),o=r(99972),a=r(85545),s=r(52943),l=r(19969),u=r(2075),c=r(43159),d=r(85536),f=r(36335),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,r){var v,g,y,b,w,x,E,k=r&&r.that,S=!(!r||!r.AS_ENTRIES),_=!(!r||!r.IS_RECORD),C=!(!r||!r.IS_ITERATOR),O=!(!r||!r.INTERRUPTED),P=n(t,k),T=function(e){var t=v;return v=void 0,t&&f(t,"normal"),new h(!0,e)},A=function(e){return S?(o(e),O?P(e[0],e[1],T):P(e[0],e[1])):O?P(e,T):P(e)};if(_)v=e.iterator;else if(C)v=e;else{if(!(g=d(e)))throw new p(a(e)+" is not iterable");if(s(g)){for(y=0,b=l(e);b>y;y++)if((w=A(e[y]))&&u(m,w))return w;return new h(!1)}v=c(e,g)}for(x=_?e.next:v.next;!(E=i(x,v)).done;){var I=E.value;try{w=A(I)}catch(e){if(!v)throw e;f(v,"throw",e)}
172if("object"==typeof w&&w&&u(m,w))return w}return new h(!1)}},29797:function(e,t,r){"use strict";var n=r(36335);e.exports=function(e,t,r){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{r=n(e[i].iterator,t,r)}catch(e){t="throw",r=e}if("throw"===t)throw r;return r}},36335:function(e,t,r){"use strict";var n=r(11550),i=r(99972),o=r(56628);e.exports=function(e,t,r){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw r;if(s)throw a;return i(a),r}},65299:function(e,t,r){"use strict";var n=r(11550),i=r(9464),o=r(89251),a=r(89990),s=r(67936),l=r(9930),u=r(56628),c=r(4760).IteratorPrototype,d=r(64160),f=r(36335),p=r(29797),h=s("toStringTag"),m="IteratorHelper",v="WrapForValidIterator",g="normal",y="throw",b=l.set,w=function(e){var t=l.getterFor(e?v:m);return a(i(c),{next:function(){var r=t(this);if(e)return r.nextHandler();if(r.done)return d(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:d(n,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),i=r.iterator,o=r.done;if(r.done=!0,e){var a=u(i,"return");return a?n(a,i):d(void 0,!0)}if(o)return d(void 0,!0);if(r.inner)try{f(r.inner.iterator,g)}catch(e){return f(i,y,e)}if(r.openIters)try{p(r.openIters,g)}catch(e){if(i)return f(i,y,e);throw e}return i&&f(i,g),d(void 0,!0)}})},x=w(!0),E=w(!1);o(E,h,"Iterator Helper"),e.exports=function(e,t,r){var n=function(n,i){i?(i.iterator=n.iterator,i.next=n.next):i=n,i.type=t?v:m,i.returnHandlerResult=!!r,i.nextHandler=e,i.counter=0,i.done=!1,b(this,i)};return n.prototype=t?x:E,n}},46395:function(e){"use strict";e.exports=function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(e){return!0}}},93478:function(e,t,r){"use strict";var n=r(43460);e.exports=function(e,t){var r=n.Iterator,i=r&&r.prototype,o=i&&i[e],a=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){a=!0}},-1)}catch(e){e instanceof t||(a=!1)}if(!a)return o}},4760:function(e,t,r){"use strict";var n,i,o,a=r(5306),s=r(55893),l=r(15287),u=r(9464),c=r(96900),d=r(67205),f=r(67936),p=r(99),h=f("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(i=c(c(o)))!==Object.prototype&&(n=i):m=!0),!l(n)||a(function(){var e={};return n[h].call(e)!==e})?n={}:p&&(n=u(n)),s(n[h])||d(n,h,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},59921:function(e){"use strict";e.exports={}},19969:function(e,t,r){"use strict";var n=r(9099);e.exports=function(e){return n(e.length)}},73911:function(e,t,r){"use strict";var n=r(46406),i=r(5306),o=r(55893),a=r(4130),s=r(3877),l=r(9656).CONFIGURABLE,u=r(85088),c=r(9930),d=c.enforce,f=c.get,p=String,h=Object.defineProperty,m=n("".slice),v=n("".replace),g=n([].join),y=s&&!i(function(){return 8!==h(function(){},"length",{value:8}).length}),b=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===m(p(t),0,7)&&(t="["+v(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),y&&r&&a(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return a(n,"source")||(n.source=g(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w(function(){return o(this)&&f(this).source||u(this)},"toString")},63843:function(e,t,r){"use strict";var n=r(46406),i=Map.prototype;e.exports={Map:Map,set:n(i.set),get:n(i.get),has:n(i.has),remove:n(i.delete),proto:i}},54793:function(e,t,r){"use strict";var n=r(46406),i=r(82557),o=r(63843),a=o.Map,s=o.proto,l=n(s.forEach),u=n(s.entries),c=u(new a).next;e.exports=function(e,t,r){return r?i({iterator:u(e),next:c},function(e){return t(e[1],e[0])}):l(e,t)}},61402:function(e){"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},14041:function(e,t,r){"use strict";var n=r(5306);e.exports=!n(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})},93819:function(e,t,r){"use strict";var n=r(42755);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},9464:function(e,t,r){"use strict";
vendor: 7,660 bytes, line 172
172var n,i=r(99972),o=r(33872),a=r(14286),s=r(63421),l=r(12343),u=r(19800),c=r(50139),d="prototype",f="script",p=c("IE_PROTO"),h=function(){},m=function(e){return"<"+f+">"+e+"</"+f+">"},v=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;g="undefined"!=typeof document?document.domain&&n?v(n):(t=u("iframe"),r="java"+f+":",t.style.display="none",l.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):v(n);for(var i=a.length;i--;)delete g[d][a[i]];return g()};s[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(h[d]=i(e),r=new h,h[d]=null,r[p]=e):r=g(),void 0===t?r:o.f(r,t)}},33872:function(e,t,r){"use strict";var n=r(3877),i=r(27475),o=r(27144),a=r(99972),s=r(79405),l=r(51008);t.f=n&&!i?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),i=l(t),u=i.length,c=0;u>c;)o.f(e,r=i[c++],n[r]);return e}},27144:function(e,t,r){"use strict";var n=r(3877),i=r(33075),o=r(27475),a=r(99972),s=r(83662),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",p="writable";t.f=n?o?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var n=c(e,t);n&&n[p]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:d in r?r[d]:n[d],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(a(e),t=s(t),a(r),i)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},20010:function(e,t,r){"use strict";var n=r(3877),i=r(11550),o=r(71940),a=r(49637),s=r(79405),l=r(83662),u=r(4130),c=r(33075),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=s(e),t=l(t),c)try{return d(e,t)}catch(e){}if(u(e,t))return a(!i(o.f,e,t),e[t])}},17397:function(e,t,r){"use strict";var n=r(65079),i=r(14286).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},76855:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},96900:function(e,t,r){"use strict";var n=r(4130),i=r(55893),o=r(85864),a=r(50139),s=r(29494),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=o(e);if(n(t,l))return t[l];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof u?c:null}},2075:function(e,t,r){"use strict";var n=r(46406);e.exports=n({}.isPrototypeOf)},65079:function(e,t,r){"use strict";var n=r(46406),i=r(4130),o=r(79405),a=r(22971).indexOf,s=r(63421),l=n([].push);e.exports=function(e,t){var r,n=o(e),u=0,c=[];for(r in n)!i(s,r)&&i(n,r)&&l(c,r);for(;t.length>u;)i(n,r=t[u++])&&(~a(c,r)||l(c,r));return c}},51008:function(e,t,r){"use strict";var n=r(65079),i=r(14286);e.exports=Object.keys||function(e){return n(e,i)}},71940:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},71126:function(e,t,r){"use strict";var n=r(28692),i=r(15287),o=r(46762),a=r(99272);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),a(n),i(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},51253:function(e,t,r){"use strict";var n=r(11550),i=r(55893),o=r(15287),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&i(r=e.toString)&&!o(s=n(r,e)))return s;if(i(r=e.valueOf)&&!o(s=n(r,e)))return s;if("string"!==t&&i(r=e.toString)&&!o(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},6627:function(e,t,r){"use strict";var n=r(51570),i=r(46406),o=r(17397),a=r(76855),s=r(99972),l=i([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(s(e)),r=a.f;return r?l(t,r(e)):t}},85718:function(e,t,r){"use strict";var n=r(46406),i=r(4130),o=SyntaxError,a=parseInt,s=String.fromCharCode,l=n("".charAt),u=n("".slice),c=n(/./.exec),d={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},f=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var r=!0,n="";t<e.length;){var h=l(e,t);if("\\"===h){var m=u(e,t,t+2);if(i(d,m))n+=d[m],t+=2;else{if("\\u"!==m)throw new o('Unknown escape sequence: "'+m+'"');var v=u(e,t+=2,t+4);if(!c(f,v))throw new o("Bad Unicode escape at: "+t);n+=s(a(v,16)),t+=4}}else{if('"'===h){r=!1,t++;break}if(c(p,h))throw new o("Bad control character in string literal at: "+t);n+=h,t++}}if(r)throw new o("Unterminated string at: "+t);return{value:n,end:t}}},46762:function(e,t,r){"use strict";var n=r(87707),i=TypeError;e.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},29915:function(e){"use strict";e.exports=function(e,t){return e===t||e!=e&&t!=t}},36254:function(e,t,r){"use strict";var n=r(17276),i=r(90051),o=n.Set,a=n.add;e.exports=function(e){var t=new o;return i(e,function(e){a(t,e)}),t}},36594:function(e,t,r){"use strict";var n=r(77085),i=r(17276),o=r(36254),a=r(92509),s=r(30460),l=r(90051),u=r(82557),c=i.has,d=i.remove;e.exports=function(e){var t=n(this),r=s(e),i=o(t);return a(i)<=r.size?l(i,function(e){r.includes(e)&&d(i,e)}):u(r.getIterator(),function(e){c(i,e)&&d(i,e)}),i}},17276:function(e,t,r){"use strict";var n=r(46406),i=Set.prototype;e.exports={Set:Set,add:n(i.add),has:n(i.has),remove:n(i.delete),proto:i}},72698:function(e,t,r){"use strict";var n=r(77085),i=r(17276),o=r(92509),a=r(30460),s=r(90051),l=r(82557),u=i.Set,c=i.add,d=i.has;e.exports=function(e){var t=n(this),r=a(e),i=new u;return o(t)>r.size?l(r.getIterator(),function(e){d(t,e)&&c(i,e)}):s(t,function(e){r.includes(e)&&c(i,e)}),i}},51818:function(e,t,r){"use strict";var n=r(77085),i=r(17276).has,o=r(92509),a=r(30460),s=r(90051),l=r(82557),u=r(36335);e.exports=function(e){var t=n(this),r=a(e);if(o(t)<=r.size)return!1!==s(t,function(e){if(r.includes(e))return!1},!0);var c=r.getIterator();return!1!==l(c,function(e){if(i(t,e))return u(c.iterator,"normal",!1)})}},76153:function(e,t,r){"use strict";var n=r(77085),i=r(92509),o=r(90051),a=r(30460);e.exports=function(e){var t=n(this),r=a(e);return!(i(t)>r.size)&&!1!==o(t,function(e){if(!r.includes(e))return!1},!0)}},58816:function(e,t,r){"use strict";var n=r(77085),i=r(17276).has,o=r(92509),a=r(30460),s=r(82557),l=r(36335);e.exports=function(e){var t=n(this),r=a(e);if(o(t)<r.size)return!1;var u=r.getIterator();return!1!==s(u,function(e){if(!i(t,e))return l(u.iterator,"normal",!1)})}},90051:function(e,t,r){"use strict";var n=r(46406),i=r(82557),o=r(17276),a=o.Set,s=o.proto,l=n(s.forEach),u=n(s.keys),c=u(new a).next;e.exports=function(e,t,r){return r?i({iterator:u(e),next:c},t):l(e,t)}},90677:function(e,t,r){"use strict";var n=r(51570),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},o=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var r=n("Set");try{(new r)[e](i(0));try{return(new r)[e](i(-1)),!1}catch(n){if(!t)return!0;try{return(new r)[e](o(-1/0)),!1}catch(n){return t(new r([1,2])[e](o(1/0)))}}}catch(e){return!1}}},3462:function(e){"use strict";e.exports=function(e){try{var t=new Set,r={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},n=t[e](r);return 1===n.size&&4===n.values().next().value}catch(e){return!1}}},92509:function(e,t,r){"use strict";var n=r(28692),i=r(17276);e.exports=n(i.proto,"size","get")||function(e){return e.size}},35146:function(e,t,r){"use strict";
172var n=r(77085),i=r(17276),o=r(36254),a=r(30460),s=r(82557),l=i.add,u=i.has,c=i.remove;e.exports=function(e){var t=n(this),r=a(e).getIterator(),i=o(t);return s(r,function(e){u(t,e)?c(i,e):l(i,e)}),i}},88534:function(e,t,r){"use strict";var n=r(77085),i=r(17276).add,o=r(36254),a=r(30460),s=r(82557);e.exports=function(e){var t=n(this),r=a(e).getIterator(),l=o(t);return s(r,function(e){i(l,e)}),l}},50139:function(e,t,r){"use strict";var n=r(19231),i=r(46350),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},64830:function(e,t,r){"use strict";var n=r(99),i=r(43460),o=r(13630),a="__core-js_shared__",s=e.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.49.0",mode:n?"pure":"global",copyright:"© 2013â2025 Denis Pushkarev (zloirock.ru), 2025â2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},19231:function(e,t,r){"use strict";var n=r(64830);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},48373:function(e,t,r){"use strict";var n=r(46406),i=r(15930),o=r(42755),a=r(46762),s=n("".charAt),l=n("".charCodeAt),u=n("".slice),c=function(e){return function(t,r){var n,c,d=o(a(t)),f=i(r),p=d.length;return f<0||f>=p?e?"":void 0:(n=l(d,f))<55296||n>56319||f+1===p||(c=l(d,f+1))<56320||c>57343?e?s(d,f):n:e?u(d,f,f+2):c-56320+(n-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},34053:function(e,t,r){"use strict";var n=r(51111),i=r(5306),o=r(43460).String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},29961:function(e,t,r){"use strict";var n=r(15930),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},79405:function(e,t,r){"use strict";var n=r(25366),i=r(46762);e.exports=function(e){return n(i(e))}},15930:function(e,t,r){"use strict";var n=r(61402);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},9099:function(e,t,r){"use strict";var n=r(15930),i=Math.min;e.exports=function(e){var t=n(e);return t>0?i(t,9007199254740991):0}},85864:function(e,t,r){"use strict";var n=r(46762),i=Object;e.exports=function(e){return i(n(e))}},46090:function(e,t,r){"use strict";var n=r(11550),i=r(15287),o=r(103),a=r(56628),s=r(51253),l=r(67936),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var r,l=a(e,c);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!i(r)||o(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},83662:function(e,t,r){"use strict";var n=r(46090),i=r(103);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},60126:function(e,t,r){"use strict";var n=r(51570),i=r(55893),o=r(47456),a=r(15287),s=n("Set");e.exports=function(e){return function(e){return a(e)&&"number"==typeof e.size&&i(e.has)&&i(e.keys)}(e)?e:o(e)?new s(e):e}},46623:function(e,t,r){"use strict";var n={};n[r(67936)("toStringTag")]="z",e.exports="[object z]"===String(n)},42755:function(e,t,r){"use strict";var n=r(85683),i=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},85545:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},46350:function(e,t,r){"use strict";var n=r(46406),i=0,o=Math.random(),a=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},90345:function(e,t,r){"use strict";var n=r(34053);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},27475:function(e,t,r){"use strict";var n=r(3877),i=r(5306);e.exports=n&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},45585:function(e,t,r){"use strict";var n=r(43460),i=r(55893),o=n.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},67936:function(e,t,r){"use strict";var n=r(43460),i=r(19231),o=r(4130),a=r(46350),s=r(34053),l=r(90345),u=n.Symbol,c=i("wks"),d=l?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)||(c[e]=s&&o(u,e)?u[e]:d("Symbol."+e)),c[e]}},66066:function(e,t,r){"use strict";var n=r(92390),i=r(22971).includes,o=r(5306),a=r(49408),s=o(function(){return!Array(1).includes()}
vendor: 7,868 bytes, line 172
172),l=o(function(){return[,1].includes(void 0,1)});n({target:"Array",proto:!0,forced:s||l},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},63517:function(e,t,r){"use strict";var n=r(92390),i=r(85864),o=r(19969),a=r(58576),s=r(59060);n({target:"Array",proto:!0,arity:1,forced:r(5306)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=i(this),r=o(t),n=arguments.length;s(r+n);for(var l=0;l<n;l++)t[r]=arguments[l],r++;return a(t,r),r}})},55515:function(e,t,r){"use strict";var n=r(92390),i=r(43460),o=r(49064),a=r(99972),s=r(55893),l=r(96900),u=r(15023),c=r(76968),d=r(5306),f=r(4130),p=r(67936),h=r(4760).IteratorPrototype,m=r(3877),v=r(99),g="constructor",y="Iterator",b=p("toStringTag"),w=TypeError,x=i[y],E=v||!s(x)||x.prototype!==h||!d(function(){x({})}),k=function(){if(o(this,h),l(this)===h)throw new w("Abstract class Iterator not directly constructable")},S=function(e,t){m?u(h,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===h)throw new w("You can't redefine this property");f(this,e)?this[e]=t:c(this,e,t)}}):h[e]=t};f(h,b)||S(b,y),!E&&f(h,g)&&h[g]!==Object||S(g,k),k.prototype=h,n({global:!0,constructor:!0,forced:E},{Iterator:k})},69556:function(e,t,r){"use strict";var n=r(92390),i=r(11550),o=r(82003),a=r(61575),s=r(99972),l=r(10066),u=r(36335),c=r(93478)("every",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:c},{every:function(e){s(this);try{a(e)}catch(e){u(this,"throw",e)}if(c)return i(c,this,e);var t=l(this),r=0;return!o(t,function(t,n){if(!e(t,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},73442:function(e,t,r){"use strict";var n=r(92390),i=r(11550),o=r(61575),a=r(99972),s=r(10066),l=r(65299),u=r(30608),c=r(99),d=r(36335),f=r(46395),p=r(93478),h=!c&&!f("filter",function(){}),m=!c&&!h&&p("filter",TypeError),v=c||h||m,g=l(function(){for(var e,t,r=this.iterator,n=this.predicate,o=this.next;;){if(e=a(i(o,r)),this.done=!!e.done)return;if(t=e.value,u(r,n,[t,this.counter++],!0))return t}});n({target:"Iterator",proto:!0,real:!0,forced:v},{filter:function(e){a(this);try{o(e)}catch(e){d(this,"throw",e)}return m?i(m,this,e):new g(s(this),{predicate:e})}})},73809:function(e,t,r){"use strict";var n=r(92390),i=r(11550),o=r(82003),a=r(61575),s=r(99972),l=r(10066),u=r(36335),c=r(93478)("find",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:c},{find:function(e){s(this);try{a(e)}catch(e){u(this,"throw",e)}if(c)return i(c,this,e);var t=l(this),r=0;return o(t,function(t,n){if(e(t,r++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},72911:function(e,t,r){"use strict";var n=r(92390),i=r(11550),o=r(61575),a=r(99972),s=r(10066),l=r(39832),u=r(65299),c=r(36335),d=r(99),f=r(46395),p=r(93478),h=!d&&!f("flatMap",function(){}),m=!d&&!h&&p("flatMap",TypeError),v=d||h||m||function(){try{var e=Iterator.prototype.flatMap.call(new Map([[4,5]]).entries(),function(e){return e});e.next(),e.return()}catch(e){return!0}}(),g=u(function(){for(var e,t,r=this.iterator,n=this.mapper;;){if(t=this.inner)try{if(!(e=a(i(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){c(r,"throw",e)}if(e=a(i(this.next,r)),this.done=!!e.done)return;try{this.inner=l(n(e.value,this.counter++),!1)}catch(e){c(r,"throw",e)}}});n({target:"Iterator",proto:!0,real:!0,forced:v},{flatMap:function(e){a(this);try{o(e)}catch(e){c(this,"throw",e)}return m?i(m,this,e):new g(s(this),{mapper:e,inner:null})}})},83902:function(e,t,r){"use strict";var n=r(92390),i=r(11550),o=r(82003),a=r(61575),s=r(99972),l=r(10066),u=r(36335),c=r(93478)("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:c},{forEach:function(e){s(this);try{a(e)}catch(e){u(this,"throw",e)}if(c)return i(c,this,e);var t=l(this),r=0;o(t,function(t){e(t,r++)},{IS_RECORD:!0})}})},99726:function(e,t,r){"use strict";var n=r(92390),i=r(11550),o=r(61575),a=r(99972),s=r(10066),l=r(65299),u=r(30608),c=r(36335),d=r(46395),f=r(93478),p=r(99),h=!p&&!d("map",function(){}),m=!p&&!h&&f("map",TypeError),v=p||h||m,g=l(function(){var e=this.iterator,t=a(i(this.next,e));if(!(this.done=!!t.done))return u(e,this.mapper,[t.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:v},{map:function(e){a(this);try{o(e)}catch(e){c(this,"throw",e)}return m?i(m,this,e):new g(s(this),{mapper:e})}})},9429:function(e,t,r){"use strict";var n=r(92390),i=r(82003),o=r(61575),a=r(99972),s=r(10066),l=r(36335),u=r(93478),c=r(56415),d=r(5306),f=TypeError,p=d(function(){[].keys().reduce(function(){},void 0)}),h=!p&&u("reduce",f);n({target:"Iterator",proto:!0,real:!0,forced:p||h},{reduce:function(e){a(this);try{o(e)}catch(e){l(this,"throw",e)}var t=arguments.length<2,r=t?void 0:arguments[1];if(h)return c(h,this,t?[e]:[e,r]);var n=s(this),u=0;if(i(n,function(n){t?(t=!1,r=n):r=e(r,n,u),u++},{IS_RECORD:!0}),t)throw new f("Reduce of empty iterator with no initial value");return r}})},98578:function(e,t,r){"use strict";var n=r(92390),i=r(11550),o=r(82003),a=r(61575),s=r(99972),l=r(10066),u=r(36335),c=r(93478)("some",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:c},{some:function(e){s(this);try{a(e)}catch(e){u(this,"throw",e)}if(c)return i(c,this,e);var t=l(this),r=0;return o(t,function(t,n){if(e(t,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},53036:function(e,t,r){"use strict";var n=r(92390),i=r(3877),o=r(43460),a=r(51570),s=r(46406),l=r(11550),u=r(55893),c=r(15287),d=r(65289),f=r(4130),p=r(42755),h=r(19969),m=r(76968),v=r(5306),g=r(85718),y=r(34053),b=o.JSON,w=o.Number,x=o.SyntaxError,E=b&&b.parse,k=a("Object","keys"),S=Object.getOwnPropertyDescriptor,_=s("".charAt),C=s("".slice),O=s(/./.exec),P=s([].push),T=/^\d$/,A=/^[1-9]$/,I=/^[\d-]$/,N=/^[\t\n\r ]$/,R=function(e,t,r,n){var i,o,a,s,u,p=e[t],m=n&&p===n.value,v=m&&"string"==typeof n.source?{source:n.source}:{};if(c(p)){var g=d(p),y=m?n.nodes:g?[]:{};if(g)for(i=y.length,a=h(p),s=0;s<a;s++)j(p,s,R(p,""+s,r,s<i?y[s]:void 0));else for(o=k(p),a=h(o),s=0;s<a;s++)u=o[s],j(p,u,R(p,u,r,f(y,u)?y[u]:void 0))}return l(r,e,t,p,v)},j=function(e,t,r){if(i){var n=S(e,t);if(n&&!n.configurable)return}void 0===r?delete e[t]:m(e,t,r)},M=function(e,t,r,n){this.value=e,this.end=t,this.source=r,this.nodes=n},D=function(e,t){this.source=e,this.index=t};D.prototype={fork:function(e){return new D(this.source,e)},parse:function(){var e=this.source,t=this.skip(N,this.index),r=this.fork(t),n=_(e,t);if(O(I,n))return r.number();switch(n){case"{":return r.object();case"[":return r.array();case'"':return r.string();case"t":return r.keyword(!0);case"f":return r.keyword(!1);case"n":return r.keyword(null)}throw new x('Unexpected character: "'+n+'" at: '+t)},node:function(e,t,r,n,i){return new M(t,n,e?null:C(this.source,r,n),i)},object:function(){for(var e=this.source,t=this.index+1,r=!1,n={},i={},o=!1;t<e.length;){if(t=this.until(['"',"}"],t),"}"===_(e,t)&&!r){t++,o=!0;break}var a=this.fork(t).string(),s=a.value;t=a.end,t=this.until([":"],t)+1,t=this.skip(N,t),a=this.fork(t).parse(),m(i,s,a),m(n,s,a.value),t=this.until([",","}"],a.end);var l=_(e,t);if(","===l)r=!0,t++;else if("}"===l){t++,o=!0;break}}if(!o)throw new x("Unterminated object at: "+t);return this.node(1,n,this.index,t,i)},array:function(){for(var e=this.source,t=this.index+1,r=!1,n=[],i=[],o=!1;t<e.length;){if(t=this.skip(N,t),"]"===_(e,t)&&!r){t++,o=!0;break}var a=this.fork(t).parse();if(P(i,a),P(n,a.value),t=this.until([",","]"],a.end),","===_(e,t))r=!0,t++;else if("]"===_(e,t)){t++,o=!0;break}}if(!o)throw new x("Unterminated array at: "+t);return this.node(1,n,this.index,t,i)},string:function(){var e=this.index,t=g(this.source,this.index+1);return this.node(0,t.value,e,t.end)},number:function(){var e=this.source,t=this.index,r=t;if("-"===_(e,r)&&r++,"0"===_(e,r))r++;
172else{if(!O(A,_(e,r)))throw new x("Failed to parse number at: "+r);r=this.skip(T,r+1)}if("."===_(e,r)){var n=r+1;if(n===(r=this.skip(T,n)))throw new x("Failed to parse number's fraction at: "+r)}if(("e"===_(e,r)||"E"===_(e,r))&&(r++,"+"!==_(e,r)&&"-"!==_(e,r)||r++,r===(r=this.skip(T,r))))throw new x("Failed to parse number's exponent value at: "+r);return this.node(0,w(C(e,t,r)),t,r)},keyword:function(e){var t=""+e,r=this.index,n=r+t.length;if(C(this.source,r,n)!==t)throw new x("Failed to parse value at: "+r);return this.node(0,e,r,n)},skip:function(e,t){for(var r=this.source;t<r.length&&O(e,_(r,t));t++);return t},until:function(e,t){t=this.skip(N,t);for(var r=_(this.source,t),n=0;n<e.length;n++)if(e[n]===r)return t;throw new x('Unexpected character: "'+r+'" at: '+t)}};var L=v(function(){var e,t="9007199254740993";return E(t,function(t,r,n){e=n.source}),e!==t}),F=y&&!v(function(){return 1/E("-0 \t")!=-1/0});n({target:"JSON",stat:!0,forced:L},{parse:function(e,t){return F&&!u(t)?E(e):function(e,t){e=p(e);var r=new D(e,0,""),n=r.parse(),i=n.value,o=r.skip(N,n.end);if(o<e.length)throw new x('Unexpected extra character: "'+_(e,o)+'" after the parsed data at: '+o);return u(t)?R({"":i},"",t,n):i}(e,t)}})},68983:function(e,t,r){"use strict";var n=r(92390),i=r(51570),o=r(56415),a=r(11550),s=r(46406),l=r(5306),u=r(65289),c=r(55893),d=r(85956),f=r(103),p=r(63048),h=r(42755),m=r(30039),v=r(85718),g=r(46350),y=r(34053),b=r(14041),w=String,x=i("JSON","stringify"),E=s(/./.exec),k=s("".charAt),S=s("".charCodeAt),_=s("".replace),C=s("".slice),O=s([].push),P=s(1.1.toString),T=/[\uD800-\uDFFF]/g,A=/^[\uD800-\uDBFF]$/,I=/^[\uDC00-\uDFFF]$/,N=g(),R=N.length,j=!y||l(function(){var e=i("Symbol")("stringify detection");return"[null]"!==x([e])||"{}"!==x({a:e})||"{}"!==x(Object(e))}),M=l(function(){return'"\\udf06\\ud834"'!==x("\udf06\ud834")||'"\\udead"'!==x("\udead")}),D=j?function(e,t){var r=m(arguments),n=F(t);if(c(n)||void 0!==e&&!f(e))return r[1]=function(e,t){if(c(n)&&(t=a(n,this,w(e),t)),!f(t))return t},o(x,null,r)}:x,L=function(e,t,r){var n=k(r,t-1),i=k(r,t+1);return E(A,e)&&!E(I,i)||E(I,e)&&!E(A,n)?"\\u"+P(S(e,0),16):e},F=function(e){if(c(e))return e;if(u(e)){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];"string"==typeof i?O(r,i):"number"!=typeof i&&"Number"!==p(i)&&"String"!==p(i)||O(r,h(i))}var o=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(u(this))return t;for(var n=0;n<o;n++)if(r[n]===e)return t}}};x&&n({target:"JSON",stat:!0,arity:3,forced:j||M||!b},{stringify:function(e,t,r){var n=F(t),i=[],o=D(e,function(e,t){var r=c(n)?a(n,this,w(e),t):t;return!b&&d(r)?N+(O(i,r.rawJSON)-1):r},r);if("string"!=typeof o)return o;if(M&&(o=_(o,T,L)),b)return o;for(var s="",l=o.length,u=0;u<l;u++){var f=k(o,u);if('"'===f){var p=v(o,++u).end-1,h=C(o,u,p);s+=C(h,0,R)===N?i[C(h,R)]:'"'+h+'"',u=p}else s+=f}return s}})},52440:function(e,t,r){"use strict";var n=r(92390),i=r(36594),o=r(5306);n({target:"Set",proto:!0,real:!0,forced:!r(90677)("difference",function(e){return 0===e.size})||o(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var r=e++>1;return t.has(1)&&t.clear(),{done:r,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size})},{difference:i})},81115:function(e,t,r){"use strict";var n=r(92390),i=r(5306),o=r(72698);n({target:"Set",proto:!0,real:!0,forced:!r(90677)("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||i(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:o})},89834:function(e,t,r){"use strict";var n=r(92390),i=r(51818);n({target:"Set",proto:!0,real:!0,forced:!r(90677)("isDisjointFrom",function(e){return!e})},{isDisjointFrom:i})},71536:function(e,t,r){"use strict";var n=r(92390),i=r(76153);n({target:"Set",proto:!0,real:!0,forced:!r(90677)("isSubsetOf",function(e){return e})},{isSubsetOf:i})},60099:function(e,t,r){"use strict";var n=r(92390),i=r(58816);n({target:"Set",proto:!0,real:!0,forced:!r(90677)("isSupersetOf",function(e){return!e})},{isSupersetOf:i})},97870:function(e,t,r){"use strict";var n=r(92390),i=r(35146),o=r(3462);n({target:"Set",proto:!0,real:!0,forced:!r(90677)("symmetricDifference")||!o("symmetricDifference")},{symmetricDifference:i})},31429:function(e,t,r){"use strict";var n=r(92390),i=r(88534),o=r(3462);n({target:"Set",proto:!0,real:!0,forced:!r(90677)("union")||!o("union")},{union:i})},74413:function(e,t,r){"use strict";r(55515)},92243:function(e,t,r){"use strict";r(69556)},62285:function(e,t,r){"use strict";r(73442)},69108:function(e,t,r){"use strict";r(73809)},59889:function(e,t,r){"use strict";r(72911)},20779:function(e,t,r){"use strict";r(83902)},57637:function(e,t,r){"use strict";r(99726)},98704:function(e,t,r){"use strict";r(9429)},67551:function(e,t,r){"use strict";r(98578)},63115:function(e,t,r){"use strict";r(53036)},13951:function(e,t,r){"use strict";var n=r(92390),i=r(26188),o=r(63843).remove;n({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=i(this),r=!0,n=0,a=arguments.length;n<a;n++)e=o(t,arguments[n]),r=r&&e;return!!r}})},45436:function(e,t,r){"use strict";var n=r(92390),i=r(26188),o=r(63843),a=o.get,s=o.has,l=o.set;n({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,o=i(this);return s(o,e)?(r=a(o,e),"update"in t&&(r=t.update(r,e,o),l(o,e,r)),r):(n=t.insert(e,o),l(o,e,n),n)}})},91117:function(e,t,r){"use strict";
172var n=r(92390),i=r(45898),o=r(26188),a=r(54793);n({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0);return!1!==a(t,function(e,n){if(!r(e,n,t))return!1},!0)}})},41698:function(e,t,r){"use strict";var n=r(92390),i=r(45898),o=r(26188),a=r(63843),s=r(54793),l=a.Map,u=a.set;n({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0),n=new l;return s(t,function(e,i){r(e,i,t)&&u(n,i,e)}),n}})},90216:function(e,t,r){"use strict";var n=r(92390),i=r(45898),o=r(26188),a=r(54793);n({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0),n=a(t,function(e,n){if(r(e,n,t))return{key:n}},!0);return n&&n.key}})},55294:function(e,t,r){"use strict";var n=r(92390),i=r(45898),o=r(26188),a=r(54793);n({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0),n=a(t,function(e,n){if(r(e,n,t))return{value:e}},!0);return n&&n.value}})},76999:function(e,t,r){"use strict";var n=r(92390),i=r(29915),o=r(26188),a=r(54793);n({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===a(o(this),function(t){if(i(t,e))return!0},!0)}})},91067:function(e,t,r){"use strict";var n=r(92390),i=r(26188),o=r(54793);n({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=o(i(this),function(t,r){if(t===e)return{key:r}},!0);return t&&t.key}})},2126:function(e,t,r){"use strict";var n=r(92390),i=r(45898),o=r(26188),a=r(63843),s=r(54793),l=a.Map,u=a.set;n({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0),n=new l;return s(t,function(e,i){u(n,r(e,i,t),e)}),n}})},18924:function(e,t,r){"use strict";var n=r(92390),i=r(45898),o=r(26188),a=r(63843),s=r(54793),l=a.Map,u=a.set;n({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0),n=new l;return s(t,function(e,i){u(n,i,r(e,i,t))}),n}})},67699:function(e,t,r){"use strict";var n=r(92390),i=r(26188),o=r(82003),a=r(63843).set;n({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=i(this),r=arguments.length,n=0;n<r;)o(arguments[n++],function(e,r){a(t,e,r)},{AS_ENTRIES:!0});return t}})},18007:function(e,t,r){"use strict";var n=r(92390),i=r(61575),o=r(26188),a=r(54793),s=TypeError;n({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=o(this),r=arguments.length<2,n=r?void 0:arguments[1];if(i(e),a(t,function(i,o){r?(r=!1,n=i):n=e(n,i,o,t)}),r)throw new s("Reduce of empty map with no initial value");return n}})},71675:function(e,t,r){"use strict";var n=r(92390),i=r(45898),o=r(26188),a=r(54793);n({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e,n){if(r(e,n,t))return!0},!0)}})},99830:function(e,t,r){"use strict";var n=r(92390),i=r(61575),o=r(26188),a=r(63843),s=TypeError,l=a.get,u=a.has,c=a.set;n({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=o(this),n=arguments.length;i(t);var a=u(r,e);if(!a&&n<3)throw new s("Updating absent value");var d=a?l(r,e):i(n>2?arguments[2]:void 0)(e,r);return c(r,e,t(d,e,r)),r}})},54370:function(e,t,r){"use strict";var n=r(92390),i=r(77085),o=r(17276).add;n({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=i(this),t=0,r=arguments.length;t<r;t++)o(e,arguments[t]);return e}})},5153:function(e,t,r){"use strict";var n=r(92390),i=r(77085),o=r(17276).remove;n({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=i(this),r=!0,n=0,a=arguments.length;n<a;n++)e=o(t,arguments[n]),r=r&&e;return!!r}})},80566:function(e,t,r){"use strict";var n=r(92390),i=r(11550),o=r(60126),a=r(36594);n({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return i(a,this,o(e))}})},67506:function(e,t,r){"use strict";r(52440)},50870:function(e,t,r){"use strict";var n=r(92390),i=r(45898),o=r(77085),a=r(90051);n({target:"Set",proto:!0,real:!0,forced:!0},{every:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0);return!1!==a(t,function(e){if(!r(e,e,t))return!1},!0)}})},75397:function(e,t,r){"use strict";var n=r(92390),i=r(45898),o=r(77085),a=r(17276),s=r(90051),l=a.Set,u=a.add;n({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0),n=new l;return s(t,function(e){r(e,e,t)&&u(n,e)}),n}})},18829:function(e,t,r){"use strict";var n=r(92390),i=r(45898),o=r(77085),a=r(90051);n({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0),n=a(t,function(e){if(r(e,e,t))return{value:e}},!0);return n&&n.value}})},51429:function(e,t,r){"use strict";var n=r(92390),i=r(11550),o=r(60126),a=r(72698);n({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return i(a,this,o(e))}})},95498:function(e,t,r){"use strict";r(81115)},25376:function(e,t,r){"use strict";var n=r(92390),i=r(11550),o=r(60126),a=r(51818);n({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return i(a,this,o(e))}})},61842:function(e,t,r){"use strict";r(89834)},95864:function(e,t,r){"use strict";var n=r(92390),i=r(11550),o=r(60126),a=r(76153);n({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return i(a,this,o(e))}})},38333:function(e,t,r){"use strict";r(71536)},94565:function(e,t,r){"use strict";var n=r(92390),i=r(11550),o=r(60126),a=r(58816);n({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return i(a,this,o(e))}})},63990:function(e,t,r){"use strict";r(60099)},95073:function(e,t,r){"use strict";var n=r(92390),i=r(46406),o=r(77085),a=r(90051),s=r(42755),l=i([].join),u=i([].push);n({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=o(this),r=void 0===e?",":s(e),n=[];return a(t,function(e){u(n,e)}),l(n,r)}})},65204:function(e,t,r){"use strict";var n=r(92390),i=r(45898),o=r(77085),a=r(17276),s=r(90051),l=a.Set,u=a.add;n({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0),n=new l;return s(t,function(e){u(n,r(e,e,t))}),n}})},47072:function(e,t,r){"use strict";var n=r(92390),i=r(61575),o=r(77085),a=r(90051),s=TypeError;n({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=o(this),r=arguments.length<2,n=r?void 0:arguments[1];if(i(e),a(t,function(i){r?(r=!1,n=i):n=e(n,i,i,t)}),r)throw new s("Reduce of empty set with no initial value");return n}})},98391:function(e,t,r){"use strict";var n=r(92390),i=r(45898),o=r(77085),a=r(90051);n({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,function(e){if(r(e,e,t))return!0},!0)}})},22727:function(e,t,r){"use strict";
172var n=r(92390),i=r(11550),o=r(60126),a=r(35146);n({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return i(a,this,o(e))}})},24338:function(e,t,r){"use strict";r(97870)},19647:function(e,t,r){"use strict";var n=r(92390),i=r(11550),o=r(60126),a=r(88534);n({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return i(a,this,o(e))}})},2002:function(e,t,r){"use strict";r(31429)},36736:function(e,t,r){"use strict";var n=r(92390),i=r(48373).charAt,o=r(46762),a=r(15930),s=r(42755);n({target:"String",proto:!0,forced:!0},{at:function(e){var t=s(o(this)),r=t.length,n=a(e),l=n>=0?n:r+n;return l<0||l>=r?void 0:i(t,l)}})},50112:function(e,t,r){"use strict";var n=r(92390),i=r(43460),o=r(51570),a=r(49637),s=r(27144).f,l=r(4130),u=r(49064),c=r(91074),d=r(93819),f=r(16968),p=r(93939),h=r(3877),m=r(99),v="DOMException",g=o("Error"),y=o(v),b=function(){u(this,w);var e=arguments.length,t=d(e<1?void 0:arguments[0]),r=d(e<2?void 0:arguments[1],"Error"),n=new y(t,r),i=new g(t);return i.name=v,s(n,"stack",a(1,p(i.stack,1))),c(n,this,b),n},w=b.prototype=y.prototype,x="stack"in new g(v),E="stack"in new y(1,2),k=y&&h&&Object.getOwnPropertyDescriptor(i,v),S=!(!k||k.writable&&k.configurable),_=x&&!S&&!E;n({global:!0,constructor:!0,forced:m||_},{DOMException:_?b:y});var C=o(v),O=C.prototype;if(O.constructor!==C)for(var P in m||s(O,"constructor",a(1,C)),f)if(l(f,P)){var T=f[P],A=T.s;l(C,A)||s(C,A,a(6,T.c))}},50785:function(e,t,r){"use strict";var n=r(3877),i=r(46406),o=r(15023),a=URLSearchParams.prototype,s=i(a.forEach);n&&!("size"in a)&&o(a,"size",{get:function(){var e=0;return s(this,function(){e++}),e},configurable:!0,enumerable:!0})},82029:function(e,t){let r={data:""},n=e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||r},i=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,o=/\/\*[^]*?\*\/| +/g,a=/\n+/g,s=(e,t)=>{let r="",n="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?r=o+" "+a+";":n+="f"==o[1]?s(a,o):o+"{"+s(a,"k"==o[1]?"":t)+"}":"object"==typeof a?n+=s(a,t?t.replace(/([^,])+/g,e=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=a&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=s.p?s.p(o,a):o+":"+a+";")}return r+(t&&i?t+"{"+i+"}":i)+n},l={},u=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+u(e[r]);return t}return e},c=(e,t,r,n,c)=>{let d=u(e),f=l[d]||(l[d]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(d));if(!l[f]){let t=d!==e?e:(e=>{let t,r,n=[{}];for(;t=i.exec(e.replace(o,""));)t[4]?n.shift():t[3]?(r=t[3].replace(a," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(a," ").trim();return n[0]})(e);l[f]=s(c?{["@keyframes "+f]:t}:t,r?"":"."+f)}let p=r&&l.g?l.g:null;return r&&(l.g=l[f]),((e,t,r,n)=>{n?t.data=t.data.replace(n,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(l[f],t,n,p),f};function d(e){let t=this||{},r=e.call?e(t.p):e;return c(r.unshift?r.raw?((e,t,r)=>e.reduce((e,n,i)=>{let o=t[i];if(o&&o.call){let e=o(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":s(e,""):!1===e?"":e}return e+n+(null==o?"":o)},""))(r,[].slice.call(arguments,1),t.p):r.reduce((e,r)=>Object.assign(e,r&&r.call?r(t.p):r),{}):r,n(t.target),t.g,t.o,t.k)}let f,p,h,m=d.bind({g:1}),v=d.bind({k:1});t.css=d,t.extractCss=e=>{let t=n(e),r=t.data;return t.data="",r},t.glob=m,t.keyframes=v,t.setup=function(e,t,r,n){s.p=t,f=e,p=r,h=n},t.styled=function(e,t){let r=this||{};return function(){let n=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;r.p=Object.assign({theme:p&&p()},s),r.o=/ *go\d+/.test(l),s.className=d.apply(r,n)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),h&&u[0]&&h(s),f(u,s)}return t?t(i):i}}},10877:function(e,t,r){"use strict";var n;function i(e){return!!e&&e<7}r.d(t,{I:function(){return n},O:function(){return i}}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(n||(n={}))},13796:function(e,t,r){"use strict";r.d(t,{MS:function(){return s},YG:function(){return o},cA:function(){return l},ls:function(){return a}});var n=r(85556),i=(r(20091),r(98306)),o=Symbol();function a(e){return!!e.extensions&&Array.isArray(e.extensions[o])}function s(e){return e.hasOwnProperty("graphQLErrors")}var l=function(e){function t(r){var o,a,s=r.graphQLErrors,l=r.protocolErrors,u=r.clientErrors,c=r.networkError,d=r.errorMessage,f=r.extraInfo,p=e.call(this,d)||this;return p.name="ApolloError",p.graphQLErrors=s||[],p.protocolErrors=l||[],p.clientErrors=u||[],p.networkError=c||null,p.message=d||(o=p,a=(0,n.ev)((0,n.ev)((0,n.ev)([],o.graphQLErrors,!0),o.clientErrors,!0),o.protocolErrors,!0),o.networkError&&a.push(o.networkError),a.map(function(e){return(0,i.s)(e)&&e.message||"Error message not found."}).join("\n")),p.extraInfo=f,p.__proto__=t.prototype,p}return(0,n.ZT)(t,e),t}(Error)},58392:function(e,t,r){"use strict";r.r(t),r.d(t,{ApolloCache:function(){return Mt},ApolloClient:function(){return jt},ApolloConsumer:function(){return $r},ApolloError:function(){return y.cA},ApolloLink:function(){return o.i},ApolloProvider:function(){return Gr},Cache:function(){return Tt},DocumentType:function(){return Qr.n_},HttpLink:function(){return Z},InMemoryCache:function(){return jr},MissingFieldError:function(){return Dt},NetworkStatus:function(){return Se.I},Observable:function(){return d.y},ObservableQuery:function(){return Ie},checkFetcher:function(){return j},concat:function(){return Fr},createHttpLink:function(){return W},createSignalIfSupported:function(){return U},defaultDataIdFromObject:function(){return Ut},defaultPrinter:function(){return L},disableExperimentalFragmentVariables:function(){return zr.J9},disableFragmentWarnings:function(){return zr._t},empty:function(){return Mr},enableExperimentalFragmentVariables:function(){return zr.wO},execute:function(){return a},fallbackHttpConfig:function(){return D},from:function(){return Dr},fromError:function(){return z},fromPromise:function(){return Ur},getApolloContext:function(){return Hr.K},gql:function(){return zr.Ps},isApolloError:function(){return y.MS},isReference:function(){return le.Yk},makeReference:function(){return le.kQ},makeVar:function(){return Et},mergeOptions:function(){return Nt.J},operationName:function(){return Qr.mw},parseAndCheckHttpResponse:function(){return R},parser:function(){return Qr.E2},resetApolloContext:function(){return Hr.K},resetCaches:function(){return zr.HW},rewriteURIForGET:function(){return V},selectHttpOptionsAndBody:function(){return F},selectHttpOptionsAndBodyInternal:function(){return B},selectURI:function(){return p},serializeFetchParameter:function(){return f},setLogVerbosity:function(){return Vr.U6},split:function(){return Lr},throwServerError:function(){return g}
172,toPromise:function(){return Br},useApolloClient:function(){return Wr.x},useFragment_experimental:function(){return tn},useLazyQuery:function(){return Zr.t},useMutation:function(){return Yr},useQuery:function(){return Kr.a},useReactiveVar:function(){return Xr},useSubscription:function(){return Jr}});var n=r(20091),i=r(85556),o=r(20242),a=o.i.execute,s=r(43165);function l(e,t){var r=e.directives;return!r||!r.length||function(e){var t=[];return e&&e.length&&e.forEach(function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var r=e.arguments,i=e.name.value;__DEV__?(0,n.kG)(r&&1===r.length,"Incorrect number of arguments for the @".concat(i," directive.")):(0,n.kG)(r&&1===r.length,41);var o=r[0];__DEV__?(0,n.kG)(o.name&&"if"===o.name.value,"Invalid argument for the @".concat(i," directive.")):(0,n.kG)(o.name&&"if"===o.name.value,42);var a=o.value;__DEV__?(0,n.kG)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),"Argument for the @".concat(i," directive must be a variable or a boolean value.")):(0,n.kG)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),43),t.push({directive:e,ifArgument:o})}}),t}(r).every(function(e){var r=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t&&t[i.value.name.value],__DEV__?(0,n.kG)(void 0!==o,"Invalid variable referenced in @".concat(r.name.value," directive.")):(0,n.kG)(void 0!==o,40)):o=i.value.value,"skip"===r.name.value?!o:o})}function u(e,t,r){var n=new Set(e),i=n.size;return(0,s.Vn)(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return s.$_}}),r?!n.size:n.size<i}function c(e){return e&&u(["client","export"],e,!0)}var d=r(4105),f=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var i=__DEV__?new n.ej("Network request failed. ".concat(t," is not serializable: ").concat(e.message)):new n.ej(24);throw i.parseError=e,i}return r},p=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")},h=r(51942);function m(e){var t={next:function(){return e.read()}};return h.DN&&(t[Symbol.asyncIterator]=function(){return this}),t}function v(e){var t,r,n,i,o=e;if(e.body&&(o=e.body),i=o,h.DN&&i[Symbol.asyncIterator])return function(e){var t,r=e[Symbol.asyncIterator]();return(t={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},t}(o);if(function(e){return!!e.getReader}(o))return m(o.getReader());if(function(e){return!!e.stream}(o))return m(o.stream().getReader());if(function(e){return!!e.arrayBuffer}(o))return t=o.arrayBuffer(),r=!1,n={next:function(){return r?Promise.resolve({value:void 0,done:!0}):(r=!0,new Promise(function(e,r){t.then(function(t){e({value:t,done:!1})}).catch(r)}))}},h.DN&&(n[Symbol.asyncIterator]=function(){return this}),n;if(function(e){return!!e.pipe}(o))return function(e){var t=null,r=null,n=!1,i=[],o=[];function a(e){if(!r){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,o.slice().forEach(function(t){t[1](e)}),!t||t()}function l(){n=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",a),e.on("error",s),e.on("end",l),e.on("finish",l),e.on("close",l);var u={next:function(){return new Promise(function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void o.push([e,t])})}};return h.DN&&(u[Symbol.asyncIterator]=function(){return this}),u}(o);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var g=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},y=r(13796),b=r(98306),w=r(82274),x=Object.prototype.hasOwnProperty;function E(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return k(e)}function k(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new _,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var S=function(e,t,r){return this.merge(e[r],t[r])},_=function(){function e(e){void 0===e&&(e=S),this.reconciler=e,this.isObject=b.s,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];return(0,b.s)(t)&&(0,b.s)(e)?(Object.keys(t).forEach(function(o){if
172(x.call(e,o)){var a=e[o];if(t[o]!==a){var s=r.reconciler.apply(r,(0,i.ev)([e,t,o],n,!1));s!==a&&((e=r.shallowCopyForMerge(e))[o]=s)}}else(e=r.shallowCopyForMerge(e))[o]=t[o]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,b.s)(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):(0,i.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}();function C(e){return"incremental"in e}function O(e){return(0,b.s)(e)&&"payload"in e}function P(e,t){var r=e,n=new _;return C(t)&&(0,w.O)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}r=n.merge(r,t)}),r}var T=Object.prototype.hasOwnProperty;function A(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}function I(e,t){e.status>=300&&g(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(n){var r=n;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function N(e,t){var r,n;"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&(null===(r=t.next)||void 0===r||r.call(t,e.result)),null===(n=t.error)||void 0===n||n.call(t,e))}function R(e){return function(t){return t.text().then(function(e){return I(t,e)}).then(function(r){return t.status>=300&&g(t,r,"Response not successful: Received status code ".concat(t.status)),Array.isArray(r)||T.call(r,"data")||T.call(r,"errors")||g(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r})}}var j=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new n.ej("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new n.ej(23)},M=r(54785),D={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},L=function(e,t){return t(e)};function F(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return r.unshift(t),B.apply(void 0,(0,i.ev)([e,L],r,!1))}function B(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o={},a={};r.forEach(function(e){o=(0,i.pi)((0,i.pi)((0,i.pi)({},o),e.options),{headers:(0,i.pi)((0,i.pi)({},o.headers),e.headers)}),e.credentials&&(o.credentials=e.credentials),a=(0,i.pi)((0,i.pi)({},a),e.http)}),o.headers&&(o.headers=function(e,t){if(!t){var r=Object.create(null);
172return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n=Object.create(null);Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i=Object.create(null);return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(o.headers,a.preserveHeaderCase));var s=e.operationName,l=e.extensions,u=e.variables,c=e.query,d={operationName:s,variables:u};return a.includeExtensions&&(d.extensions=l),a.includeQuery&&(d.query=t(c,M.print)),{options:o,body:d}}var U=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}};function V(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=f(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=f(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",s=e,l=e.indexOf("#");-1!==l&&(a=e.substr(l),s=e.substr(0,l));var u=-1===s.indexOf("?")?"?":"&";return{newURI:s+u+r.join("&")+a}}function z(e){return new d.y(function(t){t.error(e)})}var q,H,G=r(71433),$=(0,n.wY)(function(){return fetch}),W=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,a=e.fetch,l=e.print,c=void 0===l?L:l,h=e.includeExtensions,m=e.preserveHeaderCase,g=e.useGETForQueries,b=e.includeUnusedVariables,w=void 0!==b&&b,x=(0,i._T)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&j(a||$);var E={http:{includeExtensions:h,preserveHeaderCase:m},options:x.fetchOptions,credentials:x.credentials,headers:x.headers};return new o.i(function(e){var t=p(e,r),o=e.getContext(),l={};if(o.clientAwareness){var h=o.clientAwareness,m=h.name,b=h.version;m&&(l["apollographql-client-name"]=m),b&&(l["apollographql-client-version"]=b)}var x,k=(0,i.pi)((0,i.pi)({},l),o.headers),S={http:o.http,options:o.fetchOptions,credentials:o.credentials,headers:k},_=B(e,c,D,E,S),C=_.options,P=_.body;if(P.variables&&!w){var T=new Set(Object.keys(P.variables));(0,s.Vn)(e.query,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&T.delete(e.name.value)}}),T.size&&(P.variables=(0,i.pi)({},P.variables),T.forEach(function(e){delete P.variables[e]}))}if(!C.signal){var j=U(),M=j.controller,L=j.signal;(x=M)&&(C.signal=L)}var F,q="OperationDefinition"===(F=(0,G.p$)(e.query)).kind&&"subscription"===F.operation,H=u(["defer"],e.query);if(g&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(C.method="GET"),H||q){C.headers=C.headers||{};var W="multipart/mixed;";q&&H&&__DEV__&&n.kG.warn("Multipart-subscriptions do not support @defer"),q?W+="boundary=graphql;subscriptionSpec=1.0,application/json":H&&(W+="deferSpec=20220824,application/json"),C.headers.accept=W}if("GET"===C.method){var Z=V(t,P),Q=Z.newURI,Y=Z.parseError;if(Y)return z(Y);t=Q}else try{C.body=f(P,"Payload")}catch(Y){return z(Y)}return new d.y(function(r){return(a||(0,n.wY)(function(){return fetch})||$)(t,C).then(function(t){var n;e.setContext({response:t});var o=null===(n=t.headers)||void 0===n?void 0:n.get("content-type");return null!==o&&/^multipart\/mixed/i.test(o)?function(e,t){var r,n,o,a,s;return(0,i.mG)(this,void 0,void 0,function(){var l,u,c,d,f,p,h,m,g,b,w,x,E,k,S,_,C,P,T,R,j,M;return(0,i.Jh)(this,function(D){switch(D.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");l=new TextDecoder("utf-8"),u=null===(r=e.headers)||void 0===r?void 0:r.get("content-type"),c="boundary=",d=(null==u?void 0:u.includes(c))?null==u?void 0:u.substring((null==u?void 0:u.indexOf(c))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",f="--".concat(d),p="",h=v(e),m=!0,D.label=1;case 1:return m?[4,h.next()]:[3,3];case 2:for(g=D.sent(),b=g.value,w=g.done,x="string"==typeof b?b:l.decode(b),m=!w,E=(p+=x).indexOf(f);E>-1;){if(k=void 0,j=[p.slice(0,E),p.slice(E+f.length)],p=j[1],(k=j[0]).trim()){if(S=k.indexOf("\r\n\r\n"),_=A(k.slice(0,S)),(C=_["content-type"])&&-1===C.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");P=k.slice(S);try{T=I(e,P.replace("\r\n","")),Object.keys(T).length>1||"data"in T||"incremental"in T||"errors"in T||"payload"in T?O(T)?(R={},"payload"in T&&(R=(0,i.pi)({},T.payload)),"errors"in T&&(R=(0,i.pi)((0,i.pi)({},R),{extensions:(0,i.pi)((0,i.pi)({},"extensions"in R?R.extensions:null),(M={},M[y.YG]=T.errors,M))})),null===(n=t.next)||void 0===n||n.call(t,R)):null===(o=t.next)||void 0===o||o.call(t,T):1===Object.keys(T).length&&"hasNext"in T&&!T.hasNext&&(null===(a=t.complete)||void 0===a||a.call(t))}catch(e){N(e,t)}}E=p.indexOf(f)}return[3,1];case 3:return null===(s=t.complete)||void 0===s||s.call(t),[2]}})})}(t,r):function(e,t,r){R(t)(e).then(function(e){var t,n;null===(t=r.next)||void 0===t||t.call(r,e),null===(n=r.complete)||void 0===n||n.call(r)}
172).catch(function(e){return N(e,r)})}(t,e,r)}).catch(function(e){return N(e,r)}),function(){x&&x.abort()}})})},Z=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,W(t).request)||this;return r.options=t,r}return(0,i.ZT)(t,e),t}(o.i),Q=r(4055),Y=function(){return Object.create(null)},K=Array.prototype,J=K.forEach,X=K.slice,ee=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=Y),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return J.call(e,function(e){return t=t.getChildTrie(e)}),t.data||(t.data=this.makeData(X.call(e)))},e.prototype.getChildTrie=function(t){var r=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=r.get(t);return n||r.set(t,n=new e(this.weakness,this.makeData)),n},e}(),te=function(){function e(){this.known=new(h.sy?WeakSet:Set),this.pool=new ee(h.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,b.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,b.s)(e)){var t=function(e){return(0,b.s)(e)?(0,w.k)(e)?e.slice(0):(0,i.pi)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,b.s)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var n=e.map(this.admit,this);return(s=this.pool.lookupArray(n)).array||(this.known.add(s.array=n),__DEV__&&Object.freeze(n)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),o=[i],a=this.sortedKeys(e);o.push(a.json);var s,l=o.length;if(a.sorted.forEach(function(r){o.push(t.admit(e[r]))}),!(s=this.pool.lookupArray(o)).object){var u=s.object=Object.create(i);this.known.add(u),a.sorted.forEach(function(e,t){u[e]=o[l+t]}),__DEV__&&Object.freeze(u)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}(),re=Object.assign(function(e){if((0,b.s)(e)){void 0===q&&ne();var t=q.admit(e),r=H.get(t);return void 0===r&&H.set(t,r=JSON.stringify(t)),r}return JSON.stringify(e)},{reset:ne});function ne(){q=new te,H=new(h.mr?WeakMap:Map)}function ie(e,t,r){return new d.y(function(n){var i=n.next,o=n.error,a=n.complete,s=0,l=!1,u={then:function(e){return new Promise(function(t){return t(e())})}};function c(e,t){return e?function(t){++s;var r=function(){return e(t)};u=u.then(r,r).then(function(e){--s,i&&i.call(n,e),l&&d.complete()},function(e){throw--s,e}).catch(function(e){o&&o.call(n,e)})}:function(e){return t&&t.call(n,e)}}var d={next:c(t,i),error:c(r,o),complete:function(){l=!0,s||a&&a.call(n)}},f=e.subscribe(d);return function(){return f.unsubscribe()}})}function oe(e){var t=ae(e);return(0,w.O)(t)}function ae(e){var t=(0,w.O)(e.errors)?e.errors.slice(0):[];return C(e)&&(0,w.O)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var se=r(57554),le=r(55136),ue=r(78847),ce={kind:se.h.FIELD,name:{kind:se.h.NAME,value:"__typename"}};function de(e,t){return!e||e.selectionSet.selections.every(function(e){return e.kind===se.h.FRAGMENT_SPREAD&&de(t[e.name.value],t)})}function fe(e){return de((0,G.$H)(e)||(0,G.pD)(e),(0,ue.F)((0,G.kU)(e)))?null:e}function pe(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function he(e,t){for(var r=pe(""),o=pe(""),a=function(e){for(var t=0,i=void 0;t<e.length&&(i=e[t]);++t)if(!(0,w.k)(i)){if(i.kind===se.h.OPERATION_DEFINITION)return r(i.name&&i.name.value);if(i.kind===se.h.FRAGMENT_DEFINITION)return o(i.name.value)}return __DEV__&&n.kG.error("Could not find operation or fragment"),null},l=0,u=t.definitions.length-1;u>=0;--u)t.definitions[u].kind===se.h.OPERATION_DEFINITION&&++l;var c=function(e){var t=new Set,r=[];return e.forEach(function(e){e.name?t.add(e.name):e.test&&r.push(e.test)}),function(e){return t.has(e.name.value)||r.some(function(t){return t(e)})}}(e),d=e.some(function(e){return e.remove}),f=function(e){return d&&e&&e.some(c)},p=new Map,h=!1,m={enter:function(e){if(f(e.directives))return h=!0,null}},v=(0,s.Vn)(t,{Field:m,InlineFragment:m,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=a(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(f(e.directives))return h=!0,null;var o=a(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){p.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===p.get(JSON.stringify(n))?e:l>0&&e.selectionSet.selections.every(function(e){return e.kind===se.h.FIELD&&"__typename"===e.name.value})?(o(e.name.value).removed=!0,h=!0,null):void 0}},Directive:{leave:function(e){if(c(e))return h=!0,null}}});if(!h)return t;var g=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){g(o(t)).transitiveVars.forEac
172h(function(t){e.transitiveVars.add(t)})})),e},y=new Set;v.definitions.forEach(function(e){e.kind===se.h.OPERATION_DEFINITION?g(r(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){y.add(e)}):e.kind!==se.h.FRAGMENT_DEFINITION||0!==l||o(e.name.value).removed||y.add(e.name.value)}),y.forEach(function(e){g(o(e)).fragmentSpreads.forEach(function(e){y.add(e)})});var b={enter:function(e){if(t=e.name.value,!y.has(t)||o(t).removed)return null;var t}};return fe((0,s.Vn)(v,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=g(r(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,i.pi)((0,i.pi)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))}var me=Object.assign(function(e){return(0,s.Vn)(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==se.h.OPERATION_DEFINITION){var n=e.selections;if(n&&!n.some(function(e){return(0,le.My)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var o=r;if(!((0,le.My)(o)&&o.directives&&o.directives.some(function(e){return"export"===e.name.value})))return(0,i.pi)((0,i.pi)({},e),{selections:(0,i.ev)((0,i.ev)([],n,!0),[ce],!1)})}}}}})},{added:function(e){return e===ce}}),ve={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some(function(e){return"key"===e.name.value})||__DEV__&&n.kG.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),t}};function ge(e){return"query"===(0,G.p$)(e).operation?e:(0,s.Vn)(e,{OperationDefinition:{enter:function(e){return(0,i.pi)((0,i.pi)({},e),{operation:"query"})}}})}var ye=new Map;function be(e){var t=ye.get(e)||1;return ye.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function we(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}function xe(e){function t(t){Object.defineProperty(e,t,{value:d.y})}return h.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Ee(e){return e&&"function"==typeof e.then}var ke=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),we(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),we(r.observers,"error",e))},complete:function(){var e=r,t=e.sub,n=e.sources;if(null!==t){var i=(void 0===n?[]:n).shift();i?Ee(i)?i.then(function(e){return r.sub=e.subscribe(r.handlers)}):r.sub=i.subscribe(r.handlers):(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),we(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new d.y(t)]),Ee(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,i.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(d.y);xe(ke);var Se=r(10877),_e=Object.prototype.toString;function Ce(e){return Oe(e)}function Oe(e,t){switch(_e.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach(function(e,n){r[n]=Oe(e,t)}),r;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));return t.set(e,n),Object.keys(e).forEach(function(r){n[r]=Oe(e[r],t)}),n;default:return e}}var Pe=r(46213),Te=Object.assign,Ae=Object.hasOwnProperty,Ie=function(e){function t(t){var r=t.queryManager,n=t.queryInfo,o=t.options,a=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=Re)}catch(e){}var r=!a.observers.size;a.observers.add(e);var n=a.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.result),r&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=n,a.queryManager=r,a.isTornDown=!1;var s=r.defaultOptions.watchQuery,l=(void 0===s?{}:s).fetchPolicy,u=void 0===l?"cache-first":l,c=o.fetchPolicy,d=void 0===c?u:c,f=o.initialFetchPolicy,p=void 0===f?"standby"===d?u:d:f;a.options=(0,i.pi)((0,i.pi)({},o),{initialFetchPolicy:p,fetchPolicy:d}),a.queryId=n.queryId||r.generateQueryId();var h=(0,G.$H)(a.query);return a.queryName=h&&h.name&&h.name.value,a}return(0,i.ZT)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document}
172,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||Se.I.ready,n=(0,i.pi)((0,i.pi)({},t),{loading:(0,Se.O)(r),networkStatus:r}),o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if("network-only"===a||"no-cache"===a||"standby"===a||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(n.data=s.result),(0,Q.D)(n.data,{})&&(n.data=void 0),s.complete?(delete n.partial,!s.complete||n.networkStatus!==Se.I.loading||"cache-first"!==a&&"cache-only"!==a||(n.networkStatus=Se.I.ready,n.loading=!1)):n.partial=!0,!__DEV__||s.complete||this.options.partialRefetch||n.loading||n.data||n.error||je(s.missing)}return e&&this.updateLastResult(n),n},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||!(0,Q.D)(this.last.result,e)||t&&!(0,Q.D)(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,Q.D)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},o=this.options.fetchPolicy;if(r.fetchPolicy="cache-and-network"===o?o:"no-cache"===o?"no-cache":"network-only",__DEV__&&e&&Ae.call(e,"variables")){var a=(0,G.iW)(this.query),s=a.variableDefinitions;s&&s.some(function(e){return"variables"===e.variable.name.value})||__DEV__&&n.kG.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=a.name)||void 0===t?void 0:t.value)||JSON.stringify(a),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!(0,Q.D)(this.options.variables,e)&&(r.variables=this.options.variables=(0,i.pi)((0,i.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,Se.I.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,i.pi)((0,i.pi)({},e.query?e:(0,i.pi)((0,i.pi)((0,i.pi)((0,i.pi)({},this.options),{query:this.query}),e),{variables:(0,i.pi)((0,i.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),n=this.queryManager.generateQueryId(),o=this.queryInfo,a=o.networkStatus;o.networkStatus=Se.I.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var s=new Set;return this.queryManager.fetchQuery(n,r,Se.I.fetchMore).then(function(i){return t.queryManager.removeQuery(n),o.networkStatus===Se.I.fetchMore&&(o.networkStatus=a),t.queryManager.cache.batch({update:function(n){var o=e.updateQuery;o?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return o(e,{fetchMoreResult:i.data,variables:r.variables})}):n.writeQuery({query:r.query,variables:r.variables,data:i.data})},onWatchUpdated:function(e){s.add(e.query)}}),i}).finally(function(){s.has(t.query)||Ne(t)})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){var i=t.variables;return n(e,{subscriptionData:r,variables:i})})},error:function(t){e.onError?e.onError(t):__DEV__&&n.kG.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return(0,Q.D)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},Se.I.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):t.fetchPolicy="variables-changed"===e?o:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(r){if(!t||t.interval!==r){__DEV__?(0,n.kG)(r,"Attempted to start a polling query without a polling interval."):(0,n.kG)(r,13),(t||(this.pollingInfo={})).interval=r;var i=function(){e.pollingInfo&&((0,Se.O)(e.queryInfo.networkStatus)?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},Se.I.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(i,t.interval))};o()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=(0,i.pi)((0,i.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?e:Ce(e),variables:t}),(0,w.O)(e.errors)||delete this.last.error,this.last},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var n=t===Se.I.refetch||t===Se.I.fetchMore||t===Se.I.poll,o=this.options.variables,a=this.options.fetchPolicy,s=(0,Pe.o)(this.options,e||{}),l=n?s:Te(this.options,s);n||(this.updatePolling(),e&&e.variables&&!(0,Q.D)(e.variables,o)&&"standby"!==l.fetchPolicy&&l.fetchPolicy===a&&(this.applyNextFetchPolicy("variables-changed",l),void 0===t&&(t=Se.I.setVariables)));var u=l.variables&&(0,i.pi)({},l.variables),c=this.fetch(l,t),d=c.concast,f=c.fromLink,p={next:function(e){r.reportResult(e,u)},error:function(e){r.reportError(e,u)}};return!n&&f&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=d,this.observer=p),d.addObserver(p),d},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError();(r||this.isDifferentFromLastResult(e,t))&&((r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),we(this.observers,"next",e))},t.prototype.reportError=function(e,t){var r=(0,i.pi)((0,i.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:Se.I.error,loading:!1});this.updateLastResult(r,t),we(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(d.y);function Ne(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=n,"function"==typeof n?n.apply(this,arguments):r}}):e.reobserve()}function Re(e){__DEV__&&n.kG.error("Unhandled error",e.message,e.stack)}function je(e){__DEV__&&e&&__DEV__&&n.kG.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}function Me(e){return e.kind===se.h.FIELD||e.kind===se.h.FRAGMENT_SPREAD||e.kind===se.h.INLINE_FRAGMENT}xe(Ie);let De=null;const Le={};let Fe=1;function Be(e){try{return e()}catch(e){}}const Ue="@wry/context:Slot",Ve=Be(()=>globalThis)||Be(()=>global)||Object.create(null),ze=Ve[Ue]||Array[Ue]||function(e){try{Object.defineProperty(Ve,Ue,{value:e,enumerable:!1,writable:!1,
172configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",Fe++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=De;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===Le)break;return e!==De&&(De.slots[this.id]=t),!0}return De&&(De.slots[this.id]=Le),!1}getValue(){if(this.hasValue())return De.slots[this.id]}withValue(e,t,r,n){const i={__proto__:null,[this.id]:e},o=De;De={parent:o,slots:i};try{return t.apply(n,r)}finally{De=o}}static bind(e){const t=De;return function(){const r=De;try{return De=t,e.apply(this,arguments)}finally{De=r}}}static noContext(e,t,r){if(!De)return e.apply(r,t);{const n=De;try{return De=null,e.apply(r,t)}finally{De=n}}}}),{bind:qe,noContext:He}=ze;function Ge(){}var $e,We=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=Ge),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var r=t.older,n=t.newer;n&&(n.older=r),r&&(r.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t},e.prototype.set=function(e,t){var r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),Ze=new ze,Qe=Object.prototype.hasOwnProperty,Ye=void 0===($e=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:$e;function Ke(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var Je=[];function Xe(e,t){if(!e)throw new Error(t||"assertion failure")}function et(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var tt=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!it(this))return rt(this),this.value[0]},e.prototype.recompute=function(e){return Xe(!this.recomputing,"already recomputing"),rt(this),it(this)?function(e,t){return dt(e),Ze.withValue(e,nt,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{Ke(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,it(e)||at(e)}(e),et(e.value)}(this,e):et(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,ot(this),Ke(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),dt(this),st(this,function(t,r){t.setDirty(),ft(t,e)})},e.prototype.forget=function(){this.dispose()}
172,e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=Je.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(Ye(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),Je.push(this.deps),this.deps=null)},e.count=0,e}();function rt(e){var t=Ze.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),it(e)?lt(t,e):ut(t,e),t}function nt(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function it(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function ot(e){st(e,lt)}function at(e){st(e,ut)}function st(e,t){var r=e.parents.size;if(r)for(var n=Ye(e.parents),i=0;i<r;++i)t(n[i],e)}function lt(e,t){Xe(e.childValues.has(t)),Xe(it(t));var r=!it(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=Je.pop()||new Set;e.dirtyChildren.add(t),r&&ot(e)}function ut(e,t){Xe(e.childValues.has(t)),Xe(!it(t));var r,n,i,o=e.childValues.get(t);0===o.length?e.childValues.set(t,t.value.slice(0)):(r=o,n=t.value,(i=r.length)>0&&i===n.length&&r[i-1]===n[i-1]||e.setDirty()),ct(e,t),it(e)||at(e)}function ct(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(Je.length<100&&Je.push(r),e.dirtyChildren=null))}function dt(e){e.childValues.size>0&&e.childValues.forEach(function(t,r){ft(e,r)}),e.forgetDeps(),Xe(null===e.dirtyChildren)}function ft(e,t){t.parents.delete(e),e.childValues.delete(t),ct(e,t)}var pt={setDirty:!0,dispose:!0,forget:!0};function ht(e){var t=new Map,r=e&&e.subscribe;function n(e){var n=Ze.getValue();if(n){var i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(Ke(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){var n=t.get(e);if(n){var i=r&&Qe.call(pt,r)?r:"setDirty";Ye(n).forEach(function(e){return e[i]()}),t.delete(e),Ke(n)}},n}function mt(){var e=new ee("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}mt();var vt=new Set;function gt(e,t){void 0===t&&(t=Object.create(null));var r=new We(t.max||Math.pow(2,16),function(e){return e.dispose()}),n=t.keyArgs,i=t.makeCacheKey||mt(),o=function(){var o=i.apply(null,n?n.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=r.get(o);a||(r.set(o,a=new tt(e)),a.subscribe=t.subscribe,a.forget=function(){return r.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return r.set(o,a),vt.add(r),Ze.hasValue()||(vt.forEach(function(e){return e.clean()}),vt.clear()),s};function a(e){var t=r.get(e);t&&t.setDirty()}function s(e){var t=r.get(e);if(t)return t.peek()}function l(e){return r.delete(e)}return Object.defineProperty(o,"size",{get:function(){return r.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))},o.forgetKey=l,o.forget=function(){return l(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=n?function(){return i.apply(null,n.apply(null,arguments))}:i,Object.freeze(o)}var yt=new ze,bt=new WeakMap;function wt(e){var t=bt.get(e);return t||bt.set(e,t={vars:new Set,dep:ht()}),t}function xt(e){wt(e).vars.forEach(function(t){return t.forgetCache(e)})}function Et(e){var t=new Set,r=new Set,n=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){wt(e).dep.dirty(n),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)});var a=Array.from(r);r.clear(),a.forEach(function(t){return t(e)})}}else{var s=yt.getValue();s&&(i(s),wt(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),wt(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}var kt=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=E(t.resolvers,e)}):this.resolvers=E(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,n=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,i.mG)(this,void 0,void 0,function(){return(0,i.Jh)(this,function(e){return t?[2,this.resolveDocument(t,r.data,n,o,this.fragmentMatcher,s).then(function(e){return(0,i.pi)((0,i.pi)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return u(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){return(0,G.A$)(e),he([{test:function(e){return"client"===e.name.value},remove:!0}],e)}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,i.pi)((0,i.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,i.mG)(this,void 0,void 0,function(){return(0,i.Jh)(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,i.pi)((0,i.pi)({},t),e.exportedVariables)})]:[2,(0,i.pi)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,s.Vn)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return s.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:ge(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,n,o,a){return void 0===r&&(r={}),void 0===n&&(n={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,i.mG)(this,void 0,void 0,function(){var s,l,u,c,d,f,p,h,m,v;return(0,i.Jh)(this,function(g){return s=(0,G.p$)(e),l=(0,G.kU)(e),u=(0,ue.F)(l),c=this.collectSelectionsToResolve(s,u),d=s.operation,f=d?d.charAt(0).toUpperCase()+d.slice(1):"Query",h=(p=this).cache,m=p.client,v={fragmentMap:u,context:(0,i.pi)((0,i.pi)({},r),{cache:h,client:m}),variables:n,fragmentMatcher:o,defaultOperationType:f,exportedVariables:{},selectionsToResolve:c,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,!1,t,v).then(function(e){return{result:e,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,o){return(0,i.mG)(this,void 0,void 0,function(){var a,s,u,c,d,f=this;return(0,i.Jh)(this,function(p){return a=o.fragmentMap,s=o.context,u=o.variables,c=[r],d=function(e){return(0,i.mG)(f,void 0,void 0,function(){var d,f;return(0,i.Jh)(this,function(i){return(t||o.selectionsToResolve.has(e))&&l(e,u)?(0,le.My)(e)?[2,this.resolveField(e,t,r,o).then(function(t){var r;void 0!==t&&c.push(((r={}
172)[(0,le.u2)(e)]=t,r))})]:((0,le.Ao)(e)?d=e:(d=a[e.name.value],__DEV__?(0,n.kG)(d,"No fragment named ".concat(e.name.value)):(0,n.kG)(d,11)),d&&d.typeCondition&&(f=d.typeCondition.name.value,o.fragmentMatcher(r,f,s))?[2,this.resolveSelectionSet(d.selectionSet,t,r,o).then(function(e){c.push(e)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(d)).then(function(){return k(c)})]})})},e.prototype.resolveField=function(e,t,r,n){return(0,i.mG)(this,void 0,void 0,function(){var o,a,s,l,u,c,d,f,p,h=this;return(0,i.Jh)(this,function(i){return r?(o=n.variables,a=e.name.value,s=(0,le.u2)(e),l=a!==s,u=r[s]||r[a],c=Promise.resolve(u),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(d=r.__typename||n.defaultOperationType,(f=this.resolvers&&this.resolvers[d])&&(p=f[l?a:s])&&(c=Promise.resolve(yt.withValue(this.cache,p,[r,(0,le.NC)(e,o),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,c.then(function(r){var i,o;if(void 0===r&&(r=u),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=r)})}),!e.selectionSet)return r;if(null==r)return r;var a=null!==(o=null===(i=e.directives)||void 0===i?void 0:i.some(function(e){return"client"===e.name.value}))&&void 0!==o&&o;return Array.isArray(r)?h.resolveSubSelectedArray(e,t||a,r,n):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t||a,r,n):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},i=this.selectionsToResolveCache;return function e(o){if(!i.has(o)){var a=new Set;i.set(o,a),(0,s.Vn)(o,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach(function(e){r(e)&&Me(e)&&a.add(e)})},FragmentSpread:function(i,o,s,l,u){var c=t[i.name.value];__DEV__?(0,n.kG)(c,"No fragment named ".concat(i.name.value)):(0,n.kG)(c,12);var d=e(c);d.size>0&&(u.forEach(function(e){r(e)&&Me(e)&&a.add(e)}),a.add(i),d.forEach(function(e){a.add(e)}))}})}return i.get(o)}(e)},e}(),St=new(h.mr?WeakMap:Map);function _t(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return St.set(e,(St.get(e)+1)%1e15),r.apply(this,arguments)})}function Ct(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Ot=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;St.has(r)||(St.set(r,0),_t(r,"evict"),_t(r,"modify"),_t(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||Se.I.loading;return this.variables&&this.networkStatus!==Se.I.loading&&!(0,Q.D)(this.variables,e.variables)&&(t=Se.I.setVariables),(0,Q.D)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){Ct(this),this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&(0,Q.D)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(t);return this.updateLastDiff(n,t),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,Q.D)(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():Ne(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;
172Ct(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,Se.O)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var n=(0,i.pi)((0,i.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,Q.D)(n,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=n))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===St.get(this.cache)&&(0,Q.D)(t,r.variables)&&(0,Q.D)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new _,a=(0,w.O)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,w.O)(e.incremental)){var s=P(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var l=this.getDiff();e.data=o.merge(l.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(Pt(e,r.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:St.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var a=i.getDiffOptions(r.variables),s=o.diff(a);i.stopped||i.updateWatch(r.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Se.I.ready},e.prototype.markError=function(e){return this.networkStatus=Se.I.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Pt(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!oe(e);return!n&&r&&e.data&&(n=!0),n}var Tt,At=Object.prototype.hasOwnProperty,It=function(){function e(e){var t=e.cache,r=e.link,n=e.defaultOptions,i=e.queryDeduplication,o=void 0!==i&&i,a=e.onBroadcast,s=e.ssrMode,l=void 0!==s&&s,u=e.clientAwareness,c=void 0===u?{}:u,d=e.localState,f=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(h.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=r,this.defaultOptions=n||Object.create(null),this.queryDeduplication=o,this.clientAwareness=c,this.localState=d||new kt({cache:t}),this.ssrMode=l,this.assumeImmutableResults=!!f,(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(__DEV__?new n.ej("QueryManager stopped while query was in flight"):new n.ej(14))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,r,o=e.mutation,a=e.variables,s=e.optimisticResponse,l=e.updateQueries,u=e.refetchQueries,c=void 0===u?[]:u,d=e.awaitRefetchQueries,f=void 0!==d&&d,p=e.update,h=e.onQueryUpdated,m=e.fetchPolicy,v=void 0===m?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":m,g=e.errorPolicy,b=void 0===g?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":g,w=e.keepRootFields,x=e.context;return(0,i.mG)(this,void 0,void 0,function(){var e,t,r,u,d,m;return(0,i.Jh)(this,function(g){switch(g.label){case 0:return __DEV__?(0,n.kG)(o,"mutation option is required. You must specify your GraphQL document in the mutation option."):(0,n.kG)(o,15),__DEV__?(0,n.kG)("network-only"===v||"no-cache"===v,"Mutations supp
172ort only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):(0,n.kG)("network-only"===v||"no-cache"===v,16),e=this.generateMutationId(),t=this.transform(o),r=t.document,u=t.hasClientExports,o=this.cache.transformForLink(r),a=this.getVariables(o,a),u?[4,this.localState.addExportedVariables(o,a,x)]:[3,2];case 1:a=g.sent(),g.label=2;case 2:return d=this.mutationStore&&(this.mutationStore[e]={mutation:o,variables:a,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:e,document:o,variables:a,fetchPolicy:v,errorPolicy:b,context:x,updateQueries:l,update:p,keepRootFields:w}),this.broadcastQueries(),m=this,[2,new Promise(function(t,r){return ie(m.getObservableFromLink(o,(0,i.pi)((0,i.pi)({},x),{optimisticResponse:s}),a,!1),function(t){if(oe(t)&&"none"===b)throw new y.cA({graphQLErrors:ae(t)});d&&(d.loading=!1,d.error=null);var r=(0,i.pi)({},t);return"function"==typeof c&&(c=c(r)),"ignore"===b&&oe(r)&&delete r.errors,m.markMutationResult({mutationId:e,result:r,document:o,variables:a,fetchPolicy:v,errorPolicy:b,context:x,update:p,updateQueries:l,awaitRefetchQueries:f,refetchQueries:c,removeOptimistic:s?e:void 0,onQueryUpdated:h,keepRootFields:w})}).subscribe({next:function(e){m.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){d&&(d.loading=!1,d.error=t),s&&m.cache.removeOptimistic(e),m.broadcastQueries(),r(t instanceof y.cA?t:new y.cA({networkError:t}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&Pt(n,e.errorPolicy)){if(C(n)||o.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),C(n)&&(0,w.O)(n.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),l=void 0;s.result&&(l=P(s.result,n)),void 0!==l&&(n.data=l,o.push({result:l,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach(function(e,i){var a=e.observableQuery,s=a&&a.queryName;if(s&&At.call(u,s)){var l=u[s],c=r.queries.get(i),d=c.document,f=c.variables,p=t.diff({query:d,variables:f,returnPartialData:!0,optimistic:!1}),h=p.result;if(p.complete&&h){var m=l(h,{mutationResult:n,queryName:d&&(0,G.rY)(d)||void 0,queryVariables:f});m&&o.push({result:m,dataId:"ROOT_QUERY",query:d,variables:f})}}})}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var c=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach(function(e){return t.write(e)});var s,l=e.update,u=!(C(s=n)||function(e){return"hasNext"in e&&"data"in e}(s))||C(n)&&!n.hasNext;if(l){if(!a){var c=t.diff({id:"ROOT_MUTATION",query:r.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(n=(0,i.pi)((0,i.pi)({},n),{data:c.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}u&&l(t,n,{context:e.context,variables:e.variables})}a||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return c.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).then(function(){return n})}return Promise.resolve(n)},e.prototype.markMutationOptimistic=function(e,t){var r=this,o="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,i.pi)((0,i.pi)({},t),{result:{data:o}}),e)}catch(e){__DEV__&&n.kG.error(e)}},t.mutationId)},e.prototype.fetchQuery=function(e,t,r){return this.fetchQueryObservable(e,t,r).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t,r=this.transformCache;if(!r.has(e)){var n=this.cache.transformDocument(e),o=(t=n,he([ve],(0,G.A$)(t))),a=this.localState.clientQuery(n),s=o&&this.localState.serverQuery(o),l={document:n,hasClientExports:c(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:a,serverQuery:s,defaultVars:(0,G.O4)((0,G.$H)(n)),asQuery:(0,i.pi)((0,i.pi)({},n),{definitions:n.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,i.pi)((0,i.pi)({},e),{operation:"query"}):e})})},u=function(e){e&&!r.has(e)&&r.set(e,l)};u(e),u(n),u(a),u(s)}return r.get(e)},e.prototype.getVariables=function(e,t){return(0,i.pi)((0,i.pi)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=(0,i.pi)((0,i.pi)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new Ot(this),r=new Ie({queryManager:this,queryInfo:t,options:e});return this.queries.set(r.queryId,t),t.init({document:r.query,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?(0,n.kG)(e.query,"query option is required. You must specify your GraphQL document in the query option."):(0,n.kG)(e.query,17),__DEV__?(0,n.kG)("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):(0,n.kG)("Document"===e.query.kind,18),__DEV__?(0,n.kG)(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):(0,n.kG)(!e.returnPartialData,19),__DEV__?(0,n.kG)(!e.pollInterval,"pollInterval option only supported on watchQuery."):(0,n.kG)(!e.pollInterval,20),this.fetchQuery(t,e).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new n.ej("Store reset while query was in flight (not completed in link chain)"):new n.ej(21)),this.queries.forEac
172h(function(e){e.observableQuery?e.networkStatus=Se.I.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,o=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?o.set(e,!1):(0,le.JW)(e)?o.set(t.transform(e).document,!1):(0,b.s)(e)&&e.query&&a.add(e)}),this.queries.forEach(function(t,n){var i=t.observableQuery,a=t.document;if(i){if("all"===e)return void r.set(n,i);var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has(a))&&(r.set(n,i),s&&o.set(s,!0),a&&o.set(a,!0))}}),a.size&&a.forEach(function(e){var o=be("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),s=new Ie({queryManager:t,queryInfo:a,options:(0,i.pi)((0,i.pi)({},e),{fetchPolicy:"network-only"})});(0,n.kG)(s.queryId===o),a.setObservableQuery(s),r.set(o,s)}),__DEV__&&o.size&&o.forEach(function(e,t){e||__DEV__&&n.kG.warn("Unknown query ".concat("string"==typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;r=this.transform(r).document,o=this.getVariables(r,o);var l=function(e){return t.getObservableFromLink(r,s,e).map(function(o){"no-cache"!==n&&(Pt(o,i)&&t.cache.write({query:r,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=oe(o),s=(0,y.ls)(o);if(a||s){var l={};throw a&&(l.graphQLErrors=o.errors),s&&(l.protocolErrors=o.extensions[y.YG]),new y.cA(l)}return o})};if(this.transform(r).hasClientExports){var u=this.localState.addExportedVariables(r,o,s).then(l);return new d.y(function(e){var t=null;return u.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return l(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n){var o,s,l=this;void 0===n&&(n=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var u=this.transform(e).serverQuery;if(u){var c=this.inFlightLinkObservables,f=this.link,p={query:u,variables:r,operationName:(0,G.rY)(u)||void 0,context:this.prepareContext((0,i.pi)((0,i.pi)({},t),{forceFetch:!n}))};if(t=p.context,n){var h=c.get(u)||new Map;c.set(u,h);var m=re(r);if(!(s=h.get(m))){var v=new ke([a(f,p)]);h.set(m,s=v),v.beforeNext(function(){h.delete(m)&&h.size<1&&c.delete(u)})}}else s=new ke([a(f,p)])}else s=new ke([d.y.of({data:{}})]),t=this.prepareContext(t);var g=this.transform(e).clientQuery;return g&&(s=ie(s,function(e){return l.localState.runResolvers({document:g,remoteResult:e,context:t,variables:r})})),s},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(this.transform(e.document).document);return ie(this.getObservableFromLink(i,r.context,r.variables),function(o){var a=ae(o),s=a.length>0;if(n>=e.lastRequestId){if(s&&"none"===r.errorPolicy)throw e.markError(new y.cA({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var l={data:o.data,loading:!1,networkStatus:Se.I.ready};return s&&"ignore"!==r.errorPolicy&&(l.errors=a,l.networkStatus=Se.I.error),l},function(t){var r=(0,y.MS)(t)?t:new y.cA({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchQueryObservable=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast},e.prototype.fetchConcastWithInfo=function(e,t,r){var n=this;void 0===r&&(r=Se.I.loading);var i,o,a=this.transform(t.query).document,s=this.getVariables(a,t.variables),l=this.getQuery(e),u=this.defaultOptions.watchQuery,c=t.fetchPolicy,d=void 0===c?u&&u.fetchPolicy||"cache-first":c,f=t.errorPolicy,p=void 0===f?u&&u.errorPolicy||"none":f,h=t.returnPartialData,m=void 0!==h&&h,v=t.notifyOnNetworkStatusChange,g=void 0!==v&&v,y=t.context,b=void 0===y?{}:y,w=Object.assign({},t,{query:a,variables:s,fetchPolicy:d,errorPolicy:p,returnPartialData:m,notifyOnNetworkStatusChange:g,context:b}),x=function(e){w.variables=e;var i=n.fetchQueryByPolicy(l,w,r);return"standby"!==w.fetchPolicy&&i.sources.length>0&&l.observableQuery&&l.observableQuery.applyNextFetchPolicy("after-fetch",t),i},E=function(){return n.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){E(),setTimeout(function(){return i.cancel(e)})}),this.transform(w.query).hasClientExports)i=new ke(this.localState.addExportedVariables(w.query,w.variables,w.context).then(x).then(function(e){return e.sources})),o=!0;else{var k=x(w.variables);o=k.fromLink,i=new ke(k.sources)}return i.promise.then(E,E),{concast:i,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?be("refetchQueries"):void 0:a,l=e.onQueryUpdated,u=new Map;
172n&&this.getObservableQueries(n).forEach(function(e,r){u.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})});var c=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof Ot&&e.watcher.observableQuery;if(n){if(l){u.delete(n.queryId);var i=l(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&c.set(n,i),i}null!==l&&u.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),u.size&&u.forEach(function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;if(l){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=l(i,a,o)}l&&!0!==n||(n=i.refetch()),!1!==n&&c.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),c},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,o=t.query,a=t.variables,s=t.fetchPolicy,l=t.refetchWritePolicy,u=t.errorPolicy,c=t.returnPartialData,f=t.context,p=t.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:this.transform(o).document,variables:a,networkStatus:r});var m=function(){return e.getDiff(a)},v=function(t,r){void 0===r&&(r=e.networkStatus||Se.I.loading);var s=t.result;!__DEV__||c||(0,Q.D)(s,{})||je(t.missing);var l=function(e){return d.y.of((0,i.pi)({data:e,loading:(0,Se.O)(r),networkStatus:r},t.complete?null:{partial:!0}))};return s&&n.transform(o).hasForcedResolvers?n.localState.runResolvers({document:o,remoteResult:{data:s},context:f,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return l(e.data||void 0)}):"none"===u&&r===Se.I.refetch&&Array.isArray(t.missing)?l(void 0):l(s)},g="no-cache"===s?0:r===Se.I.refetch&&"merge"!==l?1:2,y=function(){return n.getResultsFromLink(e,g,{variables:a,context:f,fetchPolicy:s,errorPolicy:u})},b=p&&"number"==typeof h&&h!==r&&(0,Se.O)(r);switch(s){default:case"cache-first":return(w=m()).complete?{fromLink:!1,sources:[v(w,e.markReady())]}:c||b?{fromLink:!0,sources:[v(w),y()]}:{fromLink:!0,sources:[y()]};case"cache-and-network":var w;return(w=m()).complete||c||b?{fromLink:!0,sources:[v(w),y()]}:{fromLink:!0,sources:[y()]};case"cache-only":return{fromLink:!1,sources:[v(m(),e.markReady())]};case"network-only":return b?{fromLink:!0,sources:[v(m()),y()]}:{fromLink:!0,sources:[y()]};case"no-cache":return b?{fromLink:!0,sources:[v(e.getDiff()),y()]}:{fromLink:!0,sources:[y()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Ot(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,i.pi)((0,i.pi)({},t),{clientAwareness:this.clientAwareness})},e}(),Nt=r(10079),Rt=!1,jt=function(){function e(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.uri,i=e.credentials,a=e.headers,s=e.cache,l=e.ssrMode,u=void 0!==l&&l,c=e.ssrForceFetchDelay,d=void 0===c?0:c,f=e.connectToDevTools,p=void 0===f?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:f,h=e.queryDeduplication,m=void 0===h||h,v=e.defaultOptions,g=e.assumeImmutableResults,y=void 0!==g&&g,b=e.resolvers,w=e.typeDefs,x=e.fragmentMatcher,E=e.name,k=e.version,S=e.link;if(S||(S=r?new Z({uri:r,credentials:i,headers:a}):o.i.empty()),!s)throw __DEV__?new n.ej("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new n.ej(9);if(this.link=S,this.cache=s,this.disableNetworkFetches=u||d>0,this.queryDeduplication=m,this.defaultOptions=v||Object.create(null),this.typeDefs=w,d&&setTimeout(function(){return t.disableNetworkFetches=!1},d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),p&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!Rt&&p&&__DEV__&&(Rt=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var _=window.navigator,C=_&&_.userAgent,O=void 0;"string"==typeof C&&(C.indexOf("Chrome/")>-1?O="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":C.indexOf("Firefox/")>-1&&(O="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),O&&__DEV__&&n.kG.log("Download the Apollo DevTools for a better development experience: "+O)}this.version="3.7.14",this.localState=new kt({cache:s,client:this,resolvers:b,fragmentMatcher:x}),this.queryManager=new It({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:m,ssrMode:u,clientAwareness:{name:E,version:k},localState:this.localState,assumeImmutableResults:y,onBroadcast:p?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,Nt.J)(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,i.pi)((0,i.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,Nt.J)(this.defaultOptions.query,e)),__DEV__?(0,n.kG)("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):(0,n.kG)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,i.pi)((0,i.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,Nt.J)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return a(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],i=[];t.forEach(function(e,t){r.push(t),i.push(e)});var o=Promise.all(i);return o.queries=r,o.results=i,o.catch(function(e){__DEV__&&n.kG.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))}),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}();Tt||(Tt={});var Mt=function(){function e(){this.getFragmentDoc=gt(ue.Yk)}return e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.o
172ptimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,i.pi)((0,i.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,i.pi)((0,i.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=(0,i._T)(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,o=e.fragmentName,a=(0,i._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(n,o),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var n=r.readQuery(e),o=t(n);return null==o?n:(r.writeQuery((0,i.pi)((0,i.pi)({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),o=t(n);return null==o?n:(r.writeFragment((0,i.pi)((0,i.pi)({},e),{data:o})),o)}})},e}(),Dt=function(e){function t(r,n,i,o){var a,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var l=s.path.length-1;l>=0;--l)s.missing=((a={})[s.path[l]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,i.ZT)(t,e),t}(Error),Lt=r(49798),Ft=Object.prototype.hasOwnProperty;function Bt(e){return null==e}function Ut(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=Bt(n)?Bt(i)?void 0:{_id:i}:{id:n}),Bt(n)&&!Bt(i)&&(n=i),!Bt(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var Vt={dataIdFromObject:Ut,addTypename:!0,resultCaching:!0,canonizeResults:!1};function zt(e){var t=e.canonizeResults;return void 0===t?Vt.canonizeResults:t}var qt=/^[_a-z][_0-9a-z]*/i;function Ht(e){var t=e.match(qt);return t?t[0]:e}function Gt(e,t,r){return!!(0,b.s)(t)&&((0,w.k)(t)?t.every(function(t){return Gt(e,t,r)}):e.selections.every(function(e){if((0,le.My)(e)&&l(e,r)){var n=(0,le.u2)(e);return Ft.call(t,n)&&(!e.selectionSet||Gt(e.selectionSet,t[n],r))}return!0}))}function $t(e){return(0,b.s)(e)&&!(0,le.Yk)(e)&&!(0,w.k)(e)}function Wt(e,t){var r=(0,ue.F)((0,G.kU)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var Zt=Object.create(null),Qt=function(){return Zt},Yt=Object.create(null),Kt=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,Lt.J)((0,le.Yk)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,le.Yk)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,le.kQ)(e);if((0,le.Yk)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,le.kQ)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,i.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),Ft.call(this.data,e)){var r=this.data[e];if(r&&Ft.call(r,t))return r[t]}return"__typename"===t&&Ft.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof tr?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),Ft.call(this.data,e)?this.data[e]:this instanceof tr?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,i=this;(0,le.Yk)(e)&&(e=e.__ref),(0,le.Yk)(t)&&(t=t.__ref);
172var o="string"==typeof e?this.lookup(r=e):e,a="string"==typeof t?this.lookup(r=t):t;if(a){__DEV__?(0,n.kG)("string"==typeof r,"store.merge expects a string ID"):(0,n.kG)("string"==typeof r,1);var s=new _(nr).merge(o,a);if(this.data[r]=s,s!==o&&(delete this.refs[r],this.group.caching)){var l=Object.create(null);o||(l.__exists=1),Object.keys(a).forEach(function(e){if(!o||o[e]!==s[e]){l[e]=1;var t=Ht(e);t===e||i.policies.hasKeyArgs(s.__typename,t)||(l[t]=1),void 0!==s[e]||i instanceof tr||delete s[e]}}),!l.__typename||o&&o.__typename||this.policies.rootTypenamesById[r]!==s.__typename||delete l.__typename,Object.keys(l).forEach(function(e){return i.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var o=Object.create(null),a=!1,s=!0,l={DELETE:Zt,INVALIDATE:Yt,isReference:le.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,le.kQ)(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(u){var c=Ht(u),d=n[u];if(void 0!==d){var f="function"==typeof t?t:t[u]||t[c];if(f){var p=f===Qt?Zt:f((0,Lt.J)(d),(0,i.pi)((0,i.pi)({},l),{fieldName:c,storeFieldName:u,storage:r.getStorage(e,u)}));p===Yt?r.group.dirty(e,u):(p===Zt&&(p=void 0),p!==d&&(o[u]=p,a=!0,d=p))}void 0!==d&&(s=!1)}}),a)return this.merge(e,o),s&&(this instanceof tr?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=Qt,n):Qt)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(Ft.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof tr&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){Ft.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&Ft.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,i._T)(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof tr?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){Ft.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof tr;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!Ft.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,le.Yk)(e)&&(t[e.__ref]=!0),(0,b.s)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,b.s)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),Jt=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?ht():null,this.keyMaker=new ee(h.mr)}
172,e.prototype.depend=function(e,t){if(this.d){this.d(Xt(e,t));var r=Ht(t);r!==t&&this.d(Xt(e,r)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(Xt(e,t),"__exists"===t?"forget":"setDirty")},e}();function Xt(e,t){return t+"#"+e}function er(e,t){ir(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=void 0===n||n,o=t.seed,a=e.call(this,r,new Jt(i))||this;return a.stump=new rr(a),a.storageTrie=new ee(h.mr),o&&a.replace(o),a}return(0,i.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(Kt||(Kt={}));var tr=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,i.ZT)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){(0,Q.D)(n[r],i[r])||t.group.dirty(e,r)}
172):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,i.pi)((0,i.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return Ft.call(this.data,t)?(0,i.pi)((0,i.pi)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(Kt),rr=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new Jt(t.group.caching,t.group))||this}return(0,i.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(tr);function nr(e,t,r){var n=e[r],i=t[r];return(0,Q.D)(n,i)?n:i}function ir(e){return!!(e instanceof Kt&&e.group.caching)}function or(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var ar=function(){function e(e){var t=this;this.knownResults=new(h.mr?WeakMap:Map),this.config=(0,Pe.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:zt(e)}),this.canon=e.canon||new te,this.executeSelectionSet=gt(function(e){var r,n=e.context.canonizeResults,o=or(e);o[3]=!n;var a=(r=t.executeSelectionSet).peek.apply(r,o);return a?n?(0,i.pi)((0,i.pi)({},a),{result:t.canon.admit(a.result)}):a:(er(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:or,makeCacheKey:function(e,t,r,n){if(ir(r.store))return r.store.makeCacheKey(e,(0,le.Yk)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=gt(function(e){return er(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(ir(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new te},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.rootId,o=void 0===n?"ROOT_QUERY":n,a=e.variables,s=e.returnPartialData,l=void 0===s||s,u=e.canonizeResults,c=void 0===u?this.config.canonizeResults:u,d=this.config.cache.policies;a=(0,i.pi)((0,i.pi)({},(0,G.O4)((0,G.iW)(r))),a);var f,p=(0,le.kQ)(o),h=this.executeSelectionSet({selectionSet:(0,G.p$)(r).selectionSet,objectOrReference:p,enclosingRef:p,context:(0,i.pi)({store:t,query:r,policies:d,variables:a,varString:re(a),canonizeResults:c},Wt(r,this.config.fragments))});if(h.missing&&(f=[new Dt(sr(h.missing),h.missing,r,a)],!l))throw f[0];return{result:h.result,complete:!f,missing:f}},e.prototype.isFresh=function(e,t,r,n){if(ir(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,a=e.context;if((0,le.Yk)(i)&&!a.policies.rootTypenamesById[i.__ref]&&!a.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var s,u=a.variables,c=a.policies,d=a.store.getFieldValue(i,"__typename"),f=[],p=new _;function h(e,t){var r;return e.missing&&(s=p.merge(s,((r={})[t]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof d&&!c.rootIdsByTypename[d]&&f.push({__typename:d});var m=new Set(r.selections);m.forEach(function(e){var r,v;if(l(e,u))if((0,le.My)(e)){var g=c.readField({fieldName:e.name.value,field:e,variables:a.variables,from:i},a),y=(0,le.u2)(e);void 0===g?me.added(e)||(s=p.merge(s,((r={})[y]="Can't find field '".concat(e.name.value,"' on ").concat((0,le.Yk)(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),r))):(0,w.k)(g)?g=h(t.executeSubSelectedArray({field:e,array:g,enclosingRef:o,context:a}),y):e.selectionSet?null!=g&&(g=h(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:g,enclosingRef:(0,le.Yk)(g)?g:o,context:a}),y)):a.canonizeResults&&(g=t.canon.pass(g)),void 0!==g&&f.push(((v={})[y]=g,v))}else{var b=(0,ue.hi)(e,a.lookupFragment);if(!b&&e.kind===se.h.FRAGMENT_SPREAD)throw __DEV__?new n.ej("No fragment named ".concat(e.name.value)):new n.ej(5);b&&c.fragmentMatches(b,d)&&b.selectionSet.selections.forEach(m.add,m)}});var v={result:k(f),missing:s},g=a.canonizeResults?this.canon.admit(v):(0,Lt.J)(v);return g.result&&this.knownResults.set(g.result,r),g},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,i=e.field,o=e.array,a=e.enclosingRef,s=e.context,l=new _;function u(e,r){var n;return e.missing&&(t=l.merge(t,((n={})[r]=e.missing,n))),e.result}return i.selectionSet&&(o=o.filter(s.store.canRead)),o=o.map(function(e,t){return null===e?null:(0,w.k)(e)?u(r.executeSubSelectedArray({field:i,array:e,enclosingRef:a,context:s}),t):i.selectionSet?u(r.executeSelectionSet({selectionSet:i.selectionSet,objectOrReference:e,enclosingRef:(0,le.Yk)(e)?e:a,context:s}),t):(__DEV__&&function(e,t,r){if(!t.selectionSet){var i=new Set([r]);
172i.forEach(function(r){(0,b.s)(r)&&(__DEV__?(0,n.kG)(!(0,le.Yk)(r),"Missing selection set for object of type ".concat(function(e,t){return(0,le.Yk)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,r)," returned for query field ").concat(t.name.value)):(0,n.kG)(!(0,le.Yk)(r),6),Object.values(r).forEach(i.add,i))})}}(s.store,i,e),e)}),{result:s.canonizeResults?this.canon.admit(o):o,missing:t}},e}();function sr(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}var lr=Object.create(null);function ur(e){var t=JSON.stringify(e);return lr[t]||(lr[t]=Object.create(null))}function cr(e){var t=ur(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var i=function(e,t){return r.readField(t,e)},o=r.keyObject=fr(e,function(e){var o=mr(r.storeObject,e,i);return void 0===o&&t!==r.storeObject&&Ft.call(t,e[0])&&(o=mr(t,e,hr)),__DEV__?(0,n.kG)(void 0!==o,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):(0,n.kG)(void 0!==o,2),o});return"".concat(r.typename,":").concat(JSON.stringify(o))})}function dr(e){var t=ur(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=fr(e,function(e){var r=e[0],o=r.charAt(0);if("@"!==o)if("$"!==o){if(t)return mr(t,e)}else{var a=r.slice(1);if(i&&Ft.call(i,a)){var s=e.slice(0);return s[0]=a,mr(i,s)}}else if(n&&(0,w.O)(n.directives)){var l=r.slice(1),u=n.directives.find(function(e){return e.name.value===l}),c=u&&(0,le.NC)(u,i);return c&&mr(c,e.slice(1))}}),s=JSON.stringify(a);return(t||"{}"!==s)&&(o+=":"+s),o})}function fr(e,t){var r=new _;return pr(e).reduce(function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e},Object.create(null))}function pr(e){var t=ur(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach(function(t,i){(0,w.k)(t)?(pr(t).forEach(function(e){return r.push(n.concat(e))}),n.length=0):(n.push(t),(0,w.k)(e[i+1])||(r.push(n.slice(0)),n.length=0))})}return t.paths}function hr(e,t){return e[t]}function mr(e,t,r){return r=r||hr,vr(t.reduce(function e(t,n){return(0,w.k)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function vr(e){return(0,b.s)(e)?(0,w.k)(e)?e.map(vr):fr(Object.keys(e).sort(),function(t){return mr(e,t)}):e}function gr(e){return void 0!==e.args?e.args:e.field?(0,le.NC)(e.field,e.variables):null}le.PT.setStringify(re);var yr=function(){},br=function(e,t){return t.fieldName},wr=function(e,t,r){return(0,r.mergeObjects)(e,t)},xr=function(e,t){return t},Er=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,i.pi)({dataIdFromObject:Ut},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n=this,o=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a,s=t&&t.storeObject||e,l=(0,i.pi)((0,i.pi)({},t),{typename:o,storeObject:s,readField:t&&t.readField||function(){var e=Sr(arguments,s);return n.readField(e,{store:n.cache.data,variables:e.variables})}}),u=o&&this.getTypePolicy(o),c=u&&u.keyFn||this.config.dataIdFromObject;c;){var d=c(e,l);if(!(0,w.k)(d)){a=d;break}c=cr(d)}return a=a?String(a):void 0,l.keyObject?[a,l.keyObject]:[a]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],o=n.queryType,a=n.mutationType,s=n.subscriptionType,l=(0,i._T)(n,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),Ft.call(t.toBeAdded,r)?t.toBeAdded[r].push(l):t.toBeAdded[r]=[l]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?wr:!1===t?xr:e.merge}a(n,t.merge),n.keyFn=!1===i?yr:(0,w.k)(i)?cr(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEac
172h(function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,l=i.read,u=i.merge;n.keyFn=!1===s?br:(0,w.k)(s)?dr(s):"function"==typeof s?s:n.keyFn,"function"==typeof l&&(n.read=l),a(n,u)}n.read&&n.merge&&(n.keyFn=n.keyFn||br)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[r];t!==i&&(__DEV__?(0,n.kG)(!i||i===e,"Cannot change root ".concat(e," __typename more than once")):(0,n.kG)(!i||i===e,3),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(qt);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!Ft.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),o=n.fields,a=(0,i._T)(n,["fields"]);Object.assign(r,a),Object.assign(r.fields,o)})}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,i){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(t,!0),l=[s],u=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&l.indexOf(t)<0&&l.push(t)},c=!(!r||!this.fuzzySubtypes.size),d=!1,f=0;f<l.length;++f){var p=l[f];if(p.has(a))return s.has(a)||(d&&__DEV__&&n.kG.warn("Inferring subtype ".concat(t," of supertype ").concat(a)),s.add(a)),!0;p.forEach(u),c&&f===l.length-1&&Gt(e.selectionSet,r,i)&&(c=!1,d=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&u(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!(!r||!r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),o=i&&i.keyFn;if(o&&r)for(var a={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=gr(e);o;){var l=o(s,a);if(!(0,w.k)(l)){t=l||n;break}o=dr(l)}return void 0===t&&(t=e.field?(0,le.vf)(e.field,e.variables):(0,le.PT)(n,gr(e))),!1===t?n:n===Ht(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=Ht(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,o,!1),l=s&&s.read;if(l){var u=kr(this,r,e,t,t.store.getStorage((0,le.Yk)(r)?r.__ref:r,i));return yt.withValue(this.cache,l,[a,u])}return a}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var o=r.field,a=r.typename,s=r.merge;return s===wr?_r(n.store)(e,t):s===xr?t:(n.overwrite&&(e=void 0),s(e,t,kr(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function kr(e,t,r,n,i){var o=e.getStoreFieldName(r),a=Ht(o),s=r.variables||n.variables,l=n.store,u=l.toReference,c=l.canRead;return{args:gr(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:le.Yk,toReference:u,storage:i,cache:e.cache,canRead:c,readField:function(){return e.readField(Sr(arguments,t,s),n)},mergeObjects:_r(n.store)}}function Sr(e,t,r){var o,a,s,l=e[0],u=e[1],c=e.length;return"string"==typeof l?o={fieldName:l,from:c>1?u:t}:(o=(0,i.pi)({},l),Ft.call(o,"from")||(o.from=t)),__DEV__&&void 0===o.from&&__DEV__&&n.kG.warn("Undefined 'from' passed to readField with arguments ".concat((a=Array.from(e),s=be("stringifyForDisplay"),JSON.stringify(a,function(e,t){return void 0===t?s:t}).split(JSON.stringify(s)).join("<undefined>")))),void 0===o.variables&&(o.variables=r),o}function _r(e){return function(t,r){if((0,w.k)(t)||(0,w.k)(r))throw __DEV__?new n.ej("Cannot automatically merge arrays"):new n.ej(4);if((0,b.s)(t)&&(0,b.s)(r)){var o=e.getFieldValue(t,"__typename"),a=e.getFieldValue(r,"__typename");if(o&&a&&o!==a)return r;if((0,le.Yk)(t)&&$t(r))return e.merge(t.__ref,r),t;if($t(t)&&(0,le.Yk)(r))return e.merge(t,r.__ref),r;if($t(t)&&$t(r))return(0,i.pi)((0,i.pi)({},t),r)}return r}}function Cr(e,t,r){var n="".concat(t).concat(r),o=e.flavors.get(n);return o||e.flavors.set(n,o=e.clientOnly===t&&e.deferred===r?e:(0,i.pi)((0,i.pi)({},e),{clientOnly:t,deferred:r})),o}var Or=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,o=t.query,a=t.result,s=t.dataId,l=t.variables,u=t.overwrite,c=(0,G.$H)(o),d=new _;l=(0,i.pi)((0,i.pi)({},(0,G.O4)(c)),l);var f=(0,i.pi)((0,i.pi)({store:e,written:Object.create(null),merge:function(e,t){return d.merge
172(e,t)},variables:l,varString:re(l)},Wt(o,this.fragments)),{overwrite:!!u,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),p=this.processSelectionSet({result:a||Object.create(null),dataId:s,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:f});if(!(0,le.Yk)(p))throw __DEV__?new n.ej("Could not identify object ".concat(JSON.stringify(a))):new n.ej(7);return f.incomingById.forEach(function(t,i){var o=t.storeObject,a=t.mergeTree,s=t.fieldNodeSet,l=(0,le.kQ)(i);if(a&&a.map.size){var u=r.applyMerges(a,l,o,f);if((0,le.Yk)(u))return;o=u}if(__DEV__&&!f.overwrite){var c=Object.create(null);s.forEach(function(e){e.selectionSet&&(c[e.name.value]=!0)}),Object.keys(o).forEach(function(e){(function(e){return!0===c[Ht(e)]})(e)&&!function(e){var t=a&&a.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,r,i){var o=function(e){var t=i.getFieldValue(e,r);return"object"==typeof t&&t},a=o(e);if(a){var s=o(t);if(s&&!(0,le.Yk)(a)&&!(0,Q.D)(a,s)&&!Object.keys(a).every(function(e){return void 0!==i.getFieldValue(s,e)})){var l=i.getFieldValue(e,"__typename")||i.getFieldValue(t,"__typename"),u=Ht(r),c="".concat(l,".").concat(u);if(!Rr.has(c)){Rr.add(c);var d=[];
172(0,w.k)(a)||(0,w.k)(s)||[a,s].forEach(function(e){var t=i.getFieldValue(e,"__typename");"string"!=typeof t||d.includes(t)||d.push(t)}),__DEV__&&n.kG.warn("Cache data may be lost when replacing the ".concat(u," field of a ").concat(l," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(d.length?"either ensure all objects of type "+d.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(c," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(a).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(s).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(l,o,e,f.store)})}e.merge(i,o)}),e.retain(p.__ref),p},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,o=e.result,a=e.selectionSet,s=e.context,l=e.mergeTree,u=this.cache.policies,c=Object.create(null),d=r&&u.rootTypenamesById[r]||(0,le.qw)(o,a,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof d&&(c.__typename=d);var f=function(){var e=Sr(arguments,c,s.variables);if((0,le.Yk)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var r=u.readField((0,i.pi)((0,i.pi)({},e),{from:t.storeObject}),s);if(void 0!==r)return r}}return u.readField(e,s)},p=new Set;this.flattenFields(a,o,s,d).forEach(function(e,r){var i,a=(0,le.u2)(r),s=o[a];if(p.add(r),void 0!==s){var h=u.getStoreFieldName({typename:d,fieldName:r.name.value,field:r,variables:e.variables}),m=Tr(l,h),v=t.processFieldValue(s,r,r.selectionSet?Cr(e,!1,!1):e,m),g=void 0;r.selectionSet&&((0,le.Yk)(v)||$t(v))&&(g=f("__typename",v));var y=u.getMergeFunction(d,r.name.value,g);y?m.info={field:r,typename:d,merge:y}:Nr(l,h),c=e.merge(c,((i={})[h]=v,i))}else!__DEV__||e.clientOnly||e.deferred||me.added(r)||u.getReadFunction(d,r.name.value)||__DEV__&&n.kG.error("Missing field '".concat((0,le.u2)(r),"' while writing result ").concat(JSON.stringify(o,null,2)).substring(0,1e3))});try{var h=u.identify(o,{typename:d,selectionSet:a,fragmentMap:s.fragmentMap,storeObject:c,readField:f}),m=h[0],v=h[1];r=r||m,v&&(c=s.merge(c,v))}catch(e){if(!r)throw e}if("string"==typeof r){var g=(0,le.kQ)(r),y=s.written[r]||(s.written[r]=[]);if(y.indexOf(a)>=0)return g;if(y.push(a),this.reader&&this.reader.isFresh(o,g,a,s))return g;var b=s.incomingById.get(r);return b?(b.storeObject=s.merge(b.storeObject,c),b.mergeTree=Ar(b.mergeTree,l),p.forEach(function(e){return b.fieldNodeSet.add(e)})):s.incomingById.set(r,{storeObject:c,mergeTree:Ir(l)?void 0:l,fieldNodeSet:p}),g}return c},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,w.k)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,r,Tr(n,o));return Nr(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):__DEV__?Ce(e):e},e.prototype.flattenFields=function(e,t,r,i){void 0===i&&(i=(0,le.qw)(t,e,r.fragmentMap));var o=new Map,a=this.cache.policies,s=new ee(!1);return function e(u,c){var d=s.lookup(u,c.clientOnly,c.deferred);d.visited||(d.visited=!0,u.selections.forEach(function(s){if(l(s,r.variables)){var u=c.clientOnly,d=c.deferred;if(u&&d||!(0,w.O)(s.directives)||s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var n=(0,le.NC)(e,r.variables);n&&!1===n.if||(d=!0)}}),(0,le.My)(s)){var f=o.get(s);f&&(u=u&&f.clientOnly,d=d&&f.deferred),o.set(s,Cr(r,u,d))}else{var p=(0,ue.hi)(s,r.lookupFragment);if(!p&&s.kind===se.h.FRAGMENT_SPREAD)throw __DEV__?new n.ej("No fragment named ".concat(s.name.value)):new n.ej(8);p&&a.fragmentMatches(p,i,t,r.variables)&&e(p.selectionSet,Cr(r,u,d))}}}))}(e,r),o},e.prototype.applyMerges=function(e,t,r,o,a){var s,l=this;if(e.map.size&&!(0,le.Yk)(r)){var u,c=(0,w.k)(r)||!(0,le.Yk)(t)&&!$t(t)?void 0:t,d=r;c&&!a&&(a=[(0,le.Yk)(c)?c.__ref:c]);var f=function(e,t){return(0,w.k)(e)?"number"==typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};
172e.map.forEach(function(e,t){var r=f(c,t),i=f(d,t);if(void 0!==i){a&&a.push(t);var s=l.applyMerges(e,r,i,o,a);s!==i&&(u=u||new Map).set(t,s),a&&(0,n.kG)(a.pop()===t)}}),u&&(r=(0,w.k)(d)?d.slice(0):(0,i.pi)({},d),u.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,o,a&&(s=o.store).getStorage.apply(s,a)):r},e}(),Pr=[];function Tr(e,t){var r=e.map;return r.has(t)||r.set(t,Pr.pop()||{map:new Map}),r.get(t)}function Ar(e,t){if(e===t||!t||Ir(t))return e;if(!e||Ir(e))return t;var r=e.info&&t.info?(0,i.pi)((0,i.pi)({},e.info),t.info):e.info||t.info,n=e.map.size&&t.map.size,o={info:r,map:n?new Map:e.map.size?e.map:t.map};if(n){var a=new Set(t.map.keys());e.map.forEach(function(e,r){o.map.set(r,Ar(e,t.map.get(r))),a.delete(r)}),a.forEach(function(r){o.map.set(r,Ar(t.map.get(r),e.map.get(r)))})}return o}function Ir(e){return!e||!(e.info||e.map.size)}function Nr(e,t){var r=e.map,n=r.get(t);n&&Ir(n)&&(Pr.push(n),r.delete(t))}var Rr=new Set,jr=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.typenameDocumentCache=new Map,r.makeVar=Et,r.txCount=0,r.config=function(e){return(0,Pe.o)(Vt,e)}(t),r.addTypename=!!r.config.addTypename,r.policies=new Er({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,i.ZT)(t,e),t.prototype.init=function(){var e=this.data=new Kt.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new Or(this,this.storeReader=new ar({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:zt(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=gt(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(ir(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,re({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore((0,i.pi)((0,i.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(e){if(e instanceof Dt)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(Ft.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,i.pi)((0,i.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,r=this;return this.watches.size||wt(t=this).vars.forEach(function(e){return e.attachCache(t)}),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){r.watches.delete(e)&&!r.watches.size&&xt(r),r.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){re.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,le.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){__DEV__&&n.kG.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(Ft.call(e,"id"))return!1;e=(0,i.pi)((0,i.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),re.reset(),e&&e.discardWatches?(this.watches.forEac
172h(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),xt(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,o=e.optimistic,a=void 0===o||o,s=e.removeOptimistic,l=e.onWatchUpdated,u=function(e){var i=r,o=i.data,a=i.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=o,r.optimisticData=a}},c=new Set;return l&&!this.txCount&&this.broadcastWatches((0,i.pi)((0,i.pi)({},e),{onWatchUpdated:function(e){return c.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,u):!1===a?u(this.data):u(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),l&&c.size?(this.broadcastWatches((0,i.pi)((0,i.pi)({},e),{onWatchUpdated:function(e,t){var r=l.call(this,e,t);return!1!==r&&c.delete(e),r}})),c.size&&c.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=me(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.transformForLink=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,n,r))||r&&(0,Q.D)(r.result,n.result)||e.callback(e.lastDiff=n,r)},t}(Mt),Mr=o.i.empty,Dr=o.i.from,Lr=o.i.split,Fr=o.i.concat;function Br(e){var t=!1;return new Promise(function(r,i){e.subscribe({next:function(e){t?__DEV__&&n.kG.warn("Promise Wrapper does not support multiple results from Observable"):(t=!0,r(e))},error:i})})}function Ur(e){return new d.y(function(t){e.then(function(e){t.next(e),t.complete()}).catch(t.error.bind(t))})}var Vr=r(61795),zr=r(94621);(0,Vr.U6)(n.Rk?"log":"silent");var qr=r(27378),Hr=r(47614),Gr=function(e){var t=e.client,r=e.children,i=(0,Hr.K)();return qr.createElement(i.Consumer,null,function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),__DEV__?(0,n.kG)(e.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):(0,n.kG)(e.client,29),qr.createElement(i.Provider,{value:e},r)})},$r=function(e){var t=(0,Hr.K)();return qr.createElement(t.Consumer,null,function(t){return __DEV__?(0,n.kG)(t&&t.client,'Could not find "client" in the context of ApolloConsumer. Wrap the root component in an <ApolloProvider>.'):(0,n.kG)(t&&t.client,28),e.children(t.client)})},Wr=r(47959),Zr=r(30127),Qr=r(94062);function Yr(e,t){var r=(0,Wr.x)(null==t?void 0:t.client);(0,Qr.Vp)(e,Qr.n_.Mutation);var n=(0,qr.useState)({called:!1,loading:!1,client:r}),o=n[0],a=n[1],s=(0,qr.useRef)({result:o,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});Object.assign(s.current,{client:r,options:t,mutation:e});var l=(0,qr.useCallback)(function(e){void 0===e&&(e={});var t=s.current,r=t.options,n=t.mutation,o=(0,i.pi)((0,i.pi)({},r),{mutation:n}),l=e.client||s.current.client;s.current.result.loading||o.ignoreResults||!s.current.isMounted||a(s.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:l});var u=++s.current.mutationId,c=(0,Nt.J)(o,e);return l.mutate(c).then(function(t){var r,n=t.data,i=t.errors,o=i&&i.length>0?new y.cA({graphQLErrors:i}):void 0;if(u===s.current.mutationId&&!c.ignoreResults){var d={called:!0,loading:!1,data:n,error:o,client:l};s.current.isMounted&&!(0,Q.D)(s.current.result,d)&&a(s.current.result=d)}var f=e.onCompleted||(null===(r=s.current.options)||void 0===r?void 0:r.onCompleted);return null==f||f(t.data,c),t}).catch(function(t){var r;if(u===s.current.mutationId&&s.current.isMounted){var n={loading:!1,error:t,data:void 0,called:!0,client:l};(0,Q.D)(s.current.result,n)||a(s.current.result=n)}var i=e.onError||(null===(r=s.current.options)||void 0===r?void 0:r.onError);if(i)return i(t,c),{data:void 0,errors:t};throw t})},[]),u=(0,qr.useCallback)(function(){s.current.isMounted&&a({called:!1,loading:!1,client:r})},[]);return(0,qr.useEffect)(function(){return s.current.isMounted=!0,function(){s.current.isMounted=!1}},[]),[l,(0,i.pi)({reset:u},o)]}var Kr=r(37416);function Jr(e,t){var r=(0,qr.useRef)(!1),i=(0,Wr.x)(null==t?void 0:t.client);(0,Qr.Vp)(e,Qr.n_.Subscription);var o=(0,qr.useState)({loading:!(null==t?void 0:t.skip),error:void 0,data:void 0,variables:null==t?void 0:t.variables}),a=o[0],s=o[1];r.current||(r.current=!0,(null==t?void 0:t.onSubscriptionData)&&__DEV__&&n.kG.warn(t.onData?"'useSubscription' supports only the 'onSubscriptionData' or 'onData' option, but not both. Only the 'onData' option will be used.":"'onSubscriptionData' is deprecated and will be removed in a future major version. Please use the 'onData' option instead."),(null==t?void 0:t.onSubscriptionComplete)&&__DEV__&&n.kG.warn(t.onComplete?"'useSubscription' supports only the 'onSubscriptionComplete' or 'onComplete' option, but not both. Only the 'onComplete' option will be used.":"'onSubscriptionComplete' is deprecated and will be removed in a future major version. Please use the 'onComplete' option instead."));var l=(0,qr.useState)(function(){return(null==t?void 0:t.skip)?null:i.subscribe({query:e,variables:null==t?void 0:t.variables,fetchPolicy:null==t?void 0:t.fetchPolicy,context:null==t?void 0:t.context})}),u=l[0],c=l[1],d=(0,qr.useRef)(!1);(0,qr.useEffect)(function(){return function(){d.current=!0}},[]);var f=(0,qr.useRef)({client:i,subscription:e,options:t});return(0,qr.useEffect)(function(){var r,n,o,a,l=null==t?void 0:t.shouldResubscribe;"function"==typeof l&&(l=!!l(t)),(null==t?void 0:t.skip)?(!(null==t?void 0:t.skip)!=!(null===(r=f.current.options)||void 0===r?void 0:r.skip)||d.current)&&(s({loading:!1,data:void 0,error:void 0,variables:null==t?void 0:t.variables}),c(null),d.current=!1):(!1===l||i===f.current.client&&e===f.current.subscription&&(null==t?void 0:t.fetchPolicy)===(null===(n=f.current.options)||void 0===n?void 0:n.fetchPolicy)&&!(null==t?void 0:t.skip)==!(null===(o=f.current.options)||void 0===o?void 0:o.skip)&&(0,Q.D)(null==t?void 0:t.variables,null===(a=f.current.options)||void 0===a?void 0:a.variables))&&!d.current||(s({loading:!0,data:void 0,error:void 0,variables:null==t?void 0:t.variables}),c(i.subscribe({query:e,variables:null==t?void 0:t.variables,fetchPolicy:null==t?void 0:t.fetchPolicy,context:null==t?void 0:t.context})),d.current=!1),Object.assign(f.current,{client:i,subscription:e,options:t})},[i,e,t,d.current]),(0,qr.useEffect)(function(){if(u){var e=!1,r=u.subscribe({next:function(r){var n,o;if(!e){var a={loading:!1,data:r.data,error:void 0,variables:null==t?void 0:t.variables};s(a),(null===(n=f.current.options)||void 0===n?void 0:n.onData)?f.current.options.onData({client:i,data:a}):(null===(o=f.current.options)||void 0===o?void 0:o.onSubscriptionData)&&f.current.options.onSubscriptionData({client:i,subscriptionData:a})}},error:function(r){var n,i;e||(s({loading:!1,data:void 0,error:r,variables:null==t?void 0:t.variables}),null===(i=null===(n=f.current.options)||void 0===n?void 0:n.onError)||void 0===i||i.call(n,r))},complete:function(){var t,r;e||((null===(t=f.current.options)||void 0===t?void 0:t.onComplete)?f.current.options.onComplete():(null===(r=f.current.options)||void 0===r?void 0:r.onSubscriptionComplete)&&f.current.options.onSubscriptionComplete())}});return function(){e=!0,setTimeout(function(){r.unsubscribe()})}}},[u]),a}function Xr(e){var t=e(),r=(0,qr.useState)(t)[1];return(0,qr.useEffect)(function(){var n=e();if(t===n)return e.onNextChange(r);r(n)},[t]),t}var en=r(59022);function tn(e){var t=(0,Wr.x)().cache,r=e.fragment,n=e.fragmentName,o=e.from,a=e.optimistic,s=void 0===a||a,l=(0,i._T)(e,["fragment","fragmentName","from","optimistic"]),u=(0,i.pi)((0,i.pi)({},l),{id:"string"==typeof o?o:t.identify(o),query:t.getFragmentDoc(r,n),optimistic:s}),c=(0,qr.useRef)(),d=t.diff(u),f=function(){var e=rn(d);return c.current&&(0,Q.D)(c.current.data,e.data)?c.current:c.current=e};return(0,en.$)(function(e){return t.watch((0,i.pi)((0,i.pi)({},u),{immediate:!0,callback:function(t){(0,Q.D)(t,d)||(c.current=rn(d=t),e())}}))},f,f)}function rn(e){var t={data:e.result,complete:!!e.complete};return e.missing&&(t.missing=k(e.missing.map(function(e){return e.missing}))),t}}
172,54413:function(e,t,r){"use strict";r.r(t),r.d(t,{setContext:function(){return a}});var n=r(85556),i=r(20242),o=r(4105);function a(e){return new i.i(function(t,r){var i=(0,n._T)(t,[]);return new o.y(function(n){var o,a=!1;return Promise.resolve(i).then(function(r){return e(r,t.getContext())}).then(t.setContext).then(function(){a||(o=r(t).subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}))}).catch(n.error.bind(n)),function(){a=!0,o&&o.unsubscribe()}})})}},20242:function(e,t,r){"use strict";r.d(t,{i:function(){return d}});var n=r(85556),i=r(20091),o=r(4105),a=r(71433);function s(e,t){return t?t(e):o.y.of()}function l(e){return"function"==typeof e?new d(e):e}function u(e){return e.request.length<=1}var c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.link=r,n}return(0,n.ZT)(t,e),t}(Error),d=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return o.y.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(l).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i=l(r),a=l(n||new e(s));return u(i)&&u(a)?new e(function(e){return t(e)?i.request(e)||o.y.of():a.request(e)||o.y.of()}):new e(function(e,r){return t(e)?i.request(e,r)||o.y.of():a.request(e,r)||o.y.of()})},e.execute=function(e,t){return e.request(function(e,t){var r=(0,n.pi)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r="function"==typeof e?(0,n.pi)((0,n.pi)({},r),e(r)):(0,n.pi)((0,n.pi)({},r),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,n.pi)({},r)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?(0,a.rY)(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var o=n[r];if(t.indexOf(o)<0)throw __DEV__?new i.ej("illegal argument: ".concat(o)):new i.ej(27)}return e}(t))))||o.y.of()},e.concat=function(t,r){var n=l(t);if(u(n))return __DEV__&&i.kG.warn(new c("You are calling concat on a terminating link, which will have no effect",n)),n;var a=l(r);return u(a)?new e(function(e){return n.request(e,function(e){return a.request(e)||o.y.of()})||o.y.of()}):new e(function(e,t){return n.request(e,function(e){return a.request(e,t)||o.y.of()})||o.y.of()})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(s)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new i.ej("request is not implemented"):new i.ej(22)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},47614:function(e,t,r){"use strict";r.d(t,{K:function(){return o}});var n=r(27378),i=r(51942).aS?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function o(){var e=n.createContext[i];return e||(Object.defineProperty(n.createContext,i,{value:e=n.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},47959:function(e,t,r){"use strict";r.d(t,{x:function(){return a}});var n=r(20091),i=r(27378),o=r(47614);function a(e){var t=(0,i.useContext)((0,o.K)()),r=e||t.client;return __DEV__?(0,n.kG)(!!r,'Could not find "client" in the context or passed in as an option. Wrap the root component in an <ApolloProvider>, or pass an ApolloClient instance in via options.'):(0,n.kG)(!!r,32),r}},30127:function(e,t,r){"use strict";r.d(t,{t:function(){return u}});var n=r(85556),i=r(27378),o=r(10079),a=r(37416),s=r(47959),l=["refetch","reobserve","fetchMore","updateQuery","startPolling","subscribeToMore"];function u(e,t){var r,u=(0,i.useRef)(),c=(0,i.useRef)(),d=(0,i.useRef)(),f=u.current?(0,o.J)(t,u.current):t,p=null!==(r=null==f?void 0:f.query)&&void 0!==r?r:e;c.current=f,d.current=p;var h=(0,a.A)((0,s.x)(t&&t.client),p),m=h.useQuery((0,n.pi)((0,n.pi)({},f),{skip:!u.current})),v=m.observable.options.initialFetchPolicy||h.getDefaultFetchPolicy(),g=Object.assign(m,{called:!!u.current}),y=(0,i.useMemo)(function(){for(var e={},t=function(t){var r=g[t];e[t]=function(){return u.current||(u.current=Object.create(null),h.forceUpdate()),r.apply(this,arguments)}},r=0,n=l;r<n.length;r++)t(n[r]);return e},[]);Object.assign(g,y);var b=(0,i.useCallback)(function(e){u.current=e?(0,n.pi)((0,n.pi)({},e),{fetchPolicy:e.fetchPolicy||v}):{fetchPolicy:v};var t=(0,o.J)(c.current,(0,n.pi)({query:d.current},u.current)),r=h.executeQuery((0,n.pi)((0,n.pi)({},t),{skip:!1})).then(function(e){return Object.assign(e,y)});return r.catch(function(){}),r},[]);return[b,g]}},37416:function(e,t,r){"use strict";r.d(t,{A:function(){return w},a:function(){return b}});var n=r(85556),i=r(20091),o=r(27378),a=r(59022),s=r(4055),l=r(10079),u=r(47614),c=r(13796),d=r(10877),f=r(94062),p=r(47959),h=r(49798),m=r(51942),v=r(46213),g=r(82274),y=Object.prototype.hasOwnProperty;function b(e,t){return void 0===t&&(t=Object.create(null)),w((0,p.x)(t.client),e).useQuery(t)}function w(e,t){var r=(0,o.useRef)();r.current&&e===r.current.client&&t===r.current.query||(r.current=ne
172w x(e,t,r.current));var n=r.current,i=(0,o.useState)(0),a=(i[0],i[1]);return n.forceUpdate=function(){a(function(e){return e+1})},n}var x=function(){function e(e,t,r){this.client=e,this.query=t,this.ssrDisabledResult=(0,h.J)({loading:!0,data:void 0,error:void 0,networkStatus:d.I.loading}),this.skipStandbyResult=(0,h.J)({loading:!1,data:void 0,error:void 0,networkStatus:d.I.ready}),this.toQueryResultCache=new(m.mr?WeakMap:Map),(0,f.Vp)(t,f.n_.Query);var n=r&&r.result,i=n&&n.data;i&&(this.previousData=i)}return e.prototype.forceUpdate=function(){__DEV__&&i.kG.warn("Calling default no-op implementation of InternalState#forceUpdate")},e.prototype.executeQuery=function(e){var t,r=this;e.query&&Object.assign(this,{query:e.query}),this.watchQueryOptions=this.createWatchQueryOptions(this.queryHookOptions=e);var n=this.observable.reobserveAsConcast(this.getObsQueryOptions());return this.previousData=(null===(t=this.result)||void 0===t?void 0:t.data)||this.previousData,this.result=void 0,this.forceUpdate(),new Promise(function(e){var t;n.subscribe({next:function(e){t=e},error:function(){e(r.toQueryResult(r.observable.getCurrentResult()))},complete:function(){e(r.toQueryResult(t))}})})},e.prototype.useQuery=function(e){var t=this;this.renderPromises=(0,o.useContext)((0,u.K)()).renderPromises,this.useOptions(e);var r=this.useObservableQuery(),n=(0,a.$)((0,o.useCallback)(function(){if(t.renderPromises)return function(){};var e=function(){var e=t.result,n=r.getCurrentResult();e&&e.loading===n.loading&&e.networkStatus===n.networkStatus&&(0,s.D)(e.data,n.data)||t.setResult(n)},n=function(o){var a=r.last;i.unsubscribe();try{r.resetLastResults(),i=r.subscribe(e,n)}finally{r.last=a}if(!y.call(o,"graphQLErrors"))throw o;var l=t.result;(!l||l&&l.loading||!(0,s.D)(o,l.error))&&t.setResult({data:l&&l.data,error:o,loading:!1,networkStatus:d.I.error})},i=r.subscribe(e,n);return function(){return setTimeout(function(){return i.unsubscribe()})}},[r,this.renderPromises,this.client.disableNetworkFetches]),function(){return t.getCurrentResult()},function(){return t.getCurrentResult()});return this.unsafeHandlePartialRefetch(n),this.toQueryResult(n)},e.prototype.useOptions=function(t){var r,n=this.createWatchQueryOptions(this.queryHookOptions=t),i=this.watchQueryOptions;(0,s.D)(n,i)||(this.watchQueryOptions=n,i&&this.observable&&(this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(r=this.result)||void 0===r?void 0:r.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||e.prototype.onCompleted,this.onError=t.onError||e.prototype.onError,!this.renderPromises&&!this.client.disableNetworkFetches||!1!==this.queryHookOptions.ssr||this.queryHookOptions.skip?this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:this.result!==this.ssrDisabledResult&&this.result!==this.skipStandbyResult||(this.result=void 0):this.result=this.ssrDisabledResult},e.prototype.getObsQueryOptions=function(){var e=[],t=this.client.defaultOptions.watchQuery;return t&&e.push(t),this.queryHookOptions.defaultOptions&&e.push(this.queryHookOptions.defaultOptions),e.push((0,v.o)(this.observable&&this.observable.options,this.watchQueryOptions)),e.reduce(l.J)},e.prototype.createWatchQueryOptions=function(e){var t;void 0===e&&(e={});var r=e.skip,i=(e.ssr,e.onCompleted,e.onError,e.defaultOptions,(0,n._T)(e,["skip","ssr","onCompleted","onError","defaultOptions"])),o=Object.assign(i,{query:this.query});if(!this.renderPromises||"network-only"!==o.fetchPolicy&&"cache-and-network"!==o.fetchPolicy||(o.fetchPolicy="cache-first"),o.variables||(o.variables={}),r){var a=o.fetchPolicy,s=void 0===a?this.getDefaultFetchPolicy():a,l=o.initialFetchPolicy,u=void 0===l?s:l;Object.assign(o,{initialFetchPolicy:u,fetchPolicy:"standby"})}else o.fetchPolicy||(o.fetchPolicy=(null===(t=this.observable)||void 0===t?void 0:t.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return o},e.prototype.getDefaultFetchPolicy=function(){var e,t;return(null===(e=this.queryHookOptions.defaultOptions)||void 0===e?void 0:e.fetchPolicy)||(null===(t=this.client.defaultOptions.watchQuery)||void 0===t?void 0:t.fetchPolicy)||"cac
172he-first"},e.prototype.onCompleted=function(e){},e.prototype.onError=function(e){},e.prototype.useObservableQuery=function(){var e=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=(0,o.useMemo)(function(){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}},[e]);var t=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&t&&(this.renderPromises.registerSSRObservable(e),e.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(e)),e},e.prototype.setResult=function(e){var t=this.result;t&&t.data&&(this.previousData=t.data),this.result=e,this.forceUpdate(),this.handleErrorOrCompleted(e)},e.prototype.handleErrorOrCompleted=function(e){var t=this;if(!e.loading){var r=this.toApolloError(e);Promise.resolve().then(function(){r?t.onError(r):e.data&&t.onCompleted(e.data)}).catch(function(e){__DEV__&&i.kG.warn(e)})}},e.prototype.toApolloError=function(e){return(0,g.O)(e.errors)?new c.cA({graphQLErrors:e.errors}):e.error},e.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},e.prototype.toQueryResult=function(e){var t=this.toQueryResultCache.get(e);if(t)return t;var r=e.data,i=(e.partial,(0,n._T)(e,["data","partial"]));return this.toQueryResultCache.set(e,t=(0,n.pi)((0,n.pi)((0,n.pi)({data:r},i),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!t.error&&(0,g.O)(e.errors)&&(t.error=new c.cA({graphQLErrors:e.errors})),t},e.prototype.unsafeHandlePartialRefetch=function(e){!e.partial||!this.queryHookOptions.partialRefetch||e.loading||e.data&&0!==Object.keys(e.data).length||"cache-only"===this.observable.options.fetchPolicy||(Object.assign(e,{loading:!0,networkStatus:d.I.refetch}),this.observable.refetch())},e}()},59022:function(e,t,r){"use strict";var n;r.d(t,{$:function(){return l}});var i=r(20091),o=r(27378),a=r(51942),s=!1,l=(n||(n=r.t(o,2))).useSyncExternalStore||function(e,t,r){var n=t();__DEV__&&!s&&n!==t()&&(s=!0,__DEV__&&i.kG.error("The result of getSnapshot should be cached to avoid an infinite loop"));var l=o.useState({inst:{value:n,getSnapshot:t}}),c=l[0].inst,d=l[1];return a.JC?o.useLayoutEffect(function(){Object.assign(c,{value:n,getSnapshot:t}),u(c)&&d({inst:c})},[e,n,t]):Object.assign(c,{value:n,getSnapshot:t}),o.useEffect(function(){return u(c)&&d({inst:c}),e(function(){u(c)&&d({inst:c})})},[e]),n};function u(e){var t=e.value,r=e.getSnapshot;try{return t!==r()}catch(e){return!0}}},94062:function(e,t,r){"use strict";r.d(t,{E2:function(){return s},Vp:function(){return l},mw:function(){return a},n_:function(){return n}});var n,i=r(20091);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(n||(n={}));var o=new Map;function a(e){var t;switch(e){case n.Query:t="Query";break;case n.Mutation:t="Mutation";break;case n.Subscription:t="Subscription"}return t}function s(e){var t,r,a=o.get(e);if(a)return a;__DEV__?(0,i.kG)(!!e&&!!e.kind,"Argument of ".concat(e," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):(0,i.kG)(!!e&&!!e.kind,33);for(var s=[],l=[],u=[],c=[],d=0,f=e.definitions;d<f.length;d++){var p=f[d];if("FragmentDefinition"!==p.kind){if("OperationDefinition"===p.kind)switch(p.operation){case"query":l.push(p);break;case"mutation":u.push(p);break;case"subscription":c.push(p)}}else s.push(p)}__DEV__?(0,i.kG)(!s.length||l.length||u.length||c.length,"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well"):(0,i.kG)(!s.length||l.length||u.length||c.length,34),__DEV__?(0,i.kG)(l.length+u.length+c.length<=1,"react-apollo only supports a query, subscription, or a mutation per HOC. "+"".concat(e," had ").concat(l.length," queries, ").concat(c.length," ")+"subscriptions and ".concat(u.length," mutations. ")+"You can use 'compose' to join multiple operation types to a component"):(0,i.kG)(l.length+u.length+c.length<=1,35),r=l.length?n.Query:n.Mutation,l.length||u.length||(r=n.Subscription);var h=l.length?l:u.length?u:c;__DEV__?(0,i.kG)(1===h.length,"react-apollo only supports one definition per HOC. ".concat(e," had ")+"".concat(h.length," definitions. ")+"You can use 'compose' to join multiple operation types to a component"):(0,i.kG)(1===h.length,36);var m=h[0];t=m.variableDefinitions||[];var v={name:m.name&&"Name"===m.name.kind?m.name.value:"data",type:r,variables:t};return o.set(e,v),v}function l(e,t){var r=s(e),n=a(t),o=a(r.type);__DEV__?(0,i.kG)(r.type===t,"Running a ".concat(n," requires a graphql ")+"".concat(n,", but a ").concat(o," was used instead.")):(0,i.kG)(r.type===t,37)}},82274:function(e,t,r){"use strict";r.d(t,{O:function(){return i},k:function(){return n}});var n=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},51942:function(e,t,r){"use strict";r.d(t,{DN:function(){return s},JC:function(){return c},aS:function(){return a},mr:function(){return i},sy:function(){return o}});var n=r(20091),i="function"==typeof WeakMap&&"ReactNative"!==(0,n.wY)(function(){return navigator.product}),o="function"==typeof WeakSet,a="function"==typeof Symbol&&"function"==typeof Symbol.for,s=a&&Symbol.asyncIterator,l="function"==typeof(0,n.wY)(function(){return window.document.createElement}),u=(0,n.wY)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,c=l&&!u},46213:function(e,t,r){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];void 0!==n&&(r[t]=n)})}),r}r.d(t,{o:function(){return n}})},49798:function(e,t,r){"use strict";r.d(t,{J:function(){return i}}),r(20091);var n=r(98306);
172function i(e){return __DEV__&&(t=e,(r=new Set([t])).forEach(function(e){(0,n.s)(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(t){(0,n.s)(e[t])&&r.add(e[t])})})),e;var t,r}},10079:function(e,t,r){"use strict";r.d(t,{J:function(){return o}});var n=r(85556),i=r(46213);function o(e,t){return(0,i.o)(e,t,t.variables&&{variables:(0,n.pi)((0,n.pi)({},e&&e.variables),t.variables)})}},98306:function(e,t,r){"use strict";function n(e){return null!==e&&"object"==typeof e}r.d(t,{s:function(){return n}})},20091:function(e,t,r){"use strict";r.d(t,{Rk:function(){return l},ej:function(){return n.ej},kG:function(){return n.kG},wY:function(){return i}});var n=r(61795);function i(e){try{return e()}catch(e){}}var o=i(function(){return globalThis})||i(function(){return window})||i(function(){return self})||i(function(){return global})||i(function(){return i.constructor("return this")()}),a="__",s=[a,a].join("DEV"),l=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(o,s,{value:"production"!==i(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),o[s]}}();function u(e){try{return e()}catch(e){}}var c=u(function(){return globalThis})||u(function(){return window})||u(function(){return self})||u(function(){return global})||u(function(){return u.constructor("return this")()}),d=!1;!c||u(function(){return"production"})||u(function(){return process})||(Object.defineProperty(c,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),d=!0),r(65839).H,d&&(delete c.process,d=!1),__DEV__?(0,n.kG)("boolean"==typeof l,l):(0,n.kG)("boolean"==typeof l,39)},78847:function(e,t,r){"use strict";r.d(t,{F:function(){return a},Yk:function(){return o},hi:function(){return s}});var n=r(85556),i=r(20091);function o(e,t){var r=t,o=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new i.ej("Found a ".concat(e.operation," operation").concat(e.name?" named '".concat(e.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new i.ej(44);"FragmentDefinition"===e.kind&&o.push(e)}),void 0===r&&(__DEV__?(0,i.kG)(1===o.length,"Found ".concat(o.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):(0,i.kG)(1===o.length,45),r=o[0].name.value),(0,n.pi)((0,n.pi)({},e),{definitions:(0,n.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function a(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function s(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return __DEV__?(0,i.kG)(n,"No fragment named ".concat(r)):(0,i.kG)(n,46),n||null;default:return null}}},71433:function(e,t,r){"use strict";r.d(t,{$H:function(){return a},A$:function(){return o},O4:function(){return f},iW:function(){return u},kU:function(){return l},p$:function(){return d},pD:function(){return c},rY:function(){return s}});var n=r(20091),i=r(55136);function o(e){__DEV__?(0,n.kG)(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,n.kG)(e&&"Document"===e.kind,47);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new n.ej('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new n.ej(48);return e});return __DEV__?(0,n.kG)(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):(0,n.kG)(t.length<=1,49),e}function a(e){return o(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function l(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function u(e){var t=a(e);return __DEV__?(0,n.kG)(t&&"query"===t.operation,"Must contain a query definition."):(0,n.kG)(t&&"query"===t.operation,50),t}function c(e){__DEV__?(0,n.kG)("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,n.kG)("Document"===e.kind,51),__DEV__?(0,n.kG)(e.definitions.length<=1,"Fragment must have exactly one definition."):(0,n.kG)(e.definitions.length<=1,52);var t=e.definitions[0];return __DEV__?(0,n.kG)("FragmentDefinition"===t.kind,"Must be a fragment definition."):(0,n.kG)("FragmentDefinition"===t.kind,53),t}function d(e){var t;o(e);for(var r=0,i=e.definitions;r<i.length;r++){var a=i[r];if("OperationDefinition"===a.kind){var s=a.operation;if("query"===s||"mutation"===s||"subscription"===s)return a}"FragmentDefinition"!==a.kind||t||(t=a)}if(t)return t;throw __DEV__?new n.ej("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new n.ej(54)}function f(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&(0,i.vb)(t,e.variable.name,e.defaultValue)}),t}},55136:function(e,t,r){"use strict";r.d(t,{Ao:function(){return b},JW:function(){return l},My:function(){return y},NC:function(){return m},PT:function(){return f},Yk:function(){return s},kQ:function(){return a},qw:function(){return g},u2:function(){return v},vb:function(){return u},vf:function(){return c}});var n=r(20091),i=r(98306),o=r(78847);function a(e){return{__ref:String(e)}}function s(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function l(e){return(0,i.s)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}
172function u(e,t,r,i){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var o={};r.fields.map(function(e){return u(o,e.name,e.value,i)}),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(r)){var a=(i||{})[r.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map(function(e){var r={};return u(r,t,e,i),r[t.value]});else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw __DEV__?new n.ej('The inline argument "'.concat(t.value,'" of kind "').concat(r.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new n.ej(55);e[t.value]=null}}function c(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){var i=n.name,o=n.value;return u(r[e.name.value],i,o,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){var r=e.name,i=e.value;return u(n,r,i,t)}
172)),f(e.name.value,n,r)}var d=["connection","include","skip","client","rest","export"],f=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat(p(i),")")}return r.connection.key}var o=e;if(t){var a=p(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(e){-1===d.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(p(r[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=p;return p=e,t}}),p=function(e){return JSON.stringify(e,h)};function h(e,t){return(0,i.s)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,r){return e[r]=t[r],e},{})),t}function m(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){var n=e.name,i=e.value;return u(r,n,i,t)}),r}return null}function v(e){return e.alias?e.alias.value:e.name.value}function g(e,t,r){if("string"==typeof e.__typename)return e.__typename;for(var n=0,i=t.selections;n<i.length;n++){var a=i[n];if(y(a)){if("__typename"===a.name.value)return e[v(a)]}else{var s=g(e,(0,o.hi)(a,r).selectionSet,r);if("string"==typeof s)return s}}}function y(e){return"Field"===e.kind}function b(e){return"InlineFragment"===e.kind}},1793:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{Z:function(){return n}})},66470:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,{Z:function(){return n}})},47169:function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{Z:function(){return n}})},22951:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{Z:function(){return n}})},91976:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(55217);function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,n.Z)(i.key),i)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}},64649:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(55217);function i(e,t,r){return(t=(0,n.Z)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},27597:function(e,t,r){"use strict";
vendor: 1,487 bytes, line 172
172function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}r.d(t,{Z:function(){return n}})},67591:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(6983);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,n.Z)(e,t)}},55181:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(t,{Z:function(){return n}})},53764:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{Z:function(){return n}})},30808:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}r.d(t,{Z:function(){return n}})},99492:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(33940),i=r(47169);function o(e,t){if(t&&("object"==(0,n.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},6983:function(e,t,r){"use strict";
172function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}r.d(t,{Z:function(){return n}})},55217:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(33940);function i(e){var t=function(e){if("object"!=(0,n.Z)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=(0,n.Z)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,n.Z)(t)?t:t+""}},33940:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{Z:function(){return n}})},64013:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(1793);function i(e,t){if(e){if("string"==typeof e)return(0,n.Z)(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)?(0,n.Z)(e,t):void 0}}},29438:function(e,t,r){"use strict";r.d(t,{x7:function(){return ke},Me:function(){return ge},oo:function(){return _e},RR:function(){return we},Cp:function(){return Ee},dr:function(){return Se},cv:function(){return ye},uY:function(){return be},dp:function(){return xe}});const n=["top","right","bottom","left"],i=Math.min,o=Math.max,a=Math.round,s=Math.floor,l=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"};function c(e,t,r){return o(e,i(t,r))}function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function v(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function g(e){return h(v(e))}function y(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const b=["left","right"],w=["right","left"],x=["top","bottom"],E=["bottom","top"];function k(e){const t=f(e);return u[t]+e.slice(t.length)}function S(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function _(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function C(e,t,r){let{reference:n,floating:i}=e;const o=v(t),a=g(t),s=m(a),l=f(t),u="y"===o,c=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,h=n[s]/2-i[s]/2;let y;switch(l){case"top":y={x:c,y:n.y-i.height};break;case"bottom":y={x:c,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:d};break;case"left":y={x:n.x-i.width,y:d};break;default:y={x:n.x,y:n.y}}switch(p(t)){case"start":y[a]-=h*(r&&u?-1:1);break;case"end":y[a]+=h*(r&&u?-1:1)}return y}async function O(e,t){var r;void 0===t&&(t={});const{x:n,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=d(t,e),m=S(h),v=s[p?"floating"===f?"reference":"floating":f],g=_(await o.getClippingRect({element:null==(r=await(null==o.isElement?void 0:o.isElement(v)))||r?v:v.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===f?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),w=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},x=_(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-x.top+m.top)/w.y,bottom:(x.bottom-g.bottom+m.bottom)/w.y,left:(g.left-x.left+m.left)/w.x,right:(x.right-g.right+m.right)/w.x}}function P(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function T(e){return n.some(t=>e[t]>=0)}const A=new Set(["left","top"]);function I(){return"undefined"!=typeof window}function N(e){return M(e)?(e.nodeName||"").toLowerCase():"#document"}function R(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function j(e){var t;return null==(t=(M(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function M(e){return!!I()&&(e instanceof Node||e instanceof R(e).Node)}function D(e){return!!I()&&(e instanceof Element||e instanceof R(e).Element)}function L(e){return!!I()&&(e instanceof HTMLElement||e instanceof R(e).HTMLElement)}function F(e){return!(!I()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof R(e).ShadowRoot)}function B(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=Q(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==i&&"contents"!==i}function U(e){return/^(table|td|th)$/.test(N(e))}function V(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const z=/transform|translate|scale|rotate|perspective|filter/,q=/paint|layout|strict|content/,H=e=>!!e&&"none"!==e;let G;function $(e){const t=D(e)?Q(e):e;return H(t.transform)||H(t.translate)||H(t.scale)||H(t.rotate)||H(t.perspective)||!W()&&
vendor: 4,411 bytes, line 172
172(H(t.backdropFilter)||H(t.filter))||z.test(t.willChange||"")||q.test(t.contain||"")}function W(){return null==G&&(G="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),G}function Z(e){return/^(html|body|#document)$/.test(N(e))}function Q(e){return R(e).getComputedStyle(e)}function Y(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function K(e){if("html"===N(e))return e;const t=e.assignedSlot||e.parentNode||F(e)&&e.host||j(e);return F(t)?t.host:t}function J(e){const t=K(e);return Z(t)?e.ownerDocument?e.ownerDocument.body:e.body:L(t)&&B(t)?t:J(t)}function X(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const i=J(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),a=R(i);if(o){const e=ee(a);return t.concat(a,a.visualViewport||[],B(i)?i:[],e&&r?X(e):[])}return t.concat(i,X(i,[],r))}function ee(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function te(e){const t=Q(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=L(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,l=a(r)!==o||a(n)!==s;return l&&(r=o,n=s),{width:r,height:n,$:l}}function re(e){return D(e)?e:e.contextElement}function ne(e){const t=re(e);if(!L(t))return l(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:o}=te(t);let s=(o?a(r.width):r.width)/n,u=(o?a(r.height):r.height)/i;return s&&Number.isFinite(s)||(s=1),u&&Number.isFinite(u)||(u=1),{x:s,y:u}}const ie=l(0);function oe(e){const t=R(e);return W()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ie}function ae(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const i=e.getBoundingClientRect(),o=re(e);let a=l(1);t&&(n?D(n)&&(a=ne(n)):a=ne(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==R(e))&&t}(o,r,n)?oe(o):l(0);let u=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(o){const e=R(o),t=n&&D(n)?R(n):n;let r=e,i=ee(r);for(;i&&n&&t!==r;){const e=ne(i),t=i.getBoundingClientRect(),n=Q(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=o,c+=a,r=R(i),i=ee(r)}}return _({width:d,height:f,x:u,y:c})}function se(e,t){const r=Y(e).scrollLeft;return t?t.left+r:ae(j(e)).left+r}function le(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-se(e,r),y:r.top+t.scrollTop}}function ue(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=R(e),n=j(e),i=r.visualViewport;let o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const e=W();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}const u=se(n);if(u<=0){const e=n.ownerDocument,t=e.body,r=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,a=Math.abs(n.clientWidth-t.clientWidth-i);a<=25&&(o-=a)}else u<=25&&(o+=u);return{width:o,height:a,x:s,y:l}}(e,r);else if("document"===t)n=function(e){const t=j(e),r=Y(e),n=e.ownerDocument.body,i=o(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=o(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+se(e);const l=-r.scrollTop;return"rtl"===Q(n).direction&&(s+=o(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:s,y:l}}(j(e));else if(D(t))n=function(e,t){const r=ae(e,!0,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=L(e)?ne(e):l(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:n*o.y}}(t,r);else{const r=oe(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return _(n)}function ce(e,t){const r=K(e);return!(r===t||!D(r)||Z(r))&&("fixed"===Q(r).position||ce(r,t))}function de(e,t,r){const n=L(t),i=j(t),o="fixed"===r,a=ae(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const u=l(0);function c(){u.x=se(i)}if(n||!n&&!o)if(("body"!==N(t)||B(i))&&(s=Y(t)),n){const e=ae(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&c();o&&!n&&i&&c();const d=!i||n||o?l(0):le(i,s);return{x:a.left+s.scrollLeft-u.x-d.x,y:a.top+s.scrollTop-u.y-d.y,width:a.width,height:a.height}}function fe(e){return"static"===Q(e).position}function pe(e,t){if(!L(e)||"fixed"===Q(e).position)return null;if(t)return t(e);let r=e.offsetParent;return j(e)===r&&(r=r.ownerDocument.body),r}function he(e,t){const r=R(e);if(V(e))return r;if(!L(e)){let t=K(e);for(;t&&!Z(t);){if(D(t)&&!fe(t))return t;t=K(t)}return r}let n=pe(e,t);for(;n&&U(n)&&fe(n);)n=pe(n,t);
vendor: 10,438 bytes, line 172
172return n&&Z(n)&&fe(n)&&!$(n)?r:n||function(e){let t=K(e);for(;L(t)&&!Z(t);){if($(t))return t;if(V(t))return null;t=K(t)}return null}(e)||r}const me={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const o="fixed"===i,a=j(n),s=!!t&&V(t.floating);if(n===a||s&&o)return r;let u={scrollLeft:0,scrollTop:0},c=l(1);const d=l(0),f=L(n);if((f||!f&&!o)&&(("body"!==N(n)||B(a))&&(u=Y(n)),f)){const e=ae(n);c=ne(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}const p=!a||f||o?l(0):le(a,u);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-u.scrollLeft*c.x+d.x+p.x,y:r.y*c.y-u.scrollTop*c.y+d.y+p.y}},getDocumentElement:j,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const s=[..."clippingAncestors"===r?V(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=X(e,[],!1).filter(e=>D(e)&&"body"!==N(e)),i=null;const o="fixed"===Q(e).position;let a=o?K(e):e;for(;D(a)&&!Z(a);){const t=Q(a),r=$(a);r||"fixed"!==t.position||(i=null),(o?!r&&!i:!r&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||B(a)&&!r&&ce(e,a))?n=n.filter(e=>e!==a):i=t,a=K(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=ue(t,s[0],a);let u=l.top,c=l.right,d=l.bottom,f=l.left;for(let e=1;e<s.length;e++){const r=ue(t,s[e],a);u=o(r.top,u),c=i(r.right,c),d=i(r.bottom,d),f=o(r.left,f)}return{width:c-f,height:d-u,x:f,y:u}},getOffsetParent:he,getElementRects:async function(e){const t=this.getOffsetParent||he,r=this.getDimensions,n=await r(e.floating);return{reference:de(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=te(e);return{width:t,height:r}},getScale:ne,isElement:D,isRTL:function(e){return"rtl"===Q(e).direction}};function ve(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ge(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=n,f=re(e),p=a||l?[...f?X(f):[],...t?X(t):[]]:[];p.forEach(e=>{a&&e.addEventListener("scroll",r,{passive:!0}),l&&e.addEventListener("resize",r)});const h=f&&c?function(e,t){let r,n=null;const a=j(e);function l(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),l();const f=e.getBoundingClientRect(),{left:p,top:h,width:m,height:v}=f;if(c||t(),!m||!v)return;const g={rootMargin:-s(h)+"px "+-s(a.clientWidth-(p+m))+"px "+-s(a.clientHeight-(h+v))+"px "+-s(p)+"px",threshold:o(0,i(1,d))||1};let y=!0;function b(t){const n=t[0].intersectionRatio;if(n!==d){if(!y)return u();n?u(!1,n):r=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==n||ve(f,e.getBoundingClientRect())||u(),y=!1}try{n=new IntersectionObserver(b,{...g,root:a.ownerDocument})}catch(e){n=new IntersectionObserver(b,g)}n.observe(e)}(!0),l}(f,r):null;let m,v=-1,g=null;u&&(g=new ResizeObserver(e=>{let[n]=e;n&&n.target===f&&g&&t&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),r()}),f&&!d&&g.observe(f),t&&g.observe(t));let y=d?ae(e):null;return d&&function t(){const n=ae(e);y&&!ve(y,n)&&r(),y=n,m=requestAnimationFrame(t)}(),r(),()=>{var e;p.forEach(e=>{a&&e.removeEventListener("scroll",r),l&&e.removeEventListener("resize",r)}),null==h||h(),null==(e=g)||e.disconnect(),g=null,d&&cancelAnimationFrame(m)}}const ye=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:i}=e,o=await(null==n.isRTL?void 0:n.isRTL(i.floating)),a=f(r),s=p(r),l="y"===v(r),u=A.has(a)?-1:1,c=o&&l?-1:1,h=d(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:y}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&"number"==typeof y&&(g="end"===s?-1*y:y),l?{x:g*c,y:m*u}:{x:m*u,y:g*c}}(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},be=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i,platform:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...u}=d(e,t),p={x:r,y:n},m=await o.detectOverflow(t,u),g=v(f(i)),y=h(g);let b=p[y],w=p[g];if(a){const e="y"===y?"bottom":"right";b=c(b+m["y"===y?"top":"left"],b,b-m[e])}if(s){const e="y"===g?"bottom":"right";w=c(w+m["y"===g?"top":"left"],w,w-m[e])}const x=l.fn({...t,[y]:b,[g]:w});return{...x,data:{x:x.x-r,y:x.y-n,enabled:{[y]:a,[g]:s}}}}}},we=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:S,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:O=!0,...P}=d(e,t);if(null!=(r=o.arrow)&&r.alignmentOffset)return{};const T=f(i),A=v(s),I=f(s)===s,N=await(null==l.isRTL?void 0:l.isRTL(u.floating)),R=S||(I||!O?[k(s)]:function(e){const t=k(e);return[y(e),t,y(t)]}(s)),j="none"!==C;!S&&j&&R.push(...function(e,t,r,n){const i=p(e);let o=function(e,t,r){switch(e){case"top":case"bottom":return r?t?w:b:t?b:w;case"left":case"right":return t?x:E;default:return[]}}(f(e),"start"===r,n);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(y)))),o}(s,O,C,N));const M=[s,...R],D=await l.detectOverflow(t,P),L=[];let F=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&L.push(D[T]),h){const e=function(e,t,r){void 0===r&&(r=!1);const n=p(e),i=g(e),o=m(i);let a="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=k(a)),[a,k(a)]}(i,a,N);L.push(D[e[0]],D[e[1]])}if(F=[...F,{placement:i,overflows:L}],!L.every(e=>e<=0)){var B,U;const e=((null==(B=o.flip)?void 0:B.index)||0)+1,t=M[e];if(t&&("alignment"!==h||A===v(t)||F.every(e=>v(e.placement)!==A||e.overflows[0]>0)))return{data:{index:e,overflows:F},reset:{placement:t}};let r=null==(U=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:U.placement;if(!r)switch(_){case"bestFit":{var V;const e=null==(V=F.filter(e=>{if(j){const t=v(e.placement);return t===A||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:V[0];e&&(r=e);break}case"initialPlacement":r=s}if(i!==r)return{reset:{placement:r}}}return{}}}},xe=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:a,rects:s,platform:l,elements:u}=t,{apply:c=()=>{},...h}=d(e,t),m=await l.detectOverflow(t,h),g=f(a),y=p(a),b="y"===v(a),{width:w,height:x}=s.floating;let E,k;"top"===g||"bottom"===g?(E=g,k=y===(await(null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(k=g,E="end"===y?"top":"bottom");const S=x-m.top-m.bottom,_=w-m.left-m.right,C=i(x-m[E],S),O=i(w-m[k],_),P=!t.middlewareData.shift;let T=C,A=O;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(A=_),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(T=S),P&&!y){const e=o(m.left,0),t=o(m.right,0),r=o(m.top,0),n=o(m.bottom,0);b?A=w-2*(0!==e||0!==t?e+t:o(m.left,m.right)):T=x-2*(0!==r||0!==n?r+n:o(m.top,m.bottom))}await c({...t,availableWidth:A,availableHeight:T});const I=await l.getDimensions(u.floating);return w!==I.width||x!==I.height?{reset:{rects:!0}}:{}}}},Ee=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:i="referenceHidden",...o}=d(e,t);switch(i){case"referenceHidden":{const e=P(await n.detectOverflow(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:T(e)}}}case"escaped":{const e=P(await n.detectOverflow(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:T(e)}}}default:return{}}}}},ke=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:s,elements:l,middlewareData:u}=t,{element:f,padding:h=0}=d(e,t)||{};if(null==f)return{};const v=S(h),y={x:r,y:n},b=g(o),w=m(b),x=await s.getDimensions(f),E="y"===b,k=E?"top":"left",_=E?"bottom":"right",C=E?"clientHeight":"clientWidth",O=a.reference[w]+a.reference[b]-y[b]-a.floating[w],P=y[b]-a.reference[b],T=await(null==s.getOffsetParent?void 0:s.getOffsetParent(f));let A=T?T[C]:0;A&&await(null==s.isElement?void 0:s.isElement(T))||(A=l.floating[C]||a.floating[w]);const I=O/2-P/2,N=A/2-x[w]/2-1,R=i(v[k],N),j=i(v[_],N),M=R,D=A-x[w]-j,L=A/2-x[w]/2+I,F=c(M,L,D),B=!u.arrow&&null!=p(o)&&L!==F&&a.reference[w]/2-(L<M?R:j)-x[w]/2<0,U=B?L<M?L-M:L-D:0;return{[b]:y[b]+U,data:{[b]:F,centerOffset:L-F-U,...B&&{alignmentOffset:U}},reset:B}}}),Se=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=d(e,t),c={x:r,y:n},p=v(i),m=h(p);let g=c[m],y=c[p];const b=d(s,t),w="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const e="y"===m?"height":"width",t=o.reference[m]-o.floating[e]+w.mainAxis,r=o.reference[m]+o.reference[e]-w.mainAxis;g<t?g=t:g>r&&(g=r)}if(u){var x,E;const e="y"===m?"width":"height",t=A.has(f(i)),r=o.reference[p]-o.floating[e]+(t&&(null==(x=a.offset)?void 0:x[p])||0)+(t?0:w.crossAxis),n=o.reference[p]+o.reference[e]+(t?0:(null==(E=a.offset)?void 0:E[p])||0)-(t?w.crossAxis:0);y<r?y=r:y>n&&(y=n)}return{[m]:g,[p]:y}}}},_e=(e,t,r)=>{const n=new Map,i={platform:me,...r},o={...i.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=a.detectOverflow?a:{...a,detectOverflow:O},l=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=C(u,n,l),f=n,p=0;const h={};for(let r=0;r<o.length;r++){const m=o[r];if(!m)continue;const{name:v,fn:g}=m,{x:y,y:b,data:w,reset:x}=await g({x:c,y:d,initialPlacement:n,placement:f,strategy:i,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});c=null!=y?y:c,d=null!=b?b:d,h[v]={...h[v],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(u=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:i}
172):x.rects),({x:c,y:d}=C(u,f,l))),r=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:h}})(e,t,{...i,platform:o})}},27940:function(e,t,r){"use strict";r.d(t,{d:function(){return p},f:function(){return d}});var n=r(27378),i=r(11981),o=r(49786),a=r(85804),s=r(92296),l=r(36616);let u=(0,n.createContext)(null);function c(){let e=(0,n.useContext)(u);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,c),e}return e}function d(){let[e,t]=(0,n.useState)([]);return[e.length>0?e.join(" "):void 0,(0,n.useMemo)(()=>function(e){let r=(0,i.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let r=t.slice(),n=r.indexOf(e);return-1!==n&&r.splice(n,1),r}))),o=(0,n.useMemo)(()=>({register:r,slot:e.slot,name:e.name,props:e.props}),[r,e.slot,e.name,e.props]);return n.createElement(u.Provider,{value:o},e.children)},[t])]}let f=(0,l.yV)(function(e,t){let r=(0,o.M)(),{id:n=`headlessui-description-${r}`,...i}=e,u=c(),d=(0,s.T)(t);(0,a.e)(()=>u.register(n),[n,u.register]);let f={ref:d,...u.props,id:n};return(0,l.sY)({ourProps:f,theirProps:i,slot:u.slot||{},defaultTag:"p",name:u.name||"Description"})}),p=Object.assign(f,{})},66691:function(e,t,r){"use strict";r.d(t,{V:function(){return _e}});var n=r(27378),i=r.t(n,2),o=r(84625),a=r(11981),s=r(37349);function l(e,t,r,i){let o=(0,s.E)(r);(0,n.useEffect)(()=>{function r(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)},[e,t,i])}var u=r(66412),c=r(96661);function d(e){let t=(0,a.z)(e),r=(0,n.useRef)(!1);(0,n.useEffect)(()=>(r.current=!1,()=>{r.current=!0,(0,c.Y)(()=>{r.current&&t()})}),[t])}var f=r(70458);function p(...e){return(0,n.useMemo)(()=>(0,f.r)(...e),[...e])}var h=r(1074),m=r(92296),v=r(73777),g=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(g||{});function y(e,t){let r=(0,n.useRef)([]),i=(0,a.z)(e);(0,n.useEffect)(()=>{let e=[...r.current];for(let[n,o]of t.entries())if(r.current[n]!==o){let n=i(t,e);return r.current=t,n}},[i,...t])}var b=r(14784);let w=[];!function(){function e(){"loading"!==document.readyState&&((()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&w[0]!==e.target&&(w.unshift(e.target),w=w.filter(e=>null!=e&&e.isConnected),w.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})(),document.removeEventListener("DOMContentLoaded",e))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",e),e())}();var x=r(4818),E=r(57953),k=r(36616);function S(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}var _=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(_||{});let C=(0,k.yV)(function(e,t){let r=(0,n.useRef)(null),i=(0,m.T)(r,t),{initialFocus:s,containers:d,features:f=30,...w}=e;(0,h.H)()||(f=1);let _=p(r);P({ownerDocument:_},Boolean(16&f));let C=function({ownerDocument:e,container:t,initialFocus:r},i){let o=(0,n.useRef)(null),a=(0,u.t)();return y(()=>{if(!i)return;let n=t.current;n&&(0,c.Y)(()=>{if(!a.current)return;let t=null==e?void 0:e.activeElement;if(null!=r&&r.current){if((null==r?void 0:r.current)===t)return void(o.current=t)}else if(n.contains(t))return void(o.current=t);null!=r&&r.current?(0,x.C5)(r.current):(0,x.jA)(n,x.TO.First)===x.fE.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=null==e?void 0:e.activeElement})},[i]),o}({ownerDocument:_,container:r,initialFocus:s},Boolean(2&f));!function({ownerDocument:e,container:t,containers:r,previousActiveElement:n},i){let o=(0,u.t)();l(null==e?void 0:e.defaultView,"focus",e=>{if(!i||!o.current)return;let a=S(r);t.current instanceof HTMLElement&&a.add(t.current);let s=n.current;if(!s)return;let l=e.target;l&&l instanceof HTMLElement?T(a,l)?(n.current=l,(0,x.C5)(l)):(e.preventDefault(),e.stopPropagation(),(0,x.C5)(s)):(0,x.C5)(n.current)},!0)}({ownerDocument:_,container:r,containers:d,previousActiveElement:C},Boolean(8&f));let O=function(){let e=(0,n.useRef)(0);return(0,v.s)("keydown",t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)},!0),e}(),A=(0,a.z)(e=>{let t=r.current;t&&(0,E.E)(O.current,{[g.Forwards]:()=>{(0,x.jA)(t,x.TO.First,{skipElements:[e.relatedTarget]})},[g.Backwards]:()=>{(0,x.jA)(t,x.TO.Last,{skipElements:[e.relatedTarget]})}})}),I=(0,o.G)(),N=(0,n.useRef)(!1),R={ref:i,onKeyDown(e){"Tab"==e.key&&(N.current=!0,I.requestAnimationFrame(()=>{N.current=!1}))},onBlur(e){let t=S(d);r.current instanceof HTMLElement&&t.add(r.current);let n=e.relatedTarget;n instanceof HTMLElement&&"true"!==n.dataset.headlessuiFocusGuard&&(T(t,n)||(N.current?(0,x.jA)(r.current,(0,E.E)(O.current,{[g.Forwards]:()=>x.TO.Next,[g.Backwards]:()=>x.TO.Previous})|x.TO.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&(0,x.C5)(e.target)))}};return n.createElement(n.Fragment,null,Boolean(4&f)&&n.createElement(b._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:A,features:b.A.Focusable}),(0,k.sY)({ourProps:R,theirProps:w,defaultTag:"div",name:"FocusTrap"}),Boolean(4&f)&&n.createElement(b._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:A,features:b.A.Focusable}))}),O=Object.assign(C,{features:_});function P({ownerDocument:e},t){let r=function(e=!0){let t=(0,n.useRef)(w.slice());return y(([e],[r])=>{!0===r&&!1===e&&(0,c.Y)(()=>{t.current.splice(0)}),!1===r&&!0===e&&(t.current=w.slice())},[e,w,t]),(0,a.z)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);y(()=>{t||(null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&(0,x.C5)(r())},[t]),d(()=>{t&&(0,x.C5)(r())})}function T(e,t){for(let r of e)if(r.contains(t))return!0;return!1}var A=r(31542),I=r(85804);let N=(0,n.createContext)(!1);function R(){return(0,n.useContext)(N)}function j(e){return n.createElement(N.Provider,{value:e.force},e.children)}var M=r(68366);let D=n.Fragment,L=n.Fragment,F=(0,n.createContext)(null),B=(0,n.createContext)(null);function U(){let e=(0,n.useContext)(B),t=(0,n.useRef)([]),r=(0,a.z)(r=>(t.current.push(r),e&&e.register(r),()=>i(r))),i=(0,a.z)(r=>{let n=t.current.indexOf(r);-1!==n&&t.current.splice(n,1),e&&e.unregister(r)}),o=(0,n.useMemo)(()=>({register:r,unregister:i,portals:t}),[r,i,t]);return[t,(0,n.useMemo)(()=>function({children:e}){return n.createElement(B.Provider,{value:o},e)},[o])]}let V=(0,k.yV)(function(e,t){let r=e,i=(0,n.useRef)(null),o=(0,m.T)((0,m.h)(e=>{i.current=e}),t),a=p(i),s=function(e){let t=R(),r=(0,n.useContext)(F),i=p(e),[o,a]=(0,n.use
172State)(()=>{if(!t&&null!==r||M.O.isServer)return null;let e=null==i?void 0:i.getElementById("headlessui-portal-root");if(e)return e;if(null===i)return null;let n=i.createElement("div");return n.setAttribute("id","headlessui-portal-root"),i.body.appendChild(n)});return(0,n.useEffect)(()=>{null!==o&&(null!=i&&i.body.contains(o)||null==i||i.body.appendChild(o))},[o,i]),(0,n.useEffect)(()=>{t||null!==r&&a(r.current)},[r,a,t]),o}(i),[l]=(0,n.useState)(()=>{var e;return M.O.isServer?null:null!=(e=null==a?void 0:a.createElement("div"))?e:null}),u=(0,n.useContext)(B),c=(0,h.H)();return(0,I.e)(()=>{!s||!l||s.contains(l)||(l.setAttribute("data-headlessui-portal",""),s.appendChild(l))},[s,l]),(0,I.e)(()=>{if(l&&u)return u.register(l)},[u,l]),d(()=>{var e;!s||!l||(l instanceof Node&&s.contains(l)&&s.removeChild(l),s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s)))}),c&&s&&l?(0,A.createPortal)((0,k.sY)({ourProps:{ref:o},theirProps:r,defaultTag:D,name:"Portal"}),l):null}),z=(0,k.yV)(function(e,t){let{target:r,...i}=e,o={ref:(0,m.T)(t)};return n.createElement(F.Provider,{value:r},(0,k.sY)({ourProps:o,theirProps:i,defaultTag:L,name:"Popover.Group"}))}),q=Object.assign(V,{Group:z});"function"==typeof Object.is&&Object.is;const{useState:H,useEffect:G,useLayoutEffect:$,useDebugValue:W}=i;"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;const Z=i.useSyncExternalStore;var Q=r(71907);function Y(){let e;return{before({doc:t}){var r;let n=t.documentElement;e=(null!=(r=t.defaultView)?r:window).innerWidth-n.clientWidth},after({doc:t,d:r}){let n=t.documentElement,i=n.clientWidth-n.offsetWidth,o=e-i;r.style(n,"paddingRight",`${o}px`)}}}var K=r(71218);function J(e){let t={};for(let r of e)Object.assign(t,r(t));return t}let X=function(e,t){let r=new Map,n=new Set;return{getSnapshot(){return r},subscribe(e){return n.add(e),()=>n.delete(e)},dispatch(e,...i){let o=t[e].call(r,...i);o&&(r=o,n.forEach(e=>e()))}}}(0,{PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:(0,Q.k)(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:r}){let n={doc:e,d:t,meta:J(r)},i=[(0,K.gn)()?{before({doc:e,d:t,meta:r}){function n(e){return r.containers.flatMap(e=>e()).some(t=>t.contains(e))}t.microTask(()=>{var r;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let r=(0,Q.k)();r.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>r.dispose()))}let i=null!=(r=window.scrollY)?r:window.pageYOffset,o=null;t.addEventListener(e,"click",t=>{if(t.target instanceof HTMLElement)try{let r=t.target.closest("a");if(!r)return;let{hash:i}=new URL(r.href),a=e.querySelector(i);a&&!n(a)&&(o=a)}catch{}},!0),t.addEventListener(e,"touchstart",e=>{if(e.target instanceof HTMLElement)if(n(e.target)){let r=e.target;for(;r.parentElement&&n(r.parentElement);)r=r.parentElement;t.style(r,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")}),t.addEventListener(e,"touchmove",e=>{if(e.target instanceof HTMLElement)if(n(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()},{passive:!1}),t.add(()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;i!==t&&window.scrollTo(0,i),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{},Y(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];i.forEach(({before:e})=>
172null==e?void 0:e(n)),i.forEach(({after:e})=>null==e?void 0:e(n))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function ee(e,t,r){let n=Z((a=X).subscribe,a.getSnapshot,a.getSnapshot),i=e?n.get(e):void 0,o=!!i&&i.count>0;var a;return(0,I.e)(()=>{if(e&&t)return X.dispatch("PUSH",e,r),()=>X.dispatch("POP",e,r)},[t,e]),o}X.subscribe(()=>{let e=X.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),n=0!==r.count;(n&&!e||!n&&e)&&X.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&X.dispatch("TEARDOWN",r)}});var te=r(49786);let re=new Map,ne=new Map;function ie(e,t=!0){(0,I.e)(()=>{var r;if(!t)return;let n="function"==typeof e?e():e.current;if(!n)return;let i=null!=(r=ne.get(n))?r:0;return ne.set(n,i+1),0!==i||(re.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),n.setAttribute("aria-hidden","true"),n.inert=!0),function(){var e;if(!n)return;let t=null!=(e=ne.get(n))?e:1;if(1===t?ne.delete(n):ne.set(n,t-1),1!==t)return;let r=re.get(n);r&&(null===r["aria-hidden"]?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",r["aria-hidden"]),n.inert=r.inert,re.delete(n))}},[e,t])}var oe=r(37972),ae=r(1635);let se=(0,n.createContext)(()=>{});
172se.displayName="StackContext";var le=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(le||{});function ue({children:e,onUpdate:t,type:r,element:i,enabled:o}){let s=(0,n.useContext)(se),l=(0,a.z)((...e)=>{null==t||t(...e),s(...e)});return(0,I.e)(()=>{let e=void 0===o||!0===o;return e&&l(0,r,i),()=>{e&&l(1,r,i)}},[l,r,i,o]),n.createElement(se.Provider,{value:l},e)}var ce=r(54518),de=r(27940),fe=r(7723),pe=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(pe||{}),he=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(he||{});let me={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},ve=(0,n.createContext)(null);function ge(e){let t=(0,n.useContext)(ve);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ge),t}return t}function ye(e,t){return(0,E.E)(t.type,me,e,t)}ve.displayName="DialogContext";let be=k.AN.RenderStrategy|k.AN.Static,we=(0,k.yV)(function(e,t){let r=(0,te.M)(),{id:i=`headlessui-dialog-${r}`,open:o,onClose:s,initialFocus:u,role:c="dialog",__demoMode:d=!1,...f}=e,[v,g]=(0,n.useState)(0),y=(0,n.useRef)(!1);c="dialog"===c||"alertdialog"===c?c:(y.current||(y.current=!0,console.warn(`Invalid role [${c}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let w=(0,ae.oJ)();void 0===o&&null!==w&&(o=(w&ae.ZM.Open)===ae.ZM.Open);let x=(0,n.useRef)(null),S=(0,m.T)(x,t),_=p(x),C=e.hasOwnProperty("open")||null!==w,P=e.hasOwnProperty("onClose");if(!C&&!P)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!C)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!P)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof o)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${o}`);if("function"!=typeof s)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${s}`);let T=o?0:1,[A,I]=(0,n.useReducer)(ye,{titleId:null,descriptionId:null,panelRef:(0,n.createRef)()}),N=(0,a.z)(()=>s(!1)),R=(0,a.z)(e=>I({type:0,id:e})),M=!!(0,h.H)()&&!d&&0===T,D=v>1,L=null!==(0,n.useContext)(ve),[F,B]=U(),V={get current(){var e;return null!=(e=A.panelRef.current)?e:x.current}},{resolveContainers:z,mainTreeNodeRef:H,MainTreeNode:G}=function({defaultContainers:e=[],portals:t,mainTreeNodeRef:r}={}){var i;let o=(0,n.useRef)(null!=(i=null==r?void 0:r.current)?i:null),s=p(o),l=(0,a.z)(()=>{var r,n,i;let a=[];for(let t of e)null!==t&&(t instanceof HTMLElement?a.push(t):"current"in t&&t.current instanceof HTMLElement&&a.push(t.current));if(null!=t&&t.current)for(let e of t.current)a.push(e);for(let e of null!=(r=null==s?void 0:s.querySelectorAll("html > *, body > *"))?r:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(e.contains(o.current)||e.contains(null==(i=null==(n=o.current)?void 0:n.getRootNode())?void 0:i.host)||a.some(t=>e.contains(t))||a.push(e));return a});
172return{resolveContainers:l,contains:(0,a.z)(e=>l().some(t=>t.contains(e))),mainTreeNodeRef:o,MainTreeNode:(0,n.useMemo)(()=>function(){return null!=r?null:n.createElement(b._,{features:b.A.Hidden,ref:o})},[o,r])}}({portals:F,defaultContainers:[V]}),$=D?"parent":"leaf",W=null!==w&&(w&ae.ZM.Closing)===ae.ZM.Closing,Z=!L&&!W&&M,Q=(0,n.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==_?void 0:_.querySelectorAll("body > *"))?e:[]).find(e=>"headlessui-portal-root"!==e.id&&e.contains(H.current)&&e instanceof HTMLElement))?t:null},[H]);ie(Q,Z);let Y=!!D||M,K=(0,n.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==_?void 0:_.querySelectorAll("[data-headlessui-portal]"))?e:[]).find(e=>e.contains(H.current)&&e instanceof HTMLElement))?t:null},[H]);ie(K,Y);let J=!(!M||D);(0,oe.O)(z,e=>{e.preventDefault(),N()},J);let X=!(D||0!==T);l(null==_?void 0:_.defaultView,"keydown",e=>{X&&(e.defaultPrevented||e.key===fe.R.Escape&&(e.preventDefault(),e.stopPropagation(),N()))}),function(e,t,r=()=>[document.body]){ee(e,t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],r]}})}(_,!(W||0!==T||L),z),(0,n.useEffect)(()=>{if(0!==T||!x.current)return;let e=new ResizeObserver(e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&N()}});return e.observe(x.current),()=>e.disconnect()},[T,x,N]);let[re,ne]=(0,de.f)(),se=(0,n.useMemo)(()=>[{dialogState:T,close:N,setTitleId:R},A],[T,A,N,R]),ce=(0,n.useMemo)(()=>({open:0===T}),[T]),pe={ref:S,id:i,role:c,"aria-modal":0===T||void 0,"aria-labelledby":A.titleId,"aria-describedby":re};return n.createElement(ue,{type:"Dialog",enabled:0===T,element:x,onUpdate:(0,a.z)((e,t)=>{"Dialog"===t&&(0,E.E)(e,{[le.Add]:()=>g(e=>e+1),[le.Remove]:()=>g(e=>e-1)})})},n.createElement(j,{force:!0},n.createElement(q,null,n.createElement(ve.Provider,{value:se},n.createElement(q.Group,{target:x},n.createElement(j,{force:!1},n.createElement(ne,{slot:ce,name:"Dialog.Description"},n.createElement(O,{initialFocus:u,containers:z,features:M?(0,E.E)($,{parent:O.features.RestoreFocus,leaf:O.features.All&~O.features.FocusLock}):O.features.None},n.createElement(B,null,(0,k.sY)({ourProps:pe,theirProps:f,slot:ce,defaultTag:"div",features:be,visible:0===T,name:"Dialog"}))))))))),n.createElement(G,null))}),xe=(0,k.yV)(function(e,t){let r=(0,te.M)(),{id:i=`headlessui-dialog-backdrop-${r}`,...o}=e,[{dialogState:a},s]=ge("Dialog.Backdrop"),l=(0,m.T)(t);(0,n.useEffect)(()=>{if(null===s.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[s.panelRef]);let u=(0,n.useMemo)(()=>({open:0===a}),[a]);return n.createElement(j,{force:!0},n.createElement(q,null,(0,k.sY)({ourProps:{ref:l,id:i,"aria-hidden":!0},theirProps:o,slot:u,defaultTag:"div",name:"Dialog.Backdrop"})))}),Ee=(0,k.yV)(function(e,t){let r=(0,te.M)(),{id:i=`headlessui-dialog-panel-${r}`,...o}=e,[{dialogState:s},l]=ge("Dialog.Panel"),u=(0,m.T)(t,l.panelRef),c=(0,n.useMemo)(()=>({open:0===s}),[s]),d=(0,a.z)(e=>{e.stopPropagation()});return(0,k.sY)({ourProps:{ref:u,id:i,onClick:d},theirProps:o,slot:c,defaultTag:"div",name:"Dialog.Panel"})}),ke=(0,k.yV)(function(e,t){let r=(0,te.M)(),{id:i=`headlessui-dialog-overlay-${r}`,...o}=e,[{dialogState:s,close:l}]=ge("Dialog.Overlay"),u=(0,m.T)(t),c=(0,a.z)(e=>{if(e.target===e.currentTarget){if((0,ce.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),l()}}),d=(0,n.useMemo)(()=>({open:0===s}),[s]);return(0,k.sY)({ourProps:{ref:u,id:i,"aria-hidden":!0,onClick:c},theirProps:o,slot:d,defaultTag:"div",name:"Dialog.Overlay"})}),Se=(0,k.yV)(function(e,t){let r=(0,te.M)(),{id:i=`headlessui-dialog-title-${r}`,...o}=e,[{dialogState:a,setTitleId:s}]=ge("Dialog.Title"),l=(0,m.T)(t);(0,n.useEffect)(()=>(s(i),()=>s(null)),[i,s]);let u=(0,n.useMemo)(()=>({open:0===a}),[a]);return(0,k.sY)({ourProps:{ref:l,id:i},theirProps:o,slot:u,defaultTag:"h2",name:"Dialog.Title"})}),_e=Object.assign(we,{Backdrop:xe,Panel:Ee,Overlay:ke,Title:Se,Description:de.d})},7723:function(e,t,r){"use strict";r.d(t,{R:function(){return i}});var n,i=((n=i||{}).Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.Delete="Delete",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab",n)},18054:function(e,t,r){"use strict";r.d(t,{R:function(){return Y}});var n=r(27378),i=r(85804),o=r(37349);
172function a(e,t){let[r,a]=(0,n.useState)(e),s=(0,o.E)(e);return(0,i.e)(()=>a(s.current),[s,a,...t]),r}var s=r(55842),l=r(84625),u=r(11981),c=r(49786),d=r(37972),f=r(62722),p=r(92296);let h=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function m(e){var t,r;let n=null!=(t=e.innerText)?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return n;let o=!1;for(let e of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),o=!0;let a=o?null!=(r=i.innerText)?r:"":n;return h.test(a)&&(a=a.replace(h,"")),a}function v(e){let t=(0,n.useRef)(""),r=(0,n.useRef)("");return(0,u.z)(()=>{let n=e.current;if(!n)return"";let i=n.innerText;if(t.current===i)return r.current;let o=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let e=r.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():m(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return m(e).trim()}(n).trim().toLowerCase();return t.current=i,r.current=o,o})}function g(e){return[e.screenX,e.screenY]}function y(){let e=(0,n.useRef)([-1,-1]);return{wasMoved(t){let r=g(t);return(e.current[0]!==r[0]||e.current[1]!==r[1])&&(e.current=r,!0)},update(t){e.current=g(t)}}}var b,w=r(14784),x=r(1635),E=r(54518),k=((b=k||{})[b.First=0]="First",b[b.Previous=1]="Previous",b[b.Next=2]="Next",b[b.Last=3]="Last",b[b.Specific=4]="Specific",b[b.Nothing=5]="Nothing",b);var S,_=r(71907),C=r(4818),O=r(98283),P=r(57953),T=r(70458),A=r(36616),I=r(7723),N=((S=N||{})[S.Open=0]="Open",S[S.Closed=1]="Closed",S),R=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(R||{}),j=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(j||{}),M=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(M||{});function D(e,t=e=>e){let r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=(0,C.z2)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return-1===i&&(i=null),{options:n,activeOptionIndex:i}}let L={1(e){return e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,n=e.options.findIndex(e=>r(e.dataRef.current.value));return-1!==n&&(t=n),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var r;if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=D(e),i=function(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=null!=n?n:-1;switch(e.focus){case 0:for(let e=0;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 1:for(let e=i-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 2:for(let e=i+1;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 3:for(let e=r.length-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 4:for(let n=0;n<r.length;++n)if(t.resolveId(r[n],n,r)===e.id)return n;return n;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeOptionIndex:i,activationTrigger:null!=(r=t.trigger)?r:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=""!==e.searchQuery?0:1,n=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))}),o=i?e.options.indexOf(i):-1;return-1===o||o===e.activeOptionIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeOptionIndex:o,activationTrigger:1}},4(e){return e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""}},5:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=D(e,e=>[...e,r]);return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(r)),{...e,...n}},6:(e,t)=>{let r=D(e,e=>{let r=e.findIndex(e=>e.id===t.id);return-1!==r&&e.splice(r,1),e});return{...e,...r,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},F=(0,n.createContext)(null);function B(e){let t=(0,n.useContext)(F);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,B),t}return t}F.displayName="ListboxActionsContext";let U=(0,n.createContext)(null);function V(e){let t=(0,n.useContext)(U);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,V),t}return t}function z(e,t){return(0,P.E)(t.type,L,e,t)}U.displayName="ListboxDataContext";let q=n.Fragment,H=A.AN.RenderStrategy|A.AN.Static,G=(0,A.yV)(function(e,t){let{value:r,defaultValue:o,form:a,name:c,onChange:f,by:h=(e,t)=>e===t,disabled:m=!1,horizontal:v=!1,multiple:g=!1,...y}=e;const b=v?"horizontal":"vertical";let E=(0,p.T)(t),[S=(g?[]:void 0),_]=(0,s.q)(r,f,o),[T,I]=(0,n.useReducer)(z,{dataRef:(0,n.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),N=(0,n.useRef)({static:!1,hold:!1}),R=(0,n.useRef)(null),j=(0,n.useRef)(null),M=(0,n.useRef)(null),D=(0,u.z)("string"==typeof h?(e,t)=>{let r=h;return(null==e?void 0:e[r])===(null==t?void 0:t[r])}:h),L=(0,n.useCallback)(e=>(0,P.E)(B.mode,{1:()=>S.some(t=>D(t,e)),0:()=>D(S,e)}),[S]),B=(0,n.useMemo)(()=>({...T,value:S,disabled:m,mode:g?1:0,orientation:b,compare:D,isSelected:L,optionsPropsRef:N,labelRef:R,buttonRef:j,optionsRef:M}),[S,m,g,T]);(0,i.e)(()=>{T.dataRef.current=B},[B]),(0,d.O)([B.buttonRef,B.optionsRef],(e,t)=>{var r;I({type:1}),(0,C.sP)(t,C.tJ.Loose)||(e.preventDefault(),null==(r=B.buttonRef.current)||r.focus())},0===B.listboxState);let V=(0,n.useMemo)(()=>({open:0===B.listboxState,disabled:m,value:S}),[B,m,S]),H=(0,u.z)(e=>{let t=B.options.find(t=>
172t.id===e);t&&K(t.dataRef.current.value)}),G=(0,u.z)(()=>{if(null!==B.activeOptionIndex){let{dataRef:e,id:t}=B.options[B.activeOptionIndex];K(e.current.value),I({type:2,focus:k.Specific,id:t})}}),$=(0,u.z)(()=>I({type:0})),W=(0,u.z)(()=>I({type:1})),Z=(0,u.z)((e,t,r)=>e===k.Specific?I({type:2,focus:k.Specific,id:t,trigger:r}):I({type:2,focus:e,trigger:r})),Q=(0,u.z)((e,t)=>(I({type:5,id:e,dataRef:t}),()=>I({type:6,id:e}))),Y=(0,u.z)(e=>(I({type:7,id:e}),()=>I({type:7,id:null}))),K=(0,u.z)(e=>(0,P.E)(B.mode,{0(){return null==_?void 0:_(e)},1(){let t=B.value.slice(),r=t.findIndex(t=>D(t,e));return-1===r?t.push(e):t.splice(r,1),null==_?void 0:_(t)}})),J=(0,u.z)(e=>I({type:3,value:e})),X=(0,u.z)(()=>I({type:4})),ee=(0,n.useMemo)(()=>({onChange:K,registerOption:Q,registerLabel:Y,goToOption:Z,closeListbox:W,openListbox:$,selectActiveOption:G,selectOption:H,search:J,clearSearch:X}),[]),te={ref:E},re=(0,n.useRef)(null),ne=(0,l.G)();return(0,n.useEffect)(()=>{re.current&&void 0!==o&&ne.addEventListener(re.current,"reset",()=>{null==_||_(o)})},[re,_]),n.createElement(F.Provider,{value:ee},n.createElement(U.Provider,{value:B},n.createElement(x.up,{value:(0,P.E)(B.listboxState,{0:x.ZM.Open,1:x.ZM.Closed})},null!=c&&null!=S&&(0,O.t)({[c]:S}).map(([e,t],r)=>n.createElement(w._,{features:w.A.Hidden,ref:0===r?e=>{var t;re.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,A.oA)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:a,disabled:m,name:e,value:t})})),(0,A.sY)({ourProps:te,theirProps:y,slot:V,defaultTag:q,name:"Listbox"}))))}),$=(0,A.yV)(function(e,t){var r;let i=(0,c.M)(),{id:o=`headlessui-listbox-button-${i}`,...s}=e,d=V("Listbox.Button"),h=B("Listbox.Button"),m=(0,p.T)(d.buttonRef,t),v=(0,l.G)(),g=(0,u.z)(e=>{switch(e.key){case I.R.Space:case I.R.Enter:case I.R.ArrowDown:e.preventDefault(),h.openListbox(),v.nextFrame(()=>{d.value||h.goToOption(k.First)});break;case I.R.ArrowUp:e.preventDefault(),h.openListbox(),v.nextFrame(()=>{d.value||h.goToOption(k.Last)})}}),y=(0,u.z)(e=>{e.key===I.R.Space&&e.preventDefault()}),b=(0,u.z)(e=>{if((0,E.P)(e.currentTarget))return e.preventDefault();0===d.listboxState?(h.closeListbox(),v.nextFrame(()=>{var e;return null==(e=d.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
172)):(e.preventDefault(),h.openListbox())}),w=a(()=>{if(d.labelId)return[d.labelId,o].join(" ")},[d.labelId,o]),x=(0,n.useMemo)(()=>({open:0===d.listboxState,disabled:d.disabled,value:d.value}),[d]),S={ref:m,id:o,type:(0,f.f)(e,d.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(r=d.optionsRef.current)?void 0:r.id,"aria-expanded":0===d.listboxState,"aria-labelledby":w,disabled:d.disabled,onKeyDown:g,onKeyUp:y,onClick:b};return(0,A.sY)({ourProps:S,theirProps:s,slot:x,defaultTag:"button",name:"Listbox.Button"})}),W=(0,A.yV)(function(e,t){let r=(0,c.M)(),{id:o=`headlessui-listbox-label-${r}`,...a}=e,s=V("Listbox.Label"),l=B("Listbox.Label"),d=(0,p.T)(s.labelRef,t);(0,i.e)(()=>l.registerLabel(o),[o]);let f=(0,u.z)(()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})}),h=(0,n.useMemo)(()=>({open:0===s.listboxState,disabled:s.disabled}),[s]);return(0,A.sY)({ourProps:{ref:d,id:o,onClick:f},theirProps:a,slot:h,defaultTag:"label",name:"Listbox.Label"})}),Z=(0,A.yV)(function(e,t){var r;let i=(0,c.M)(),{id:o=`headlessui-listbox-options-${i}`,...s}=e,d=V("Listbox.Options"),f=B("Listbox.Options"),h=(0,p.T)(d.optionsRef,t),m=(0,l.G)(),v=(0,l.G)(),g=(0,x.oJ)(),y=null!==g?(g&x.ZM.Open)===x.ZM.Open:0===d.listboxState;(0,n.useEffect)(()=>{var e;let t=d.optionsRef.current;t&&0===d.listboxState&&t!==(null==(e=(0,T.r)(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})},[d.listboxState,d.optionsRef]);let b=(0,u.z)(e=>{switch(v.dispose(),e.key){case I.R.Space:if(""!==d.searchQuery)return e.preventDefault(),e.stopPropagation(),f.search(e.key);case I.R.Enter:if(e.preventDefault(),e.stopPropagation(),null!==d.activeOptionIndex){let{dataRef:e}=d.options[d.activeOptionIndex];f.onChange(e.current.value)}0===d.mode&&(f.closeListbox(),(0,_.k)().nextFrame(()=>{var e;return null==(e=d.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
172));break;case(0,P.E)(d.orientation,{vertical:I.R.ArrowDown,horizontal:I.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),f.goToOption(k.Next);case(0,P.E)(d.orientation,{vertical:I.R.ArrowUp,horizontal:I.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),f.goToOption(k.Previous);case I.R.Home:case I.R.PageUp:return e.preventDefault(),e.stopPropagation(),f.goToOption(k.First);case I.R.End:case I.R.PageDown:return e.preventDefault(),e.stopPropagation(),f.goToOption(k.Last);case I.R.Escape:return e.preventDefault(),e.stopPropagation(),f.closeListbox(),m.nextFrame(()=>{var e;return null==(e=d.buttonRef.current)?void 0:e.focus({preventScroll:!0})});case I.R.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(f.search(e.key),v.setTimeout(()=>f.clearSearch(),350))}}),w=a(()=>{var e;return null==(e=d.buttonRef.current)?void 0:e.id},[d.buttonRef.current]),E=(0,n.useMemo)(()=>({open:0===d.listboxState}),[d]),S={"aria-activedescendant":null===d.activeOptionIndex||null==(r=d.options[d.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===d.mode||void 0,"aria-labelledby":w,"aria-orientation":d.orientation,id:o,onKeyDown:b,role:"listbox",tabIndex:0,ref:h};return(0,A.sY)({ourProps:S,theirProps:s,slot:E,defaultTag:"ul",features:H,visible:y,name:"Listbox.Options"})}),Q=(0,A.yV)(function(e,t){let r=(0,c.M)(),{id:a=`headlessui-listbox-option-${r}`,disabled:s=!1,value:l,...d}=e,f=V("Listbox.Option"),h=B("Listbox.Option"),m=null!==f.activeOptionIndex&&f.options[f.activeOptionIndex].id===a,g=f.isSelected(l),b=(0,n.useRef)(null),w=v(b),x=(0,o.E)({disabled:s,value:l,domRef:b,get textValue(){return w()}}),E=(0,p.T)(t,b);(0,i.e)(()=>{if(0!==f.listboxState||!m||0===f.activationTrigger)return;let e=(0,_.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=b.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[b,m,f.listboxState,f.activationTrigger,f.activeOptionIndex]),(0,i.e)(()=>h.registerOption(a,x),[x,a]);let S=(0,u.z)(e=>{if(s)return e.preventDefault();h.onChange(l),0===f.mode&&(h.closeListbox(),(0,_.k)().nextFrame(()=>{var e;return null==(e=f.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
172))}),C=(0,u.z)(()=>{if(s)return h.goToOption(k.Nothing);h.goToOption(k.Specific,a)}),O=y(),P=(0,u.z)(e=>O.update(e)),T=(0,u.z)(e=>{O.wasMoved(e)&&(s||m||h.goToOption(k.Specific,a,0))}),I=(0,u.z)(e=>{O.wasMoved(e)&&(s||m&&h.goToOption(k.Nothing))}),N=(0,n.useMemo)(()=>({active:m,selected:g,disabled:s}),[m,g,s]);return(0,A.sY)({ourProps:{id:a,ref:E,role:"option",tabIndex:!0===s?void 0:-1,"aria-disabled":!0===s||void 0,"aria-selected":g,disabled:void 0,onClick:S,onFocus:C,onPointerEnter:P,onMouseEnter:P,onPointerMove:T,onMouseMove:T,onPointerLeave:I,onMouseLeave:I},theirProps:d,slot:N,defaultTag:"li",name:"Listbox.Option"})}),Y=Object.assign(G,{Button:$,Label:W,Options:Z,Option:Q})},38224:function(e,t,r){"use strict";r.d(t,{u:function(){return j}});var n=r(27378),i=r(84625),o=r(11981),a=r(21743),s=r(66412),l=r(85804),u=r(37349),c=r(1074),d=r(92296),f=r(71907),p=r(57953);function h(e,...t){e&&t.length>0&&e.classList.add(...t)}function m(e,...t){e&&t.length>0&&e.classList.remove(...t)}function v(e,t,r,n){let i=r?"enter":"leave",o=(0,f.k)(),a=void 0!==n?function(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}(n):()=>{};"enter"===i&&(e.removeAttribute("hidden"),e.style.display="");let s=(0,p.E)(i,{enter:()=>t.enter,leave:()=>t.leave}),l=(0,p.E)(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=(0,p.E)(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return m(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),h(e,...t.base,...s,...u),o.nextFrame(()=>{m(e,...t.base,...s,...u),h(e,...t.base,...s,...l),function(e,t){let r=(0,f.k)();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[o,a]=[n,i].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),s=o+a;if(0!==s){r.group(r=>{r.setTimeout(()=>{t(),r.dispose()},s),r.addEventListener(e,"transitionrun",e=>{e.target===e.currentTarget&&r.dispose()})});let n=r.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),n())})}else t();r.add(()=>t()),r.dispose}(e,()=>(m(e,...t.base,...s),h(e,...t.base,...t.entered),a()))}),o.dispose}var g=r(1635),y=r(82622),b=r(36616);function w(e=""){return e.split(/\s+/).filter(e=>e.length>1)}let x=(0,n.createContext)(null);x.displayName="TransitionContext";var E,k=((E=k||{}).Visible="visible",E.Hidden="hidden",E);let S=(0,n.createContext)(null);function _(e){return"children"in e?_(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function C(e,t){let r=(0,u.E)(e),a=(0,n.useRef)([]),l=(0,s.t)(),c=(0,i.G)(),d=(0,o.z)((e,t=b.l4.Hidden)=>{let n=a.current.findIndex(({el:t})=>t===e);-1!==n&&((0,p.E)(t,{[b.l4.Unmount](){a.current.splice(n,1)},[b.l4.Hidden](){a.current[n].state="hidden"}}),c.microTask(()=>{var e;!_(a)&&l.current&&(null==(e=r.current)||e.call(r))}))}),f=(0,o.z)(e=>{let t=a.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):a.current.push({el:e,state:"visible"}),()=>d(e,b.l4.Unmount)}),h=(0,n.useRef)([]),m=(0,n.useRef)(Promise.resolve()),v=(0,n.useRef)({enter:[],leave:[],idle:[]}),g=(0,o.z)((e,r,n)=>{h.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter(([t])=>t!==e)),null==t||t.chains.current[r].push([e,new Promise(e=>{h.current.push(e)})]),null==t||t.chains.current[r].push([e,new Promise(e=>{Promise.all(v.current[r].map(([e,t])=>t)).then(()=>e())}
172)]),"enter"===r?m.current=m.current.then(()=>null==t?void 0:t.wait.current).then(()=>n(r)):n(r)}),y=(0,o.z)((e,t,r)=>{Promise.all(v.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=h.current.shift())||e()}).then(()=>r(t))});return(0,n.useMemo)(()=>({children:a,register:f,unregister:d,onStart:g,onStop:y,wait:m,chains:v}),[f,d,a,g,y,v,m])}function O(){}S.displayName="NestingContext";let P=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function T(e){var t;let r={};for(let n of P)r[n]=null!=(t=e[n])?t:O;return r}let A=b.AN.RenderStrategy,I=(0,b.yV)(function(e,t){let{show:r,appear:i=!1,unmount:a=!0,...s}=e,u=(0,n.useRef)(null),f=(0,d.T)(u,t);(0,c.H)();let p=(0,g.oJ)();if(void 0===r&&null!==p&&(r=(p&g.ZM.Open)===g.ZM.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[h,m]=(0,n.useState)(r?"visible":"hidden"),v=C(()=>{m("hidden")}),[y,w]=(0,n.useState)(!0),E=(0,n.useRef)([r]);(0,l.e)(()=>{!1!==y&&E.current[E.current.length-1]!==r&&(E.current.push(r),w(!1))},[E,r]);let k=(0,n.useMemo)(()=>({show:r,appear:i,initial:y}),[r,i,y]);(0,n.useEffect)(()=>{if(r)m("visible");else if(_(v)){let e=u.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&m("hidden")}else m("hidden")},[r,v]);let O={unmount:a},P=(0,o.z)(()=>{var t;y&&w(!1),null==(t=e.beforeEnter)||t.call(e)}),T=(0,o.z)(()=>{var t;y&&w(!1),null==(t=e.beforeLeave)||t.call(e)});return n.createElement(S.Provider,{value:v},n.createElement(x.Provider,{value:k},(0,b.sY)({ourProps:{...O,as:n.Fragment,children:n.createElement(N,{ref:f,...O,...s,beforeEnter:P,beforeLeave:T})},theirProps:{},defaultTag:n.Fragment,features:A,visible:"visible"===h,name:"Transition"})))}),N=(0,b.yV)(function(e,t){var r,h;let{beforeEnter:m,afterEnter:E,beforeLeave:k,afterLeave:O,enter:P,enterFrom:I,enterTo:N,entered:R,leave:j,leaveFrom:M,leaveTo:D,...L}=e,F=(0,n.useRef)(null),B=(0,d.T)(F,t),U=null==(r=L.unmount)||r?b.l4.Unmount:b.l4.Hidden,{show:V,appear:z,initial:q}=function(){let e=(0,n.useContext)(x);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[H,G]=(0,n.useState)(V?"visible":"hidden"),$=function(){let e=(0,n.useContext)(S);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:W,unregister:Z}=$;(0,n.useEffect)(()=>W(F),[W,F]),(0,n.useEffect)(()=>{if(U===b.l4.Hidden&&F.current)return V&&"visible"!==H?void G("visible"):(0,p.E)(H,{hidden:()=>Z(F),visible:()=>W(F)})},[H,F,W,Z,V,U]);let Q=(0,u.E)({base:w(L.className),enter:w(P),enterFrom:w(I),enterTo:w(N),entered:w(R),leave:w(j),leaveFrom:w(M),leaveTo:w(D)}),Y=function(e){let t=(0,n.useRef)(T(e));return(0,n.useEffect)(()=>{t.current=T(e)},[e]),t}({beforeEnter:m,afterEnter:E,beforeLeave:k,afterLeave:O}),K=(0,c.H)();(0,n.useEffect)(()=>{if(K&&"visible"===H&&null===F.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[F,H,K]);let J=z&&V&&q,X=!K||q&&!z?"idle":V?"enter":"leave",ee=(0,a.V)(0),te=(0,o.z)(e=>(0,p.E)(e,{enter:()=>{ee.addFlag(g.ZM.Opening),Y.current.beforeEnter()},leave:()=>{ee.addFlag(g.ZM.Closing),Y.current.beforeLeave()},idle:()=>{}})),re=(0,o.z)(e=>(0,p.E)(e,{enter:()=>{ee.removeFlag(g.ZM.Opening),Y.current.afterEnter()},leave:()=>{ee.removeFlag(g.ZM.Closing),Y.current.afterLeave()},idle:()=>{}})),ne=C(()=>{G("hidden"),Z(F)},$),ie=(0,n.useRef)(!1);!function({immediate:e,container:t,direction:r,classes:n,onStart:o,onStop:a}){let c=(0,s.t)(),d=(0,i.G)(),p=(0,u.E)(r);(0,l.e)(()=>{e&&(p.current="enter")},[e]),(0,l.e)(()=>{let e=(0,f.k)();d.add(e.dispose);let r=t.current;if(r&&"idle"!==p.current&&c.current)return e.dispose(),o.current(p.current),e.add(v(r,n.current,"enter"===p.current,()=>{e.dispose(),a.current(p.current)})),e.dispose},[r])}({immediate:J,container:F,classes:Q,direction:X,onStart:(0,u.E)(e=>{ie.current=!0,ne.onStart(F,e,te)}),onStop:(0,u.E)(e=>{ie.current=!1,ne.onStop(F,e,re),"leave"===e&&!_(ne)&&(G("hidden"),Z(F))})});let oe=L,ae={ref:B};return J?oe={...oe,className:(0,y.A)(L.className,...Q.current.enter,...Q.current.enterFrom)}:ie.current&&(oe.className=(0,y.A)(L.className,null==(h=F.current)?void 0:h.className),""===oe.className&&delete oe.className),n.createElement(S.Provider,{value:ne},n.createElement(g.up,{value:(0,p.E)(H,{visible:g.ZM.Open,hidden:g.ZM.Closed})|ee.flags},(0,b.sY)({ourProps:ae,theirProps:oe,defaultTag:"div",features:A,visible:"visible"===H,name:"Transition.Child"})))}),R=(0,b.yV)(function(e,t){let r=null!==(0,n.useContext)(x),i=null!==(0,g.oJ)();return n.createElement(n.Fragment,null,!r&&i?n.createElement(I,{ref:t,...e}):n.createElement(N,{ref:t,...e}))}),j=Object.assign(I,{Child:R,Root:I})},55842:function(e,t,r){"use strict";r.d(t,{q:function(){return o}});var n=r(27378),i=r(11981);
172function o(e,t,r){let[o,a]=(0,n.useState)(r),s=void 0!==e,l=(0,n.useRef)(s),u=(0,n.useRef)(!1),c=(0,n.useRef)(!1);return!s||l.current||u.current?!s&&l.current&&!c.current&&(c.current=!0,l.current=s,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(u.current=!0,l.current=s,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[s?e:o,(0,i.z)(e=>(s||a(e),null==t?void 0:t(e)))]}},84625:function(e,t,r){"use strict";r.d(t,{G:function(){return o}});var n=r(27378),i=r(71907);function o(){let[e]=(0,n.useState)(i.k);return(0,n.useEffect)(()=>()=>e.dispose(),[e]),e}},11981:function(e,t,r){"use strict";r.d(t,{z:function(){return o}});var n=r(27378),i=r(37349);let o=function(e){let t=(0,i.E)(e);return n.useCallback((...e)=>t.current(...e),[t])}},21743:function(e,t,r){"use strict";r.d(t,{V:function(){return o}});var n=r(27378),i=r(66412);function o(e=0){let[t,r]=(0,n.useState)(e),o=(0,i.t)(),a=(0,n.useCallback)(e=>{o.current&&r(t=>t|e)},[t,o]),s=(0,n.useCallback)(e=>Boolean(t&e),[t]),l=(0,n.useCallback)(e=>{o.current&&r(t=>t&~e)},[r,o]),u=(0,n.useCallback)(e=>{o.current&&r(t=>t^e)},[r]);return{flags:t,addFlag:a,hasFlag:s,removeFlag:l,toggleFlag:u}}},49786:function(e,t,r){"use strict";r.d(t,{M:function(){return l}});var n,i=r(27378),o=r(68366),a=r(85804),s=r(1074);let l=null!=(n=i.useId)?n:function(){let e=(0,s.H)(),[t,r]=i.useState(e?()=>o.O.nextId():null);return(0,a.e)(()=>{null===t&&r(o.O.nextId())},[t]),null!=t?""+t:void 0}},66412:function(e,t,r){"use strict";r.d(t,{t:function(){return o}});var n=r(27378),i=r(85804);function o(){let e=(0,n.useRef)(!1);return(0,i.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},85804:function(e,t,r){"use strict";r.d(t,{e:function(){return o}});var n=r(27378),i=r(68366);let o=(e,t)=>{i.O.isServer?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)}},37349:function(e,t,r){"use strict";r.d(t,{E:function(){return o}});var n=r(27378),i=r(85804);function o(e){let t=(0,n.useRef)(e);return(0,i.e)(()=>{t.current=e},[e]),t}},37972:function(e,t,r){"use strict";r.d(t,{O:function(){return u}});var n=r(27378),i=r(4818),o=r(71218),a=r(37349);function s(e,t,r){let i=(0,a.E)(t);(0,n.useEffect)(()=>{function t(e){i.current(e)}return document.addEventListener(e,t,r),()=>document.removeEventListener(e,t,r)},[e,r])}var l=r(73777);function u(e,t,r=!0){let a=(0,n.useRef)(!1);function u(r,n){if(!a.current||r.defaultPrevented)return;let o=n(r);if(null===o||!o.getRootNode().contains(o)||!o.isConnected)return;let s=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of s){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(o)||r.composed&&r.composedPath().includes(t))return}return!(0,i.sP)(o,i.tJ.Loose)&&-1!==o.tabIndex&&r.preventDefault(),t(r,o)}(0,n.useEffect)(()=>{requestAnimationFrame(()=>{a.current=r})},[r]);let c=(0,n.useRef)(null);s("pointerdown",e=>{var t,r;a.current&&(c.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),s("mousedown",e=>{var t,r;a.current&&(c.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),s("click",e=>{(0,o.tq)()||c.current&&(u(e,()=>c.current),c.current=null)},!0),s("touchend",e=>u(e,()=>e.target instanceof HTMLElement?e.target:null),!0),(0,l.s)("blur",e=>u(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},62722:function(e,t,r){"use strict";r.d(t,{f:function(){return a}});var n=r(27378),i=r(85804);function o(e){var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";return"string"==typeof r&&"button"===r.toLowerCase()?"button":void 0}function a(e,t){let[r,a]=(0,n.useState)(()=>o(e));return(0,i.e)(()=>{a(o(e))},[e.type,e.as]),(0,i.e)(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&a("button")},[r,t]),r}},1074:function(e,t,r){"use strict";var n;r.d(t,{H:function(){return a}});var i=r(27378),o=r(68366);function a(){let e=function(){let e="undefined"==typeof document;return(n||(n=r.t(i,2))).useSyncExternalStore(()=>()=>{},()=>!1,()=>!e)}(),[t,a]=i.useState(o.O.isHandoffComplete);return t&&!1===o.O.isHandoffComplete&&a(!1),i.useEffect(()=>{!0!==t&&a(!0)},[t]),i.useEffect(()=>o.O.handoff(),[]),!e&&t}},92296:function(e,t,r){"use strict";r.d(t,{T:function(){return s},h:function(){return a}});var n=r(27378),i=r(11981);let o=Symbol();function a(e,t=!0){return Object.assign(e,{[o]:t})}function s(...e){let t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let r=(0,i.z)(e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)});return e.every(e=>null==e||(null==e?void 0:e[o]))?void 0:r}},73777:function(e,t,r){"use strict";r.d(t,{s:function(){return o}});var n=r(27378),i=r(37349);function o(e,t,r){let o=(0,i.E)(t);(0,n.useEffect)(()=>{function t(e){o.current(e)}return window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)},[e,r])}},14784:function(e,t,r){"use strict";r.d(t,{A:function(){return o},_:function(){return a}});var n,i=r(36616),o=((n=o||{})[n.None=1]="None",n[n.Focusable=2]="Focusable",n[n.Hidden=4]="Hidden",n);let a=(0,i.yV)(function(e,t){var r;let{features:n=1,...o}=e,a={ref:t,"aria-hidden":!(2&~n)||(null!=(r=o["aria-hidden"])?r:void 0),hidden:!(4&~n)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~n)&&!!(2&~n)&&{display:"none"}}};return(0,i.sY)({ourProps:a,theirProps:o,slot:{},defaultTag:"div",name:"Hidden"})})},1635:function(e,t,r){"use strict";r.d(t,{ZM:function(){return a},oJ:function(){return s},up:function(){return l}});var n=r(27378);let i=(0,n.createContext)(null);i.displayName="OpenClosedContext";var o,a=((o=a||{})[o.Open=1]="Open",o[o.Closed=2]="Closed",o[o.Closing=4]="Closing",o[o.Opening=8]="Opening",o);function s(){return(0,n.useContext)(i)}function l({value:e,children:t}){return n.createElement(i.Provider,{value:e},t)}},54518:function(e,t,r){"use strict";function n(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=""===(null==t?void 0:t.getAttribute("disabled"));return(!n||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&n}r.d(t,{P:function(){return n}})},82622:function(e,t,r){"use strict";function n(...e){return Array.from(new Set(e.flatMap(e=>
172"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}r.d(t,{A:function(){return n}})},71907:function(e,t,r){"use strict";r.d(t,{k:function(){return i}});var n=r(96661);function i(){let e=[],t={addEventListener(e,r,n,i){return e.addEventListener(r,n,i),t.add(()=>e.removeEventListener(r,n,i))},requestAnimationFrame(...e){let r=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...e){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...e))},setTimeout(...e){let r=setTimeout(...e);return t.add(()=>clearTimeout(r))},microTask(...e){let r={current:!0};return(0,n.Y)(()=>{r.current&&e[0]()}),t.add(()=>{r.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(e){let t=i();return e(t),this.add(()=>t.dispose())},add(t){return e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let t of e.splice(r,1))t()}},dispose(){for(let t of e.splice(0))t()}};return t}},68366:function(e,t,r){"use strict";r.d(t,{O:function(){return o}});var n=Object.defineProperty,i=(e,t,r)=>(((e,t,r)=>{t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);let o=new class{constructor(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}},4818:function(e,t,r){"use strict";r.d(t,{C5:function(){return m},TO:function(){return u},fE:function(){return c},jA:function(){return y},sP:function(){return p},tJ:function(){return f},z2:function(){return g}});var n=r(57953),i=r(70458);let o=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var a,s,l,u=((l=u||{})[l.First=1]="First",l[l.Previous=2]="Previous",l[l.Next=4]="Next",l[l.Last=8]="Last",l[l.WrapAround=16]="WrapAround",l[l.NoScroll=32]="NoScroll",l),c=((s=c||{})[s.Error=0]="Error",s[s.Overflow=1]="Overflow",s[s.Success=2]="Success",s[s.Underflow=3]="Underflow",s),d=((a=d||{})[a.Previous=-1]="Previous",a[a.Next=1]="Next",a);var f=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(f||{});function p(e,t=0){var r;return e!==(null==(r=(0,i.r)(e))?void 0:r.body)&&(0,n.E)(t,{0(){return e.matches(o)},1(){let t=e;for(;null!==t;){if(t.matches(o))return!0;t=t.parentElement}return!1}})}var h=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(h||{});function m(e){null==e||e.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let v=["textarea","input"].join(",");function g(e,t=e=>e){return e.slice().sort((e,r)=>{let n=t(e),i=t(r);if(null===n||null===i)return 0;let o=n.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function y(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:i=[]}={}){let a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?r?g(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(o)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);i.length>0&&s.length>1&&(s=s.filter(e=>!i.includes(e))),n=null!=n?n:a.activeElement;let l,u=(()=>
172{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,s.indexOf(n))-1;if(4&t)return Math.max(0,s.indexOf(n))+1;if(8&t)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=32&t?{preventScroll:!0}:{},f=0,p=s.length;do{if(f>=p||f+p<=0)return 0;let e=c+f;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}l=s[e],null==l||l.focus(d),f+=u}while(l!==a.activeElement);return 6&t&&function(e){var t,r;return null!=(r=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,v))&&r}(l)&&l.select(),2}},98283:function(e,t,r){"use strict";function n(e={},t=null,r=[]){for(let[n,a]of Object.entries(e))o(r,i(t,n),a);return r}function i(e,t){return e?e+"["+t+"]":t}function o(e,t,r){if(Array.isArray(r))for(let[n,a]of r.entries())o(e,i(t,n.toString()),a);else r instanceof Date?e.push([t,r.toISOString()]):"boolean"==typeof r?e.push([t,r?"1":"0"]):"string"==typeof r?e.push([t,r]):"number"==typeof r?e.push([t,`${r}`]):null==r?e.push([t,""]):n(r,t,e)}function a(e){var t,r;let n=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(n){for(let t of n.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(r=n.requestSubmit)||r.call(n)}}r.d(t,{g:function(){return a},t:function(){return n}})},57953:function(e,t,r){"use strict";function n(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,n),i}r.d(t,{E:function(){return n}})},96661:function(e,t,r){"use strict";function n(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}r.d(t,{Y:function(){return n}})},70458:function(e,t,r){"use strict";r.d(t,{r:function(){return i}});var n=r(68366);function i(e){return n.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},71218:function(e,t,r){"use strict";function n(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function i(){return n()||/Android/gi.test(window.navigator.userAgent)}r.d(t,{gn:function(){return n},tq:function(){return i}})},36616:function(e,t,r){"use strict";r.d(t,{AN:function(){return l},Y2:function(){return f},l4:function(){return u},oA:function(){return v},sY:function(){return c},yV:function(){return m}});var n,i,o=r(27378),a=r(82622),s=r(57953),l=((i=l||{})[i.None=0]="None",i[i.RenderStrategy=1]="RenderStrategy",i[i.Static=2]="Static",i),u=((n=u||{})[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n);function c({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:o=!0,name:a,mergeRefs:l}){l=null!=l?l:p;let u=h(t,e);if(o)return d(u,r,n,a,l);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=u;if(e)return d(t,r,n,a,l)}if(1&c){let{unmount:e=!0,...t}=u;return(0,s.E)(e?0:1,{0(){return null},1(){return d({...t,hidden:!0,style:{display:"none"}},r,n,a,l)}})}return d(u,r,n,a,l)}function d(e,t={},r,n,i){let{as:s=r,children:l,refName:u="ref",...c}=g(e,["unmount","static"]),d=void 0!==e.ref?{[u]:e.ref}:{},f="function"==typeof l?l(t):l;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t));let p={};if(t){let e=!1,r=[];for(let[n,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&r.push(n);e&&(p["data-headlessui-state"]=r.join(" "))}if(s===o.Fragment&&Object.keys(v(c)).length>0){if(!(0,o.isValidElement)(f)||Array.isArray(f)&&f.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map(e=>` - ${e}`).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join("\n")].join("\n"));let e=f.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>(0,a.A)(null==e?void 0:e.className(...t),c.className):(0,a.A)(null==e?void 0:e.className,c.className),r=t?{className:t}:{};return(0,o.cloneElement)(f,Object.assign({},h(f.props,v(g(c,["ref"]))),p,d,{ref:i(f.ref,d.ref)},r))}return(0,o.createElement)(s,Object.assign({},g(c,["ref"]),s!==o.Fragment&&d,s!==o.Fragment&&p),f)}function f(){let e=(0,o.useRef)([]),t=(0,o.useCallback)(t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)},[]);return(...r)=>{if(!r.every(e=>null==e))return e.current=r,t}}function p(...e){return e.every(e=>null==e)?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}function h(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(e=>[e,void 0])));for(let e in r)Object.assign(t,{[e](t,...n){let i=r[e];for(let e of i){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...n)}}});return t}function m(e){var t;return Object.assign((0,o.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function v(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function g(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}},75083:function(e,t,r){"use strict";var n=r(27378);function i({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const o=n.forwardRef(i);t.Z=o},78229:function(e,t,r){"use strict";var n=r(27378);function i({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const o=n.forwardRef(i);t.Z=o},63862:function(e,t,r){"use strict";var n=r(27378);function i({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const o=n.forwardRef(i);t.Z=o},6843:function(e,t,r){"use strict";var n=r(27378);function i({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"}))}const o=n.forwardRef(i);t.Z=o},55741:function(e,t,r){"use strict";var n=r(27378);function i({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
172currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm4.28 10.28a.75.75 0 0 0 0-1.06l-3-3a.75.75 0 1 0-1.06 1.06l1.72 1.72H8.25a.75.75 0 0 0 0 1.5h5.69l-1.72 1.72a.75.75 0 1 0 1.06 1.06l3-3Z",clipRule:"evenodd"}))}const o=n.forwardRef(i);t.Z=o},86665:function(e,t,r){"use strict";var n=r(27378);function i({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z",clipRule:"evenodd"}))}const o=n.forwardRef(i);t.Z=o},51147:function(e,t,r){"use strict";var n=r(27378);function i({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{fillRule:"evenodd",d:"M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z",clipRule:"evenodd"}))}const o=n.forwardRef(i);t.Z=o},52186:function(e,t,r){"use strict";var n=r(27378);function i({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{fillRule:"evenodd",d:"M7.72 12.53a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 1 1 1.06 1.06L9.31 12l6.97 6.97a.75.75 0 1 1-1.06 1.06l-7.5-7.5Z",clipRule:"evenodd"}))}const o=n.forwardRef(i);t.Z=o},7668:function(e,t,r){"use strict";var n=r(27378);function i({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{fillRule:"evenodd",d:"M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z",clipRule:"evenodd"}))}const o=n.forwardRef(i);t.Z=o},6385:function(e,t,r){"use strict";var n=r(27378);function i({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25ZM12.75 6a.75.75 0 0 0-1.5 0v6c0 .414.336.75.75.75h4.5a.75.75 0 0 0 0-1.5h-3.75V6Z",clipRule:"evenodd"}))}const o=n.forwardRef(i);t.Z=o},57735:function(e,t,r){"use strict";var n=r(27378);function i({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{fillRule:"evenodd",d:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006 5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434 2.082-5.005Z",clipRule:"evenodd"}))}const o=n.forwardRef(i);t.Z=o},63322:function(e,t,r){"use strict";var n=r(27378);function i({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
172currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const o=n.forwardRef(i);t.Z=o},19063:function(e,t,r){"use strict";r.r(t),r.d(t,{SkipNavContent:function(){return a},SkipNavLink:function(){return o}});var n=r(27378),i="reach-skip-nav",o=n.forwardRef(function({as:e="a",children:t="Skip to content",contentId:r,...o},a){let s=r||i;return n.createElement(e,{...o,ref:a,href:`#${s}`,"data-reach-skip-link":"","data-reach-skip-nav-link":""},t)});o.displayName="SkipNavLink";var a=n.forwardRef(function({as:e="div",id:t,...r},o){let a=t||i;return n.createElement(e,{...r,ref:o,id:a,"data-reach-skip-nav-content":""})});a.displayName="SkipNavContent"},4055:function(e,t,r){"use strict";r.d(t,{D:function(){return s}});const{toString:n,hasOwnProperty:i}=Object.prototype,o=Function.prototype.toString,a=new Map;function s(e,t){try{return l(e,t)}finally{a.clear()}}function l(e,t){if(e===t)return!0;const r=n.call(e);if(r!==n.call(t))return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(f(e,t))return!0;const r=u(e),n=u(t),o=r.length;if(o!==n.length)return!1;for(let e=0;e<o;++e)if(!i.call(t,r[e]))return!1;for(let n=0;n<o;++n){const i=r[n];if(!l(e[i],t[i]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(f(e,t))return!0;const n=e.entries(),i="[object Map]"===r;for(;;){const e=n.next();if(e.done)break;const[r,o]=e.value;if(!t.has(r))return!1;if(i&&!l(o,t.get(r)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let r=e.byteLength;if(r===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const r=o.call(e);return r===o.call(t)&&!function(e,t){const r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(r,d)}}return!1}function u(e){return Object.keys(e).filter(c,e)}function c(e){return void 0!==this[e]}const d="{ [native code] }";function f(e,t){let r=a.get(e);if(r){if(r.has(t))return!0}else a.set(e,r=new Set);return r.add(t),!1}},10347:function(e,t,r){"use strict";function n(e){var t,r,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=n(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}r.d(t,{j:function(){return a}});const i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=function(){for(var e,t,r=0,i="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=n(e))&&(i&&(i+=" "),i+=t);return i},a=(e,t)=>r=>{var n;if(null==(null==t?void 0:t.variants))return o(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{const t=null==r?void 0:r[e],n=null==s?void 0:s[e];if(null===t)return null;const o=i(t)||i(n);return a[e][o]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),c=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...u}[t]):{...s,...u}[t]===r})?[...e,r,n]:e},[]);return o(e,l,c,null==r?void 0:r.class,null==r?void 0:r.className)}},1959:function(e,t,r){"use strict";r.d(t,{S:function(){return g}});var n=r(83874),i=r(13268),o=r(67844),a=r(81043);
172const s=.001,l=.01,u=10,c=.05,d=1;const f=12;function p(e,t){return e*Math.sqrt(1-t*t)}const h=["duration","bounce"],m=["stiffness","damping","mass"];function v(e,t){return t.some(t=>void 0!==e[t])}function g({keyframes:e,restDelta:t,restSpeed:r,...g}){const y=e[0],b=e[e.length-1],w={done:!1,value:y},{stiffness:x,damping:E,mass:k,duration:S,velocity:_,isResolvedFromDuration:C}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!v(e,m)&&v(e,h)){const r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:i=1}){let h,m;(0,o.K)(e<=(0,n.w)(u),"Spring duration must be 10 seconds or less");let v=1-t;v=(0,a.u)(c,d,v),e=(0,a.u)(l,u,(0,n.X)(e)),v<1?(h=t=>{const n=t*v,i=n*e,o=n-r,a=p(t,v),l=Math.exp(-i);return s-o/a*l},m=t=>{const n=t*v*e,i=n*r+r,o=Math.pow(v,2)*Math.pow(t,2)*e,a=Math.exp(-n),l=p(Math.pow(t,2),v);return(-h(t)+s>0?-1:1)*((i-o)*a)/l}):(h=t=>Math.exp(-t*e)*((t-r)*e+1)-s,m=t=>Math.exp(-t*e)*(e*e*(r-t)));const g=function(e,t,r){let n=r;for(let r=1;r<f;r++)n-=e(n)/t(n);return n}(h,m,5/e);if(e=(0,n.w)(e),isNaN(g))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(g,2)*i;return{stiffness:t,damping:2*v*Math.sqrt(i*t),duration:e}}}(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}({...g,velocity:-(0,n.X)(g.velocity||0)}),O=_||0,P=E/(2*Math.sqrt(x*k)),T=b-y,A=(0,n.X)(Math.sqrt(x/k)),I=Math.abs(T)<5;let N;if(r||(r=I?.01:2),t||(t=I?.005:.5),P<1){const e=p(A,P);N=t=>{const r=Math.exp(-P*A*t);return b-r*((O+P*A*T)/e*Math.sin(e*t)+T*Math.cos(e*t))}}else if(1===P)N=e=>b-Math.exp(-A*e)*(T+(O+A*T)*e);else{const e=A*Math.sqrt(P*P-1);N=t=>{const r=Math.exp(-P*A*t),n=Math.min(e*t,300);return b-r*((O+P*A*T)*Math.sinh(n)+e*T*Math.cosh(n))/e}}return{calculatedDuration:C&&S||null,next:e=>{const n=N(e);if(C)w.done=e>=S;else{let o=O;0!==e&&(o=P<1?(0,i.P)(N,e,n):0);const a=Math.abs(o)<=r,s=Math.abs(b-n)<=t;w.done=a&&s}return w.value=w.done?b:n,w}}}},10219:function(e,t,r){"use strict";r.d(t,{E:function(){return n},i:function(){return i}});const n=2e4;function i(e){let t=0,r=e.next(t);for(;!r.done&&t<n;)t+=50,r=e.next(t);return t>=n?1/0:t}},13268:function(e,t,r){"use strict";r.d(t,{P:function(){return o}});var n=r(48527);const i=5;function o(e,t,r){const o=Math.max(t-i,0);return(0,n.R)(r-e(o),t-o)}},91988:function(e,t,r){"use strict";r.d(t,{_:function(){return u}});var n=r(67844),i=r(80919),o=r(64990);function a(){let e=!1;const t=new Set,r={subscribe(e){return t.add(e),()=>{t.delete(e)}},start(r,i){(0,n.k)(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");const a=[];return t.forEach(e=>{a.push((0,o.d)(e,r,{transitionOverride:i}))}),Promise.all(a)},set(r){return(0,n.k)(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(e=>{(0,i.gg)(e,r)})},stop(){t.forEach(e=>{!function(e){e.values.forEach(e=>e.stop())}(e)})},mount(){return e=!0,()=>{e=!1,r.stop()}}};return r}var s=r(42308),l=r(64306);const u=function(){const e=(0,s.h)(a);return(0,l.L)(e.mount,[]),e}},50012:function(e,t,r){"use strict";r.d(t,{v:function(){return Y}});var n=r(67844),i=r(83874);const o=e=>Array.isArray(e)&&"number"==typeof e[0];function a(e){return Boolean(!e||"string"==typeof e&&l[e]||o(e)||Array.isArray(e)&&e.every(a))}const s=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,l={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:s([0,.65,.55,1]),circOut:s([.55,0,1,.45]),backIn:s([.31,.01,.66,-.59]),backOut:s([.33,1.53,.69,.99])};function u(e){if(e)return o(e)?s(e):Array.isArray(e)?e.map(u):l[e]}var c=r(74318);const d=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function f(e,t,r,n){if(e===t&&r===n)return c.Z;return i=>0===i||1===i?i:d(function(e,t,r,n,i){let o,a,s=0;do{a=t+(r-t)/2,o=d(a,n,i)-e,o>0?r=a:t=a}while(Math.abs(o)>1e-7&&++s<12);return a}(i,0,1,e,r),t,n)}const p=f(.42,0,1,1),h=f(0,0,.58,1),m=f(.42,0,.58,1);var v=r(57846),g=r(82880),y=r(16262),b=r(9193);const w=f(.33,1.53,.69,.99),x=(0,b.M)(w),E=(0,y.o)(x),k={linear:c.Z,easeIn:p,easeInOut:m,easeOut:h,circIn:g.Z7,circInOut:g.X7,circOut:g.Bn,backIn:x,backInOut:E,backOut:w,anticipate:e=>(e*=2)<1?.5*x(e):.5*(2-Math.pow(2,-10*(e-1)))},S=e=>{if(Array.isArray(e)){(0,n.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,r,i,o]=e;return f(t,r,i,o)}return"string"==typeof e?((0,n.k)(void 0!==k[e],`Invalid easing type '${e}'`),k[e]):e};var _=r(49166),C=r(30005);function O({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=(0,v.N)(n)?n.map(S):S(n),o={done:!1,value:t[0]},a=function(e,t){return e.map(e=>e*t)}(r&&r.length===t.length?r:(0,C.Y)(t),e),s=(0,_.s)(a,t,{ease:Array.isArray(i)?i:(l=t,u=i,l.map(()=>u||m).splice(0,l.length-1))});var l,u;return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}var P=r(1959),T=r(13268);function A({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let h=r*t;const m=d+h,v=void 0===a?m:a(m);v!==m&&(h=v-d);const g=e=>-h*Math.exp(-e/n),y=e=>v+g(e),b=e=>{const t=g(e),r=y(e);f.done=Math.abs(t)<=u,f.value=f.done?v:r};let w,x;const E=e=>{var t;t=f.value,(void 0!==s&&t<s||void 0!==l&&t>
172l)&&(w=e,x=(0,P.S)({keyframes:[f.value,p(f.value)],velocity:(0,T.P)(y,e,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,b(e),E(e)),void 0!==w&&e>w?x.next(e-w):(!t&&b(e),f)}}}var I=r(29725);const N=e=>{const t=({timestamp:t})=>e(t);return{start:()=>I.Wi.update(t,!0),stop:()=>(0,I.Pn)(t),now:()=>I.frameData.isProcessing?I.frameData.timestamp:performance.now()}};var R=r(81043),j=r(10219);const M={decay:A,inertia:A,tween:O,keyframes:O,spring:P.S};function D({autoplay:e=!0,delay:t=0,driver:r=N,keyframes:n,type:o="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:l="loop",onPlay:u,onStop:c,onComplete:d,onUpdate:f,...p}){let h,m,v=1,g=!1;const y=()=>{m=new Promise(e=>{h=e})};let b;y();const w=M[o]||O;let x;w!==O&&"number"!=typeof n[0]&&(x=(0,_.s)([0,100],n,{clamp:!1}),n=[0,100]);const E=w({...p,keyframes:n});let k;"mirror"===l&&(k=w({...p,keyframes:[...n].reverse(),velocity:-(p.velocity||0)}));let S="idle",C=null,P=null,T=null;null===E.calculatedDuration&&a&&(E.calculatedDuration=(0,j.i)(E));const{calculatedDuration:A}=E;let I=1/0,D=1/0;null!==A&&(I=A+s,D=I*(a+1)-s);let L=0;const F=e=>{if(null===P)return;v>0&&(P=Math.min(P,e)),v<0&&(P=Math.min(e-D/v,P)),L=null!==C?C:Math.round(e-P)*v;const r=L-t*(v>=0?1:-1),i=v>=0?r<0:r>D;L=Math.max(r,0),"finished"===S&&null===C&&(L=D);let o=L,u=E;if(a){const e=Math.min(L,D)/I;let t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,t=Math.min(t,a+1),Boolean(t%2)&&("reverse"===l?(r=1-r,s&&(r-=s/I)):"mirror"===l&&(u=k)),o=(0,R.u)(0,1,r)*I}const c=i?{done:!1,value:n[0]}:u.next(o);x&&(c.value=x(c.value));let{done:d}=c;i||null===A||(d=v>=0?L>=D:L<=0);const p=null===C&&("finished"===S||"running"===S&&d);return f&&f(c.value),p&&V(),c},B=()=>{b&&b.stop(),b=void 0},U=()=>{S="idle",B(),h(),y(),P=T=null},V=()=>{S="finished",d&&d(),B(),h()},z=()=>{if(g)return;b||(b=r(F));const e=b.now();u&&u(),null!==C?P=e-C:P&&"finished"!==S||(P=e),"finished"===S&&y(),T=P,C=null,S="running",b.start()};e&&z();const q={then(e,t){return m.then(e,t)},get time(){return(0,i.X)(L)},set time(e){e=(0,i.w)(e),L=e,null===C&&b&&0!==v?P=b.now()-e/v:C=e},get duration(){const e=null===E.calculatedDuration?(0,j.i)(E):E.calculatedDuration;return(0,i.X)(e)},get speed(){return v},set speed(e){e!==v&&b&&(v=e,q.time=(0,i.X)(L))},get state(){return S},play:z,pause:()=>{S="paused",C=L},stop:()=>{g=!0,"idle"!==S&&(S="idle",c&&c(),U())},cancel:()=>{null!==T&&F(T),U()},complete:()=>{S="finished"},sample:e=>(P=0,F(e))};return q}const L=(0,r(56206).X)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),F=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);var B=r(36067);const U={type:"spring",stiffness:500,damping:25,restSpeed:10},V={type:"keyframes",duration:.8},z={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},q=(e,{keyframes:t})=>t.length>2?V:B.G.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:U:z;var H=r(641);const G=(e,t)=>!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!H.P.test(t)&&"0"!==t||t.startsWith("url(")));var $=r(14403),W=r(8887);function Z(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||(0,W.W)(e):void 0}var Q=r(84598);const Y=(e,t,r,o={})=>s=>{const l=(0,Q.e)(o,e)||{},d=l.delay||o.delay||0;let{elapsed:f=0}=o;f-=(0,i.w)(d);const p=function(e,t,r,n){const i=G(t,r);let o;o=Array.isArray(r)?[...r]:[null,r];const a=void 0!==n.from?n.from:e.get();let s;const l=[];for(let e=0;e<o.length;e++)null===o[e]&&(o[e]=0===e?a:o[e-1]),Z(o[e])&&l.push(e),"string"==typeof o[e]&&"none"!==o[e]&&"0"!==o[e]&&(s=o[e]);if(i&&l.length&&s)for(let e=0;e<l.length;e++)o[l[e]]=(0,$.T)(t,s);return o}(t,e,r,l),h=p[0],m=p[p.length-1],v=G(e,h),g=G(e,m);(0,n.K)(v===g,`You are trying to animate ${e} from "${h}" to "${m}". ${h} is not an animatable value - to enable this animation set ${h} to a value animatable to ${m} via the \`style\` property.`);let y={keyframes:p,velocity:t.getVelocity(),ease:"easeOut",...l,delay:-f,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{s(),l.onComplete&&l.onComplete()}};if((0,Q.r)(l)||(y={...y,...q(e,y)}),y.duration&&(y.duration=(0,i.w)(y.duration)),y.repeatDelay&&(y.repeatDelay=(0,i.w)(y.repeatDelay)),!v||!g||!1===l.type)return function({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:c.Z,pause:c.Z,stop:c.Z,then:e=>(e(),Promise.resolve()),cancel:c.Z,complete:c.Z});return t?D({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}(y);if(!o.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUp
172date){const r=function(e,t,{onUpdate:r,onComplete:n,...o}){if(!L()||!F.has(t)||o.repeatDelay||"mirror"===o.repeatType||0===o.damping||"inertia"===o.type)return!1;let s,l,d=!1,f=!1;const p=()=>{l=new Promise(e=>{s=e})};p();let{keyframes:h,duration:m=300,ease:v,times:g}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!a(t.ease))(t,o)){const e=D({...o,repeat:0,delay:0});let t={done:!1,value:h[0]};const r=[];let n=0;for(;!t.done&&n<2e4;)t=e.sample(n),r.push(t.value),n+=10;g=void 0,h=r,m=n-10,v="linear"}const y=function(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:r};l&&(c.offset=l);const d=u(s);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:n,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,h,{...o,duration:m,ease:v,times:g}),b=()=>{f=!1,y.cancel()},w=()=>{f=!0,I.Wi.update(b),s(),p()};return y.onfinish=()=>{f||(e.set(function(e,{repeat:t,repeatType:r="loop"}){return e[t&&"loop"!==r&&t%2==1?0:e.length-1]}(h,o)),n&&n(),w())},{then(e,t){return l.then(e,t)},attachTimeline(e){return y.timeline=e,y.onfinish=null,c.Z},get time(){return(0,i.X)(y.currentTime||0)},set time(e){y.currentTime=(0,i.w)(e)},get speed(){return y.playbackRate},set speed(e){y.playbackRate=e},get duration(){return(0,i.X)(m)},play:()=>{d||(y.play(),(0,I.Pn)(b))},pause:()=>y.pause(),stop:()=>{if(d=!0,"idle"===y.playState)return;const{currentTime:t}=y;if(t){const r=D({...o,autoplay:!1});e.setWithVelocity(r.sample(t-10).value,r.sample(t).value,10)}w()},complete:()=>{f||y.finish()},cancel:w}}(t,e,y);if(r)return r}return D(y)}},25081:function(e,t,r){"use strict";r.d(t,{D:function(){return a}});var n=r(50012),i=r(69222),o=r(3522);function a(e,t,r){const a=(0,o.i)(e)?e:(0,i.BX)(e);return a.start((0,n.v)("",a,t,r)),a.animation}},60447:function(e,t,r){"use strict";r.d(t,{w:function(){return f}});var n=r(36067),i=r(12050),o=r(50012),a=r(32091),s=r(80919),l=r(84598),u=r(29725);function c({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}function d(e,t){const r=e.get();if(!Array.isArray(t))return r!==t;for(let e=0;e<t.length;e++)if(t[e]!==r)return!0}function f(e,t,{delay:r=0,transitionOverride:f,type:p}={}){let{transition:h=e.getDefaultTransition(),transitionEnd:m,...v}=e.makeTargetAnimatable(t);const g=e.getValue("willChange");f&&(h=f);const y=[],b=p&&e.animationState&&e.animationState.getState()[p];for(const t in v){const s=e.getValue(t),f=v[t];if(!s||void 0===f||b&&c(b,t))continue;const p={delay:r,elapsed:0,...(0,l.e)(h||{},t)};if(window.HandoffAppearAnimations){const r=e.getProps()[i.M];if(r){const e=window.HandoffAppearAnimations(r,t,s,u.Wi);null!==e&&(p.elapsed=e,p.isHandoff=!0)}}let m=!p.isHandoff&&!d(s,f);if("spring"===p.type&&(s.getVelocity()||p.velocity)&&(m=!1),s.animation&&(m=!1),m)continue;s.start((0,o.v)(t,s,f,e.shouldReduceMotion&&n.G.has(t)?{type:!1}:p));const w=s.animation;(0,a.L)(g)&&(g.add(t),w.then(()=>g.remove(t))),y.push(w)}return m&&Promise.all(y).then(()=>{m&&(0,s.CD)(e,m)}),y}},64990:function(e,t,r){"use strict";r.d(t,{d:function(){return s}});var n=r(56766),i=r(60447);function o(e,t,r={}){const s=(0,n.x)(e,t,r.custom);let{transition:l=e.getDefaultTransition()||{}}=s||{};r.transitionOverride&&(l=r.transitionOverride);const u=s?()=>Promise.all((0,i.w)(e,s,r)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(n=0)=>{const{delayChildren:i=0,staggerChildren:s,staggerDirection:u}=l;return function(e,t,r=0,n=0,i=1,s){const l=[],u=(e.variantChildren.size-1)*n,c=1===i?(e=0)=>e*n:(e=0)=>u-e*n;return Array.from(e.variantChildren).sort(a).forEach((e,n)=>{e.notify("AnimationStart",t),l.push(o(e,t,{...s,delay:r+c(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(l)}(e,t,i+n,s,u,r)}:()=>Promise.resolve(),{when:d}=l;if(d){const[e,t]="beforeChildren"===d?[u,c]:[c,u];return e().then(()=>t())}return Promise.all([u(),c(r.delay)])}function a(e,t){return e.sortNodePosition(t)}function s(e,t,r={}){let a;if(e.notify("AnimationStart",t),Array.isArray(t)){const n=t.map(t=>o(e,t,r));a=Promise.all(n)}else if("string"==typeof t)a=o(e,t,r);else{const o="function"==typeof t?(0,n.x)(e,t,r.custom):t;a=Promise.all((0,i.w)(e,o,r))}return a.then(()=>e.notify("AnimationComplete",t))}},12050:function(e,t,r){"use strict";r.d(t,{M:function(){return n}});const n="data-"+(0,r(47465).D)("framerAppearId")},31365: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}})},44996:function(e,t,r){"use strict";r.d(t,{C:function(){return n}});const n=e=>Array.isArray(e)},84598:function(e,t,r){"use strict";function n({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,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}})},520:function(e,t,r){"use strict";r.d(t,{M:function(){return v}});var n=r(27378),i=r(64306);function o(){const e=(0,n.useRef)(!1);return(0,i.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var a=r(29725),s=r(37387),l=r(42308);class u extends n.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const 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 c({children:e,isPresent:t}){const r=(0,n.useId)(),i=(0,n.useRef)(null),o=(0,n.useRef)({width:0,height:0,top:0,left:0});return(0,n.useInsertionEffect)(()=>{const{width:e,height:n,top:a,left:s}=o.current;if(t||!i.current||!e||!n)return;i.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${n}px !important;\n top: ${a}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(l)}},[t]),n.createElement(u,{isPresent:t,childRef:i,sizeRef:o},n.cloneElement(e,{ref:i}))}const d=({children:e,initial:t,isPresent:r,onExitComplete:i,custom:o,presenceAffectsLayout:a,mode:u})=>{const d=(0,l.h)(f),p=(0,n.useId)(),h=(0,n.useMemo)(()=>({id:p,initial:t,isPresent:r,custom:o,onExitComplete:e=>{d.set(e,!0);for(const e of d.values())if(!e)return;i&&i()},register:e=>(d.set(e,!1),()=>d.delete(e))}),a?void 0:[r]);return(0,n.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[r]),n.useEffect(()=>{!r&&!d.size&&i&&i()},[r]),"popLayout"===u&&(e=n.createElement(c,{isPresent:r},e)),n.createElement(s.O.Provider,{value:h},e)};function f(){return new Map}var p=r(33684),h=r(67844);const m=e=>e.key||"",v=({children:e,custom:t,initial:r=!0,onExitComplete:s,exitBeforeEnter:l,presenceAffectsLayout:u=!0,mode:c="sync"})=>{(0,h.k)(!l,"Replace exitBeforeEnter with mode='wait'");const f=(0,n.useContext)(p.p).forceRender||function(){const e=o(),[t,r]=(0,n.use
172State)(0),i=(0,n.useCallback)(()=>{e.current&&r(t+1)},[t]);return[(0,n.useCallback)(()=>a.Wi.postRender(i),[i]),t]}()[0],v=o(),g=function(e){const t=[];return n.Children.forEach(e,e=>{(0,n.isValidElement)(e)&&t.push(e)}),t}(e);let y=g;const b=(0,n.useRef)(new Map).current,w=(0,n.useRef)(y),x=(0,n.useRef)(new Map).current,E=(0,n.useRef)(!0);var k;if((0,i.L)(()=>{E.current=!1,function(e,t){e.forEach(e=>{const r=m(e);t.set(r,e)})}(g,x),w.current=y}),k=()=>{E.current=!0,x.clear(),b.clear()},(0,n.useEffect)(()=>()=>k(),[]),E.current)return n.createElement(n.Fragment,null,y.map(e=>n.createElement(d,{key:m(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:u,mode:c},e)));y=[...y];const S=w.current.map(m),_=g.map(m),C=S.length;for(let e=0;e<C;e++){const t=S[e];-1!==_.indexOf(t)||b.has(t)||b.set(t,void 0)}return"wait"===c&&b.size&&(y=[]),b.forEach((e,r)=>{if(-1!==_.indexOf(r))return;const i=x.get(r);if(!i)return;const o=S.indexOf(r);let a=e;if(!a){const e=()=>{b.delete(r);const e=Array.from(x.keys()).filter(e=>!_.includes(e));if(e.forEach(e=>x.delete(e)),w.current=g.filter(t=>{const n=m(t);return n===r||e.includes(n)}),!b.size){if(!1===v.current)return;f(),s&&s()}};a=n.createElement(d,{key:m(i),isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:u,mode:c},i),b.set(r,a)}y.splice(o,0,a)}),y=y.map(e=>{const t=e.key;return b.has(t)?e:n.createElement(d,{key:m(e),isPresent:!0,presenceAffectsLayout:u,mode:c},e)}),n.createElement(n.Fragment,null,b.size?y:y.map(e=>(0,n.cloneElement)(e)))}},33684:function(e,t,r){"use strict";r.d(t,{p:function(){return n}});const n=(0,r(27378).createContext)({})},67412:function(e,t,r){"use strict";r.d(t,{_:function(){return n}});const n=(0,r(27378).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},37387:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});const n=(0,r(27378).createContext)(null)},82880:function(e,t,r){"use strict";r.d(t,{Bn:function(){return a},X7:function(){return s},Z7:function(){return o}});var n=r(16262),i=r(9193);const o=e=>1-Math.sin(Math.acos(e)),a=(0,i.M)(o),s=(0,n.o)(o)},16262:function(e,t,r){"use strict";r.d(t,{o:function(){return n}});const n=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2},9193:function(e,t,r){"use strict";r.d(t,{M:function(){return n}});const n=e=>t=>1-e(1-t)},57846:function(e,t,r){"use strict";r.d(t,{N:function(){return n}});const n=e=>Array.isArray(e)&&"number"!=typeof e[0]},29725:function(e,t,r){"use strict";r.d(t,{Pn:function(){return s},Wi:function(){return a},frameData:function(){return l},S6:function(){return u}});var n=r(74318);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){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const o=["prepare","read","update","preRender","render","postRender"],{schedule:a,cancel:s,state:l,steps:u}=function(e){let t=!1,r=!0;const n={delta:0,timestamp:0,isProcessing:!1},a=o.reduce((e,r)=>(e[r]=function(e){let t=new i,r=new i,n=0,o=!1,a=!1;const s=new WeakSet,l={schedule:(e,i=!1,a=!1)=>{const l=a&&o,u=l?t:r;return i&&s.add(e),u.add(e)&&l&&o&&(n=t.order.length),e},cancel:e=>{r.remove(e),s.delete(e)},process:i=>{if(o)a=!0;else{if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let r=0;r<n;r++){const n=t.order[r];n(i),s.has(n)&&(l.schedule(n),e())}o=!1,a&&(a=!1,l.process(i))}}};return l}(()=>t=!0),e),{}),s=e=>a[e].process(n),l=()=>{const i=performance.now();t=!1,n.delta=r?1e3/60:Math.max(Math.min(i-n.timestamp,40),1),n.timestamp=i,n.isProcessing=!0,o.forEach(s),n.isProcessing=!1,t&&(r=!1,e(l))};return{schedule:o.reduce((i,o)=>{const s=a[o];return i[o]=(i,o=!1,a=!1)=>(t||(t=!0,r=!0,n.isProcessing||e(l)),s.schedule(i,o,a)),i},{}),cancel:e=>o.forEach(t=>a[t].cancel(e)),state:n,steps:a}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.Z)},75995:function(e,t,r){"use strict";r.d(t,{A:function(){return i}});const 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(const e in n)i[e]={isEnabled:t=>n[e].some(e=>!!t[e])}},18381:function(e,t,r){"use strict";r.d(t,{j:function(){return o}});var n=r(75112),i=r(36067);function o(e,{layout:t,layoutId:r}){return i.G.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!n.P[e]||"opacity"===e)}},9810: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;const 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}})},86166: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(55851),i=r(71183);function o(e,t,r){return r+t*(e-r)}function a(e,t,r,n,i){return void 0!==i&&(e=o(e,i,n)),o(e,r,n)+t}function s(e,t=0,r=1,n,i){e.min=a(e.min,t,r,n,i),e.max=a(e.max,t,r,n,i)}function l(e,{x:t,y:r}
172){s(e.x,t.translate,t.scale,t.originPoint),s(e.y,r.translate,r.scale,r.originPoint)}function u(e,t,r,n=!1){const o=r.length;if(!o)return;let a,s;t.x=t.y=1;for(let u=0;u<o;u++){a=r[u],s=a.projectionDelta;const o=a.instance;o&&o.style&&"contents"===o.style.display||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&m(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,l(e,s)),n&&(0,i.ud)(a.latestValues)&&m(e,a.latestValues))}t.x=c(t.x),t.y=c(t.y)}function c(e){return Number.isInteger(e)||e>1.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]){const a=void 0!==t[o]?t[o]:.5,l=(0,n.C)(e.min,e.max,a);s(e,t[r],t[i],l,t.scale)}const p=["x","scaleX","originX"],h=["y","scaleY","originY"];function m(e,t){f(e.x,t,p),f(e.y,t,h)}},44228:function(e,t,r){"use strict";r.d(t,{dO:function(){return i},wc:function(){return n}});const n=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),i=()=>({x:{min:0,max:0},y:{min:0,max:0}})},75112:function(e,t,r){"use strict";r.d(t,{B:function(){return i},P:function(){return n}});const n={};function i(e){Object.assign(n,e)}},71183: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)||a(e)||e.z||e.rotate||e.rotateX||e.rotateY}function a(e){return s(e.x)||s(e.y)}function s(e){return e&&"0%"!==e}r.d(t,{D_:function(){return a},Lj:function(){return i},ud:function(){return o}})},51259:function(e,t,r){"use strict";r.d(t,{J:function(){return o},z:function(){return a}});var n=r(9810),i=r(86166);function o(e,t){return(0,n.i8)((0,n.d7)(e.getBoundingClientRect(),t))}function a(e,t,r){const n=o(e,r),{scroll:a}=t;return a&&((0,i.am)(n.x,a.offset.x),(0,i.am)(n.y,a.offset.y)),n}},83388:function(e,t,r){"use strict";r.d(t,{J:function(){return H}});var n=r(80919),i=r(67844),o=r(59418),a=r(47415);const s=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function l(e,t,r=1){(0,i.k)(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,u]=function(e){const t=s.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}(e);if(!n)return;const c=window.getComputedStyle(t).getPropertyValue(n);if(c){const e=c.trim();return(0,o.P)(e)?parseFloat(e):e}return(0,a.tm)(u)?l(u,t,r+1):u}var u=r(44996),c=r(36067),d=r(12838),f=r(96949),p=r(30841),h=r(4929);const m=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),v=e=>m.has(e),g=e=>e===p.Rx||e===h.px,y=(e,t)=>parseFloat(e.split(", ")[t]),b=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return y(i[1],t);{const t=n.match(/^matrix\((.+)\)$/);return t?y(t[1],e):0}},w=new Set(["x","y","z"]),x=c._.filter(e=>!w.has(e)),E={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:b(4,13),y:b(5,14)};E.translateX=E.x,E.translateY=E.y;function k(e,t,r,n){return(e=>Object.keys(e).some(v))(t)?((e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(v);let a=[],s=!1;const l=[];if(o.forEach(o=>{const c=e.getValue(o);if(!e.hasValue(o))return;let f=r[o],p=(0,d.C)(f);const m=t[o];let v;if((0,u.C)(m)){const e=m.length,t=null===m[0]?1:0;f=m[t],p=(0,d.C)(f);for(let r=t;r<e&&null!==m[r];r++)v?(0,i.k)((0,d.C)(m[r])===v,"All keyframes must be of the same type"):(v=(0,d.C)(m[r]),(0,i.k)(v===p||g(p)&&g(v),"Keyframes must be of the same dimension as the current value"))}else v=(0,d.C)(m);if(p!==v)if(g(p)&&g(v)){const e=c.get();"string"==typeof e&&c.set(parseFloat(e)),"string"==typeof m?t[o]=parseFloat(m):Array.isArray(m)&&v===h.px&&(t[o]=m.map(parseFloat))}else(null==p?void 0:p.transform)&&(null==v?void 0:v.transform)&&(0===f||0===m)?0===f?c.set(v.transform(f)):t[o]=p.transform(m):(s||(a=function(e){const t=[];return x.forEach(r=>{const n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),s=!0),l.push(o),n[o]=void 0!==n[o]?n[o]:t[o],c.jump(m))}),l.length){const r=l.indexOf("height")>=0?window.pageYOffset:null,i=((e,t,r)=>{const n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),r.forEach(e
172=>{s[e]=E[e](n,o)}),t.render();const l=t.measureViewportBox();return r.forEach(r=>{const n=t.getValue(r);n&&n.jump(s[r]),e[r]=E[r](l,o)}),e})(t,e,l);return a.length&&a.forEach(([t,r])=>{e.getValue(t).set(r)}),e.render(),f.j&&null!==r&&window.scrollTo({top:r}),{target:i,transitionEnd:n}}return{target:t,transitionEnd:n}})(e,t,r,n):{target:t,transitionEnd:n}}var S=r(44228),_=r(9399),C=r(94375),O=r(37807),P=r(28663),T=r(69222),A=r(32091),I=r(3522),N=r(60516),R=r(68818),j=r(39881),M=r(75995),D=r(61181),L=r(40634),F=r(29725);const B=Object.keys(M.A),U=B.length,V=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],z=D.V.length;class q{constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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=()=>F.Wi.render(this.render,!1,!0);const{latestValues:a,renderState:s}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=(0,N.G)(t),this.isVariantNode=(0,N.M)(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{});for(const e in u){const t=u[e];void 0!==a[e]&&(0,I.i)(t)&&(t.set(a[e],!1),(0,A.L)(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,L.R.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)),O.O.current||(0,C.A)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||O.n.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){L.R.delete(this.current),this.projection&&this.projection.unmount(),(0,F.Pn)(this.notifyUpdate),(0,F.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const r=c.G.has(e),n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&F.Wi.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),i()})}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,a;for(let e=0;e<U;e++){const r=B[e],{isEnabled:n,Feature:i,ProjectionNode:s,MeasureLayout:l}=M.A[r];s&&(o=s),n(t)&&(!this.features[r]&&i&&(this.features[r]=new i(this)),l&&(a=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:r,drag:n,dragConstraints:a,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:r,alwaysMeasureLayout:Boolean(n)||a&&(0,_.I)(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:i,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(const e in this.features){const t=this.features[e];
172t.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,S.dO)()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,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;t<V.length;t++){const r=V[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){const{willChange:n}=t;for(const i in t){const o=t[i],a=r[i];if((0,I.i)(o))e.addValue(i,o),(0,A.L)(n)&&n.add(i);else if((0,I.i)(a))e.addValue(i,(0,T.BX)(o,{owner:e})),(0,A.L)(n)&&n.remove(i);else if(a!==o)if(e.hasValue(i)){const t=e.getValue(i);!t.hasAnimated&&t.set(o)}else{const t=e.getStaticValue(i);e.addValue(i,(0,T.BX)(void 0!==t?t:o,{owner:e}))}}for(const n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<z;e++){const r=D.V[e],n=this.props[r];
172((0,R.$)(n)||!1===n)&&(t[r]=n)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const 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,T.BX)(t,{owner:this}),this.addValue(e,r)),r}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:r}=this.props,n="string"==typeof r||"object"==typeof r?null===(t=(0,j.o)(this.props,r))||void 0===t?void 0:t[e]:void 0;if(r&&void 0!==n)return n;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||(0,I.i)(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new P.L),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class H extends q{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]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...r},{transformValues:i},o){let s=(0,n.P$)(r,e||{},this);if(i&&(t&&(t=i(t)),r&&(r=i(r)),s&&(s=i(s))),o){(0,n.GJ)(this,r,s);const e=((e,t,r,n)=>{const i=function(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(e=>{const t=e.get();if(!(0,a.tm)(t))return;const r=l(t,n);r&&e.set(r)});for(const e in t){const i=t[e];if(!(0,a.tm)(i))continue;const o=l(i,n);o&&(t[e]=o,r||(r={}),void 0===r[e]&&(r[e]=i))}return{target:t,transitionEnd:r}}(e,t,n);return k(e,t=i.target,r,n=i.transitionEnd)})(this,r,s,t);t=e.transitionEnd,r=e.target}return{transition:e,transitionEnd:t,...r}}}},72099:function(e,t,r){"use strict";r.d(t,{E:function(){return Tr}});var n=r(27378),i=r(67412);const o=(0,n.createContext)({});var a=r(37387),s=r(64306);const l=(0,n.createContext)({strict:!1});var u=r(12050),c=r(9399),d=r(68818),f=r(60516);function p(e){return Array.isArray(e)?e.join(" "):e}var h=r(75995),m=r(96949),v=r(33684);const g=(0,n.createContext)({}),y=Symbol.for("motionComponentSymbol");function b({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:v,Component:b}){e&&function(e){for(const t in e)h.A[t]={...h.A[t],...e[t]}}(e);const x=(0,n.forwardRef)(function(h,y){let x;const E={...(0,n.useContext)(i._),...h,layoutId:w(h)},{isStatic:k}=E,S=function(e){const{initial:t,animate:r}=function(e,t){if((0,f.G)(e)){const{initial:t,animate:r}=e;return{initial:!1===t||(0,d.$)(t)?t:void 0,animate:(0,d.$)(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,n.useContext)(o));return(0,n.useMemo)(()=>({initial:t,animate:r}),[p(t),p(r)])}(h),_=v(h,k);if(!k&&m.j){S.visualElement=function(e,t,r,c){const{visualElement:d}=(0,n.useContext)(o),f=(0,n.useContext)(l),p=(0,n.useContext)(a.O),h=(0,n.useContext)(i._).reducedMotion,m=(0,n.useRef)();c=c||f.renderer,!m.current&&c&&(m.current=c(e,{visualState:t,parent:d,props:r,presenceContext:p,blockInitialAnimation:!!p&&!1===p.initial,reducedMotionConfig:h}));const v=m.current;(0,n.useInsertionEffect)(()=>{v&&v.update(r,p)});const g=(0,n.useRef)(Boolean(r[u.M]&&!window.HandoffComplete));return(0,s.L)(()=>{v&&(v.render(),g.current&&v.animationState&&v.animationState.animateChanges())}),(0,n.useEffect)(()=>{v&&(v.updateFeatures(),!g.current&&v.animationState&&v.animationState.animateChanges(),g.current&&(g.current=!1,window.HandoffComplete=!0))}),v}(b,_,E,t);const r=(0,n.useContext)(g),c=(0,n.useContext)(l).strict;S.visualElement&&(x=S.visualElement.loadFeatures(E,c,e,r))}return n.createElement(o.Provider,{value:S},x&&S.visualElement?n.createElement(x,{visualElement:S.visualElement,...E}):null,r(b,h,function(e,t,r){return(0,n.useCallback)(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&("function"==typeof r?r(n):(0,c.I)(r)&&(r.current=n))},[t])}(_,S.visualElement,y),_,k,S.visualElement))});return x[y]=b,x}function w({layoutId:e}){const t=(0,n.useContext)(v.p).id;return t&&void 0!==e?t+"-"+e:e}function x(e){function t(t,r={}){return b(e(t,r))}if("undefined"==typeof Proxy)return t;const r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}const E=["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 k(e){return"string"==typeof e&&!e.includes("-")&&!!(E.indexOf(e)>-1||/[A-Z]/.test(e))}var S=r(18381),_=r(3522),C=r(6393);function O(e,t,r){for(const n in t)(0,_.i)(t[n])||(0,S.j)(n,r)||(e[n]=t[n])}function P(e,t,r){const i={},o=function(e,t,r){const i={};return O(i,e.style||{},e),Object.assign(i,function({transformTemplate:e},t,r){return(0,n.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return(0,C.r)(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}(e,t,r)),e.transformValues?e.transformValues(i):i}(e,t,r);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTa
172p||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=o,i}const T=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function A(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||T.has(e)}let I=e=>!A(e);try{(N=require("@emotion/is-prop-valid").default)&&(I=e=>e.startsWith("on")?!A(e):N(e))}catch(e){}var N,R=r(37330);var j=r(3240);function M(e,t,r,i){const o=(0,n.useMemo)(()=>{const r={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return(0,R.i)(r,t,{enableHardwareAcceleration:!1},(0,j.a)(i),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const t={};O(t,e.style,e),o.style={...t,...o.style}}return o}function D(e=!1){return(t,r,i,{latestValues:o},a)=>{const s=(k(t)?M:P)(r,o,a,t),l=function(e,t,r){const n={};for(const i in e)"values"===i&&"object"==typeof e.values||(I(i)||!0===r&&A(i)||!t&&!A(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"==typeof t,e),u={...l,...s,ref:i},{children:c}=r,d=(0,n.useMemo)(()=>(0,_.i)(c)?c.get():c,[c]);return(0,n.createElement)(t,{...u,children:d})}}var L=r(63349),F=r(40315),B=r(31365),U=r(39881),V=r(42308),z=r(93578);function q(e){const t=(0,_.i)(e)?e.get():e;return(0,z.p)(t)?t.toValue():t}const H=e=>(t,r)=>{const i=(0,n.useContext)(o),s=(0,n.useContext)(a.O),l=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){const a={latestValues:G(n,i,o,e),renderState:t()};return r&&(a.mount=e=>r(n,e,a)),a}(e,t,i,s);return r?l():(0,V.h)(l)};function G(e,t,r,n){const i={},o=n(e,{});for(const e in o)i[e]=q(o[e]);let{initial:a,animate:s}=e;const l=(0,f.G)(e),u=(0,f.M)(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!r&&!1===r.initial;c=c||!1===a;const d=c?s:a;return d&&"boolean"!=typeof d&&!(0,B.H)(d)&&(Array.isArray(d)?d:[d]).forEach(t=>{const r=(0,U.o)(e,t);if(!r)return;const{transitionEnd:n,transition:o,...a}=r;for(const e in a){let t=a[e];Array.isArray(t)&&(t=t[c?t.length-1:0]),null!==t&&(i[e]=t)}for(const e in n)i[e]=n[e]}),i}var $=r(29725);const W={useVisualState:H({scrapeMotionValuesFromProps:F.U,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onMount:(e,t,{renderState:r,latestValues:n})=>{$.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}}}),$.Wi.render(()=>{(0,R.i)(r,n,{enableHardwareAcceleration:!1},(0,j.a)(t.tagName),e.transformTemplate),(0,L.K)(t,r)})}})},Z={useVisualState:H({scrapeMotionValuesFromProps:r(97254).U,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function Q(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const Y=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function K(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function J(e,t,r,n){return Q(e,t,(e=>t=>Y(t)&&e(t,K(t)))(r),n)}var X=r(68343);function ee(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}const te=ee("dragHorizontal"),re=ee("dragVertical");function ne(e){let t=!1;if("y"===e)t=re();else if("x"===e)t=te();else{const e=te(),r=re();e&&r?t=()=>{e(),r()}
172:(e&&e(),r&&r())}return t}function ie(){const e=ne(!0);return!e||(e(),!1)}class oe{constructor(e){this.isMounted=!1,this.node=e}update(){}}function ae(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End");return J(e.current,r,(r,i)=>{if("touch"===r.pointerType||ie())return;const o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[n]&&$.Wi.update(()=>o[n](r,i))},{passive:!e.getProps()[n]})}const se=(e,t)=>!!t&&(e===t||se(e,t.parentElement));var le=r(74318);function ue(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,K(r))}const ce=new WeakMap,de=new WeakMap,fe=e=>{const t=ce.get(e.target);t&&t(e)},pe=e=>{e.forEach(fe)};const he={some:0,all:1},me={inView:{Feature:class extends oe{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{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:he[n]};return function(e,t,r){const n=function({root:e,...t}){const r=e||document;de.has(r)||de.set(r,{});const n=de.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(pe,{root:e,...t})),n[i]}(t);return ce.set(e,r),n.observe(e),()=>{ce.delete(e),n.unobserve(e)}}(this.node.current,o,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),o=t?r:n;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{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(){}}},tap:{Feature:class extends oe{constructor(){super(...arguments),this.removeStartListeners=le.Z,this.removeEndListeners=le.Z,this.removeAccessibleListeners=le.Z,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),n=J(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:r,onTapCancel:n,globalTapTarget:i}=this.node.getProps();$.Wi.update(()=>{i||se(this.node.current,e.target)?r&&r(e,t):n&&n(e,t)})},{passive:!(r.onTap||r.onPointerUp)}),i=J(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=(0,X.z)(n,i),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Q(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=Q(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&ue("up",(e,t)=>{const{onTap:r}=this.node.getProps();r&&$.Wi.update(()=>r(e,t))})}),ue("down",(e,t)=>{this.startPress(e,t)}))}),t=Q(this.node.current,"blur",()=>{this.isPressing&&ue("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=(0,X.z)(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&$.Wi.update(()=>r(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ie()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&$.Wi.update(()=>r(e,t))}mount(){const e=this.node.getProps(),t=J(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=Q(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,X.z)(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends oe{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,X.z)(Q(this.node.current,"focus",()=>this.onFocus()),Q(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends oe{mount(){this.unmount=(0,X.z)(ae(this.node,!0),ae(this.node,!1))}unmount(){}}}};var ve=r(44996);function ge(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}var ye=r(56766),be=r(61181),we=r(64990);const xe=[...be.e].reverse(),Ee=be.e.length;function ke(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!ge(t,e)}function Se(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let _e=0;const Ce={animation:{Feature:class extends oe{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=function(e){return t=>Promise.all(t.map(({animation:t,options:r})=>(0,we.d)(e,t,r)))}(e);const r={animate:Se(!0),whileInView:Se(),whileHover:Se(),whileTap:Se(),whileDrag:Se(),whileFocus:Se(),exit:Se()};let n=!0;const i=(t,r)=>{const n=(0,ye.x)(e,r);if(n){const{transition:e,transitionEnd:r,...i}=n;t={...t,...i,...r}}return t};function o(o,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},u=[],c=new Set;let f={},p=1/0;for(let t=0;t<Ee;t++){const h=xe[t],m=r[h],v=void 0!==s[h]?s[h]:l[h],g=(0,d.$)(v),y=h===a?m.isActive:null;!1===y&&(p=t);let b=v===l[h]&&v!==s[h]&&g;if(b&&n&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys={...f},!m.isActive&&null===y||!v&&!m.prevProp||(0,B.H)(v)||"boolean"==typeof v)continue;let w=ke(m.prevProp,v)||h===a&&m.isActive&&!b&&g||t>p&&g,x=!1;const E=Array.isArray(v)?v:[v];let k=E.reduce(i,{});!1===y&&(k={});const{prevResolvedValues:S={}}=m,_={...S,...k},C=e=>{w=!0,c.has(e)&&(x=!0,c.delete(e)),m.needsAnimating[e]=!0};for(const e in _){const t=k[e],r=S[e];if(f.hasOwnProperty(e))continue;let n=!1;n=(0,ve.C)(t)&&(0,ve.C)(r)?!ge(t,r):t!==r,n?void 0!==t?C(e):c.add(e):void 0!==t&&c.has(e)?C(e):m.protectedKeys[e]=!0}m.prevProp=v,m.prevResolvedValues=k,m.isActive&&(f={...f,...k}),n&&e.blockInitialAnimation&&(w=!1),!w||b&&!x||u.push(...E.map(e=>({animation:e,options:{type:h,...o}})))}if(c.size){const t={};
172c.forEach(r=>{const n=e.getBaseTarget(r);void 0!==n&&(t[r]=n)}),u.push({animation:t})}let h=Boolean(u.length);return!n||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(h=!1),n=!1,h?t(u):Promise.resolve()}return{animateChanges:o,setActive:function(t,n,i){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;const s=o(i,t);for(const e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),(0,B.H)(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends oe{constructor(){super(...arguments),this.id=_e++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const i=this.node.animationState.setActive("exit",!e,{custom:null!=r?r:this.node.getProps().custom});t&&!e&&i.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};var Oe=r(67844),Pe=r(83874);const Te=(e,t)=>
172Math.abs(e-t);class Ae{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Re(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){const r=Te(e.x,t.x),n=Te(e.y,t.y);return Math.sqrt(r**2+n**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;const{point:n}=e,{timestamp:i}=$.frameData;this.history.push({...n,timestamp:i});const{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Ie(t,this.transformPagePoint),$.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=Re("pointercancel"===e.type?this.lastMoveEventInfo:Ie(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,o),n&&n(e,o)},!Y(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;const o=Ie(K(e),this.transformPagePoint),{point:a}=o,{timestamp:s}=$.frameData;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,Re(o,this.history)),this.removeListeners=(0,X.z)(J(this.contextWindow,"pointermove",this.handlePointerMove),J(this.contextWindow,"pointerup",this.handlePointerUp),J(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,$.Pn)(this.updatePoint)}}function Ie(e,t){return t?{point:t(e.point)}:e}function Ne(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Re({point:e},t){return{point:e,delta:Ne(e,Me(t)),offset:Ne(e,je(t)),velocity:De(t,.1)}}function je(e){return e[0]}function Me(e){return e[e.length-1]}function De(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=Me(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>(0,Pe.w)(t)));)r--;if(!n)return{x:0,y:0};const o=(0,Pe.X)(i.timestamp-n.timestamp);if(0===o)return{x:0,y:0};const a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var Le=r(13349),Fe=r(55851);function Be(e){return e.max-e.min}function Ue(e,t=0,r=.01){return Math.abs(e-t)<=r}function Ve(e,t,r,n=.5){e.origin=n,e.originPoint=(0,Fe.C)(t.min,t.max,e.origin),e.scale=Be(r)/Be(t),(Ue(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=(0,Fe.C)(r.min,r.max,e.origin)-e.originPoint,(Ue(e.translate)||isNaN(e.translate))&&(e.translate=0)}function ze(e,t,r,n){Ve(e.x,t.x,r.x,n?n.originX:void 0),Ve(e.y,t.y,r.y,n?n.originY:void 0)}function qe(e,t,r){e.min=r.min+t.min,e.max=e.min+Be(t)}function He(e,t,r){e.min=t.min-r.min,e.max=e.min+Be(t)}function Ge(e,t,r){He(e.x,t.x,r.x),He(e.y,t.y,r.y)}var $e=r(81043);function We(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function Ze(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}const Qe=.35;function Ye(e,t,r){return{min:Ke(e,t),max:Ke(e,r)}}function Ke(e,t){return"number"==typeof e?e:e[t]||0}var Je=r(44228);function Xe(e){return[e("x"),e("y")]}var et=r(51259),tt=r(9810),rt=r(4929),nt=r(50012);const it=({current:e})=>e?e.ownerDocument.defaultView:null,ot=new WeakMap;class at{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,Je.dO)(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:n}=this.getProps();this.panSession=new Ae(e,{onSessionStart:e=>{const{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(K(e,"page").point)},onStart:(e,t)=>{const{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ne(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Xe(e=>{let t=this.getAxisMotionValue(e).get()||0;if(rt.aQ.test(t)){const{projection:r}=this.visualElement;if(r&&r.layout){const n=r.layout.layoutBox[e];
172n&&(t=Be(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&$.Wi.update(()=>i(e,t),!1,!0);const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openGlobalLock)return;const{offset:a}=t;if(n&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(a),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>Xe(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:it(this.visualElement)})}stop(e,t){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:n}=t;this.startAnimation(n);const{onDragEnd:i}=this.getProps();i&&$.Wi.update(()=>i(e,t))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){const{drag:n}=this.getProps();if(!r||!st(e,n,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?(0,Fe.C)(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?(0,Fe.C)(r,e,n.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&(0,c.I)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(e,{top:t,left:r,bottom:n,right:i}){return{x:We(e.x,r,i),y:We(e.y,t,n)}}(n.layoutBox,t),this.elastic=function(e=Qe){return!1===e?e=0:!0===e&&(e=Qe),{x:Ye(e,"left","right"),y:Ye(e,"top","bottom")}}(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Xe(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!(0,c.I)(e))return!1;const r=e.current;(0,Oe.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const i=(0,et.z)(r,n.root,this.visualElement.getTransformPagePoint());let o=function(e,t){return{x:Ze(e.x,t.x),y:Ze(e.y,t.y)}}(n.layout.layoutBox,i);if(t){const e=t((0,tt.z2)(o));this.hasMutatedConstraints=!!e,e&&(o=(0,tt.i8)(e))}return o}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=Xe(a=>{if(!st(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});const u=n?200:1e6,c=n?40:1e7,d={type:"inertia",velocity:r?e[a]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,d)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const r=this.getAxisMotionValue(e);return r.start((0,nt.v)(e,r,0,t))}stopAnimation(){Xe(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Xe(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Xe(t=>{const{drag:r}=this.getProps();if(!st(t,r,this.currentDirection))return;const{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){const{min:r,max:o}=n.layout.layoutBox[t];i.set(e[t]-(0,Fe.C)(r,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!(0,c.I)(t)||!r||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};Xe(e=>{const t=this.getAxisMotionValue(e);if(t){const r=t.get();n[e]=function(e,t){let r=.5;const n=Be(e),i=Be(t);return i>n?r=(0,Le.Y)(t.min,t.max-n,e.min):n>i&&(r=(0,Le.Y)(e.min,e.max-i,t.min)),(0,$e.u)(0,1,r)}({min:r,max:r},this.constraints[e])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Xe(t=>{if(!st(t,e,null))return;const r=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];r.set((0,Fe.C)(i,o,n[t]))})}addListeners(){if(!this.visualElement.current)return;ot.set(this.visualElement,this);const e=J(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();(0,c.I)(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),t();const i=Q(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Xe(t=>{const r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),n(),o&&o()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=Qe,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function st(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}const lt=e=>(t,r)=>{e&&$.Wi.update(()=>e(t,r))},ut={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ct(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const dt={correct:(e,t)=>
172{if(!t.target)return e;if("string"==typeof e){if(!rt.px.test(e))return e;e=parseFloat(e)}return`${ct(e,t.target.x)}% ${ct(e,t.target.y)}%`}};var ft=r(641);const pt={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=ft.P.parse(e);if(i.length>5)return n;const o=ft.P.createTransformer(e),a="number"!=typeof i[0]?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;i[0+a]/=s,i[1+a]/=l;const u=(0,Fe.C)(s,l,.5);return"number"==typeof i[2+a]&&(i[2+a]/=u),"number"==typeof i[3+a]&&(i[3+a]/=u),o(i)}};var ht=r(75112);class mt extends n.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;(0,ht.B)(gt),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),ut.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o?(o.isPresent=i,n||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||$.Wi.postRender(()=>{const e=o.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function vt(e){const[t,r]=function(){const e=(0,n.useContext)(a.O);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:r,register:i}=e,o=(0,n.useId)();return(0,n.useEffect)(()=>i(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}(),i=(0,n.useContext)(v.p);return n.createElement(mt,{...e,layoutGroup:i,switchLayoutGroup:(0,n.useContext)(g),isPresent:t,safeToRemove:r})}const gt={borderRadius:{...dt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:dt,borderTopRightRadius:dt,borderBottomLeftRadius:dt,borderBottomRightRadius:dt,boxShadow:pt};var yt=r(28663),bt=r(82880);const wt=["TopLeft","TopRight","BottomLeft","BottomRight"],xt=wt.length,Et=e=>"string"==typeof e?parseFloat(e):e,kt=e=>"number"==typeof e||rt.px.test(e);function St(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const _t=Ot(0,.5,bt.Bn),Ct=Ot(.5,.95,le.Z);function Ot(e,t,r){return n=>n<e?0:n>t?1:r((0,Le.Y)(e,t,n))}function Pt(e,t){e.min=t.min,e.max=t.max}function Tt(e,t){Pt(e.x,t.x),Pt(e.y,t.y)}var At=r(86166);function It(e,t,r,n,i){return e-=t,e=(0,At.q2)(e,1/r,n),void 0!==i&&(e=(0,At.q2)(e,1/i,n)),e}function Nt(e,t,[r,n,i],o,a){!function(e,t=0,r=1,n=.5,i,o=e,a=e){if(rt.aQ.test(t)&&(t=parseFloat(t),t=(0,Fe.C)(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=(0,Fe.C)(o.min,o.max,n);e===o&&(s-=t),e.min=It(e.min,t,r,s,i),e.max=It(e.max,t,r,s,i)}(e,t[r],t[n],t[i],t.scale,o,a)}const Rt=["x","scaleX","originX"],jt=["y","scaleY","originY"];function Mt(e,t,r,n){Nt(e.x,t,Rt,r?r.x:void 0,n?n.x:void 0),Nt(e.y,t,jt,r?r.y:void 0,n?n.y:void 0)}var Dt=r(84598);function Lt(e){return 0===e.translate&&1===e.scale}function Ft(e){return Lt(e.x)&&Lt(e.y)}function Bt(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Ut(e){return Be(e.x)/Be(e.y)}var Vt=r(25431);class zt{constructor(){this.members=[]}add(e){(0,Vt.y4)(this.members,e),e.scheduleRender()}remove(e){if((0,Vt.cl)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let r;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){r=t;break}}return!!r&&(this.promote(r),!0)}promote(e,t){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:n}=e.options;!1===n&&r.hide()}}
172exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function qt(e,t,r){let n="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),1===t.x&&1===t.y||(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:e,rotateX:t,rotateY:i}=r;e&&(n+=`rotate(${e}deg) `),t&&(n+=`rotateX(${t}deg) `),i&&(n+=`rotateY(${i}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(n+=`scale(${a}, ${s})`),n||"none"}var Ht=r(71183);const Gt=(e,t)=>e.depth-t.depth;class $t{constructor(){this.children=[],this.isDirty=!1}add(e){(0,Vt.y4)(this.children,e),this.isDirty=!0}remove(e){(0,Vt.cl)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Gt),this.isDirty=!1,this.children.forEach(e)}}var Wt=r(71939),Zt=r(25081);const Qt=["","X","Y","Z"],Yt={visibility:"hidden"};let Kt=0;const Jt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Xt({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=(null==t?void 0:t())){this.id=Kt++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;this.projectionUpdateScheduled=!1,Jt.totalNodes=Jt.resolvedTargetDeltas=Jt.recalculatedProjection=0,this.nodes.forEach(rr),this.nodes.forEach(ur),this.nodes.forEach(cr),this.nodes.forEach(nr),e=Jt,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new $t)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new yt.L),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=(0,Wt.v)(t),this.instance=t;const{layoutId:n,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(i||n)&&(this.isLayoutDirty=!0),e){let r;const n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e){const t=performance.now(),r=({timestamp:n})=>{const i=n-t;i>=250&&((0,$.Pn)(r),e(i-250))};return $.Wi.read(r,!0),()=>(0,$.Pn)(r)}(n),ut.hasAnimatedSinceResize&&(ut.hasAnimatedSinceResize=!1,this.nodes.forEach(lr))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&o&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const i=this.options.transition||o.getDefaultTransition()||vr,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=o.getProps(),l=!this.targetLayout||!Bt(this.targetLayout,n)||r,u=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);const t={...(0,Dt.e)(i,"layout"),onPlay:a,onComplete:s};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||lr(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,$.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEac
172h(dr),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;const n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(or);this.isUpdating||this.nodes.forEach(ar),this.isUpdating=!1,this.nodes.forEach(sr),this.nodes.forEach(er),this.nodes.forEach(tr),this.clearAllSnapshots();const e=performance.now();$.frameData.delta=(0,$e.u)(0,1e3/60,e-$.frameData.timestamp),$.frameData.timestamp=e,$.frameData.isProcessing=!0,$.S6.update.process($.frameData),$.S6.preRender.process($.frameData),$.S6.render.process($.frameData),$.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(ir),this.sharedNodes.forEach(fr)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,$.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){$.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,Je.dO)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!i)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!Ft(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;e&&(t||(0,Ht.ud)(this.latestValues)||o)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let r=this.removeElementScroll(t);var n;return e&&(r=this.removeTransform(r)),br((n=r).x),br(n.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return(0,Je.dO)();const t=e.measureViewportBox(),{scroll:r}=this.root;return r&&((0,At.am)(t.x,r.offset.x),(0,At.am)(t.y,r.offset.y)),t}removeElementScroll(e){const t=(0,Je.dO)();Tt(t,e);for(let r=0;r<this.path.length;r++){const n=this.path[r],{scroll:i,options:o}=n;if(n!==this.root&&i&&o.layoutScroll){if(i.isRoot){Tt(t,e);const{scroll:r}=this.root;r&&((0,At.am)(t.x,-r.offset.x),(0,At.am)(t.y,-r.offset.y))}(0,At.am)(t.x,i.offset.x),(0,At.am)(t.y,i.offset.y)}}return t}applyTransform(e,t=!1){const r=(0,Je.dO)();Tt(r,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(0,At.D2)(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),(0,Ht.ud)(n.latestValues)&&(0,At.D2)(r,n.latestValues)}return(0,Ht.ud)(this.latestValues)&&(0,At.D2)(r,this.latestValues),r}removeTransform(e){const t=(0,Je.dO)();Tt(t,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];if(!r.instance)continue;if(!(0,Ht.ud)(r.latestValues))continue;(0,Ht.Lj)(r.latestValues)&&r.updateSnapshot();const n=(0,Je.dO)();Tt(n,r.measurePageBox()),Mt(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return(0,Ht.ud)(this.latestValues)&&Mt(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==$.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const r=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=r.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==r;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:i,layoutId:o}=this.options;
172if(this.layout&&(i||o)){if(this.resolvedRelativeTargetAt=$.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,Je.dO)(),this.relativeTargetOrigin=(0,Je.dO)(),Ge(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Tt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=(0,Je.dO)(),this.targetWithTransforms=(0,Je.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,qe(a.x,s.x,l.x),qe(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Tt(this.target,this.layout.layoutBox),(0,At.o2)(this.target,this.targetDelta)):Tt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,Je.dO)(),this.relativeTargetOrigin=(0,Je.dO)(),Ge(this.relativeTargetOrigin,this.target,e.target),Tt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Jt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!(0,Ht.Lj)(this.parent.latestValues)&&!(0,Ht.D_)(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),r=Boolean(this.resumingFrom)||this!==t;let n=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(n=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===$.frameData.timestamp&&(n=!1),n)return;const{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!i&&!o)return;Tt(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;(0,At.YY)(this.layoutCorrected,this.treeScale,this.path,r),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta=(0,Je.wc)(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=(0,Je.wc)(),this.projectionDeltaWithTransform=(0,Je.wc)());const u=this.projectionTransform;ze(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=qt(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Jt.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const r=this.snapshot,n=r?r.latestValues:{},i={...this.latestValues},o=(0,Je.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=(0,Je.dO)(),s=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(s&&!u&&!0===this.options.crossfade&&!this.path.some(mr));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const r=t/1e3;var l,f,p,h,m,v;pr(o.x,e.x,r),pr(o.y,e.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ge(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l=this.relativeTarget,f=this.relativeTargetOrigin,p=a,h=r,hr(l.x,f.x,p.x,h),hr(l.y,f.y,p.y,h),d&&(m=this.relativeTarget,v=d,m.x.min===v.x.min&&m.x.max===v.x.max&&m.y.min===v.y.min&&m.y.max===v.y.max)&&(this.isProjectionDirty=!1),d||(d=(0,Je.dO)()),Tt(d,this.relativeTarget)),s&&(this.animationValues=i,function(e,t,r,n,i,o){i?(e.opacity=(0,Fe.C)(0,void 0!==r.opacity?r.opacity:1,_t(n)),e.opacityExit=(0,Fe.C)(void 0!==t.opacity?t.opacity:1,0,Ct(n))):o&&(e.opacity=(0,Fe.C)(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let i=0;i<xt;i++){const o=`border${wt[i]}Radius`;let a=St(t,o),s=St(r,o);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||kt(a)===kt(s)?(e[o]=Math.max((0,Fe.C)(Et(a),Et
172(s),n),0),(rt.aQ.test(s)||rt.aQ.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||r.rotate)&&(e.rotate=(0,Fe.C)(t.rotate||0,r.rotate||0,n))}(i,n,this.latestValues,r,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,$.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=$.Wi.update(()=>{ut.hasAnimatedSinceResize=!0,this.currentAnimation=(0,Zt.D)(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&wr(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||(0,Je.dO)();const t=Be(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;const n=Be(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}Tt(t,r),(0,At.D2)(t,i),ze(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new zt),this.sharedNodes.get(e).add(t);const r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){const n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:r}=e;if((r.rotate||r.rotateX||r.rotateY||r.rotateZ)&&(t=!0),!t)return;const n={};for(let t=0;t<Qt.length;t++){const i="rotate"+Qt[t];r[i]&&(n[i]=r[i],e.setStaticValue(i,0))}e.render();for(const t in n)e.setStaticValue(t,n[t]);e.scheduleRender()}getProjectionStyles(e){var t,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Yt;const n={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=q(null==e?void 0:e.pointerEvents)||"",n.transform=i?i(this.latestValues,""):"none",n;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=q(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!(0,Ht.ud)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}const a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),n.transform=qt(this.projectionDeltaWithTransform,this.treeScale,a),i&&(n.transform=i(a,n.transform));const{x:s,y:l}=this.projectionDelta;n.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,o.animationValues?n.opacity=o===this?null!==(r=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:n.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in ht.P){if(void 0===a[e])continue;const{correct:t,applyTo:r}=ht.P[e],i="none"===n.transform?a[e]:t(a[e],o);if(r){const e=r.length;for(let t=0;t<e;t++)n[r[t]]=i}else n[e]=i}return this.options.layoutId&&(n.pointerEvents=o===this?q(null==e?void 0:e.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
172resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(or),this.root.sharedNodes.clear()}}}function er(e){e.updateLayout()}function tr(e){var t;const r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:n}=e.layout,{animationType:i}=e.options,o=r.source!==e.layout.source;"size"===i?Xe(e=>{const n=o?r.measuredBox[e]:r.layoutBox[e],i=Be(n);n.min=t[e].min,n.max=n.min+i}):wr(i,r.layoutBox,t)&&Xe(n=>{const i=o?r.measuredBox[n]:r.layoutBox[n],a=Be(t[n]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)});const a=(0,Je.wc)();ze(a,t,r.layoutBox);const s=(0,Je.wc)();o?ze(s,e.applyTransform(n,!0),r.measuredBox):ze(s,t,r.layoutBox);const l=!Ft(a);let u=!1;if(!e.resumeFrom){const n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:i,layout:o}=n;if(i&&o){const a=(0,Je.dO)();Ge(a,r.layoutBox,i.layoutBox);const s=(0,Je.dO)();Ge(s,t,o.layoutBox),Bt(a,s)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function rr(e){Jt.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function nr(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ir(e){e.clearSnapshot()}function or(e){e.clearMeasurements()}function ar(e){e.isLayoutDirty=!1}function sr(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function lr(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ur(e){e.resolveTargetDelta()}function cr(e){e.calcProjection()}function dr(e){e.resetRotation()}function fr(e){e.removeLeadSnapshot()}function pr(e,t,r){e.translate=(0,Fe.C)(t.translate,0,r),e.scale=(0,Fe.C)(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function hr(e,t,r,n){e.min=(0,Fe.C)(t.min,r.min,n),e.max=(0,Fe.C)(t.max,r.max,n)}function mr(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const vr={duration:.45,ease:[.4,0,.1,1]},gr=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),yr=gr("applewebkit/")&&!gr("chrome/")?Math.round:le.Z;function br(e){e.min=yr(e.min),e.max=yr(e.max)}function wr(e,t,r){return"position"===e||"preserve-aspect"===e&&!Ue(Ut(t),Ut(r),.2)}const xr=Xt({attachResizeListener:(e,t)=>Q(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Er={current:void 0},kr=Xt({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Er.current){const e=new xr({});e.mount(window),e.setOptions({layoutScroll:!0}),Er.current=e}return Er.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Sr={pan:{Feature:class extends oe{constructor(){super(...arguments),this.removePointerDownListener=le.Z}onPointerDown(e){this.session=new Ae(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:it(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:lt(e),onStart:lt(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&$.Wi.update(()=>n(e,t))}}}mount(){this.removePointerDownListener=J(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends oe{constructor(e){super(e),this.removeGroupControls=le.Z,this.removeListeners=le.Z,this.controls=new at(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||le.Z}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:kr,MeasureLayout:vt}};var _r=r(63558),Cr=r(22842);const Or=(e,t)=>k(e)?new Cr.e(t,{enableHardwareAcceleration:!1}):new _r.W(t,{enableHardwareAcceleration:!0}),Pr={...Ce,...me,...Sr,layout:{ProjectionNode:kr,MeasureLayout:vt}},Tr=x((e,t)=>function(e,{forwardMotionProps:t=!1},r,n){return{...k(e)?W:Z,preloadedFeatures:r,useRender:D(t),createVisualElement:n,Component:e}}(e,t,Pr,Or))},47465:function(e,t,r){"use strict";r.d(t,{D:function(){return n}});const n=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},47415:function(e,t,r){"use strict";r.d(t,{Xp:function(){return a},f9:function(){return i},tm:function(){return o}});const n=e=>t=>"string"==typeof t&&t.startsWith(e),i=n("--"),o=n("var(--"),a=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?
172:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g},71939:function(e,t,r){"use strict";function n(e){return e instanceof SVGElement&&"svg"!==e.tagName}r.d(t,{v:function(){return n}})},14403:function(e,t,r){"use strict";r.d(t,{T:function(){return a}});var n=r(641),i=r(53578),o=r(13867);function a(e,t){let r=(0,o.A)(e);return r!==i.h&&(r=n.P),r.getAnimatableNone?r.getAnimatableNone(t):void 0}},13867:function(e,t,r){"use strict";r.d(t,{A:function(){return a}});var n=r(277),i=r(53578);const o={...r(5170).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},a=e=>o[e]},12838:function(e,t,r){"use strict";r.d(t,{$:function(){return a},C:function(){return s}});var n=r(30841),i=r(4929),o=r(88196);const a=[n.Rx,i.px,i.aQ,i.RW,i.vw,i.vh,{test:e=>"auto"===e,parse:e=>e}],s=e=>a.find((0,o.l)(e))},5170:function(e,t,r){"use strict";r.d(t,{j:function(){return a}});var n=r(30841),i=r(4929);const o={...n.Rx,transform:Math.round},a={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,fillOpacity:n.Fq,strokeOpacity:n.Fq,numOctaves:o}},88196:function(e,t,r){"use strict";r.d(t,{l:function(){return n}});const n=e=>t=>t.test(e)},63558:function(e,t,r){"use strict";r.d(t,{W:function(){return f}});var n=r(6393),i=r(47415),o=r(36067),a=r(97254),s=r(77577),l=r(13867),u=r(51259),c=r(83388),d=r(3522);class f extends c.J{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(o.G.has(t)){const e=(0,l.A)(t);return e&&e.default||0}{const n=(r=e,window.getComputedStyle(r)),o=((0,i.f9)(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof o?o.trim():o}var r}measureInstanceViewportBox(e,{transformPagePoint:t}){return(0,u.J)(e,t)}build(e,t,r,i){(0,n.r)(e,t,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,t){return(0,a.U)(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;(0,d.i)(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,r,n){(0,s.N)(e,t,r,n)}}},6393:function(e,t,r){"use strict";r.d(t,{r:function(){return u}});var n=r(36067);const i={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},o=n._.length;var a=r(47415);const s=(e,t)=>t&&"number"==typeof e?t.transform(e):e;var l=r(5170);function u(e,t,r,u){const{style:c,vars:d,transform:f,transformOrigin:p}=e;let h=!1,m=!1,v=!0;for(const e in t){const r=t[e];if((0,a.f9)(e)){d[e]=r;continue}const i=l.j[e],o=s(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},a,s){let l="";for(let t=0;t<o;t++){const r=n._[t];void 0!==e[r]&&(l+=`${i[r]||r}(${e[r]}) `)}return t&&!e.z&&(l+="translateZ(0)"),l=l.trim(),s?l=s(e,a?"":l):r&&a&&(l="none"),l}(e.transform,r,v,u):c.transform&&(c.transform="none")),m){const{originX:e="50%",originY:t="50%",originZ:r=0}=p;c.transformOrigin=`${e} ${t} ${r}`}}},77577:function(e,t,r){"use strict";function n(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const t in r)e.style.setProperty(t,r[t])}r.d(t,{N:function(){return n}})},97254:function(e,t,r){"use strict";r.d(t,{U:function(){return o}});var n=r(18381),i=r(3522);function o(e,t){const{style:r}=e,o={};for(const a in r)((0,i.i)(r[a])||t.style&&(0,i.i)(t.style[a])||(0,n.j)(a,e))&&(o[a]=r[a]);return o}},36067:function(e,t,r){"use strict";r.d(t,{G:function(){return i},_:function(){return n}});const n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i=new Set(n)},40634:function(e,t,r){"use strict";r.d(t,{R:function(){return n}});const n=new WeakMap},22842:function(e,t,r){"use strict";r.d(t,{e:function(){return p}});var n=r(40315),i=r(83388),o=r(37330),a=r(47465),s=r(52991),l=r(36067),u=r(63349),c=r(13867),d=r(44228),f=r(3240);class p extends i.J{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(l.G.has(t)){const e=(0,c.A)(t);return e&&e.default||0}return t=s.s.has(t)?t:(0,a.D)(t),e.getAttribute(t)}measureInstanceViewportBox(){return(0,d.dO)()}scrapeMotionValuesFromProps(e,t){return(0,n.U)(e,t)}
172build(e,t,r,n){(0,o.i)(e,t,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,r,n){(0,u.K)(e,t,r,n)}mount(e){this.isSVGTag=(0,f.a)(e.tagName),super.mount(e)}}},37330:function(e,t,r){"use strict";r.d(t,{i:function(){return l}});var n=r(6393),i=r(4929);function o(e,t,r){return"string"==typeof e?e:i.px.transform(t+r*e)}const a={offset:"stroke-dashoffset",array:"stroke-dasharray"},s={offset:"strokeDashoffset",array:"strokeDasharray"};function l(e,{attrX:t,attrY:r,attrScale:l,originX:u,originY:c,pathLength:d,pathSpacing:f=1,pathOffset:p=0,...h},m,v,g){if((0,n.r)(e,h,m,g),v)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:y,style:b,dimensions:w}=e;y.transform&&(w&&(b.transform=y.transform),delete y.transform),w&&(void 0!==u||void 0!==c||b.transform)&&(b.transformOrigin=function(e,t,r){return`${o(t,e.x,e.width)} ${o(r,e.y,e.height)}`}(w,void 0!==u?u:.5,void 0!==c?c:.5)),void 0!==t&&(y.x=t),void 0!==r&&(y.y=r),void 0!==l&&(y.scale=l),void 0!==d&&function(e,t,r=1,n=0,o=!0){e.pathLength=1;const l=o?a:s;e[l.offset]=i.px.transform(-n);const u=i.px.transform(t),c=i.px.transform(r);e[l.array]=`${u} ${c}`}(y,d,f,p,!1)}},52991:function(e,t,r){"use strict";r.d(t,{s:function(){return n}});const n=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"])},3240:function(e,t,r){"use strict";r.d(t,{a:function(){return n}});const n=e=>"string"==typeof e&&"svg"===e.toLowerCase()},63349:function(e,t,r){"use strict";r.d(t,{K:function(){return a}});var n=r(47465),i=r(77577),o=r(52991);function a(e,t,r,a){(0,i.N)(e,t,void 0,a);for(const r in t.attrs)e.setAttribute(o.s.has(r)?r:(0,n.D)(r),t.attrs[r])}},40315:function(e,t,r){"use strict";r.d(t,{U:function(){return a}});var n=r(3522),i=r(97254),o=r(36067);function a(e,t){const r=(0,i.U)(e,t);for(const i in e)((0,n.i)(e[i])||(0,n.i)(t[i]))&&(r[-1!==o._.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return r}},60516:function(e,t,r){"use strict";r.d(t,{G:function(){return a},M:function(){return s}});var n=r(31365),i=r(68818),o=r(61181);function a(e){return(0,n.H)(e.animate)||o.V.some(t=>(0,i.$)(e[t]))}function s(e){return Boolean(a(e)||e.variants)}},68818:function(e,t,r){"use strict";function n(e){return"string"==typeof e||Array.isArray(e)}r.d(t,{$:function(){return n}})},56766:function(e,t,r){"use strict";r.d(t,{x:function(){return i}});var n=r(39881);function i(e,t,r){const i=e.getProps();return(0,n.o)(i,t,void 0!==r?r:i.custom,function(e){const t={};return e.values.forEach((e,r)=>t[r]=e.get()),t}(e),function(e){const t={};return e.values.forEach((e,r)=>t[r]=e.getVelocity()),t}(e))}},39881:function(e,t,r){"use strict";function n(e,t,r,n={},i={}){return"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),t}r.d(t,{o:function(){return n}})},80919:function(e,t,r){"use strict";r.d(t,{GJ:function(){return b},P$:function(){return x},CD:function(){return v},gg:function(){return y}});var n=r(59418),i=r(8887),o=r(93578),a=r(69222),s=r(641),l=r(14403),u=r(277),c=r(12838),d=r(88196);const f=[...c.$,u.$,s.P],p=e=>f.find((0,d.l)(e));var h=r(56766);function m(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,(0,a.BX)(r))}function v(e,t){const r=(0,h.x)(e,t);let{transitionEnd:n={},transition:i={},...a}=r?e.makeTargetAnimatable(r,!1):{};a={...a,...n};for(const t in a)m(e,t,(0,o.Y)(a[t]))}function g(e,t){[...t].reverse().forEach(r=>{const n=e.getVariant(r);n&&v(e,n),e.variantChildren&&e.variantChildren.forEach(e=>{g(e,t)})})}function y(e,t){return Array.isArray(t)?g(e,t):"string"==typeof t?g(e,[t]):void v(e,t)}function b(e,t,r){var o,u;const c=Object.keys(t).filter(t=>!e.hasValue(t)),d=c.length;if(d)for(let f=0;f<d;f++){const d=c[f],h=t[d];let m=null;Array.isArray(h)&&(m=h[0]),null===m&&(m=null!==(u=null!==(o=r[d])&&void 0!==o?o:e.readValue(d))&&void 0!==u?u:t[d]),null!=m&&("string"==typeof m&&((0,n.P)(m)||(0,i.W)(m))?m=parseFloat(m):!p(m)&&s.P.test(h)&&(m=(0,l.T)(d,h)),e.addValue(d,(0,a.BX)(m,{owner:e})),void 0===r[d]&&(r[d]=m),null!==m&&e.setBaseTarget(d,m))}}function w(e,t){if(t)return(t[e]||t.default||t).from}function x(e,t,r){const n={};for(const i in e){const e=w(i,t);if(void 0!==e)n[i]=e;else{const e=r.getValue(i);e&&(n[i]=e.get())}}return n}},61181:function(e,t,r){"use strict";r.d(t,{V:function(){return i},e:function(){return n}});const n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i=["initial",...n]},25431:function(e,t,r){"use strict";function n(e,t){-1===e.indexOf(t)&&e.push(t)}function i(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}r.d(t,{cl:function(){return i},y4:function(){return n}})},81043:function(e,t,r){"use strict";r.d(t,{u:function(){return n}});const n=(e,t,r)=>
172Math.min(Math.max(r,e),t)},67844:function(e,t,r){"use strict";r.d(t,{K:function(){return i},k:function(){return o}});var n=r(74318);let i=n.Z,o=n.Z},49166:function(e,t,r){"use strict";r.d(t,{s:function(){return _}});var n=r(67844),i=r(277),o=r(81043),a=r(55851);function s(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}var l=r(72917),u=r(27290),c=r(75440);const d=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},f=[l.$,u.m,c.J];function p(e){const t=(r=e,f.find(e=>e.test(r)));var r;(0,n.k)(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let i=t.parse(e);return t===c.J&&(i=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,a=0;if(t/=100){const n=r<.5?r*(1+t):r+t-r*t,l=2*r-n;i=s(l,n,e+1/3),o=s(l,n,e),a=s(l,n,e-1/3)}else i=o=a=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}(i)),i}const h=(e,t)=>{const r=p(e),n=p(t),i={...r};return e=>(i.red=d(r.red,n.red,e),i.green=d(r.green,n.green,e),i.blue=d(r.blue,n.blue,e),i.alpha=(0,a.C)(r.alpha,n.alpha,e),u.m.transform(i))};var m=r(68343),v=r(641);const g=(e,t)=>r=>`${r>0?t:e}`;function y(e,t){return"number"==typeof e?r=>(0,a.C)(e,t,r):i.$.test(e)?h(e,t):e.startsWith("var(")?g(e,t):x(e,t)}const b=(e,t)=>{const r=[...e],n=r.length,i=e.map((e,r)=>y(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}},w=(e,t)=>{const r={...e,...t},n={};for(const i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=y(e[i],t[i]));return e=>{for(const t in n)r[t]=n[t](e);return r}},x=(e,t)=>{const r=v.P.createTransformer(t),i=(0,v.V)(e),o=(0,v.V)(t);return i.numVars===o.numVars&&i.numColors===o.numColors&&i.numNumbers>=o.numNumbers?(0,m.z)(b(i.values,o.values),r):((0,n.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),g(e,t))};var E=r(13349),k=r(74318);const S=(e,t)=>r=>(0,a.C)(e,t,r);function _(e,t,{clamp:r=!0,ease:a,mixer:s}={}){const l=e.length;if((0,n.k)(l===t.length,"Both input and output ranges must be the same length"),1===l)return()=>t[0];e[0]>e[l-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=function(e,t,r){const n=[],o=r||("number"==typeof(a=e[0])?S:"string"==typeof a?i.$.test(a)?h:x:Array.isArray(a)?b:"object"==typeof a?w:S);var a;const s=e.length-1;for(let r=0;r<s;r++){let i=o(e[r],e[r+1]);if(t){const e=Array.isArray(t)?t[r]||k.Z:t;i=(0,m.z)(e,i)}n.push(i)}return n}(t,a,s),c=u.length,d=t=>{let r=0;if(c>1)for(;r<e.length-2&&!(t<e[r+1]);r++);const n=(0,E.Y)(e[r],e[r+1],t);return u[r](n)};return r?t=>d((0,o.u)(e[0],e[l-1],t)):d}},96949:function(e,t,r){"use strict";r.d(t,{j:function(){return n}});const n="undefined"!=typeof document},59418:function(e,t,r){"use strict";r.d(t,{P:function(){return n}});const n=e=>/^\-?\d*\.?\d+$/.test(e)},9399: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}})},8887:function(e,t,r){"use strict";r.d(t,{W:function(){return n}});const n=e=>/^0[^.\s]+$/.test(e)},56206:function(e,t,r){"use strict";function n(e){let t;return()=>(void 0===t&&(t=e()),t)}r.d(t,{X:function(){return n}})},55851:function(e,t,r){"use strict";r.d(t,{C:function(){return n}});const n=(e,t,r)=>-r*e+r*t+e},74318:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});const n=e=>e},30005:function(e,t,r){"use strict";r.d(t,{Y:function(){return i}});var n=r(93246);function i(e){const t=[0];return(0,n.c)(t,e.length-1),t}},93246:function(e,t,r){"use strict";r.d(t,{c:function(){return o}});var n=r(55851),i=r(13349);function o(e,t){const r=e[e.length-1];for(let o=1;o<=t;o++){const a=(0,i.Y)(0,t,o);e.push((0,n.C)(r,1,a))}}},68343:function(e,t,r){"use strict";r.d(t,{z:function(){return i}});const n=(e,t)=>r=>t(e(r)),i=(...e)=>e.reduce(n)},13349:function(e,t,r){"use strict";r.d(t,{Y:function(){return n}});const n=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n}},94375:function(e,t,r){"use strict";r.d(t,{A:function(){return o}});var n=r(96949),i=r(37807);function o(){if(i.O.current=!0,n.j)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>i.n.current=e.matches;e.addListener(t),t()}else i.n.current=!1}},37807:function(e,t,r){"use strict";r.d(t,{O:function(){return i},n:function(){return n}});const n={current:null},i={current:!1}},93578:function(e,t,r){"use strict";r.d(t,{Y:function(){return o},p:function(){return i}});var n=r(44996);const i=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),o=e=>(0,n.C)(e)?e[e.length-1]||0:e}
172,28663:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(25431);class i{constructor(){this.subscriptions=[]}add(e){return(0,n.y4)(this.subscriptions,e),()=>(0,n.cl)(this.subscriptions,e)}notify(e,t,r){const n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i<n;i++){const n=this.subscriptions[i];n&&n(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},83874:function(e,t,r){"use strict";r.d(t,{X:function(){return i},w:function(){return n}});const n=e=>1e3*e,i=e=>e/1e3},42308:function(e,t,r){"use strict";r.d(t,{h:function(){return i}});var n=r(27378);function i(e){const t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},64306:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(27378);const i=r(96949).j?n.useLayoutEffect:n.useEffect},48527:function(e,t,r){"use strict";function n(e,t){return t?e*(1e3/t):0}r.d(t,{R:function(){return n}})},69222:function(e,t,r){"use strict";r.d(t,{BX:function(){return l},S1:function(){return a}});var n=r(28663),i=r(48527),o=r(29725);const a={current:void 0};class s{constructor(e,t={}){var r;this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:r,timestamp:n}=o.frameData;this.lastUpdated!==n&&(this.timeDelta=r,this.lastUpdated=n,o.Wi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>o.Wi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(r=this.current,!isNaN(parseFloat(r))),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new n.L);const r=this.events[e].add(t);return"change"===e?()=>{r(),o.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const 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=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,i.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}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 l(e,t){return new s(e,t)}},72917:function(e,t,r){"use strict";r.d(t,{$:function(){return i}});var n=r(27290);const i={test:(0,r(1080).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}},75440:function(e,t,r){"use strict";r.d(t,{J:function(){return s}});var n=r(30841),i=r(4929),o=r(17697),a=r(1080);const s={test:(0,a.i)("hsl","hue"),parse:(0,a.d)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:a=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(a))+")"}},277:function(e,t,r){"use strict";r.d(t,{$:function(){return s}});
172var n=r(17697),i=r(72917),o=r(75440),a=r(27290);const s={test:e=>a.m.test(e)||i.$.test(e)||o.J.test(e),parse:e=>a.m.test(e)?a.m.parse(e):o.J.test(e)?o.J.parse(e):i.$.parse(e),transform:e=>(0,n.HD)(e)?e:e.hasOwnProperty("red")?a.m.transform(e):o.J.transform(e)}},27290:function(e,t,r){"use strict";r.d(t,{m:function(){return l}});var n=r(81043),i=r(30841),o=r(17697),a=r(1080);const s={...i.Rx,transform:e=>Math.round((e=>(0,n.u)(0,255,e))(e))},l={test:(0,a.i)("rgb","red"),parse:(0,a.d)("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+s.transform(e)+", "+s.transform(t)+", "+s.transform(r)+", "+(0,o.Nw)(i.Fq.transform(n))+")"}},1080:function(e,t,r){"use strict";r.d(t,{d:function(){return o},i:function(){return i}});var n=r(17697);const i=(e,t)=>r=>Boolean((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;const[o,a,s,l]=i.match(n.KP);return{[e]:parseFloat(o),[t]:parseFloat(a),[r]:parseFloat(s),alpha:void 0!==l?parseFloat(l):1}}},53578:function(e,t,r){"use strict";r.d(t,{h:function(){return l}});var n=r(641),i=r(17697);const o=new Set(["brightness","contrast","saturate","opacity"]);function a(e){const[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(i.KP)||[];if(!n)return e;const a=r.replace(n,"");let s=o.has(t)?1:0;return n!==r&&(s*=100),t+"("+s+a+")"}const s=/([a-z-]*)\(.*?\)/g,l={...n.P,getAnimatableNone:e=>{const t=e.match(s);return t?t.map(a).join(" "):e}}},641:function(e,t,r){"use strict";r.d(t,{P:function(){return v},V:function(){return f}});var n=r(47415),i=r(74318),o=r(277),a=r(30841),s=r(17697);const l={regex:n.Xp,countKey:"Vars",token:"${v}",parse:i.Z},u={regex:s.dA,countKey:"Colors",token:"${c}",parse:o.$.parse},c={regex:s.KP,countKey:"Numbers",token:"${n}",parse:a.Rx.parse};function d(e,{regex:t,countKey:r,token:n,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+r]=o.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...o.map(i)))}function f(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&d(r,l),d(r,u),d(r,c),r}function p(e){return f(e).values}function h(e){const{values:t,numColors:r,numVars:n,tokenised:i}=f(e),a=t.length;return e=>{let t=i;for(let i=0;i<a;i++)t=i<n?t.replace(l.token,e[i]):i<n+r?t.replace(u.token,o.$.transform(e[i])):t.replace(c.token,(0,s.Nw)(e[i]));return t}}const m=e=>"number"==typeof e?0:e,v={test:function(e){var t,r;return isNaN(e)&&(0,s.HD)(e)&&((null===(t=e.match(s.KP))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(s.dA))||void 0===r?void 0:r.length)||0)>0},parse:p,createTransformer:h,getAnimatableNone:function(e){const t=p(e);return h(e)(t.map(m))}}},30841:function(e,t,r){"use strict";r.d(t,{Fq:function(){return o},Rx:function(){return i},bA:function(){return a}});var n=r(81043);const i={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},o={...i,transform:e=>(0,n.u)(0,1,e)},a={...i,default:1}},4929:function(e,t,r){"use strict";r.d(t,{$C:function(){return c},RW:function(){return o},aQ:function(){return a},px:function(){return s},vh:function(){return l},vw:function(){return u}});var n=r(17697);const i=e=>({test:t=>(0,n.HD)(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),o=i("deg"),a=i("%"),s=i("px"),l=i("vh"),u=i("vw"),c={...a,parse:e=>a.parse(e)/100,transform:e=>a.transform(100*e)}},17697:function(e,t,r){"use strict";r.d(t,{HD:function(){return s},KP:function(){return i},Nw:function(){return n},dA:function(){return o},mj:function(){return a}});const n=e=>Math.round(1e5*e)/1e5,i=/(-)?([\d]*\.?[\d])+/g,o=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,a=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function s(e){return"string"==typeof e}},32091:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(3522);function i(e){return Boolean((0,n.i)(e)&&e.add)}},3522:function(e,t,r){"use strict";r.d(t,{i:function(){return n}});const n=e=>Boolean(e&&e.getVelocity)},34317:function(e,t,r){"use strict";function n(e,t){if(!Boolean(e))throw new Error(t)}r.d(t,{a:function(){return n}})},59329:function(e,t,r){"use strict";r.d(t,{X:function(){return o}});const n=10,i=2;function o(e){return a(e,[])}function a(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:a(t,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>i)return"[Array]";const r=Math.min(n,e.length),o=e.length-r,s=[];for(let n=0;n<r;++n)s.push(a(e[n],t));return 1===o?s.push("... 1 more item"):o>1&&s.push(`... ${o} more items`),"["+s.join(", ")+"]"}(e,r);return function(e,t){const r=Object.entries(e);if(0===r.length)return"{}";if(t.length>i)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const n=r.map(([e,r])=>e+": "+a(r,t));return"{ "+n.join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}},35239:function(e,t,r){"use strict";r.d(t,{UG:function(){return s},WU:function(){return i},Ye:function(){return n},h8:function(){return o},ku:function(){return l}});
172class n{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(e,t,r,n,i,o){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=new Set(Object.keys(o));function s(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&a.has(t)}var l;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(l||(l={}))},25965:function(e,t,r){"use strict";r.d(t,{LZ:function(){return a},wv:function(){return i}});var n=r(76714);function i(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let t=0;t<e.length;++t){var a;const s=e[t],l=o(s);l!==s.length&&(n=null!==(a=n)&&void 0!==a?a:t,i=t,0!==t&&l<r&&(r=l))}return e.map((e,t)=>0===t?e:e.slice(r)).slice(null!==(t=n)&&void 0!==t?t:0,i+1)}function o(e){let t=0;for(;t<e.length&&(0,n.FD)(e.charCodeAt(t));)++t;return t}function a(e,t){const r=e.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&i.slice(1).every(e=>0===e.length||(0,n.FD)(e.charCodeAt(0))),s=r.endsWith('\\"""'),l=e.endsWith('"')&&!s,u=e.endsWith("\\"),c=l||u,d=!(null!=t&&t.minimize)&&(!o||e.length>70||c||a||s);let f="";const p=o&&(0,n.FD)(e.charCodeAt(0));return(d&&!p||a)&&(f+="\n"),f+=r,(d||c)&&(f+="\n"),'"""'+f+'"""'}},76714:function(e,t,r){"use strict";function n(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return o(e)||95===e}function s(e){return o(e)||i(e)||95===e}r.d(t,{FD:function(){return n},HQ:function(){return s},LQ:function(){return a},X1:function(){return i}})},57554:function(e,t,r){"use strict";var n;r.d(t,{h:function(){return n}}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="Str
172ingValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(n={}))},54785:function(e,t,r){"use strict";r.r(t),r.d(t,{print:function(){return l}});var n=r(25965);const i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(e){return a[e.charCodeAt(0)]}const a=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var s=r(43165);function l(e){return(0,s.Vn)(e,u)}const u={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>c(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=f("(",c(e.variableDefinitions,", "),")"),r=c([e.operation,c([e.name,t]),c(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+f(" = ",r)+f(" ",c(n," "))},SelectionSet:{leave:({selections:e})=>d(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){const o=f("",e,": ")+t;let a=o+f("(",c(r,", "),")");return a.length>80&&(a=o+f("(\n",p(c(r,"\n")),"\n)")),c([a,c(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+f(" ",c(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>c(["...",f("on ",e),c(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${f("(",c(r,", "),")")} on ${t} ${f("",c(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n.LZ)(e):`"${e.replace(i,o)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+c(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+c(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+f("(",c(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>f("",e,"\n")+c(["schema",c(t," "),d(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>f("",e,"\n")+c(["scalar",t,c(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>f("",e,"\n")+c(["type",t,f("implements ",c(r," & ")),c(n," "),d(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>
172f("",e,"\n")+t+(h(r)?f("(\n",p(c(r,"\n")),"\n)"):f("(",c(r,", "),")"))+": "+n+f(" ",c(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>f("",e,"\n")+c([t+": "+r,f("= ",n),c(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>f("",e,"\n")+c(["interface",t,f("implements ",c(r," & ")),c(n," "),d(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>f("",e,"\n")+c(["union",t,c(r," "),f("= ",c(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>f("",e,"\n")+c(["enum",t,c(r," "),d(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>f("",e,"\n")+c([t,c(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>f("",e,"\n")+c(["input",t,c(r," "),d(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>f("",e,"\n")+"directive @"+t+(h(r)?f("(\n",p(c(r,"\n")),"\n)"):f("(",c(r,", "),")"))+(n?" repeatable":"")+" on "+c(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>c(["extend schema",c(e," "),d(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>c(["extend scalar",e,c(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>c(["extend type",e,f("implements ",c(t," & ")),c(r," "),d(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>c(["extend interface",e,f("implements ",c(t," & ")),c(r," "),d(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>c(["extend union",e,c(t," "),f("= ",c(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>c(["extend enum",e,c(t," "),d(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>c(["extend input",e,c(t," "),d(r)]," ")}};function c(e,t=""){var r;return null!==(r=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==r?r:""}function d(e){return f("{\n",p(c(e,"\n")),"\n}")}function f(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function p(e){return f(" ",e.replace(/\n/g,"\n "))}function h(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}},65839:function(e,t,r){"use strict";r.d(t,{H:function(){return a},T:function(){return s}});var n=r(34317),i=r(59329);const o=function(e,t){return e instanceof t};class a{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||(0,n.a)(!1,`Body must be a string. Received: ${(0,i.X)(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||(0,n.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,n.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function s(e){return o(e,a)}},43165:function(e,t,r){"use strict";r.d(t,{$_:function(){return s},Vn:function(){return l}});var n=r(34317),i=r(59329),o=r(35239),a=r(57554);const s=Object.freeze({});function l(e,t,r=o.h8){const l=new Map;for(const e of Object.values(a.h))l.set(e,u(t,e));let c,d,f,p=Array.isArray(e),h=[e],m=-1,v=[],g=e;const y=[],b=[];do{m++;const e=m===h.length,a=e&&0!==v.length;if(e){if(d=0===b.length?void 0:y[y.length-1],g=f,f=b.pop(),a)if(p){g=g.slice();let e=0;for(const[t,r]of v){const n=t-e;null===r?(g.splice(n,1),e++):g[n]=r}}else{g=Object.defineProperties({},Object.getOwnPropertyDescriptors(g));for(const[e,t]of v)g[e]=t}m=c.index,h=c.keys,v=c.edits,p=c.inArray,c=c.prev}else if(f){if(d=p?m:h[m],g=f[d],null==g)continue;y.push(d)}let u;if(!Array.isArray(g)){var w,x;(0,o.UG)(g)||(0,n.a)(!1,`Invalid AST Node: ${(0,i.X)(g)}.`);const r=e?null===(w=l.get(g.kind))||void 0===w?void 0:w.leave:null===(x=l.get(g.kind))||void 0===x?void 0:x.enter;if(u=null==r?void 0:r.call(t,g,d,f,y,b),u===s)break;if(!1===u){if(!e){y.pop();continue}}else if(void 0!==u&&(v.push([d,u]),!e)){if(!(0,o.UG)(u)){y.pop();continue}g=u}}var E;void 0===u&&a&&v.push([d,g]),e?y.pop():(c={inArray:p,index:m,keys:h,edits:v,prev:c},p=Array.isArray(g),h=p?g:null!==(E=r[g.kind])&&void 0!==E?E:[],m=-1,v=[],f&&b.push(f),f=g)}while(void 0!==c);return 0!==v.length?v[v.length-1][1]:e}function u(e,t){const r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}},36448:function(e,t,r){"use strict";r.d(t,{ZP:function(){return de},t:function(){return fe}});var n=r(33940),i=r(22951),o=r(91976),a=r(47169),s=r(67591),l=r(99492),u=r(27597),c=r(64649),d=r(66470),f=r(55181),p=r(64013),h=r(53764);function m(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 v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
vendor: 4,624 bytes, line 172
172t%2?m(Object(r),!0).forEach(function(t){(0,c.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var g={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},y=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.Z)(this,e),this.init(t,r)}return(0,o.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||g,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,r,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,v(v({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}(),b=new y,w=function(){function e(){(0,i.Z)(this,e),this.observers={}}return(0,o.Z)(e,[{key:"on",value:function(e,t){var r=this;return e.split(" ").forEach(function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)}),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(r))})}}]),e}();function x(){var e,t,r=new Promise(function(r,n){e=r,t=n});return r.resolve=e,r.reject=t,r}function E(e){return null==e?"":""+e}function k(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=n(o.shift());!e[a]&&r&&(e[a]=new r),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:n(o.shift())}}function S(e,t,r){var n=k(e,t,Object);n.obj[n.k]=r}function _(e,t){var r=k(e,t),n=r.obj,i=r.k;if(n)return n[i]}function C(e,t,r){for(var n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?"string"==typeof e[n]||e[n]instanceof String||"string"==typeof t[n]||t[n]instanceof String?r&&(e[n]=t[n]):C(e[n],t[n],r):e[n]=t[n]);return e}function O(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var P={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function T(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return P[e]}):e}var A="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,I=[" ",",","?","!",";"];function N(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),i=e,o=0;o<n.length;++o){if(!i)return;if("string"==typeof i[n[o]]&&o+1<n.length)return;if(void 0===i[n[o]]){for(var a=2,s=n.slice(o,o+a).join(r),l=i[s];void 0===l&&n.length>o+a;)a++,l=i[s=n.slice(o,o+a).join(r)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var u=n.slice(o+a).join(r);return u?N(l,u,r):void 0}i=i[n[o]]}return i}}function R(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 j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
172t%2?R(Object(r),!0).forEach(function(t){(0,c.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var M=function(e){(0,s.Z)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,u.Z)(t);if(r){var i=(0,u.Z)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,l.Z)(this,e)});function c(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,i.Z)(this,c),t=n.call(this),A&&w.call((0,a.Z)(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return(0,o.Z)(c,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];r&&"string"!=typeof r&&(a=a.concat(r)),r&&"string"==typeof r&&(a=a.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(a=e.split("."));var s=_(this.data,a);return s||!o||"string"!=typeof r?s:N(this.data&&this.data[e]&&this.data[e][t],r,i)}},{key:"addResource",value:function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[e,t];r&&(a=a.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(n=t,t=(a=e.split("."))[1]),this.addNamespaces(t),S(this.data,a,n),i.silent||this.emit("added",e,t,r,n)}},{key:"addResources",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in r)"string"!=typeof r[i]&&"[object Array]"!==Object.prototype.toString.apply(r[i])||this.addResource(e,t,i,r[i],{silent:!0});n.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(n=r,r=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=_(this.data,a)||{};n?C(s,r,i):s=j(j({},s),r),S(this.data,a,s),o.silent||this.emit("added",e,t,r)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?j(j({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),c}(w),D={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,n,i){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,r,n,i))}),t}};function L(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 F(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?L(Object(r),!0).forEach(function(t){(0,c.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEac
172h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var B={},U=function(e){(0,s.Z)(d,e);var t,r,c=(t=d,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,u.Z)(t);if(r){var i=(0,u.Z)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,l.Z)(this,e)});function d(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.Z)(this,d),t=c.call(this),A&&w.call((0,a.Z)(t)),function(e,t,r){["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(function(e){t[e]&&(r[e]=t[e])})}(0,e,(0,a.Z)(t)),t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=b.create("translator"),t}return(0,o.Z)(d,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var r=this.resolve(e,t);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,t){var r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=r&&e.indexOf(r)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,r){t=t||"",r=r||"";var n=I.filter(function(e){return t.indexOf(e)<0&&r.indexOf(e)<0});if(0===n.length)return!0;var i=new RegExp("(".concat(n.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(r);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}(e,r,n));if(o&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:i};var l=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(l[0])>-1)&&(i=l.shift()),e=l.join(n)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,t,r){var i=this;if("object"!==(0,n.Z)(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===(0,n.Z)(t)&&(t=F({},t)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),l=s.key,u=s.namespaces,c=u[u.length-1],f=t.lng||this.language,p=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(p){var h=t.nsSeparator||this.options.nsSeparator;return o?{res:"".concat(c).concat(h).concat(l),usedKey:l,exactUsedKey:l,usedLng:f,usedNS:c}:"".concat(c).concat(h).concat(l)}return o?{res:l,usedKey:l,exactUsedKey:l,usedLng:f,usedNS:c}:l}var m=this.resolve(e,t),v=m&&m.res,g=m&&m.usedKey||l,y=m&&m.exactUsedKey||l,b=Object.prototype.toString.apply(v),w=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject;if(x&&v&&"string"!=typeof v&&"boolean"!=typeof v&&"number"!=typeof v&&["[object Number]","[object Function]","[object RegExp]"].indexOf(b)<0&&("string"!=typeof w||"[object Array]"!==b)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var E=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,v,F(F({},t),{},{ns:u})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return o?(m.res=E,m):E}if(a){var k="[object Array]"===b,S=k?[]:{},_=k?y:g;for(var C in v)if(Object.prototype.hasOwnProperty.call(v,C)){var O="".concat(_).concat(a).concat(C);S[C]=this.translate(O,F(F({},t),{joinArrays:!1,ns:u})),S[C]===O&&(S[C]=v[C])}v=S}}else if(x&&"string"==typeof w&&"[object Array]"===b)(v=v.join(w))&&(v=this.extendTranslation(v,e,t,r));else{var P=!1,T=!1,A=void 0!==t.count&&"string"!=typeof t.count,I=d.hasDefaultValue(t),N=A?this.pluralResolver.getSuffix(f,t.count,t):"",R=t["defaultValue".concat(N)]||t.defaultValue;!this.isValidLookup(v)&&I&&(P=!0,v=R),this.isValidLookup(v)||(T=!0,v=l);var j=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&T?void 0:v,M=I&&R!==v&&this.options.updateMissing;if(T||P||M){if(this.logger.log(M?"updateKey":"missingKey",f,c,l,M?R:v),a){var D=this.resolve(l,F(F({},t),{},{keySeparator:!1}));D&&D.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&B&&B[0])for(var U=0;U<B.length;U++)L.push(B[U]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(t.lng||this.language):L.push(t.lng||this.language);var V=function(e,r,n){var o=I&&n!==v?n:j;i.options.missingKeyHandler?i.options.missingKeyHandler(e,c,r,o,M,t):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,c,r,o,M,t),i.emit("missingKey",e,c,r,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?L.forEac
vendor: 11,446 bytes, line 172
172h(function(e){i.pluralResolver.getSuffixes(e,t).forEach(function(r){V([e],l+r,t["defaultValue".concat(r)]||R)})}):V(L,l,R))}v=this.extendTranslation(v,e,t,m,r),T&&v===l&&this.options.appendNamespaceToMissingKey&&(v="".concat(c,":").concat(l)),(T||P)&&this.options.parseMissingKeyHandler&&(v="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(c,":").concat(l):l,P?v:void 0):this.options.parseMissingKeyHandler(v))}return o?(m.res=v,m):v}},{key:"extendTranslation",value:function(e,t,r,n,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,F(F({},this.options.interpolation.defaultVariables),r),n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(F(F({},r),{interpolation:F(F({},this.options.interpolation),r.interpolation)}));var a,s="string"==typeof e&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var l=e.match(this.interpolator.nestingRegexp);a=l&&l.length}var u=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(u=F(F({},this.options.interpolation.defaultVariables),u)),e=this.interpolator.interpolate(e,u,r.lng||this.language,r),s){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(r.lng=n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return i&&i[0]===n[0]&&!r.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(n[0]," in key: ").concat(t[0])),null):o.translate.apply(o,n.concat([t]))},r)),r.interpolation&&this.interpolator.reset()}var d=r.postProcess||this.options.postProcess,f="string"==typeof d?[d]:d;return null!=e&&f&&f.length&&!1!==r.applyPostProcessor&&(e=D.handle(f,e,t,this.options&&this.options.postProcessPassResolved?F({i18nResolved:n},r):r,this)),e}},{key:"resolve",value:function(e){var t,r,n,i,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),u=l.key;r=u;var c=l.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,f=d&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),p=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach(function(e){a.isValidLookup(t)||(o=e,!B["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(B["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(r,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(function(r){if(!a.isValidLookup(t)){i=r;var o,l=[u];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(l,u,r,e,s);else{var c;d&&(c=a.pluralResolver.getSuffix(r,s.count,s));var h="".concat(a.options.pluralSeparator,"zero");if(d&&(l.push(u+c),f&&l.push(u+h)),p){var m="".concat(u).concat(a.options.contextSeparator).concat(s.context);l.push(m),d&&(l.push(m+c),f&&l.push(m+h))}}for(;o=l.pop();)a.isValidLookup(t)||(n=o,t=a.getResource(r,e,o,s))}}))})}}),{res:t,usedKey:r,exactUsedKey:n,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}]),d}(w);function V(e){return e.charAt(0).toUpperCase()+e.slice(1)}var z=function(){function e(t){(0,i.Z)(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=b.create("languageUtils")}return(0,o.Z)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(function(e){return e.toLowerCase()}):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=V(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=V(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=V(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,r=this;return e?(e.forEach(function(e){if(!t){var n=r.formatLanguageCode(e);r.options.supportedLngs&&!r.isSupportedCode(n)||(t=n)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var n=r.getLanguagePartFromCode(e);if(r.isSupportedCode(n))return t=n;t=r.options.supportedLngs.find(function(e){return e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:0===e.indexOf(n)?e:void 0})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,t){var r=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(r.isSupportedCode(e)?i.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),n.forEach(function(e){i.indexOf(e)<0&&o(r.formatLanguageCode(e))}),i}}]),e}(),q=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],H={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},G=["v1","v2","v3"],$={zero:0,one:1,two:2,few:3,many:4,other:5},W=function(){function e(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.Z)(this,e),this.languageUtils=t,this.options=n,this.logger=b.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(r={},q.forEach(function(e){e.lngs.forEach(function(t){r[t]={numbers:e.nr,plurals:H[e.fc]}})}),r)}return(0,o.Z)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};
172return this.getSuffixes(e,r).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(function(e,t){return $[e]-$[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):n.numbers.map(function(n){return t.getSuffix(e,n,r)}):[]}},{key:"getSuffix",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var r=this,n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),i=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return r.options.prepend&&i.toString()?r.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!G.includes(this.options.compatibilityJSON)}}]),e}();function Z(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 Q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(r),!0).forEach(function(t){(0,c.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Y(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=function(e,t,r){var n=_(e,r);return void 0!==n?n:_(t,r)}(e,t,r);return!o&&i&&"string"==typeof r&&void 0===(o=N(e,r,n))&&(o=N(t,r,n)),o}var K=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.Z)(this,e),this.logger=b.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,o.Z)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:T,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?O(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?O(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?O(t.nestingPrefix):t.nestingPrefixEscaped||O("$t("),this.nestingSuffix=t.nestingSuffix?O(t.nestingSuffix):t.nestingSuffixEscaped||O(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,t,r,n){var i,o,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0){var i=Y(t,l,e,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(i,void 0,r,Q(Q(Q({},n),t),{},{interpolationkey:e})):i}var o=e.split(s.formatSeparator),a=o.shift().trim(),u=o.join(s.formatSeparator).trim();return s.format(Y(t,l,a,s.options.keySeparator,s.options.ignoreJSONStructure),u,r,Q(Q(Q({},n),t),{},{interpolationkey:a}))};this.resetRegExp();var d=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,f=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}
172].forEach(function(t){for(a=0;i=t.regex.exec(e);){var r=i[1].trim();if(void 0===(o=c(r)))if("function"==typeof d){var l=d(e,i,n);o="string"==typeof l?l:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))o="";else{if(f){o=i[0];continue}s.logger.warn("missed to pass in variable ".concat(r," for interpolating ").concat(e)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=E(o));var u=t.safeValue(o);if(e=e.replace(i[0],u),f?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var r,n,i,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var n=e.split(new RegExp("".concat(r,"[ ]*{"))),o="{".concat(n[1]);e=n[0];var a=(o=this.interpolate(o,i)).match(/'/g),s=o.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i=Q(Q({},t),i))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(r).concat(o)}return delete i.defaultValue,e}for(;r=this.nestingRegexp.exec(e);){var l=[];(i=(i=Q({},a)).replace&&"string"!=typeof i.replace?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;var u=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){var c=r[1].split(this.formatSeparator).map(function(e){return e.trim()});r[1]=c.shift(),l=c,u=!0}if((n=t(s.call(this,r[1].trim(),i),i))&&r[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=E(n)),n||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),n=""),u&&(n=l.reduce(function(e,t){return o.format(e,t,a.lng,Q(Q({},a),{},{interpolationkey:r[1].trim()}))},n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}]),e}();function J(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 X(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?J(Object(r),!0).forEach(function(t){(0,c.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ee(e){var t={};return function(r,n,i){var o=n+JSON.stringify(i),a=t[o];return a||(a=e(n,i),t[o]=a),a(r)}}var te=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.Z)(this,e),this.logger=b.create("formatter"),this.options=t,this.formats={number:ee(function(e,t){var r=new Intl.NumberFormat(e,X({},t));return function(e){return r.format(e)}}),currency:ee(function(e,t){var r=new Intl.NumberFormat(e,X(X({},t),{},{style:"currency"}));return function(e){return r.format(e)}}),datetime:ee(function(e,t){var r=new Intl.DateTimeFormat(e,X({},t));return function(e){return r.format(e)}}),relativetime:ee(function(e,t){var r=new Intl.RelativeTimeFormat(e,X({},t));return function(e){return r.format(e,t.range||"day")}}),list:ee(function(e,t){var r=new Intl.ListFormat(e,X({},t));return function(e){return r.format(e)}})},this.init(t)}return(0,o.Z)(e,[{key:"init",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=ee(t)}},{key:"format",value:function(e,t,r){var n=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(function(e,t){var o=function(e){var t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var i=n[1].substring(0,n[1].length-1);"currency"===t&&i.indexOf(":")<0?r.currency||(r.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?r.range||(r.range=i.trim()):i.split(";").forEach(function(e){if(e){var t,n=(t=e.split(":"),(0,d.Z)(t)||(0,f.Z)(t)||(0,p.Z)(t)||(0,h.Z)()),i=n[0],o=n.slice(1).join(":").trim().replace(/^'+|'+$/g,"");r[i.trim()]||(r[i.trim()]=o),"false"===o&&(r[i.trim()]=!1),"true"===o&&(r[i.trim()]=!0),isNaN(o)||(r[i.trim()]=parseInt(o,10))}})}return{formatName:t,formatOptions:r}}(t),a=o.formatName,s=o.formatOptions;if(n.formats[a]){var l=e;try{var u=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},c=u.locale||u.lng||i.locale||i.lng||r;l=n.formats[a](e,c,X(X(X({},s),i),u))}catch(e){n.logger.warn(e)}return l}return n.logger.warn("there was no format function for ".concat(a)),e},e)}}]),e}();function re(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 ne(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
172t%2?re(Object(r),!0).forEach(function(t){(0,c.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var ie=function(e){(0,s.Z)(c,e);var t,r,n=(t=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,u.Z)(t);if(r){var i=(0,u.Z)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,l.Z)(this,e)});function c(e,t,r){var o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,i.Z)(this,c),o=n.call(this),A&&w.call((0,a.Z)(o)),o.backend=e,o.store=t,o.services=r,o.languageUtils=r.languageUtils,o.options=s,o.logger=b.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=s.maxParallelReads||10,o.readingCalls=0,o.maxRetries=s.maxRetries>=0?s.maxRetries:5,o.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,s.backend,s),o}return(0,o.Z)(c,[{key:"queueLoad",value:function(e,t,r,n){var i=this,o={},a={},s={},l={};return e.forEach(function(e){var n=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!r.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?void 0===a[s]&&(a[s]=!0):(i.state[s]=1,n=!1,void 0===a[s]&&(a[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===l[t]&&(l[t]=!0)))}),n||(s[e]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,r){var n=e.split("|"),i=n[0],o=n[1];t&&this.emit("failedLoading",i,o,t),r&&this.store.addResourceBundle(i,o,r),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(r){var n,s,l,u,c;n=r.loaded,s=o,(u=(l=k(n,[i],Object)).obj)[c=l.k]=u[c]||[],u[c].push(s),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(function(e){a[e]||(a[e]={});var t=r.loaded[e];t.length&&t.forEach(function(t){void 0===a[e][t]&&(a[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,r){var n=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:e,ns:t,fcName:r,tried:i,wait:o,callback:a});else{this.readingCalls++;var s=function(s,l){if(n.readingCalls--,n.waitingReads.length>0){var u=n.waitingReads.shift();n.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}s&&l&&i<n.maxRetries?setTimeout(function(){n.read.call(n,e,t,r,i+1,2*o,a)},o):a(s,l)},l=this.backend[r].bind(this.backend);if(2!==l.length)return l(e,t,s);try{var u=l(e,t);u&&"function"==typeof u.then?u.then(function(e){return s(null,e)}).catch(s):s(null,u)}catch(e){s(e)}}}},{key:"prepareLoading",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,n,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(function(e){r.loadOne(e)})}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),i=n[0],o=n[1];this.read(i,o,"read",void 0,void 0,function(n,a){n&&t.logger.warn("".concat(r,"loading namespace ").concat(o," for language ").concat(i," failed"),n),!n&&a&&t.logger.log("".concat(r,"loaded namespace ").concat(o," for language ").concat(i),a),t.loaded(e,n,a)})}},{key:"saveMissing",value:function(e,t,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=r&&""!==r){if(this.backend&&this.backend.create){var s=ne(ne({},o),{},{isUpdate:i}),l=this.backend.create.bind(this.backend);if(l.length<6)try{var u;(u=5===l.length?l(e,t,r,n,s):l(e,t,r,n))&&"function"==typeof u.then?u.then(function(e){return a(null,e)}).catch(a):a(null,u)}catch(e){a(e)}else l(e,t,r,n,a,s)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}]),c}(w);function oe(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,n.Z)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,n.Z)(e[2])||"object"===(0,n.Z)(e[3])){var r=e[3]||e[2];Object.keys(r).forEach(function(e){t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,r,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function ae(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function se(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 le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
172t%2?se(Object(r),!0).forEach(function(t){(0,c.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):se(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ue(){}var ce=function(e){(0,s.Z)(d,e);var t,r,c=(t=d,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,u.Z)(t);if(r){var i=(0,u.Z)(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return(0,l.Z)(this,e)});function d(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if((0,i.Z)(this,d),e=c.call(this),A&&w.call((0,a.Z)(e)),e.options=ae(r),e.services={},e.logger=b,e.modules={external:[]},t=(0,a.Z)(e),Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(function(e){"function"==typeof t[e]&&(t[e]=t[e].bind(t))}),n&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,n),(0,l.Z)(e,(0,a.Z)(e));setTimeout(function(){e.init(r,n)},0)}return e}return(0,o.Z)(d,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var n=oe();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options=le(le(le({},n),this.options),ae(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=le(le({},n.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var o;this.modules.logger?b.init(i(this.modules.logger),this.options):b.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=te);var a=new z(this.options);this.store=new M(this.options.resources,this.options);var s=this.services;s.logger=b,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new W(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!o||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(s.formatter=i(o),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new K(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new ie(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.emit.apply(e,[t].concat(n))}),this.modules.languageDetector&&(s.languageDetector=i(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=i(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new U(this.services,this.options),this.translator.on("*",function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];e.emit.apply(e,[t].concat(n))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,r||(r=ue),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments),e}});var u=x(),c=function(){var t=function(t,n){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(n),r(t,n)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}},{key:"loadResources",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue,n="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase())return r();var i=[],o=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){i.indexOf(e)<0&&i.push(e)})};n?o(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return o(e)}
172),this.options.preload&&this.options.preload.forEach(function(e){return o(e)}),this.services.backendConnector.load(i,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)})}else r(null)}},{key:"reloadResources",value:function(e,t,r){var n=x();return e||(e=this.languages),t||(t=this.options.ns),r||(r=ue),this.services.backendConnector.reload(e,t,function(e){n.resolve(),r(e)}),n}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&D.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var r=this.languages[t];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}},{key:"changeLanguage",value:function(e,t){var r=this;this.isLanguageChangingTo=e;var n=x();this.emit("languageChanging",e);var i=function(e){r.language=e,r.languages=r.services.languageUtils.toResolveHierarchy(e),r.resolvedLanguage=void 0,r.setResolvedLanguage(e)},o=function(o){e||o||!r.services.languageDetector||(o=[]);var a="string"==typeof o?o:r.services.languageUtils.getBestMatchFromCodes(o);a&&(r.language||i(a),r.translator.language||r.translator.changeLanguage(a),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage&&r.services.languageDetector.cacheUserLanguage(a)),r.loadResources(a,function(e){!function(e,o){o?(i(o),r.translator.changeLanguage(o),r.isLanguageChangingTo=void 0,r.emit("languageChanged",o),r.logger.log("languageChanged",o)):r.isLanguageChangingTo=void 0,n.resolve(function(){return r.t.apply(r,arguments)}),t&&t(e,function(){return r.t.apply(r,arguments)})}(e,a)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(e,t,r){var i=this,o=function e(t,o){var a;if("object"!==(0,n.Z)(o)){for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u<s;u++)l[u-2]=arguments[u];a=i.options.overloadTranslationOptionHandler([t,o].concat(l))}else a=le({},o);a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,a.keyPrefix=a.keyPrefix||r||e.keyPrefix;var c,d=i.options.keySeparator||".";return c=a.keyPrefix&&Array.isArray(t)?t.map(function(e){return"".concat(a.keyPrefix).concat(d).concat(e)}):a.keyPrefix?"".concat(a.keyPrefix).concat(d).concat(t):t,i.t(c,a)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=r,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
172if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=r.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};if(r.precheck){var s=r.precheck(this,a);if(void 0!==s)return s}return!(!this.hasResourceBundle(n,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!a(n,e)||i&&!a(o,e)))}},{key:"loadNamespaces",value:function(e,t){var r=this,n=x();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)}),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=x();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],i=e.filter(function(e){return n.indexOf(e)<0});return i.length?(this.options.preload=n.concat(i),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";var t=this.services&&this.services.languageUtils||new z(oe());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue,n=le(le(le({},this.options),t),{isClone:!0}),i=new d(n);return void 0===t.debug&&void 0===t.prefix||(i.logger=i.logger.clone(t)),["store","services","language"].forEach(function(t){i[t]=e[t]}),i.services=le({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new U(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];i.emit.apply(i,[e].concat(r))}),i.init(n,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),d}(w);(0,c.Z)(ce,"createInstance",function(){return new ce(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)});var de=ce.createInstance();de.createInstance=ce.createInstance,de.createInstance,de.dir,de.init,de.loadResources,de.reloadResources,de.use,de.changeLanguage,de.getFixedT;var fe=de.t;de.exists,de.setDefaultNamespace,de.hasLoadedNamespace,de.loadNamespaces,de.loadLanguages},88039:function(e,t,r){"use strict";r.r(t),r.d(t,{Controller:function(){return F},FormProvider:function(){return k},appendErrors:function(){return B},get:function(){return v},set:function(){return D},useController:function(){return L},useFieldArray:function(){return ve},useForm:function(){return Le},useFormContext:function(){return E},useFormState:function(){return A},useWatch:function(){return R}});var n=r(27378),i=e=>"checkbox"===e.type,o=e=>e instanceof Date,a=e=>null==e;const s=e=>"object"==typeof e;var l=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!o(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),d=e=>{const t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},f="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(f&&(e instanceof Blob||e instanceof FileList)||!r&&!l(e))return e;if(t=r?[]:{},Array.isArray(e)||d(e))for(const r in e)t[r]=p(e[r]);else t=e}return t}var h=e=>Array.isArray(e)?e.filter(Boolean):[],m=e=>void 0===e,v=(e,t,r)=>{if(!t||!l(e))return r;const n=h(t.split(/[,[\].]+?/)).reduce((e,t)=>
172a(e)?e:e[t],e);return m(n)||n===e?m(e[t])?r:e[t]:n};const g={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},y={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},b="pattern",w="required",x=n.createContext(null),E=()=>n.useContext(x),k=e=>{const{children:t,...r}=e;return n.createElement(x.Provider,{value:r},t)};var S=(e,t,r,n=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const i=o;return t._proxyFormState[i]!==y.all&&(t._proxyFormState[i]=!n||y.all),r&&(r[i]=!0),e[i]}});return i},_=e=>l(e)&&!Object.keys(e).length,C=(e,t,r,n)=>{r(e);const{name:i,...o}=e;return _(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!n||y.all))},O=e=>Array.isArray(e)?e:[e],P=(e,t,r)=>r&&t?e===t:!e||!t||e===t||O(e).some(e=>e&&(e.startsWith(t)||t.startsWith(e)));function T(e){const t=n.useRef(e);t.current=e,n.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function A(e){const t=E(),{control:r=t.control,disabled:i,name:o,exact:a}=e||{},[s,l]=n.useState(r._formState),u=n.useRef(!0),c=n.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=n.useRef(o);return d.current=o,T({disabled:i,next:e=>u.current&&P(d.current,e.name,a)&&C(e,c.current,r._updateFormState)&&l({...r._formState,...e}),subject:r._subjects.state}),n.useEffect(()=>(u.current=!0,c.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),S(s,r,c.current,!1)}var I=e=>"string"==typeof e,N=(e,t,r,n,i)=>I(e)?(n&&t.watch.add(e),v(r,e,i)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),v(r,e))):(n&&(t.watchAll=!0),r);function R(e){const t=E(),{control:r=t.control,name:i,defaultValue:o,disabled:a,exact:s}=e||{},l=n.useRef(i);l.current=i,T({disabled:a,subject:r._subjects.values,next:e=>{P(l.current,e.name,s)&&c(p(N(l.current,r._names,e.values||r._formValues,!1,o)))}});const[u,c]=n.useState(r._getWatch(i,o));return n.useEffect(()=>r._removeUnmounted()),u}var j=e=>/^\w*$/.test(e),M=e=>h(e.replace(/["|']|\]/g,"").split(/\.|\[/));function D(e,t,r){let n=-1;const i=j(t)?[t]:M(t),o=i.length,a=o-1;for(;++n<o;){const t=i[n];let o=r;if(n!==a){const r=e[t];
172o=l(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}e[t]=o,e=e[t]}return e}function L(e){const t=E(),{name:r,control:i=t.control,shouldUnregister:o}=e,a=c(i._names.array,r),s=R({control:i,name:r,defaultValue:v(i._formValues,r,v(i._defaultValues,r,e.defaultValue)),exact:!0}),l=A({control:i,name:r}),d=n.useRef(i.register(r,{...e.rules,value:s}));return n.useEffect(()=>{const e=i._options.shouldUnregister||o,t=(e,t)=>{const r=v(i._fields,e);r&&(r._f.mount=t)};if(t(r,!0),e){const e=p(v(i._options.defaultValues,r));D(i._defaultValues,r,e),m(v(i._formValues,r))&&D(i._formValues,r,e)}return()=>{(a?e&&!i._state.action:e)?i.unregister(r):t(r,!1)}},[r,i,a,o]),{field:{name:r,value:s,onChange:n.useCallback(e=>d.current.onChange({target:{value:u(e),name:r},type:g.CHANGE}),[r]),onBlur:n.useCallback(()=>d.current.onBlur({target:{value:v(i._formValues,r),name:r},type:g.BLUR}),[r,i]),ref:e=>{const t=v(i._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!v(l.errors,r)},isDirty:{enumerable:!0,get:()=>!!v(l.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!v(l.touchedFields,r)},error:{enumerable:!0,get:()=>v(l.errors,r)}})}}const F=e=>e.render(L(e));var B=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{};const U=(e,t,r)=>{for(const n of r||Object.keys(e)){const r=v(e,n);if(r){const{_f:e,...n}=r;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else l(n)&&U(n,t)}}};var V=()=>{const e="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const r=(16*Math.random()+e)%16|0;return("x"==t?r:3&r|8).toString(16)})},z=(e,t,r={})=>r.shouldFocus||m(r.shouldFocus)?r.focusName||`${e}.${m(r.focusIndex)?t:r.focusIndex}.`:"",q=e=>({isOnSubmit:!e||e===y.onSubmit,isOnBlur:e===y.onBlur,isOnChange:e===y.onChange,isOnAll:e===y.all,isOnTouch:e===y.onTouched}),H=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),G=(e,t,r)=>{const n=h(v(e,r));return D(n,"root",t[r]),D(e,r,n),e},$=e=>"boolean"==typeof e,W=e=>"file"===e.type,Z=e=>"function"==typeof e,Q=e=>{if(!f)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Y=e=>I(e),K=e=>"radio"===e.type,J=e=>e instanceof RegExp;const X={value:!1,isValid:!1},ee={value:!0,isValid:!0};var te=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!m(e[0].attributes.value)?m(e[0].value)||""===e[0].value?ee:{value:e[0].value,isValid:!0}:ee:X}return X};const re={isValid:!1,value:null};var ne=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,re):re;function ie(e,t,r="validate"){if(Y(e)||Array.isArray(e)&&e.every(Y)||$(e)&&!e)return{type:r,message:Y(e)?e:"",ref:t}}var oe=e=>l(e)&&!J(e)?e:{value:e,message:""},ae=async(e,t,r,n,o)=>{const{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:p,max:h,pattern:g,validate:y,name:x,valueAsNumber:E,mount:k,disabled:S}=e._f,C=v(t,x);if(!k||S)return{};const O=u?u[0]:s,P=e=>{n&&O.reportValidity&&(O.setCustomValidity($(e)?"":e||""),O.reportValidity())},T={},A=K(s),N=i(s),R=A||N,j=(E||W(s))&&m(s.value)&&m(C)||Q(s)&&""===s.value||""===C||Array.isArray(C)&&!C.length,M=B.bind(null,x,r,T),D=(e,t,r,n="maxLength",i="minLength")=>{const o=e?t:r;T[x]={type:e?n:i,message:o,ref:s,...M(e?n:i,o)}};if(o?!Array.isArray(C)||!C.length:c&&(!R&&(j||a(C))||$(C)&&!C||N&&!te(u).isValid||A&&!ne(u).isValid)){const{value:e,message:t}=Y(c)?{value:!!c,message:c}:oe(c);if(e&&(T[x]={type:w,message:t,ref:O,...M(w,t)},!r))return P(t),T}if(!(j||a(p)&&a(h))){let e,t;const n=oe(h),i=oe(p);if(a(C)||isNaN(C)){const r=s.valueAsDate||new Date(C),o=e=>new Date((new Date).toDateString()+" "+e),a="time"==s.type,l="week"==s.type;I(n.value)&&C&&(e=a?o(C)>o(n.value):l?C>n.value:r>new Date(n.value)),I(i.value)&&C&&(t=a?o(C)<o(i.value):l?C<i.value:r<new Date(i.value))}else{const r=s.valueAsNumber||(C?+C:C);a(n.value)||(e=r>n.value),a(i.value)||(t=r<i.value)}if((e||t)&&(D(!!e,n.message,i.message,"max","min"),!r))return P(T[x].message),T}if((d||f)&&!j&&(I(C)||o&&Array.isArray(C))){const e=oe(d),t=oe(f),n=!a(e.value)&&C.length>+e.value,i=!a(t.value)&&C.length<+t.value;if((n||i)&&(D(n,e.message,t.message),!r))return P(T[x].message),T}if(g&&!j&&I(C)){const{value:e,message:t}=oe(g);if(J(e)&&!C.match(e)&&(T[x]={type:b,message:t,ref:s,...M(b,t)},!r))return P(t),T}if(y)if(Z(y)){const e=ie(await y(C,t),O);
172if(e&&(T[x]={...e,...M("validate",e.message)},!r))return P(e.message),T}else if(l(y)){let e={};for(const n in y){if(!_(e)&&!r)break;const i=ie(await y[n](C,t),O,n);i&&(e={...i,...M(n,i.message)},P(i.message),r&&(T[x]=e))}if(!_(e)&&(T[x]={ref:O,...e},!r))return T}return P(!0),T};function se(e,t){return[...e,...O(t)]}var le=e=>Array.isArray(e)?e.map(()=>{}):void 0;function ue(e,t,r){return[...e.slice(0,t),...O(r),...e.slice(t)]}var ce=(e,t,r)=>Array.isArray(e)?(m(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[];function de(e,t){return[...O(t),...O(e)]}var fe=(e,t)=>m(t)?[]:function(e,t){let r=0;const n=[...e];for(const e of t)n.splice(e-r,1),r++;return h(n).length?n:[]}(e,O(t).sort((e,t)=>e-t)),pe=(e,t,r)=>{e[t]=[e[r],e[r]=e[t]][0]};function he(e,t){const r=Array.isArray(t)?t:j(t)?[t]:M(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=m(e)?n++:e[t[n++]];return e}(e,r),i=r.length-1,o=r[i];return n&&delete n[o],0!==i&&(l(n)&&_(n)||Array.isArray(n)&&function(e){for(const t in e)if(!m(e[t]))return!1;return!0}(n))&&he(e,r.slice(0,-1)),e}var me=(e,t,r)=>(e[t]=r,e);function ve(e){const t=E(),{control:r=t.control,name:i,keyName:o="id",shouldUnregister:a}=e,[s,l]=n.useState(r._getFieldArray(i)),u=n.useRef(r._getFieldArray(i).map(V)),c=n.useRef(s),d=n.useRef(i),f=n.useRef(!1);d.current=i,c.current=s,r._names.array.add(i),e.rules&&r.register(i,e.rules),T({next:({values:e,name:t})=>{if(t===d.current||!t){const t=v(e,d.current);Array.isArray(t)&&(l(t),u.current=t.map(V))}},subject:r._subjects.array});const h=n.useCallback(e=>{f.current=!0,r._updateFieldArray(i,e)},[r,i]);return n.useEffect(()=>{if(r._state.action=!1,H(i,r._names)&&r._subjects.state.next({...r._formState}),f.current&&(!q(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([i]).then(e=>{const t=v(e.errors,i),n=v(r._formState.errors,i);(n?!t&&n.type:t&&t.type)&&(t?D(r._formState.errors,i,t):he(r._formState.errors,i),r._subjects.state.next({errors:r._formState.errors}))});else{const e=v(r._fields,i);e&&e._f&&ae(e,r._formValues,r._options.criteriaMode===y.all,r._options.shouldUseNativeValidation,!0).then(e=>!_(e)&&r._subjects.state.next({errors:G(r._formState.errors,e,i)}))}r._subjects.values.next({name:i,values:{...r._formValues}}),r._names.focus&&U(r._fields,e=>!!e&&e.startsWith(r._names.focus||"")),r._names.focus="",r._updateValid()},[s,i,r]),n.useEffect(()=>(!v(r._formValues,i)&&r._updateFieldArray(i),()=>{(r._options.shouldUnregister||a)&&r.unregister(i)}),[i,r,o,a]),{swap:n.useCallback((e,t)=>{const n=r._getFieldArray(i);pe(n,e,t),pe(u.current,e,t),h(n),l(n),r._updateFieldArray(i,n,pe,{argA:e,argB:t},!1)},[h,i,r]),move:n.useCallback((e,t)=>{const n=r._getFieldArray(i);ce(n,e,t),ce(u.current,e,t),h(n),l(n),r._updateFieldArray(i,n,ce,{argA:e,argB:t},!1)},[h,i,r]),prepend:n.useCallback((e,t)=>{const n=O(p(e)),o=de(r._getFieldArray(i),n);r._names.focus=z(i,0,t),u.current=de(u.current,n.map(V)),h(o),l(o),r._updateFieldArray(i,o,de,{argA:le(e)})},[h,i,r]),append:n.useCallback((e,t)=>{const n=O(p(e)),o=se(r._getFieldArray(i),n);r._names.focus=z(i,o.length-1,t),u.current=se(u.current,n.map(V)),h(o),l(o),r._updateFieldArray(i,o,se,{argA:le(e)})},[h,i,r]),remove:n.useCallback(e=>{const t=fe(r._getFieldArray(i),e);u.current=fe(u.current,e),h(t),l(t),r._updateFieldArray(i,t,fe,{argA:e})},[h,i,r]),insert:n.useCallback((e,t,n)=>{const o=O(p(t)),a=ue(r._getFieldArray(i),e,o);r._names.focus=z(i,e,n),u.current=ue(u.current,e,o.map(V)),h(a),l(a),r._updateFieldArray(i,a,ue,{argA:e,argB:le(t)})},[h,i,r]),update:n.useCallback((e,t)=>{const n=p(t),o=me(r._getFieldArray(i),e,n);u.current=[...o].map((t,r)=>t&&r!==e?u.current[r]:V()),h(o),l([...o]),r._updateFieldArray(i,o,me,{argA:e,argB:n},!0,!1)},[h,i,r]),replace:n.useCallback(e=>{const t=O(p(e));u.current=t.map(V),h([...t]),l([...t]),r._updateFieldArray(i,[...t],e=>e,{},!0,!1)},[h,i,r]),fields:n.useMemo(()=>s.map((e,t)=>({...e,[o]:u.current[t]||V()})),[s,o])}}function ge(){let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var ye=e=>a(e)||!s(e);function be(e,t){if(ye(e)||ye(t))return e===t;if(o(e)&&o(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r){const r=e[i];if(!n.includes(i))return!1;if("ref"!==i){const e=t[i];if(o(r)&&o(e)||l(r)&&l(e)||Array.isArray(r)&&Array.isArray(e)?!be(r,e):r!==e)return!1}}return!0}var we=e=>"select-multiple"===e.type,xe=e=>K(e)||i(e),Ee=e=>Q(e)&&e.isConnected,ke=e=>{for(const t in e)if(Z(e[t]))return!0;return!1};function Se(e,t={}){const r=Array.isArray(e);if(l(e)||r)for(const r in e)Array.isArray(e[r])||l(e[r])&&!ke(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Se(e[r],t[r])):a(e[r])||(t[r]=!0);return t}function _e(e,t,r){const n=Array.isArray(e);
172if(l(e)||n)for(const n in e)Array.isArray(e[n])||l(e[n])&&!ke(e[n])?m(t)||ye(r[n])?r[n]=Array.isArray(e[n])?Se(e[n],[]):{...Se(e[n])}:_e(e[n],a(t)?{}:t[n],r[n]):r[n]=!be(e[n],t[n]);return r}var Ce=(e,t)=>_e(e,t,Se(t)),Oe=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>m(e)?e:t?""===e?NaN:e?+e:e:r&&I(e)?new Date(e):n?n(e):e;function Pe(e){const t=e.ref;if(!(e.refs?e.refs.every(e=>e.disabled):t.disabled))return W(t)?t.files:K(t)?ne(e.refs).value:we(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?te(e.refs).value:Oe(m(t.value)?e.ref.value:t.value,e)}var Te=(e,t,r,n)=>{const i={};for(const r of e){const e=v(t,r);e&&D(i,r,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},Ae=e=>m(e)?e:J(e)?e.source:l(e)?J(e.value)?e.value.source:e.value:e,Ie=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Ne(e,t,r){const n=v(e,r);if(n||j(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const n=i.join("."),o=v(t,n),a=v(e,n);if(o&&!Array.isArray(o)&&r!==n)return{name:r};if(a&&a.type)return{name:n,error:a};i.pop()}return{name:r}}var Re=(e,t,r,n,i)=>!i.isOnAll&&(!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:!(r?n.isOnChange:i.isOnChange)||e),je=(e,t)=>!h(v(e,t)).length&&he(e,t);const Me={mode:y.onSubmit,reValidateMode:y.onChange,shouldFocusError:!0};function De(e={},t){let r,n={...Me,...e},s={submitCount:0,isDirty:!1,isLoading:Z(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},d={},b=(l(n.defaultValues)||l(n.values))&&p(n.defaultValues||n.values)||{},w=n.shouldUnregister?{}:p(b),x={action:!1,mount:!1,watch:!1},E={mount:new Set,unMount:new Set,array:new Set,watch:new Set},k=0;const S={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},C={values:ge(),array:ge(),state:ge()},P=e.resetOptions&&e.resetOptions.keepDirtyValues,T=q(n.mode),A=q(n.reValidateMode),R=n.criteriaMode===y.all,j=async e=>{if(S.isValid||e){const e=n.resolver?_((await B()).errors):await V(d,!0);e!==s.isValid&&C.state.next({isValid:e})}},M=e=>S.isValidating&&C.state.next({isValidating:e}),L=(e,t,r,n)=>{const i=v(d,e);if(i){const o=v(w,e,m(r)?v(b,e):r);m(o)||n&&n.defaultChecked||t?D(w,e,t?o:Pe(i._f)):K(e,o),x.mount&&j()}},F=(e,t,r,n,i)=>{let o=!1,a=!1;const l={name:e};if(!r||n){S.isDirty&&(a=s.isDirty,s.isDirty=l.isDirty=z(),o=a!==l.isDirty);const r=be(v(b,e),t);a=v(s.dirtyFields,e),r?he(s.dirtyFields,e):D(s.dirtyFields,e,!0),l.dirtyFields=s.dirtyFields,o=o||S.dirtyFields&&a!==!r}if(r){const t=v(s.touchedFields,e);t||(D(s.touchedFields,e,r),l.touchedFields=s.touchedFields,o=o||S.touchedFields&&t!==r)}return o&&i&&C.state.next(l),o?l:{}},B=async e=>n.resolver(w,n.context,Te(e||E.mount,d,n.criteriaMode,n.shouldUseNativeValidation)),V=async(e,t,r={valid:!0})=>{for(const i in e){const o=e[i];if(o){const{_f:e,...i}=o;if(e){const i=E.array.has(e.name),a=await ae(o,w,R,n.shouldUseNativeValidation&&!t,i);if(a[e.name]&&(r.valid=!1,t))break;!t&&(v(a,e.name)?i?G(s.errors,a,e.name):D(s.errors,e.name,a[e.name]):he(s.errors,e.name))}i&&await V(i,t,r)}}return r.valid},z=(e,t)=>(e&&t&&D(w,e,t),!be(re(),b)),Y=(e,t,r)=>N(e,E,{...x.mount?w:m(t)?b:I(e)?{[e]:t}:t},r,t),K=(e,t,r={})=>{const n=v(d,e);let o=t;if(n){const r=n._f;r&&(!r.disabled&&D(w,e,Oe(t,r)),o=Q(r.ref)&&a(t)?"":t,we(r.ref)?[...r.ref.options].forEach(e=>e.selected=o.includes(e.value)):r.refs?i(r.ref)?r.refs.length>1?r.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value)):r.refs[0]&&(r.refs[0].checked=!!o):r.refs.forEach(e=>e.checked=e.value===o):W(r.ref)?r.ref.value="":(r.ref.value=o,r.ref.type||C.values.next({name:e,values:{...w}})))}(r.shouldDirty||r.shouldTouch)&&F(e,o,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&te(e)},J=(e,t,r)=>{for(const n in t){const i=t[n],a=`${e}.${n}`,s=v(d,a);!E.array.has(e)&&ye(i)&&(!s||s._f)||o(i)?K(a,i,r):J(a,i,r)}},X=(e,r,n={})=>{const i=v(d,e),o=E.array.has(e),l=p(r);D(w,e,l),o?(C.array.next({name:e,values:{...w}}),(S.isDirty||S.dirtyFields)&&n.shouldDirty&&C.state.next({name:e,dirtyFields:Ce(b,w),isDirty:z(e,l)})):!i||i._f||a(l)?K(e,l,n):J(e,l,n),H(e,E)&&C.state.next({...s}),C.values.next({name:e,values:{...w}}),!x.mount&&t()},ee=async t=>{const i=t.target;let o=i.name,a=!0;const l=v(d,o);if(l){let c,f;const p=i.type?Pe(l._f):u(t),h=t.type===g.BLUR||t.type===g.FOCUS_OUT,m=!Ie(l._f)&&!n.resolver&&!v(s.errors,o)&&!l._f.deps||Re(h,v(s.touchedFields,o),s.isSubmitted,A,T),y=H(o,E,h);D(w,o,p),h?(l._f.onBlur&&l._f.onBlur(t),r&&r(0)):l._f.onChange&&l._f.onChange(t);const b=F(o,p,h,!1),x=!_(b)||y;if(!h&&C.values.next({name:o,type:t.type,values:{...w}}),m)return S.isValid&&j(),x&&C.state.next({name:o,...y?{}:b});if(!h&&y&&C.state.next({...s}),M(!0),n.resolver){const{errors:e}=await B([o]),t=Ne(s.errors,d,o),r=Ne(e,d,t.name||o);c=r.error,o=r.name,f=_(e)}else c=(await ae(l,w,R,n.shouldUseNativeValidation))[o],a=isNaN(p)||p===v(w,o,p),a&&(c?f=!1:S.isValid&&
172(f=await V(d,!0)));a&&(l._f.deps&&te(l._f.deps),((t,n,i,o)=>{const a=v(s.errors,t),l=S.isValid&&$(n)&&s.isValid!==n;var u;if(e.delayError&&i?(u=()=>((e,t)=>{D(s.errors,e,t),C.state.next({errors:s.errors})})(t,i),r=e=>{clearTimeout(k),k=setTimeout(u,e)},r(e.delayError)):(clearTimeout(k),r=null,i?D(s.errors,t,i):he(s.errors,t)),(i?!be(a,i):a)||!_(o)||l){const e={...o,...l&&$(n)?{isValid:n}:{},errors:s.errors,name:t};s={...s,...e},C.state.next(e)}M(!1)})(o,f,c,b))}},te=async(e,t={})=>{let r,i;const o=O(e);if(M(!0),n.resolver){const t=await(async e=>{const{errors:t}=await B();if(e)for(const r of e){const e=v(t,r);e?D(s.errors,r,e):he(s.errors,r)}else s.errors=t;return t})(m(e)?e:o);r=_(t),i=e?!o.some(e=>v(t,e)):r}else e?(i=(await Promise.all(o.map(async e=>{const t=v(d,e);return await V(t&&t._f?{[e]:t}:t)}))).every(Boolean),(i||s.isValid)&&j()):i=r=await V(d);return C.state.next({...!I(e)||S.isValid&&r!==s.isValid?{}:{name:e},...n.resolver||!e?{isValid:r}:{},errors:s.errors,isValidating:!1}),t.shouldFocus&&!i&&U(d,e=>e&&v(s.errors,e),e?o:E.mount),i},re=e=>{const t={...b,...x.mount?w:{}};return m(e)?t:I(e)?v(t,e):e.map(e=>v(t,e))},ne=(e,t)=>({invalid:!!v((t||s).errors,e),isDirty:!!v((t||s).dirtyFields,e),isTouched:!!v((t||s).touchedFields,e),error:v((t||s).errors,e)}),ie=(e,t={})=>{for(const r of e?O(e):E.mount)E.mount.delete(r),E.array.delete(r),t.keepValue||(he(d,r),he(w,r)),!t.keepError&&he(s.errors,r),!t.keepDirty&&he(s.dirtyFields,r),!t.keepTouched&&he(s.touchedFields,r),!n.shouldUnregister&&!t.keepDefaultValue&&he(b,r);C.values.next({values:{...w}}),C.state.next({...s,...t.keepDirty?{isDirty:z()}:{}}),!t.keepIsValid&&j()},oe=(e,t={})=>{let r=v(d,e);const i=$(t.disabled);return D(d,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),E.mount.add(e),r?i&&D(w,e,t.disabled?void 0:v(w,e,Pe(r._f))):L(e,!0,t.value),{...i?{disabled:t.disabled}:{},...n.shouldUseNativeValidation?{required:!!t.required,min:Ae(t.min),max:Ae(t.max),minLength:Ae(t.minLength),maxLength:Ae(t.maxLength),pattern:Ae(t.pattern)}:{},name:e,onChange:ee,onBlur:ee,ref:i=>{if(i){oe(e,t),r=v(d,e);const n=m(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=xe(n),a=r._f.refs||[];if(o?a.find(e=>e===n):n===r._f.ref)return;D(d,e,{_f:{...r._f,...o?{refs:[...a.filter(Ee),n,...Array.isArray(v(b,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),L(e,!1,void 0,n)}else r=v(d,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!c(E.array,e)||!x.action)&&E.unMount.add(e)}}},se=()=>n.shouldFocusError&&U(d,e=>e&&v(s.errors,e),E.mount),le=(r,n={})=>{const i=r||b,o=p(i),a=r&&!_(r)?o:b;if(n.keepDefaultValues||(b=i),!n.keepValues){if(n.keepDirtyValues||P)for(const e of E.mount)v(s.dirtyFields,e)?D(a,e,v(w,e)):X(e,v(a,e));else{if(f&&m(r))for(const e of E.mount){const t=v(d,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Q(e)){const t=e.closest("form");if(t){t.reset();break}}}}d={}}w=e.shouldUnregister?n.keepDefaultValues?p(b):{}:o,C.array.next({values:{...a}}),C.values.next({values:{...a}})}E={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!x.mount&&t(),x.mount=!S.isValid||!!n.keepIsValid,x.watch=!!e.shouldUnregister,C.state.next({submitCount:n.keepSubmitCount?s.submitCount:0,isDirty:n.keepDirty?s.isDirty:!(!n.keepDefaultValues||be(r,b)),isSubmitted:!!n.keepIsSubmitted&&s.isSubmitted,dirtyFields:n.keepDirtyValues?s.dirtyFields:n.keepDefaultValues&&r?Ce(b,r):{},touchedFields:n.keepTouched?s.touchedFields:{},errors:n.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},ue=(e,t)=>
172le(Z(e)?e(w):e,t);return{control:{register:oe,unregister:ie,getFieldState:ne,_executeSchema:B,_getWatch:Y,_getDirty:z,_updateValid:j,_removeUnmounted:()=>{for(const e of E.unMount){const t=v(d,e);t&&(t._f.refs?t._f.refs.every(e=>!Ee(e)):!Ee(t._f.ref))&&ie(e)}E.unMount=new Set},_updateFieldArray:(e,t=[],r,n,i=!0,o=!0)=>{if(n&&r){if(x.action=!0,o&&Array.isArray(v(d,e))){const t=r(v(d,e),n.argA,n.argB);i&&D(d,e,t)}if(o&&Array.isArray(v(s.errors,e))){const t=r(v(s.errors,e),n.argA,n.argB);i&&D(s.errors,e,t),je(s.errors,e)}if(S.touchedFields&&o&&Array.isArray(v(s.touchedFields,e))){const t=r(v(s.touchedFields,e),n.argA,n.argB);i&&D(s.touchedFields,e,t)}S.dirtyFields&&(s.dirtyFields=Ce(b,w)),C.state.next({name:e,isDirty:z(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else D(w,e,t)},_getFieldArray:t=>h(v(x.mount?w:b,t,e.shouldUnregister?v(b,t,[]):[])),_reset:le,_resetDefaultValues:()=>Z(n.defaultValues)&&n.defaultValues().then(e=>{ue(e,n.resetOptions),C.state.next({isLoading:!1})}),_updateFormState:e=>{s={...s,...e}},_subjects:C,_proxyFormState:S,get _fields(){return d},get _formValues(){return w},get _state(){return x},set _state(e){x=e},get _defaultValues(){return b},get _names(){return E},set _names(e){E=e},get _formState(){return s},set _formState(e){s=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:te,register:oe,handleSubmit:(e,t)=>async r=>{r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let i=p(w);if(C.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await B();s.errors=e,i=t}else await V(d);he(s.errors,"root"),_(s.errors)?(C.state.next({errors:{}}),await e(i,r)):(t&&await t({...s.errors},r),se(),setTimeout(se)),C.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:_(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(e,t)=>Z(e)?C.values.subscribe({next:r=>e(Y(void 0,t),r)}):Y(e,t,!0),setValue:X,getValues:re,reset:ue,resetField:(e,t={})=>{v(d,e)&&(m(t.defaultValue)?X(e,v(b,e)):(X(e,t.defaultValue),D(b,e,t.defaultValue)),t.keepTouched||he(s.touchedFields,e),t.keepDirty||(he(s.dirtyFields,e),s.isDirty=t.defaultValue?z(e,v(b,e)):z()),t.keepError||(he(s.errors,e),S.isValid&&j()),C.state.next({...s}))},clearErrors:e=>{e&&O(e).forEach(e=>he(s.errors,e)),C.state.next({errors:e?s.errors:{}})},unregister:ie,setError:(e,t,r)=>{const n=(v(d,e,{_f:{}})._f||{}).ref;D(s.errors,e,{...t,ref:n}),C.state.next({name:e,errors:s.errors,isValid:!1}),r&&r.shouldFocus&&n&&n.focus&&n.focus()},setFocus:(e,t={})=>{const r=v(d,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:ne}}function Le(e={}){const t=n.useRef(),[r,i]=n.useState({isDirty:!1,isValidating:!1,isLoading:Z(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Z(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...De(e,()=>i(e=>({...e}))),formState:r});const o=t.current.control;return o._options=e,T({subject:o._subjects.state,next:e=>{C(e,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),n.useEffect(()=>{e.values&&!be(e.values,o._defaultValues)?o._reset(e.values,o._options.resetOptions):o._resetDefaultValues()},[e.values,o]),n.useEffect(()=>
172{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=S(r,o),t.current}},93076:function(e,t,r){"use strict";r.d(t,{cC:function(){return Q},Db:function(){return H},$G:function(){return re}});var n=r(64649),i=r(30808);function o(e,t){if(null==e)return{};var r,n,o=(0,i.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var a=r(27378),s=r(33940),l=r(52304),u=r.n(l),c=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function d(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(u()[r[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("--\x3e");return{type:"comment",comment:-1!==n?e.slice(4,n):""}}for(var i=new RegExp(c),o=null;null!==(o=i.exec(e));)if(o[0].trim())if(o[1]){var a=o[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attrs[s[0]]=s[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return t}var f=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,p=/^\s*$/,h=Object.create(null);function m(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var r in e)t.push(r+'="'+e[r]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(m,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var v={parse:function(e,t){t||(t={}),t.components||(t.components=h);var r,n=[],i=[],o=-1,a=!1;if(0!==e.indexOf("<")){var s=e.indexOf("<");n.push({type:"text",content:-1===s?e:e.substring(0,s)})}return e.replace(f,function(s,l){if(a){if(s!=="</"+r.name+">")return;a=!1}var u,c="/"!==s.charAt(1),f=s.startsWith("\x3c!--"),h=l+s.length,m=e.charAt(h);if(f){var v=d(s);return o<0?(n.push(v),n):((u=i[o]).children.push(v),n)}if(c&&(o++,"tag"===(r=d(s)).type&&t.components[r.name]&&(r.type="component",a=!0),r.voidElement||a||!m||"<"===m||r.children.push({type:"text",content:e.slice(h,e.indexOf("<",h))}),0===o&&n.push(r),(u=i[o-1])&&u.children.push(r),i[o]=r),(!c||r.voidElement)&&(o>-1&&(r.voidElement||r.name===s.slice(2,-1))&&(o--,r=-1===o?n:i[o]),!a&&"<"!==m&&m)){u=-1===o?n:i[o].children;var g=e.indexOf("<",h),y=e.slice(h,-1===g?void 0:g);p.test(y)&&(y=" "),(g>-1&&o+u.length>=0||" "!==y)&&u.push({type:"text",content:y})}}),n},stringify:function(e){return e.reduce(function(e,t){return e+m("",t)},"")}},g=v;function y(){if(console&&console.warn){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];"string"==typeof r[0]&&(r[0]="react-i18next:: ".concat(r[0])),(e=console).warn.apply(e,r)}}var b={};function w(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&b[t[0]]||("string"==typeof t[0]&&(b[t[0]]=new Date),y.apply(void 0,t))}var x=function(e,t){return function(){e.isInitialized?t():e.on("initialized",function r(){setTimeout(function(){e.off("initialized",r)},0),t()})}};function E(e,t,r){e.loadNamespaces(t,x(e,r))}function k(e,t,r,n){"string"==typeof r&&(r=[r]),r.forEach(function(t){e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,x(e,n))}var S=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,_={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"â¦","…":"â¦","/":"/","/":"/"},C=function(e){return _[e]};function O(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 P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
172t%2?O(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var T,A={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(S,C)}};function I(){return A}function N(){return T}var R=["format"],j=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function M(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 D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function L(e,t){if(!e)return!1;var r=e.props?e.props.children:e.children;return t?r.length>0:!!r}function F(e){return e?e.props?e.props.children:e.children:[]}function B(e){return Array.isArray(e)?e:[e]}function U(e,t){if(!e)return"";var r="",n=B(e),i=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return n.forEach(function(e,n){if("string"==typeof e)r+="".concat(e);else if((0,a.isValidElement)(e)){var l=Object.keys(e.props).length,u=i.indexOf(e.type)>-1,c=e.props.children;if(!c&&u&&0===l)r+="<".concat(e.type,"/>");else if(c||u&&0===l)if(e.props.i18nIsDynamicList)r+="<".concat(n,"></").concat(n,">");else if(u&&1===l&&"string"==typeof c)r+="<".concat(e.type,">").concat(c,"</").concat(e.type,">");else{var d=U(c,t);r+="<".concat(n,">").concat(d,"</").concat(n,">")}else r+="<".concat(n,"></").concat(n,">")}else if(null===e)y("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===(0,s.Z)(e)){var f=e.format,p=o(e,R),h=Object.keys(p);if(1===h.length){var m=f?"".concat(h[0],", ").concat(f):h[0];r+="{{".concat(m,"}}")}else y("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else y("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)}),r}function V(e){var t=e.children,r=e.count,n=e.parent,i=e.i18nKey,l=e.context,u=e.tOptions,c=void 0===u?{}:u,d=e.values,f=e.defaults,p=e.components,h=e.ns,m=e.i18n,v=e.t,y=e.shouldUnescape,b=o(e,j),x=m||N();if(!x)return w("You will need to pass in an i18next instance by using i18nextReactModule"),t;var E=v||x.t.bind(x)||function(e){return e};l&&(c.context=l);var k=D(D({},I()),x.options&&x.options.react),S=h||E.ns||x.options&&x.options.defaultNS;S="string"==typeof S?[S]:S||["translation"];var _=f||U(t,k)||k.transEmptyNodeValue||i,C=k.hashTransKey,O=i||(C?C(_):_),P=d?c.interpolation:{interpolation:D(D({},c.interpolation),{},{prefix:"#$?",suffix:"?$#"})},T=D(D(D(D({},c),{},{count:r},d),P),{},{defaultValue:_,ns:S}),A=function(e,t,r,n,i,o){if(""===t)return[];var l=n.transKeepBasicHtmlNodesFor||[],u=t&&new RegExp(l.join("|")).test(t);if(!e&&!u)return[t];var c={};!function e(t){B(t).forEach(function(t){"string"!=typeof t&&(L(t)?e(F(t)):"object"!==(0,s.Z)(t)||(0,a.isValidElement)(t)||Object.assign(c,t))})}(e);var d=g.parse("<0>".concat(t,"</0>")),f=D(D({},c),i);function p(e,t,r){var n=F(e),i=m(n,t.children,r);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every(function(e){return(0,a.isValidElement)(e)})}(n)&&0===i.length?n:i}function h(e,t,r,n,i){e.dummy&&(e.children=t),r.push((0,a.cloneElement)(e,D(D({},e.props),{},{key:n}),i?void 0:t))}function m(t,i,c){var d=B(t);return B(i).reduce(function(t,i,v){var g,y,b,w=i.children&&i.children[0]&&i.children[0].content&&r.services.interpolator.interpolate(i.children[0].content,f,r.language);if("tag"===i.type){var x=d[parseInt(i.name,10)];!x&&1===c.length&&c[0][i.name]&&(x=c[0][i.name]),x||(x={});var E=0!==Object.keys(i.attrs).length?(g={props:i.attrs},(b=D({},y=x)).props=Object.assign(g.props,y.props),b):x,k=(0,a.isValidElement)(E),S=k&&L(i,!0)&&!i.voidElement,_=u&&"object"===(0,s.Z)(E)&&E.dummy&&!k,C="object"===(0,s.Z)(e)&&null!==e&&Object.hasOwnProperty.call(e,i.name);if("string"==typeof E){var O=r.services.interpolator.interpolate(E,f,r.language);t.push(O)}
172else if(L(E)||S)h(E,p(E,i,c),t,v);else if(_){var P=m(d,i.children,c);t.push((0,a.cloneElement)(E,D(D({},E.props),{},{key:v}),P))}else if(Number.isNaN(parseFloat(i.name)))if(C)h(E,p(E,i,c),t,v,i.voidElement);else if(n.transSupportBasicHtmlNodes&&l.indexOf(i.name)>-1)if(i.voidElement)t.push((0,a.createElement)(i.name,{key:"".concat(i.name,"-").concat(v)}));else{var T=m(d,i.children,c);t.push((0,a.createElement)(i.name,{key:"".concat(i.name,"-").concat(v)},T))}else if(i.voidElement)t.push("<".concat(i.name," />"));else{var A=m(d,i.children,c);t.push("<".concat(i.name,">").concat(A,"</").concat(i.name,">"))}else if("object"!==(0,s.Z)(E)||k)1===i.children.length&&w?t.push((0,a.cloneElement)(E,D(D({},E.props),{},{key:v}),w)):t.push((0,a.cloneElement)(E,D(D({},E.props),{},{key:v})));else{var I=i.children[0]?w:null;I&&t.push(I)}}else if("text"===i.type){var N=n.transWrapTextNodes,R=o?n.unescape(r.services.interpolator.interpolate(i.content,f,r.language)):r.services.interpolator.interpolate(i.content,f,r.language);N?t.push((0,a.createElement)(N,{key:"".concat(i.name,"-").concat(v)},R)):t.push(R)}return t},[])}return F(m([{dummy:!0,children:e||[]}],d,B(e||[]))[0])}(p||t,O?E(O,T):_,x,k,T,y),R=void 0!==n?n:k.defaultTransParent;return R?(0,a.createElement)(R,b,A):A}var z=r(22951),q=r(91976),H={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};A=P(P({},A),e)}(e.options.react),function(e){T=e}(e)}},G=(0,a.createContext)(),$=function(){function e(){(0,z.Z)(this,e),this.usedNamespaces={}}return(0,q.Z)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach(function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}(),W=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function Z(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 Q(e){var t=e.children,r=e.count,i=e.parent,s=e.i18nKey,l=e.context,u=e.tOptions,c=void 0===u?{}:u,d=e.values,f=e.defaults,p=e.components,h=e.ns,m=e.i18n,v=e.t,g=e.shouldUnescape,y=o(e,W),b=(0,a.useContext)(G)||{},w=b.i18n,x=b.defaultNS,E=m||w||N(),k=v||E&&E.t.bind(E);return V(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({children:t,count:r,parent:i,i18nKey:s,context:l,tOptions:c,values:d,defaults:f,components:p,ns:h||k&&k.ns||x||E&&E.options&&E.options.defaultNS,i18n:E,t:v,shouldUnescape:g},y))}var Y=r(66470),K=r(64013),J=r(53764);function X(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 ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?X(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var te=function(e,t){var r=(0,a.useRef)();return(0,a.useEffect)(function(){r.current=t?r.current:e},[e,t]),r.current};function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.i18n,n=(0,a.useContext)(G)||{},i=n.i18n,o=n.defaultNS,l=r||i||N();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new $),!l){w("You will need to pass in an i18next instance by using initReactI18next");var u=function(e,t){return"string"==typeof t?t:t&&"object"===(0,s.Z)(t)&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},c=[u,{},!1];return c.t=u,c.i18n={},c.ready=!1,c}l.options.react&&void 0!==l.options.react.wait&&w("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var d=ee(ee(ee({},I()),l.options.react),t),f=d.useSuspense,p=d.keyPrefix,h=e||o||l.options&&l.options.defaultNS;h="string"==typeof h?[h]:h||["translation"],l.reportNamespaces.addUsedNamespaces&&l.reportNamespaces.addUsedNamespaces(h);var m=(l.isInitialized||l.initializedStoreOnce)&&h.every(function(e){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:r.lng,precheck:function(t,n){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.
172isLanguageChangingTo,e))return!1}}):function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(n,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(n,e)||i&&!a(o,e)))}(e,t,r):(w("i18n.languages were undefined or empty",t.languages),!0)}(e,l,d)});function v(){return l.getFixedT(t.lng||null,"fallback"===d.nsMode?h:h[0],p)}var g=function(e,t){return(0,Y.Z)(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||(0,K.Z)(e,t)||(0,J.Z)()}((0,a.useState)(v),2),y=g[0],b=g[1],x=h.join();t.lng&&(x="".concat(t.lng).concat(x));var S=te(x),_=(0,a.useRef)(!0);(0,a.useEffect)(function(){var e=d.bindI18n,r=d.bindI18nStore;function n(){_.current&&b(v)}return _.current=!0,m||f||(t.lng?k(l,t.lng,h,function(){_.current&&b(v)}):E(l,h,function(){_.current&&b(v)})),m&&S&&S!==x&&_.current&&b(v),e&&l&&l.on(e,n),r&&l&&l.store.on(r,n),function(){_.current=!1,e&&l&&e.split(" ").forEach(function(e){return l.off(e,n)}),r&&l&&r.split(" ").forEach(function(e){return l.store.off(e,n)})}},[l,x]);var C=(0,a.useRef)(!0);(0,a.useEffect)(function(){_.current&&!C.current&&b(v),C.current=!1},[l,p]);var O=[y,l,m];if(O.t=y,O.i18n=l,O.ready=m,m)return O;if(!m&&!f)return O;throw new Promise(function(e){t.lng?k(l,t.lng,h,function(){return e()}):E(l,h,function(){return e()})})}},917:function(e,t,r){"use strict";r.d(t,{Q_:function(){return Kt},ZP:function(){return Ur}});var n=r(27378);function i(e){return t=>typeof t===e}var o=i("function"),a=e=>"RegExp"===Object.prototype.toString.call(e).slice(8,-1),s=e=>!l(e)&&!(e=>null===e)(e)&&(o(e)||"object"==typeof e),l=i("undefined");function u(e,t){if(e===t)return!0;if(e&&s(e)&&t&&s(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return function(e,t){const{length:r}=e;if(r!==t.length)return!1;for(let n=r;0!==n--;)if(!u(e[n],t[n]))return!1;return!0}(e,t);if(e instanceof Map&&t instanceof Map)return function(e,t){if(e.size!==t.size)return!1;for(const r of e.entries())if(!t.has(r[0]))return!1;for(const r of e.entries())if(!u(r[1],t.get(r[0])))return!1;return!0}(e,t);if(e instanceof Set&&t instanceof Set)return function(e,t){if(e.size!==t.size)return!1;for(const r of e.entries())if(!t.has(r[0]))return!1;return!0}(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return function(e,t){if(e.byteLength!==t.byteLength)return!1;const r=new DataView(e.buffer),n=new DataView(t.buffer);let i=e.byteLength;for(;i--;)if(r.getUint8(i)!==n.getUint8(i))return!1;return!0}(e,t);if(a(e)&&a(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let e=r.length;0!==e--;)if(!Object.prototype.hasOwnProperty.call(t,r[e]))return!1;for(let n=r.length;0!==n--;){const i=r[n];if(!("_owner"===i&&e.$$typeof||u(e[i],t[i])))return!1}return!0}return!(!Number.isNaN(e)||!Number.isNaN(t))||e===t}var c=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],d=["bigint","boolean","null","number","string","symbol","undefined"];function f(e){const t=Object.prototype.toString.call(e).slice(8,-1);return/HTML\w+Element/.test(t)?"HTMLElement":(r=t,c.includes(r)?t:void 0);var r}function p(e){return t=>f(t)===e}function h(e){return t=>typeof t===e}var m=["innerHTML","ownerDocument","style","attributes","nodeValue"];function v(e){if(null===e)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(v.array(e))return"Array";if(v.plainFunction(e))return"Function";return f(e)||"Object"}v.array=Array.isArray,v.arrayOf=(e,t)=>!(!v.array(e)&&!v.function(t))&&e.every(e=>t(e)),v.asyncGeneratorFunction=e=>"AsyncGeneratorFunction"===f(e),v.asyncFunction=p("AsyncFunction"),v.bigint=h("bigint"),v.boolean=e=>!0===e||!1===e,v.date=p("Date"),v.defined=e=>!v.undefined(e),v.domElement=e=>v.object(e)&&!v.plainObject(e)&&1===e.nodeType&&v.string(e.nodeName)&&m.every(t=>t in e),v.empty=e=>v.string(e)&&0===e.length||v.array(e)&&0===e.length||v.object(e)&&!v.map(e)&&!v.set(e)&&0===Object.keys(e).length||v.set(e)&&0===e.size||v.map(e)&&0===e.size,v.error=p("Error"),v.function=h("function"),v.generator=e=>v.iterable(e)&&v.function(e.next)&&v.function(e.throw),v.generatorFunction=p("GeneratorFunction"),v.instanceOf=(e,t)=>!(!e||!t)&&Object.getPrototypeOf(e)===t.prototype,v.iterable=e=>!v.nullOrUndefined(e)&&v.function(e[Symbol.iterator]),v.map=p("Map"),v.nan=e=>Number.isNaN(e),v.null=e=>null===e,v.nullOrUndefined=e=>v.null(e)||v.undefined(e),v.number=e=>h("number")(e)&&!v.nan(e),v.numericString=e=>v.string(e)&&e.length>0&&!Number.isNaN(Number(e)),v.object=e=>!v.nullOrUndefined(e)&&(v.function(e)||"object"==typeof e),v.oneOf=(e,t)=>!!v.array(e)&&e.indexOf(t)>-1,v.plainFunction=p("Function"),v.plainObject=e=>{if("Object"!==f(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})},v.primitive=e=>{return v.null(e)||(t=typeof e,d.includes(t));var t},v.promise=p("Promise"),v.propertyOf=(e,t,r)=>{if(!v.object(e)||!t)return!1;const n=e[t];return v.function(r)?r(n):v.defined(n)},v.regexp=p("RegExp"),v.set=p("Set"),v.string=h("string"),v.symbol=h("symbol"),v.undefined=h("undefined"),v.weakMap=p("WeakMap"),v.weakSet=p("WeakSet");var g=v;function y(e,t,r){const{actual:n,key:i,previous:o,type:a}=r,s=C(e,i),l=C(t,i);let u=[s,l].every(g.number)&&("increased"===a?s<l:s>l);return g.undefined(n)||(u=u&&l===n),g.undefined(o)||(u=u&&s===o),u}function b(e,t,r){const{key:n,type:i,value:o}=r,a=C(e,n),s=C(t,n),l="added"===i?a:s,c="added"===i?s:a;return g.nullOrUndefined(o)?[a,s].every(g.array)?!c.every(S(l)):[a,s].every(g.plainObject)?function(e,t){return t.some(t=>!e.includes(t))}(Object.keys(l),Object.keys(c)):![a,s].every(e=>g.primitive(e)&&g.defined(e))&&("added"===i?!g.defined(a)&&g.defined(s):g.defined(a)&&!g.defined(s)):g.defined(l)?!(!g.array(l)&&!g.plainObject(l))&&function(e,t,r){return!!_(e,t)&&([e,t].every(g.array)?!e.some(E(r))&&t.some(E(r)):[e,t].every(g.plainObject)?!Object.entries(e).some(x(r))&&Object.entries(t).some(x(r)):t===r)}(l,c,o):u(c,o)}function w(e,t,{key:r}={}){let n=C(e,r),i=C(t,r);if(!_(n,i))throw new TypeError("Inputs have different types");if(!function(...e){return e.every(e=>g.string(e)||g.array(e)||g.plainObject(e))}(n,i))throw new TypeError("Inputs don't have length");return[n,i].every(g.plainObject)&&(n=Object.keys(n),i=Object.keys(i)),[n,i]}function x(e){return([t,r])=>g.array(e)?u(e,r)||e.some(e=>u(e,r)||g.array(r)&&S(r)(e)):g.plainObject(e)&&e[t]?!!e[t]&&u(e[t],r):u(e,r)}function E(e){return t=>g.array(e)?e.some(e=>u(e,t)||g.array(t)&&S(t)(e)):u(e,t)}function k(e,t){return g.array(e)?e.some(e=>u(e,t)):u(e,t)}function S(e){return t=>e.some(e=>u(e,t))}function _(...e){return e.every(g.array)||e.every(g.number)||e.every(g.plainObject)||e.every(g.string)}function C(e,t){return g.plainObject(e)||g.array(e)?g.string(t)?t.split(".").reduce((e,t)=>
172e&&e[t],e):g.number(t)?e[t]:e:e}function O(e,t){if([e,t].some(g.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(e=>g.plainObject(e)||g.array(e)))throw new Error("Expected plain objects or array");return{added:(r,n)=>{try{return b(e,t,{key:r,type:"added",value:n})}catch{return!1}},changed:(r,n,i)=>{try{const o=C(e,r),a=C(t,r),s=g.defined(n),l=g.defined(i);if(s||l){const e=l?k(i,o):!k(n,o),t=k(n,a);return e&&t}return[o,a].every(g.array)||[o,a].every(g.plainObject)?!u(o,a):o!==a}catch{return!1}},changedFrom:(r,n,i)=>{if(!g.defined(r))return!1;try{const o=C(e,r),a=C(t,r),s=g.defined(i);return k(n,o)&&(s?k(i,a):!s)}catch{return!1}},decreased:(r,n,i)=>{if(!g.defined(r))return!1;try{return y(e,t,{key:r,actual:n,previous:i,type:"decreased"})}catch{return!1}},emptied:r=>{try{const[n,i]=w(e,t,{key:r});return!!n.length&&!i.length}catch{return!1}},filled:r=>{try{const[n,i]=w(e,t,{key:r});return!n.length&&!!i.length}catch{return!1}},increased:(r,n,i)=>{if(!g.defined(r))return!1;try{return y(e,t,{key:r,actual:n,previous:i,type:"increased"})}catch{return!1}},removed:(r,n)=>{try{return b(e,t,{key:r,type:"removed",value:n})}catch{return!1}}}}var P=r(51835),T=r(2650),A=r(31542),I=r(28186),N=r(21857),R=r.n(N),j=r(23615),M=r.n(j),D="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,L=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(D&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}(),F=D&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},L))}};function B(e){return e&&"[object Function]"==={}.toString.call(e)}function U(e,t){if(1!==e.nodeType)return[];var r=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?r[t]:r}function V(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function z(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=U(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(r+i+n)?e:z(V(e))}function q(e){return e&&e.referenceNode?e.referenceNode:e}var H=D&&!(!window.MSInputMethodContext||!document.documentMode),G=D&&/MSIE 10/.test(navigator.userAgent);function $(e){return 11===e?H:10===e?G:H||G}function W(e){if(!e)return document.documentElement;for(var t=$(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var n=r&&r.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(r.nodeName)&&"static"===U(r,"position")?W(r):r:e?e.ownerDocument.documentElement:document.documentElement}function Z(e){return null!==e.parentNode?Z(e.parentNode):e}function Q(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?e:t,i=r?t:e,o=document.createRange();o.setStart(n,0),o.setEnd(i,0);var a,s,l=o.commonAncestorContainer;if(e!==l&&t!==l||n.contains(i))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&W(a.firstElementChild)!==a?W(l):l;var u=Z(e);return u.host?Q(u.host,t):Q(e,Z(t).host)}function Y(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var n=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||n)[t]}return e[t]}function K(e,t){var r="x"===t?"Left":"Top",n="Left"===r?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+n+"Width"])}function J(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],$(10)?parseInt(r["offset"+e])+parseInt(n["margin"+("Height"===e?"Top":"Left")])+parseInt(n["margin"+("Height"===e?"Bottom":"Right")]):0)}function X(e){var t=e.body,r=e.documentElement,n=$(10)&&getComputedStyle(r);return{height:J("Height",t,r,n),width:J("Width",t,r,n)}}var ee=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),te=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},re=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 16,588 bytes, line 172
172for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function ne(e){return re({},e,{right:e.left+e.width,bottom:e.top+e.height})}function ie(e){var t={};try{if($(10)){t=e.getBoundingClientRect();var r=Y(e,"top"),n=Y(e,"left");t.top+=r,t.left+=n,t.bottom+=r,t.right+=n}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?X(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,s=o.height||e.clientHeight||i.height,l=e.offsetWidth-a,u=e.offsetHeight-s;if(l||u){var c=U(e);l-=K(c,"x"),u-=K(c,"y"),i.width-=l,i.height-=u}return ne(i)}function oe(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=$(10),i="HTML"===t.nodeName,o=ie(e),a=ie(t),s=z(e),l=U(t),u=parseFloat(l.borderTopWidth),c=parseFloat(l.borderLeftWidth);r&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=ne({top:o.top-a.top-u,left:o.left-a.left-c,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!n&&i){var f=parseFloat(l.marginTop),p=parseFloat(l.marginLeft);d.top-=u-f,d.bottom-=u-f,d.left-=c-p,d.right-=c-p,d.marginTop=f,d.marginLeft=p}return(n&&!r?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Y(t,"top"),i=Y(t,"left"),o=r?-1:1;return e.top+=n*o,e.bottom+=n*o,e.left+=i*o,e.right+=i*o,e}(d,t)),d}function ae(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===U(e,"position"))return!0;var r=V(e);return!!r&&ae(r)}function se(e){if(!e||!e.parentElement||$())return document.documentElement;for(var t=e.parentElement;t&&"none"===U(t,"transform");)t=t.parentElement;return t||document.documentElement}function le(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?se(e):Q(e,q(t));if("viewport"===n)o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.ownerDocument.documentElement,n=oe(e,r),i=Math.max(r.clientWidth,window.innerWidth||0),o=Math.max(r.clientHeight,window.innerHeight||0),a=t?0:Y(r),s=t?0:Y(r,"left");return ne({top:a-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:i,height:o})}(a,i);else{var s=void 0;"scrollParent"===n?"BODY"===(s=z(V(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===n?e.ownerDocument.documentElement:n;var l=oe(s,a,i);if("HTML"!==s.nodeName||ae(a))o=l;else{var u=X(e.ownerDocument),c=u.height,d=u.width;o.top+=l.top-l.marginTop,o.bottom=c+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}}var f="number"==typeof(r=r||0);return o.left+=f?r:r.left||0,o.top+=f?r:r.top||0,o.right-=f?r:r.right||0,o.bottom-=f?r:r.bottom||0,o}function ue(e,t,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=le(r,n,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map(function(e){return re({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),u=l.filter(function(e){var t=e.width,n=e.height;return t>=r.clientWidth&&n>=r.clientHeight}),c=u.length>0?u[0].key:l[0].key,d=e.split("-")[1];return c+(d?"-"+d:"")}function ce(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return oe(r,n?se(t):Q(t,q(r)),n)}function de(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),r=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),n=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+n,height:e.offsetHeight+r}}function fe(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function pe(e,t,r){r=r.split("-")[0];var n=de(e),i={width:n.width,height:n.height},o=-1!==["right","left"].indexOf(r),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return i[a]=t[a]+t[l]/2-n[l]/2,i[s]=r===s?t[s]-n[u]:t[fe(s)],i}function he(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function me(e,t,r){return(void 0===r?e:e.slice(0,function(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===r});var n=he(e,function(e){return e[t]===r});return e.indexOf(n)}(e,"name",r))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=e.function||e.fn;e.enabled&&B(r)&&(t.offsets.popper=ne(t.offsets.popper),t.offsets.reference=ne(t.offsets.reference),t=r(t,e))}),t}function ve(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=ce(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=ue(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=pe(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=me(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function ge(e,t){return e.some(function(e){var r=e.name;return e.enabled&&r===t})}function ye(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var i=t[n],o=i?""+i+r:e;if(void 0!==document.body.style[o])return o}return null}function be(){return this.state.isDestroyed=!0,ge(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ye("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function we(e){var t=e.ownerDocument;return t?t.defaultView:window}function xe(e,t,r,n){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,r,{passive:!0}),i||xe(z(o.parentNode),t,r,n),n.push(o)}function Ee(e,t,r,n){r.updateBound=n,we(e).addEventListener("resize",r.updateBound,{passive:!0});var i=z(e);return xe(i,"scroll",r.updateBound,r.scrollParents),r.scrollElement=i,r.eventsEnabled=!0,r}function ke(){this.state.eventsEnabled||(this.state=Ee(this.reference,this.options,this.state,this.scheduleUpdate))}function Se(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,we(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function _e(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Ce(e,t){Object.keys(t).forEach(function(r){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(r)&&_e(t[r])&&(n="px"),e.style[r]=t[r]+n})}var Oe=D&&/Firefox/i.test(navigator.userAgent);function Pe(e,t,r){var n=he(e,function(e){return e.name===t}),i=!!n&&e.some(function(e){return e.name===r&&e.enabled&&e.order<n.order});if(!i){var o="`"+t+"`",a="`"+r+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var Te=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Ae=Te.slice(3);function Ie(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=Ae.indexOf(e),n=Ae.slice(r+1).concat(Ae.slice(0,r));return t?n.reverse():n}var Ne={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,r=t.split("-")[0],n=t.split("-")[1];if(n){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(r),l=s?"left":"top",u=s?"width":"height",c={start:te({},l,o[l]),end:te({},l,o[l]+o[u]-a[u])};e.offsets.popper=re({},a,c[n])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var r,n=t.offset,i=e.placement,o=e.offsets,a=o.popper,s=o.reference,l=i.split("-")[0];return r=_e(+n)?[+n,0]:function(e,t,r,n){var i=[0,0],o=-1!==["right","left"].indexOf(n),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=a.indexOf(he(a,function(e){return-1!==e.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(u=u.map(function(e,n){var i=(1===n?!o:o)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,r,n){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];return o?0===a.indexOf("%")?ne("%p"===a?r:n)[t]/100*o:"vh"===a||"vw"===a?("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o:o:e}(e,i,t,r)})})).forEach(function(e,t){e.forEach(function(r,n){_e(r)&&(i[t]+=r*("-"===e[n-1]?-1:1))})}),i}(n,a,s,l),"left"===l?(a.top+=r[0],a.left-=r[1]):"right"===l?(a.top+=r[0],a.left+=r[1]):"top"===l?(a.left+=r[0],a.top-=r[1]):"bottom"===l&&(a.left+=r[0],a.top+=r[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var r=t.boundariesElement||W(e.instance.popper);e.instance.reference===r&&(r=W(r));var n=ye("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[n];i.top="",i.left="",i[n]="";var l=le(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);i.top=o,i.left=a,i[n]=s,t.boundaries=l;var u=t.priority,c=e.offsets.popper,d={primary:function(e){var r=c[e];return c[e]<l[e]&&!t.escapeWithReference&&(r=Math.max(c[e],l[e])),te({},e,r)},secondary:function(e){var r="right"===e?"left":"top",n=c[r];return c[e]>l[e]&&!t.escapeWithReference&&(n=Math.min(c[r],l[e]-("right"===e?c.width:c.height))),te({},r,n)}};return u.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=re({},c,d[t](e))}),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,r=t.popper,n=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return r[s]<o(n[l])&&(e.offsets.popper[l]=o(n[l])-r[u]),r[l]>o(n[s])&&(e.offsets.popper[l]=o(n[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var r;if(!Pe(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if("string"==typeof n){if(!(n=e.instance.popper.querySelector(n)))return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(i),u=l?"height":"width",c=l?"Top":"Left",d=c.toLowerCase(),f=l?"left":"top",p=l?"bottom":"right",h=de(n)[u];s[p]-h<a[d]&&(e.offsets.popper[d]-=a[d]-(s[p]-h)),s[d]+h>a[p]&&(e.offsets.popper[d]+=s[d]+h-a[p]),e.offsets.popper=ne(e.offsets.popper);var m=s[d]+s[u]/2-h/2,v=U(e.instance.popper),g=parseFloat(v["margin"+c]),y=parseFloat(v["border"+c+"Width"]),b=m-e.offsets.popper[d]-g-y;return b=Math.max(Math.min(a[u]-h,b),0),e.arrowElement=n,e.offsets.arrow=(te(r={},d,Math.round(b)),te(r,f,""),r),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(ge(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var r=le(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],i=fe(n),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case"flip":a=[n,i];break;case"clockwise":a=Ie(n);break;case"counterclockwise":a=Ie(n,!0);break;default:a=t.behavior}return a.forEach(function(s,l){if(n!==s||a.length===l+1)return e;n=e.placement.split("-")[0],i=fe(n);var u=e.offsets.popper,c=e.offsets.reference,d=Math.floor,f="left"===n&&d(u.right)>d(c.left)||"right"===n&&d(u.left)<d(c.right)||"top"===n&&d(u.bottom)>d(c.top)||"bottom"===n&&d(u.top)<d(c.bottom),p=d(u.left)<d(r.left),h=d(u.right)>d(r.right),m=d(u.top)<d(r.top),v=d(u.bottom)>d(r.bottom),g="left"===n&&p||"right"===n&&h||"top"===n&&m||"bottom"===n&&v,y=-1!==["top","bottom"].indexOf(n),b=!!t.flipVariations&&(y&&"start"===o&&p||y&&"end"===o&&h||!y&&"start"===o&&m||!y&&"end"===o&&v),w=!!t.flipVariationsByContent&&(y&&"start"===o&&h||y&&"end"===o&&p||!y&&"start"===o&&v||!y&&"end"===o&&m),x=b||w;(f||g||x)&&(e.flipped=!0,(f||g)&&(n=a[l+1]),x&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=n+(o?"-"+o:""),e.offsets.popper=re({},e.offsets.popper,pe(e.instance.popper,e.offsets.reference,e.placement)),e=me(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,r=t.split("-")[0],n=e.offsets,i=n.popper,o=n.reference,a=-1!==["left","right"].indexOf(r),s=-1===["top","left"].indexOf(r);return i[a?"left":"top"]=o[r]-(s?i[a?"width":"height"]:0),e.placement=fe(t),e.offsets.popper=ne(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Pe(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=he(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var r=t.x,n=t.y,i=e.offsets.popper,o=he(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a,s,l=void 0!==o?o:t.gpuAcceleration,u=W(e.instance.popper),c=ie(u),d={position:i.position},f=function(e,t){var r=e.offsets,n=r.popper,i=r.reference,o=Math.round,a=Math.floor,s=function(e){return e},l=o(i.width),u=o(n.width),c=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),f=t?c||d||l%2==u%2?o:a:s,p=t?o:s;return{left:f(l%2==1&&u%2==1&&!d&&t?n.left-1:n.left),top:p(n.top),bottom:p(n.bottom),right:f(n.right)}}(e,window.devicePixelRatio<2||!Oe),p="bottom"===r?"top":"bottom",h="right"===n?"left":"right",m=ye("transform");if(s="bottom"===p?"HTML"===u.nodeName?-u.clientHeight+f.bottom:-c.height+f.bottom:f.top,a="right"===h?"HTML"===u.nodeName?-u.clientWidth+f.right:-c.width+f.right:f.left,l&&m)d[m]="translate3d("+a+"px, "+s+"px, 0)",d[p]=0,d[h]=0,d.willChange="transform";else{var v="bottom"===p?-1:1,g="right"===h?-1:1;d[p]=s*v,d[h]=a*g,d.willChange=p+", "+h}var y={"x-placement":e.placement};return e.attributes=re({},y,e.attributes),e.styles=re({},d,e.styles),e.arrowStyles=re({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,r;return Ce(e.instance.popper,e.styles),t=e.instance.popper,r=e.attributes,Object.keys(r).forEach(function(e){!1!==r[e]?t.setAttribute(e,r[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&Ce(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,r,n,i){var o=ce(i,t,e,r.positionFixed),a=ue(r.placement,o,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",a),Ce(t,{position:r.positionFixed?"fixed":"absolute"}),r},gpuAcceleration:void 0}},Re={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Ne},je=function(){function e(t,r){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=F(this.update.bind(this)),this.options=re({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(re({}
172,e.Defaults.modifiers,i.modifiers)).forEach(function(t){n.options.modifiers[t]=re({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return re({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&B(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return ee(e,[{key:"update",value:function(){return ve.call(this)}},{key:"destroy",value:function(){return be.call(this)}},{key:"enableEventListeners",value:function(){return ke.call(this)}},{key:"disableEventListeners",value:function(){return Se.call(this)}}]),e}();je.Utils=("undefined"!=typeof window?window:r.g).PopperUtils,je.placements=Te,je.Defaults=Re;var Me=je,De=["innerHTML","ownerDocument","style","attributes","nodeValue"],Le=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Fe=["bigint","boolean","null","number","string","symbol","undefined"];function Be(e){var t,r=Object.prototype.toString.call(e).slice(8,-1);return/HTML\w+Element/.test(r)?"HTMLElement":(t=r,Le.includes(t)?r:void 0)}function Ue(e){return function(t){return Be(t)===e}}function Ve(e){return function(t){return typeof t===e}}function ze(e){if(null===e)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}return ze.array(e)?"Array":ze.plainFunction(e)?"Function":Be(e)||"Object"}ze.array=Array.isArray,ze.arrayOf=function(e,t){return!(!ze.array(e)&&!ze.function(t))&&e.every(function(e){return t(e)})},ze.asyncGeneratorFunction=function(e){return"AsyncGeneratorFunction"===Be(e)},ze.asyncFunction=Ue("AsyncFunction"),ze.bigint=Ve("bigint"),ze.boolean=function(e){return!0===e||!1===e},ze.date=Ue("Date"),ze.defined=function(e){return!ze.undefined(e)},ze.domElement=function(e){return ze.object(e)&&!ze.plainObject(e)&&1===e.nodeType&&ze.string(e.nodeName)&&De.every(function(t){return t in e})},ze.empty=function(e){return ze.string(e)&&0===e.length||ze.array(e)&&0===e.length||ze.object(e)&&!ze.map(e)&&!ze.set(e)&&0===Object.keys(e).length||ze.set(e)&&0===e.size||ze.map(e)&&0===e.size},ze.error=Ue("Error"),ze.function=Ve("function"),ze.generator=function(e){return ze.iterable(e)&&ze.function(e.next)&&ze.function(e.throw)},ze.generatorFunction=Ue("GeneratorFunction"),ze.instanceOf=function(e,t){return!(!e||!t)&&Object.getPrototypeOf(e)===t.prototype},ze.iterable=function(e){return!ze.nullOrUndefined(e)&&ze.function(e[Symbol.iterator])},ze.map=Ue("Map"),ze.nan=function(e){return Number.isNaN(e)},ze.null=function(e){return null===e},ze.nullOrUndefined=function(e){return ze.null(e)||ze.undefined(e)},ze.number=function(e){return Ve("number")(e)&&!ze.nan(e)},ze.numericString=function(e){return ze.string(e)&&e.length>0&&!Number.isNaN(Number(e))},ze.object=function(e){return!ze.nullOrUndefined(e)&&(ze.function(e)||"object"==typeof e)},ze.oneOf=function(e,t){return!!ze.array(e)&&e.indexOf(t)>-1},ze.plainFunction=Ue("Function"),ze.plainObject=function(e){if("Object"!==Be(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})},ze.primitive=function(e){return ze.null(e)||(t=typeof e,Fe.includes(t));var t},ze.promise=Ue("Promise"),ze.propertyOf=function(e,t,r){if(!ze.object(e)||!t)return!1;var n=e[t];return ze.function(r)?r(n):ze.defined(n)},ze.regexp=Ue("RegExp"),ze.set=Ue("Set"),ze.string=Ve("string"),ze.symbol=Ve("symbol"),ze.undefined=Ve("undefined"),ze.weakMap=Ue("WeakMap"),ze.weakSet=Ue("WeakSet");var qe=ze;function He(e){return function(t){return typeof t===e}}var Ge=He("function"),$e=function(e){return"RegExp"===Object.prototype.toString.call(e).slice(8,-1)},We=function(e){return!Ze(e)&&!function(e){return null===e}(e)&&(Ge(e)||"object"==typeof e)},Ze=He("undefined"),Qe=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
172if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function Ye(e,t){if(e===t)return!0;if(e&&We(e)&&t&&We(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return function(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=r;0!==n--;)if(!Ye(e[n],t[n]))return!1;return!0}(e,t);if(e instanceof Map&&t instanceof Map)return function(e,t){var r,n,i,o;if(e.size!==t.size)return!1;try{for(var a=Qe(e.entries()),s=a.next();!s.done;s=a.next()){var l=s.value;if(!t.has(l[0]))return!1}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}try{for(var u=Qe(e.entries()),c=u.next();!c.done;c=u.next())if(!Ye((l=c.value)[1],t.get(l[0])))return!1}catch(e){i={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return!0}(e,t);if(e instanceof Set&&t instanceof Set)return function(e,t){var r,n;if(e.size!==t.size)return!1;try{for(var i=Qe(e.entries()),o=i.next();!o.done;o=i.next()){var a=o.value;if(!t.has(a[0]))return!1}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!0}(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=new DataView(e.buffer),n=new DataView(t.buffer),i=e.byteLength;i--;)if(r.getUint8(i)!==n.getUint8(i))return!1;return!0}(e,t);if($e(e)&&$e(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=r.length;0!==i--;)if(!Object.prototype.hasOwnProperty.call(t,r[i]))return!1;for(i=r.length;0!==i--;){var o=r[i];if(!("_owner"===o&&e.$$typeof||Ye(e[o],t[o])))return!1}return!0}return!(!Number.isNaN(e)||!Number.isNaN(t))||e===t}function Ke(e,t,r){var n=r.actual,i=r.key,o=r.previous,a=r.type,s=ot(e,i),l=ot(t,i),u=[s,l].every(qe.number)&&("increased"===a?s<l:s>l);return qe.undefined(n)||(u=u&&l===n),qe.undefined(o)||(u=u&&s===o),u}function Je(e,t,r){var n=r.key,i=r.type,o=r.value,a=ot(e,n),s=ot(t,n),l="added"===i?a:s,u="added"===i?s:a;return qe.nullOrUndefined(o)?[a,s].every(qe.array)?!u.every(nt(l)):[a,s].every(qe.plainObject)?function(e,t){return t.some(function(t){return!e.includes(t)})}(Object.keys(l),Object.keys(u)):![a,s].every(function(e){return qe.primitive(e)&&qe.defined(e)})&&("added"===i?!qe.defined(a)&&qe.defined(s):qe.defined(a)&&!qe.defined(s)):qe.defined(l)?!(!qe.array(l)&&!qe.plainObject(l))&&function(e,t,r){return!!it(e,t)&&([e,t].every(qe.array)?!e.some(tt(r))&&t.some(tt(r)):[e,t].every(qe.plainObject)?!Object.entries(e).some(et(r))&&Object.entries(t).some(et(r)):t===r)}(l,u,o):Ye(u,o)}function Xe(e,t,r){var n=(void 0===r?{}:r).key,i=ot(e,n),o=ot(t,n);if(!it(i,o))throw new TypeError("Inputs have different types");if(!function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(e){return qe.string(e)||qe.array(e)||qe.plainObject(e)})}(i,o))throw new TypeError("Inputs don't have length");return[i,o].every(qe.plainObject)&&(i=Object.keys(i),o=Object.keys(o)),[i,o]}function et(e){return function(t){var r=t[0],n=t[1];return qe.array(e)?Ye(e,n)||e.some(function(e){return Ye(e,n)||qe.array(n)&&nt(n)(e)}):qe.plainObject(e)&&e[r]?!!e[r]&&Ye(e[r],n):Ye(e,n)}}function tt(e){return function(t){return qe.array(e)?e.some(function(e){return Ye(e,t)||qe.array(t)&&nt(t)(e)}):Ye(e,t)}}function rt(e,t){return qe.array(e)?e.some(function(e){return Ye(e,t)}):Ye(e,t)}function nt(e){return function(t){return e.some(function(e){return Ye(e,t)})}}function it(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(qe.array)||e.every(qe.number)||e.every(qe.plainObject)||e.every(qe.string)}function ot(e,t){return qe.plainObject(e)||qe.array(e)?qe.string(t)?t.split(".").reduce(function(e,t){return e&&e[t]},e):qe.number(t)?e[t]:e:e}function at(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 st(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
172t%2?at(Object(r),!0).forEach(function(t){dt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):at(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ut(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yt(n.key),n)}}function ct(e,t,r){return t&&ut(e.prototype,t),r&&ut(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dt(e,t,r){return(t=yt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ft(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ht(e,t)}function pt(e){return pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pt(e)}function ht(e,t){return ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ht(e,t)}function mt(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function vt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=pt(e);if(t){var i=pt(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vt(e)}(this,r)}}function yt(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var bt={flip:{padding:20},preventOverflow:{padding:10}};function wt(e,t,r){return function(e,t){if("function"!=typeof e)throw new TypeError("The typeValidator argument must be a function with the signature function(props, propName, componentName).");if(Boolean(t)&&"string"!=typeof t)throw new TypeError("The error message is optional, but must be a string if provided.")}(e,r),function(n,i,o){for(var a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];return function(e,t,r,n){return"boolean"==typeof e?e:"function"==typeof e?e(t,r,n):!0===Boolean(e)&&Boolean(e)}(t,n,i,o)?function(e,t){return Object.hasOwnProperty.call(e,t)}(n,i)?e.apply(void 0,[n,i,o].concat(s)):function(e,t,r,n){return n?new Error(n):new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(r,"`."))}(n,i,o,r):e.apply(void 0,[n,i,o].concat(s))}}var xt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},Et=void 0!==A.createPortal;function kt(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function St(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function _t(e){var t=e.title,r=e.data,n=e.warn,i=void 0!==n&&n,o=e.debug,a=void 0!==o&&o,s=i?console.warn||console.error:console.log;a&&t&&r&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(r)?r.forEach(function(e){qe.plainObject(e)&&e.key?s.apply(console,[e.key,e.value]):s.apply(console,[e])}):s.apply(console,[r]),console.groupEnd())}function Ct(){}var Ot=function(e){ft(r,e);var t=gt(r);function r(){return lt(this,r),t.apply(this,arguments)}
172return ct(r,[{key:"componentDidMount",value:function(){kt()&&(this.node||this.appendNode(),Et||this.renderPortal())}},{key:"componentDidUpdate",value:function(){kt()&&(Et||this.renderPortal())}},{key:"componentWillUnmount",value:function(){kt()&&this.node&&(Et||A.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var e=this.props,t=e.id,r=e.zIndex;this.node||(this.node=document.createElement("div"),t&&(this.node.id=t),r&&(this.node.style.zIndex=r),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!kt())return null;var e=this.props,t=e.children,r=e.setRef;return this.node||this.appendNode(),Et?A.createPortal(t,this.node):(r(A.unstable_renderSubtreeIntoContainer(this,t.length>1?n.createElement("div",null,t):t[0],this.node)),null)}},{key:"renderReact16",value:function(){var e=this.props,t=e.hasChildren,r=e.placement,n=e.target;return t||n||"center"===r?this.renderPortal():null}},{key:"render",value:function(){return Et?this.renderReact16():null}}]),r}(n.Component);dt(Ot,"propTypes",{children:M().oneOfType([M().element,M().array]),hasChildren:M().bool,id:M().oneOfType([M().string,M().number]),placement:M().string,setRef:M().func.isRequired,target:M().oneOfType([M().object,M().string]),zIndex:M().number});var Pt=function(e){ft(r,e);var t=gt(r);function r(){return lt(this,r),t.apply(this,arguments)}return ct(r,[{key:"parentStyle",get:function(){var e=this.props,t=e.placement,r=e.styles.arrow.length,n={pointerEvents:"none",position:"absolute",width:"100%"};return t.startsWith("top")?(n.bottom=0,n.left=0,n.right=0,n.height=r):t.startsWith("bottom")?(n.left=0,n.right=0,n.top=0,n.height=r):t.startsWith("left")?(n.right=0,n.top=0,n.bottom=0):t.startsWith("right")&&(n.left=0,n.top=0),n}},{key:"render",value:function(){var e,t=this.props,r=t.placement,i=t.setArrowRef,o=t.styles.arrow,a=o.color,s=o.display,l=o.length,u=o.margin,c=o.position,d=o.spread,f={display:s,position:c},p=d,h=l;return r.startsWith("top")?(e="0,0 ".concat(p/2,",").concat(h," ").concat(p,",0"),f.bottom=0,f.marginLeft=u,f.marginRight=u):r.startsWith("bottom")?(e="".concat(p,",").concat(h," ").concat(p/2,",0 0,").concat(h),f.top=0,f.marginLeft=u,f.marginRight=u):r.startsWith("left")?(h=d,e="0,0 ".concat(p=l,",").concat(h/2," 0,").concat(h),f.right=0,f.marginTop=u,f.marginBottom=u):r.startsWith("right")&&(h=d,e="".concat(p=l,",").concat(h," ").concat(p,",0 0,").concat(h/2),f.left=0,f.marginTop=u,f.marginBottom=u),n.createElement("div",{className:"__floater__arrow",style:this.parentStyle},n.createElement("span",{ref:i,style:f},n.createElement("svg",{width:p,height:h,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},n.createElement("polygon",{points:e,fill:a}))))}}]),r}(n.Component);dt(Pt,"propTypes",{placement:M().string.isRequired,setArrowRef:M().func.isRequired,styles:M().object.isRequired});var Tt=["color","height","width"];function At(e){var t=e.handleClick,r=e.styles,i=r.color,o=r.height,a=r.width,s=mt(r,Tt);return n.createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},n.createElement("svg",{width:"".concat(a,"px"),height:"".concat(o,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},n.createElement("g",null,n.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:i}))))}function It(e){var t=e.content,r=e.footer,i=e.handleClick,o=e.open,a=e.positionWrapper,s=e.showCloseButton,l=e.title,u=e.styles,c={content:n.isValidElement(t)?t:n.createElement("div",{className:"__floater__c
172ontent",style:u.content},t)};return l&&(c.title=n.isValidElement(l)?l:n.createElement("div",{className:"__floater__title",style:u.title},l)),r&&(c.footer=n.isValidElement(r)?r:n.createElement("div",{className:"__floater__footer",style:u.footer},r)),!s&&!a||qe.boolean(o)||(c.close=n.createElement(At,{styles:u.close,handleClick:i})),n.createElement("div",{className:"__floater__container",style:u.container},c.close,c.title,c.content,c.footer)}At.propTypes={handleClick:M().func.isRequired,styles:M().object.isRequired},It.propTypes={content:M().node.isRequired,footer:M().node,handleClick:M().func.isRequired,open:M().bool,positionWrapper:M().bool.isRequired,showCloseButton:M().bool.isRequired,styles:M().object.isRequired,title:M().node};var Nt=function(e){ft(r,e);var t=gt(r);function r(){return lt(this,r),t.apply(this,arguments)}return ct(r,[{key:"style",get:function(){var e=this.props,t=e.disableAnimation,r=e.component,n=e.placement,i=e.hideArrow,o=e.status,a=e.styles,s=a.arrow.length,l=a.floater,u=a.floaterCentered,c=a.floaterClosing,d=a.floaterOpening,f=a.floaterWithAnimation,p=a.floaterWithComponent,h={};return i||(n.startsWith("top")?h.padding="0 0 ".concat(s,"px"):n.startsWith("bottom")?h.padding="".concat(s,"px 0 0"):n.startsWith("left")?h.padding="0 ".concat(s,"px 0 0"):n.startsWith("right")&&(h.padding="0 0 0 ".concat(s,"px"))),-1!==[xt.OPENING,xt.OPEN].indexOf(o)&&(h=st(st({},h),d)),o===xt.CLOSING&&(h=st(st({},h),c)),o!==xt.OPEN||t||(h=st(st({},h),f)),"center"===n&&(h=st(st({},h),u)),r&&(h=st(st({},h),p)),st(st({},l),h)}},{key:"render",value:function(){var e=this.props,t=e.component,r=e.handleClick,i=e.hideArrow,o=e.setFloaterRef,a=e.status,s={},l=["__floater"];return s.content=t?n.isValidElement(t)?n.cloneElement(t,{closeFn:r}):t({closeFn:r}):n.createElement(It,this.props),a===xt.OPEN&&l.push("__floater__open"),i||(s.arrow=n.createElement(Pt,this.props)),n.createElement("div",{ref:o,className:l.join(" "),style:this.style},n.createElement("div",{className:"__floater__body"},s.content,s.arrow))}}]),r}(n.Component);dt(Nt,"propTypes",{component:M().oneOfType([M().func,M().element]),content:M().node,disableAnimation:M().bool.isRequired,footer:M().node,handleClick:M().func.isRequired,hideArrow:M().bool.isRequired,open:M().bool,placement:M().string.isRequired,positionWrapper:M().bool.isRequired,setArrowRef:M().func.isRequired,setFloaterRef:M().func.isRequired,showCloseButton:M().bool,status:M().string.isRequired,styles:M().object.isRequired,title:M().node});var Rt=function(e){ft(r,e);var t=gt(r);function r(){return lt(this,r),t.apply(this,arguments)}return ct(r,[{key:"render",value:function(){var e,t=this.props,r=t.children,i=t.handleClick,o=t.handleMouseEnter,a=t.handleMouseLeave,s=t.setChildRef,l=t.setWrapperRef,u=t.style,c=t.styles;if(r)if(1===n.Children.count(r))if(n.isValidElement(r)){var d=qe.function(r.type)?"innerRef":"ref";e=n.cloneElement(n.Children.only(r),dt({},d,s))}else e=n.createElement("span",null,r);else e=r;return e?n.createElement("span",{ref:l,style:st(st({},c),u),onClick:i,onMouseEnter:o,onMouseLeave:a},e):null}}]),r}(n.Component);dt(Rt,"propTypes",{children:M().node,handleClick:M().func.isRequired,handleMouseEnter:M().func.isRequired,handleMouseLeave:M().func.isRequired,setChildRef:M().func.isRequired,setWrapperRef:M().func.isRequired,style:M().object,styles:M().object.isRequired});var jt={zIndex:100},Mt=["arrow","flip","offset"],Dt=["position","top","right","bottom","left"],Lt=function(e){ft(r,e);var t=gt(r);function r(e){var n;return lt(this,r),dt(vt(n=t.call(this,e)),"setArrowRef",function(e){n.arrowRef=e}),dt(vt(n),"setChildRef",function(e){n.childRef=e}),dt(vt(n),"setFloaterRef",function(e){n.floaterRef=e}),dt(vt(n),"setWrapperRef",function(e){n.wrapperRef=e}),dt(vt(n),"handleTransitionEnd",function(){var e=n.state.status,t=n.props.callback;n.wrapperPopper&&n.wrapperPopper.instance.update(),n.setState({status:e===xt.OPENING?xt.OPEN:xt.IDLE},function(){var e=n.state.status;t(e===xt.OPEN?"open":"close",n.props)})}),dt(vt(n),"handleClick",function(){var e=n.props,t=e.event,r=e.open;if(!qe.boolean(r)){var i=n.state,o=i.positionWrapper,a=i.status;("click"===n.event||"hover"===n.event&&o)&&(_t({title:"click",data:[{event:t,status:a===xt.OPEN?"closing":"opening"}],debug:n.debug}),n.toggle())}}),dt(vt(n),"handleMouseEnter",function(){var e=n.props,t=e.event,r=e.open;if(!qe.boolean(r)&&!St()){var i=n.state.status;"hover"===n.event&&i===xt.IDLE&&(_t({title:"mouseEnter",data:[{key:"originalEvent",value:t}],debug:n.debug}),clearTimeout(n.eventDelayTimeout),n.toggle())}}),dt(vt(n),"handleMouseLeave",function(){var e=n.props,t=e.event,r=e.eventDelay,i=e.open;if(!qe.boolean(i)&&!St()){var o=n.state,a=o.status,s=o.positionWrapper;"hover"===n.event&&(_t({title:"mouseLeave",data:[{key:"originalEvent",value:t}],debug:n.debug}),r?-1===[xt.OPENING,xt.OPEN].indexOf(a)||s||n.eventDelayTimeout||(n.eventDelayTimeout=setTimeout(function(){delete n.eventDelayTimeout,n.toggle()},1e3*r)):n.toggle(xt.IDLE))}}),n.state={currentPlacement:e.placement,needsUpdate:!1,positionWrapper:e.wrapperOptions.position&&!!e.target,status:xt.INIT,statusWrapper:xt.INIT},n._isMounted=!1,n.hasMounted=!1,kt()&&window.addEventListener("load",function(){n.popper&&n.popper.instance.update(
172),n.wrapperPopper&&n.wrapperPopper.instance.update()}),n}return ct(r,[{key:"componentDidMount",value:function(){if(kt()){var e=this.state.positionWrapper,t=this.props,r=t.children,n=t.open,i=t.target;this._isMounted=!0,_t({title:"init",data:{hasChildren:!!r,hasTarget:!!i,isControlled:qe.boolean(n),positionWrapper:e,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!r&&i&&qe.boolean(n)}}},{key:"componentDidUpdate",value:function(e,t){if(kt()){var r,n=this.props,i=n.autoOpen,o=n.open,a=n.target,s=n.wrapperOptions,l=function(e,t){if([e,t].some(qe.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(e){return qe.plainObject(e)||qe.array(e)}))throw new Error("Expected plain objects or array");var r=function(r,n,i){try{var o=ot(e,r),a=ot(t,r),s=qe.defined(n),l=qe.defined(i);if(s||l){var u=l?rt(i,o):!rt(n,o),c=rt(n,a);return u&&c}return[o,a].every(qe.array)||[o,a].every(qe.plainObject)?!Ye(o,a):o!==a}catch(e){return!1}};return{added:function(r,n){try{return Je(e,t,{key:r,type:"added",value:n})}catch(e){return!1}},changed:r,changedFrom:function(r,n,i){if(!qe.defined(r))return!1;try{var o=ot(e,r),a=ot(t,r),s=qe.defined(i);return rt(n,o)&&(s?rt(i,a):!s)}catch(e){return!1}},changedTo:function(e,t){return!!qe.defined(e)&&r(e,t)},decreased:function(r,n,i){if(!qe.defined(r))return!1;try{return Ke(e,t,{key:r,actual:n,previous:i,type:"decreased"})}catch(e){return!1}},emptied:function(r){try{var n=Xe(e,t,{key:r}),i=n[0],o=n[1];return!!i.length&&!o.length}catch(e){return!1}},filled:function(r){try{var n=Xe(e,t,{key:r}),i=n[0],o=n[1];return!i.length&&!!o.length}catch(e){return!1}},increased:function(r,n,i){if(!qe.defined(r))return!1;try{return Ke(e,t,{key:r,actual:n,previous:i,type:"increased"})}catch(e){return!1}},removed:function(r,n){try{return Je(e,t,{key:r,type:"removed",value:n})}catch(e){return!1}}}}(t,this.state),u=l.changedFrom,c=l.changed;e.open!==o&&(qe.boolean(o)&&(r=o?xt.OPENING:xt.CLOSING),this.toggle(r)),e.wrapperOptions.position===s.position&&e.target===a||this.changeWrapperPosition(this.props),(c("status",xt.IDLE)&&o||u("status",xt.INIT,xt.IDLE)&&i)&&this.toggle(xt.OPEN),this.popper&&c("status",xt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(c("status",xt.OPENING)||c("status",xt.CLOSING))&&function(e,t,r){var n;n=function(i){r(i),function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,r,n)}(e,t,n)},function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,r,n)}(e,t,n,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}(this.floaterRef,"transitionend",this.handleTransitionEnd),c("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){kt()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.target,r=this.state.positionWrapper,n=this.props,i=n.disableFlip,o=n.getPopper,a=n.hideArrow,s=n.offset,l=n.placement,u=n.wrapperOptions,c="top"===l||"bottom"===l?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if("center"===l)this.setState({status:xt.IDLE});else if(t&&this.floaterRef){var d=this.options,f=d.arrow,p=d.flip,h=d.offset,m=mt(d,Mt);new Me(t,this.floaterRef,{placement:l,modifiers:st({arrow:st({enabled:!a,element:this.arrowRef},f),flip:st({enabled:!i,behavior:c},p),offset:st({offset:"0, ".concat(s,"px")},h)},m),onCreate:function(t){var r;e.popper=t,null!==(r=e.floaterRef)&&void 0!==r&&r.isConnected?(o(t,"floater"),e._isMounted&&e.setState({currentPlacement:t.placement,status:xt.IDLE}),l!==t.placement&&setTimeout(function(){t.instance.update()},1)):e.setState({needsUpdate:!0})},onUpdate:function(t){e.popper=t;var r=e.state.currentPlacement;e._isMounted&&t.placement!==r&&e.setState({currentPlacement:t.placement})}})}if(r){var v=qe.undefined(u.offset)?0:u.offset;new Me(this.target,this.wrapperRef,{placement:u.placement||l,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(v,"px")},flip:{enabled:!1}},onCreate:function(t){e.wrapperPopper=t,e._isMounted&&e.setState({statusWrapper:xt.IDLE}),o(t,"wrapper"),l!==t.placement&&setTimeout(function(){t.instance.update(
172)},1)}})}}},{key:"rebuildPopper",value:function(){var e=this;this.floaterRefInterval=setInterval(function(){var t;null!==(t=e.floaterRef)&&void 0!==t&&t.isConnected&&(clearInterval(e.floaterRefInterval),e.setState({needsUpdate:!1}),e.initPopper())},50)}},{key:"changeWrapperPosition",value:function(e){var t=e.target,r=e.wrapperOptions;this.setState({positionWrapper:r.position&&!!t})}},{key:"toggle",value:function(e){var t=this.state.status===xt.OPEN?xt.CLOSING:xt.OPENING;qe.undefined(e)||(t=e),this.setState({status:t})}},{key:"debug",get:function(){return this.props.debug||kt()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var e=this.props,t=e.disableHoverToClick,r=e.event;return"hover"===r&&St()&&!t?"click":r}},{key:"options",get:function(){var e=this.props.options;return R()(bt,e||{})}},{key:"styles",get:function(){var e,t=this,r=this.state,n=r.status,i=r.positionWrapper,o=r.statusWrapper,a=this.props.styles,s=R()(function(e){var t=R()(jt,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}(a),a);if(i&&(e=-1===[xt.IDLE].indexOf(n)||-1===[xt.IDLE].indexOf(o)?s.wrapperPosition:this.wrapperPopper.styles,s.wrapper=st(st({},s.wrapper),e)),this.target){var l=window.getComputedStyle(this.target);this.wrapperStyles?s.wrapper=st(st({},s.wrapper),this.wrapperStyles):-1===["relative","static"].indexOf(l.position)&&(this.wrapperStyles={},i||(Dt.forEach(function(e){t.wrapperStyles[e]=l[e]}),s.wrapper=st(st({},s.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return s}},{key:"target",get:function(){if(!kt())return null;var e=this.props.target;return e?qe.domElement(e)?e:document.querySelector(e):this.childRef||this.wrapperRef}},{key:"render",value:function(){var e=this.state,t=e.currentPlacement,r=e.positionWrapper,i=e.status,o=this.props,a=o.children,s=o.component,l=o.content,u=o.disableAnimation,c=o.footer,d=o.hideArrow,f=o.id,p=o.open,h=o.showCloseButton,m=o.style,v=o.target,g=o.title,y=n.createElement(Rt,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:m,styles:this.styles.wrapper},a),b={};return r?b.wrapperInPortal=y:b.wrapperAsChildren=y,n.createElement("span",null,n.createElement(Ot,{hasChildren:!!a,id:f,placement:t,setRef:this.setFloaterRef,target:v,zIndex:this.styles.options.zIndex},n.createElement(Nt,{component:s,content:l,disableAnimation:u,footer:c,handleClick:this.handleClick,hideArrow:d||"center"===t,open:p,placement:t,positionWrapper:r,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:h,status:i,styles:this.styles,title:g}),b.wrapperInPortal),b.wrapperAsChildren)}}]),r}(n.Component);dt(Lt,"propTypes",{autoOpen:M().bool,callback:M().func,children:M().node,component:wt(M().oneOfType([M().func,M().element]),function(e){return!e.content}),content:wt(M().node,function(e){return!e.component}),debug:M().bool,disableAnimation:M().bool,disableFlip:M().bool,disableHoverToClick:M().bool,event:M().oneOf(["hover","click"]),eventDelay:M().number,footer:M().node,getPopper:M().func,hideArrow:M().bool,id:M().oneOfType([M().string,M().number]),offset:M().number,open:M().bool,options:M().object,placement:M().oneOf(["top","top-start","to
172p-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:M().bool,style:M().object,styles:M().object,target:M().oneOfType([M().object,M().string]),title:M().node,wrapperOptions:M().shape({offset:M().number,placement:M().oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:M().bool})}),dt(Lt,"defaultProps",{autoOpen:!1,callback:Ct,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:Ct,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var Ft=Object.defineProperty,Bt=(e,t,r)=>((e,t,r)=>t in e?Ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),Ut="start",Vt="stop",zt="reset",qt="prev",Ht="next",Gt="close",$t="skip",Wt="update",Zt="step:after",Qt="error:target_not_found",Yt={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Kt={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};function Jt(){var e;return!("undefined"==typeof window||!(null==(e=window.document)?void 0:e.createElement))}function Xt(e){return e?e.getBoundingClientRect():null}function er(e=!1){const{body:t,documentElement:r}=document;if(!t||!r)return 0;if(e){const e=[t.scrollHeight,t.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight].sort((e,t)=>e-t),n=Math.floor(e.length/2);return e.length%2==0?(e[n-1]+e[n])/2:e[n]}return Math.max(t.scrollHeight,t.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight)}function tr(e){if("string"==typeof e)try{return document.querySelector(e)}catch(e){return null}return e}function rr(e,t,r){if(!e)return or();const n=T(e);if(n){if(n.isSameNode(or()))return r?document:or();if(!(n.scrollHeight>n.offsetHeight||t))return n.style.overflow="initial",or()}return n}function nr(e,t){if(!e)return!1;const r=rr(e,t);return!!r&&!r.isSameNode(or())}function ir(e,t="fixed"){if(!(e&&e instanceof HTMLElement))return!1;const{nodeName:r}=e,n=function(e){return e&&1===e.nodeType?getComputedStyle(e):null}(e);return"BODY"!==r&&"HTML"!==r&&(!(!n||n.position!==t)||!!e.parentNode&&ir(e.parentNode,t))}function or(){var e;return null!=(e=document.scrollingElement)?e:document.documentElement}var ar=void 0!==A.createPortal;function sr(e=navigator.userAgent){let t=e;return"undefined"==typeof window?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":Boolean(window.opera)||e.includes(" OPR/")?t="opera":void 0!==window.InstallTrigger?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function lr(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function ur(e,t={}){const{defaultValue:r,step:i,steps:o}=t;let a=I(e);return a?(a.includes("{step}")||a.includes("{steps}"))&&i&&o&&(a=a.replace("{step}",i.toString()).replace("{steps}",o.toString())):a=(0,n.isValidElement)(e)&&!Object.values(e.props).length&&"function"===lr(e.type)?ur(e.type({}),t):I(r),a}function cr(e){const t=e.replace(/^#?([\da-f])([\da-f])([\da-f])$/i,(e,t,r,n)=>t+t+r+r+n+n),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(t);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function dr(e){return e.disableBeacon||"center"===e.placement}function fr(){return!["chrome","safari","firefox","opera"].includes(sr())}function pr({data:e,debug:t=!1,title:r,warn:n=!1}){const i=n?console.warn||console.error:console.log;t&&(r&&e?(console.groupCollapsed(`%creact-joyride: ${r}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(e=>{g.plainObject(e)&&e.key?i.apply(console,[e.key,e.value]):i.apply(console,[e])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function hr(e,...t){if(!g.plainObject(e))throw new TypeError("Expected an object");const r={};for(const n in e)({}).hasOwnProperty.call(e,n)&&(t.includes(n)||(r[n]=e[n]));return r}function mr(e,t,r){const i=e=>e.replace("{step}",String(t)).replace("{steps}",String(r));if("string"===lr(e))return i(e);if(!(0,n.isValidElement)(e))return e;const{children:o}=e.props;return"string"===lr(o)&&o.includes("{step}")?(0,n.cloneElement)(e,{children:i(o)}):Array.isArray(o)?(0,n.cloneElement)(e,{children:o.map(e=>"string"==typeof e?i(e):mr(e,t,r))}):"function"!==lr(e.type)||Object.values(e.props).length?e:mr(e.type({}),t,r)}var vr={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},gr={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps}
172)",open:"Open the dialog",skip:"Skip"},yr={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:gr,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},br={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},wr={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},xr={borderRadius:4,position:"absolute"};function Er(e){return function(e,...t){if(!g.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const r={};for(const n in e)({}).hasOwnProperty.call(e,n)&&t.includes(n)&&(r[n]=e[n]);return r}(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function kr(e,t){var r,n,i,o,a,s;const l=null!=t?t:{},u=N.all([yr,Er(e),l],{isMergeableObject:g.plainObject}),c=function(e,t){var r,n,i,o,a;const{floaterProps:s,styles:l}=e,u=N(null!=(r=t.floaterProps)?r:{},null!=s?s:{}),c=N(null!=l?l:{},null!=(n=t.styles)?n:{}),d=N(br,c.options||{}),f="center"===t.placement||t.disableBeacon;let{width:p}=d;window.innerWidth>480&&(p=380),"width"in d&&(p="number"==typeof d.width&&window.innerWidth<d.width?window.innerWidth-30:d.width);const h={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:d.zIndex},m={beacon:{...wr,display:f?"none":"inline-block",height:d.beaconSize,position:"relative",width:d.beaconSize,zIndex:d.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:d.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${cr(d.primaryColor).join(",")}, 0.2)`,border:`2px solid ${d.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:d.backgroundColor,borderRadius:5,boxSizing:"border-box",color:d.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:p},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...wr,backgroundColor:d.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...wr,color:d.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...wr,color:d.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...wr,color:d.textColor,fontSize:14},overlay:{...h,backgroundColor:d.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...h},overlayLegacyCenter:{...h,backgroundColor:d.overlayColor},spotlight:{...xr,backgroundColor:"gray"},spotlightLegacy:{...xr,boxShadow:`0 0 0 9999px ${d.overlayColor}, ${d.spotlightShadow}`},floaterStyles:{arrow:{color:null!=(a=null==(o=null==(i=null==u?void 0:u.styles)?void 0:i.arrow)?void 0:o.color)?a:d.arrowColor},options:{zIndex:d.zIndex+100}},options:d};return N(m,c)}(e,u),d=nr(tr(u.target),u.disableScrollParentFix),f=N.all([vr,null!=(r=e.floaterProps)?r:{},null!=(n=u.floaterProps)?n:{}]);return f.offset=u.offset,f.styles=N(null!=(i=f.styles)?i:{},c.floaterStyles),f.offset+=null!=(a=null!=(o=e.spotlightPadding)?o:u.spotlightPadding)?a:0,u.placementBeacon&&f.wrapperOptions&&(f.wrapperOptions.placement=u.placementBeacon),d&&f.options.preventOverflow&&(f.options.preventOverflow.boundariesElement="window"),{...u,locale:N.all([gr,null!=(s=e.locale)?s:{},u.locale||{}]),floaterProps:f,styles:hr(c,"floaterStyles")}}function Sr(e,t=!1){return g.plainObject(e)?!!e.target||(pr({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(pr({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function _r(e,t=!1){return g.array(e)?e.every(e=>Sr(e,t)):(pr({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var Cr,Or={action:"init",controlled:!1,index:0,lifecycle:Yt.INIT,origin:null,size:0,status:Kt.IDLE},Pr=(Cr=hr(Or,"controlled","size"),Object.keys(Cr)),Tr=class{constructor(e){Bt(this,"beaconPopper"),Bt(this,"tooltipPopper"),Bt(this,"data",new Map),Bt(this,"listener"),Bt(this,"store",new Map),Bt(this,"addListener",e=>{this.listener=e}),Bt(this,"setSteps",e=>{const{size:t,status:r}=this.getState(),n={size:e.length,status:r};this.data.set("steps",e),r===Kt.WAITING&&!t&&e.length&&(n.status=Kt.RUNNING),this.setState(n)}),Bt(this,"getPopper",e=>"beacon"===e?this.beaconPopper:this.tooltipPopper),Bt(this,"setPopper",(e,t)=>{"beacon"===e?this.beaconPopper=t:this.tooltipPopper=t}),Bt(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),Bt(this,"close",(e=null)=>{const{index:t,status:r}=this.getState();r===Kt.RUNNING&&this.setState({...this.getNextState({action:Gt,index:t+1,origin:e})})}),Bt(this,"go",e=>{const{controlled:t,status:r}=this.getState();if(t||r!==Kt.RUNNING)return;const n=this.getSteps()[e];this.setState({...this.getNextState({action:"go",index:e}),status:n?r:Kt.FINISHED})}),Bt(this,"info",()=>this.getState()),Bt(this,"next",()=>{const{index:e,status:t}=this.getState();t===Kt.RUNNING&&this.setState(this.getNextState({action:Ht,index:e+1}))}),Bt(this,"open",()=>{const{status:e}=this.getState();e===Kt.RUNNING&&this.setState({...this.getNextState({action:Wt,lifecycle:Yt.TOOLTIP})})}),Bt(this,"prev",()=>{const{index:e,status:t}=this.getState();t===Kt.RUNNING&&this.setState({...this.getNextState({action:qt,index:e-1})})}),Bt(this,"reset",(e=!1)=>{const{controlled:t}=this.getState();t||this.setState({...this.getNextState({action:zt,index:0}),status:e?Kt.RUNNING:Kt.READY})}),Bt(this,"skip",()=>{const{status:e}=this.getState();e===Kt.RUNNING&&this.setState({action:$t,lifecycle:Yt.INIT,status:Kt.SKIPPED})}),Bt(this,"start",e=>{const{index:t,size:r}=this.getState();this.setState({...this.getNextState({action:Ut,index:g.number(e)?e:t},!0),status:r?Kt.RUNNING:Kt.WAITING})}),Bt(this,"stop",(e=!1)=>{const{index:t,status:r}=this.getState();[Kt.FINISHED,Kt.SKIPPED].includes(r)||this.setState({...this.getNextState({action:Vt,index:t+(e?1:0)}),status:Kt.PAUSED})}),Bt(this,"update",e=>{var t,r,n,i;if(n=e,i=Pr,!(g.plainObject(n)&&g.array(i)&&Object.keys(n).every(e=>
172i.includes(e))))throw new Error(`State is not valid. Valid keys: ${Pr.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...e,action:null!=(t=e.action)?t:Wt,origin:null!=(r=e.origin)?r:null},!0)})});const{continuous:t=!1,stepIndex:r,steps:n=[]}=null!=e?e:{};this.setState({action:"init",controlled:g.number(r),continuous:t,index:g.number(r)?r:0,lifecycle:Yt.INIT,origin:null,status:n.length?Kt.READY:Kt.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(n)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...Or}}getNextState(e,t=!1){var r,n,i,o,a;const{action:s,controlled:l,index:u,size:c,status:d}=this.getState(),f=g.number(e.index)?e.index:u,p=l&&!t?u:Math.min(Math.max(f,0),c);return{action:null!=(r=e.action)?r:s,controlled:l,index:p,lifecycle:null!=(n=e.lifecycle)?n:Yt.INIT,origin:null!=(i=e.origin)?i:null,size:null!=(o=e.size)?o:c,status:p===c?Kt.FINISHED:null!=(a=e.status)?a:d}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){return JSON.stringify(e)!==JSON.stringify(this.getState())}setState(e,t=!1){const r=this.getState(),{action:n,index:i,lifecycle:o,origin:a=null,size:s,status:l}={...r,...e};this.store.set("action",n),this.store.set("index",i),this.store.set("lifecycle",o),this.store.set("origin",a),this.store.set("size",s),this.store.set("status",l),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(r)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}},Ar=function({styles:e}){return n.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})},Ir=class extends n.Component{constructor(){super(...arguments),Bt(this,"isActive",!1),Bt(this,"resizeTimeout"),Bt(this,"scrollTimeout"),Bt(this,"scrollParent"),Bt(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),Bt(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:r}=this.props,n=[Yt.INIT,Yt.BEACON,Yt.COMPLETE,Yt.ERROR];return t||(e?n.includes(r):r!==Yt.TOOLTIP)}),Bt(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:r,left:n,position:i,top:o,width:a}=this.spotlightStyles,s="fixed"===i?e.clientY:e.pageY,l="fixed"===i?e.clientX:e.pageX,u=l>=n&&l<=n+a&&s>=o&&s<=o+r;u!==t&&this.updateState({mouseOverSpotlight:u})}),Bt(this,"handleScroll",()=>{const{target:e}=this.props,t=tr(e);if(this.scrollParent!==document){const{isScrolling:e}=this.state;e||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else ir(t,"sticky")&&this.updateState({})}),Bt(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:r=!1,target:n}=this.props,i=tr(n);this.scrollParent=rr(null!=i?i:document.body,r,!0),this.isActive=!0,window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:r,lifecycle:n,spotlightClicks:i,target:o}=this.props,{changed:a}=O(e,this.props);if(a("target")||a("disableScrollParentFix")){const e=tr(o);this.scrollParent=rr(null!=e?e:document.body,r,!0)}a("lifecycle",Yt.TOOLTIP)&&(null==(t=this.scrollParent)||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:e}=this.state;e||this.updateState({showSpotlight:!0})},100)),(a("spotlightClicks")||a("disableOverlay")||a("lifecycle"))&&(i&&n===Yt.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):n!==Yt.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),null==(e=this.scrollParent)||e.removeEventListener("scroll",this.handleScroll)}
172get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:r,styles:n}=this.props;let i=n.overlay;return fr()&&(i="center"===r?n.overlayLegacyCenter:n.overlayLegacy),{cursor:t?"default":"pointer",height:er(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,r;const{showSpotlight:n}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:o,spotlightPadding:a=0,styles:s,target:l}=this.props,u=tr(l),c=Xt(u),d=ir(u),f=function(e,t,r){var n,i,o;const a=Xt(e),s=rr(e,r),l=nr(e,r),u=ir(e);let c=0,d=null!=(n=null==a?void 0:a.top)?n:0;return l&&u?d=(null!=(i=null==e?void 0:e.offsetTop)?i:0)-(null!=(o=null==s?void 0:s.scrollTop)?o:0):s instanceof HTMLElement&&(c=s.scrollTop,l||ir(e)||(d+=c),s.isSameNode(or())||(d+=or().scrollTop)),Math.floor(d-t)}(u,a,i);return{...fr()?s.spotlightLegacy:s.spotlight,height:Math.round((null!=(e=null==c?void 0:c.height)?e:0)+2*a),left:Math.round((null!=(t=null==c?void 0:c.left)?t:0)-a),opacity:n?1:0,pointerEvents:o?"none":"auto",position:d?"fixed":"absolute",top:f,transition:"opacity 0.2s",width:Math.round((null!=(r=null==c?void 0:c.width)?r:0)+2*a)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:r}=this.props,{hideSpotlight:i,overlayStyles:o,spotlightStyles:a}=this;if(i())return null;let s="center"!==r&&e&&n.createElement(Ar,{styles:a});if("safari"===sr()){const{mixBlendMode:e,zIndex:t,...r}=o;s=n.createElement("div",{style:{...r}},s),delete o.backgroundColor}return n.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:o},s)}},Nr=class extends n.Component{constructor(){super(...arguments),Bt(this,"node",null)}componentDidMount(){const{id:e}=this.props;Jt()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),ar||this.renderReact15())}componentDidUpdate(){Jt()&&(ar||this.renderReact15())}componentWillUnmount(){Jt()&&this.node&&(ar||A.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!Jt())return;const{children:e}=this.props;this.node&&A.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!Jt()||!ar)return null;const{children:e}=this.props;return this.node?A.createPortal(e,this.node):null}render(){return ar?this.renderReact16():null}},Rr=class{constructor(e,t){if(Bt(this,"element"),Bt(this,"options"),Bt(this,"canBeTabbed",e=>{const{tabIndex:t}=e;return!(null===t||t<0)&&this.canHaveFocus(e)}),Bt(this,"canHaveFocus",e=>{const t=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(t)&&!e.getAttribute("disabled")||"a"===t&&!!e.getAttribute("href"))&&this.isVisible(e)}),Bt(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),Bt(this,"handleKeyDown",e=>{const{code:t="Tab"}=this.options;e.code===t&&this.interceptTab(e)}),Bt(this,"interceptTab",e=>{e.preventDefault();const t=this.findValidTabElements(),{shiftKey:r}=e;if(!t.length)return;let n=document.activeElement?t.indexOf(document.activeElement):0;-1===n||!r&&n+1===t.length?n=0:r&&0===n?n=t.length-1:n+=r?-1:1,t[n].focus()}),Bt(this,"isHidden",e=>{const t=e.offsetWidth<=0&&e.offsetHeight<=0,r=window.getComputedStyle(e);return!(!t||e.innerHTML)||t&&"visible"!==r.getPropertyValue("overflow")||"none"===r.getPropertyValue("display")}),Bt(this,"isVisible",e=>{let t=e;for(;t;)if(t instanceof HTMLElement){if(t===document.body)break;if(this.isHidden(t))return!1;t=t.parentNode}return!0}),Bt(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),Bt(this,"checkFocus",e=>{document.activeElement!==e&&(e.focus(),window.requestAnimationFrame(()=>this.checkFocus(e)))}),Bt(this,"setFocus",()=>{const{selector:e}=this.options;if(!e)return;const t=this.element.querySelector(e);t&&window.requestAnimationFrame(()=>this.checkFocus(t))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},jr=class extends n.Component{constructor(e){if(super(e),Bt(this,"beacon",null),Bt(this,"setBeaconRef",e=>{this.beacon=e}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.id="joyride-beacon-animation",e.nonce&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("\n @keyframes joyride-beacon-inner {\n 20% {\n opacity: 0.9;\n }\n \n 90% {\n opacity: 0.7;\n }\n }\n \n @keyframes joyride-beacon-outer {\n 0% {\n transform: scale(1);\n }\n \n 45% {\n opacity: 0.7;\n transform: scale(0.75);\n }\n \n 100% {\n opacity: 0.9;\n transform: scale(1);\n }\n }\n ")),t.appendChild(r)}componentDidMount(){const{shouldFocus:e}=this.props;setTimeout(()=>{g.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");(null==e?void 0:e.parentNode)&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:r,isLastStep:i,locale:o,onClickOrHover:a,size:s,step:l,styles:u}=this.props,c=ur(o.open),d={"aria-label":c,onClick:a,onMouseEnter:a,ref:this.setBeaconRef,title:c};let f;if(e){const o=e;f=n.createElement(o,{continuous:t,index:r,isLastStep:i,size:s,step:l,...d})}else f=n.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:u.beacon,type:"button",...d},n.createElement("span",{style:u.beaconInner}),n.createElement("span",{style:u.beaconOuter}));return f}},Mr=function({styles:e,...t}){const{color:r,height:i,width:o,...a}=e;return n.createElement("button",{style:a,type:"button",...t},n.createElement("svg",{height:"number"==typeof i?`${i}px`:i,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:"number"==typeof o?`${o}px`:o,xmlns:"http://www.w3.org/2000/svg"},n.createElement("g",null,n.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))},Dr=function(e){const{backProps:t,closeProps:r,index:i,isLastStep:o,primaryProps:a,skipProps:s,step:l,tooltipProps:u}=e,{content:c,hideBackButton:d,hideCloseButton:f,hideFooter:p,showSkipButton:h,styles:m,title:v}=l,g={};return g.primary=n.createElement("button",{"data-test-id":"button-primary",style:m.buttonNext,type:"button",...a}
172),h&&!o&&(g.skip=n.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:m.buttonSkip,type:"button",...s})),!d&&i>0&&(g.back=n.createElement("button",{"data-test-id":"button-back",style:m.buttonBack,type:"button",...t})),g.close=!f&&n.createElement(Mr,{"data-test-id":"button-close",styles:m.buttonClose,...r}),n.createElement("div",{key:"JoyrideTooltip","aria-label":ur(null!=v?v:c),className:"react-joyride__tooltip",style:m.tooltip,...u},n.createElement("div",{style:m.tooltipContainer},v&&n.createElement("h1",{"aria-label":ur(v),style:m.tooltipTitle},v),n.createElement("div",{style:m.tooltipContent},c)),!p&&n.createElement("div",{style:m.tooltipFooter},n.createElement("div",{style:m.tooltipFooterSpacer},g.skip),g.back,g.primary),g.close)},Lr=class extends n.Component{constructor(){super(...arguments),Bt(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),Bt(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),Bt(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:r}=this.props;t?r.next():r.close("button_primary")}),Bt(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),Bt(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:r,setTooltipRef:n,size:i,step:o}=this.props,{back:a,close:s,last:l,next:u,nextLabelWithProgress:c,skip:d}=o.locale,f=ur(a),p=ur(s),h=ur(l),m=ur(u),v=ur(d);let g=s,y=p;if(e){if(g=u,y=m,o.showProgress&&!r){const e=ur(c,{step:t+1,steps:i});g=mr(c,t+1,i),y=e}r&&(g=l,y=h)}return{backProps:{"aria-label":f,children:a,"data-action":"back",onClick:this.handleClickBack,role:"button",title:f},closeProps:{"aria-label":p,children:s,"data-action":"close",onClick:this.handleClickClose,role:"button",title:p},primaryProps:{"aria-label":y,children:g,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:y},skipProps:{"aria-label":v,children:d,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:v},tooltipProps:{"aria-modal":!0,ref:n,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:r,setTooltipRef:i,size:o,step:a}=this.props,{beaconComponent:s,tooltipComponent:l,...u}=a;let c;if(l){const a={...this.getElementsProps(),continuous:e,index:t,isLastStep:r,size:o,step:u,setTooltipRef:i},s=l;c=n.createElement(s,{...a})}else c=n.createElement(Dr,{...this.getElementsProps(),continuous:e,index:t,isLastStep:r,size:o,step:a});return c}},Fr=class extends n.Component{constructor(){super(...arguments),Bt(this,"scope",null),Bt(this,"tooltip",null),Bt(this,"handleClickHoverBeacon",e=>{const{step:t,store:r}=this.props;"mouseenter"===e.type&&"hover"!==t.event||r.update({lifecycle:Yt.TOOLTIP})}),Bt(this,"setTooltipRef",e=>{this.tooltip=e}),Bt(this,"setPopper",(e,t)=>{var r;const{action:n,lifecycle:i,step:o,store:a}=this.props;"wrapper"===t?a.setPopper("beacon",e):a.setPopper("tooltip",e),a.getPopper("beacon")&&(a.getPopper("tooltip")||"center"===o.placement)&&i===Yt.INIT&&a.update({action:n,lifecycle:Yt.READY}),(null==(r=o.floaterProps)?void 0:r.getPopper)&&o.floaterProps.getPopper(e,t)}),Bt(this,"renderTooltip",e=>{const{continuous:t,helpers:r,index:i,size:o,step:a}=this.props;return n.createElement(Lr,{continuous:t,helpers:r,index:i,isLastStep:i+1===o,setTooltipRef:this.setTooltipRef,size:o,step:a,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;pr({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:r,callback:n,continuous:i,controlled:o,debug:a,helpers:s,index:l,lifecycle:u,shouldScroll:c,status:d,step:f,store:p}=this.props,{changed:h,changedFrom:m}=O(e,this.props),v=s.info(),g=i&&r!==Gt&&(l>0||r===qt),y=h("action")||h("index")||h("lifecycle")||h("status"),b=m("lifecycle",[Yt.TOOLTIP,Yt.INIT],Yt.INIT),w=h("action",[Ht,qt,$t,Gt]),x=o&&l===e.index;if(w&&(b||x)&&n({...v,index:e.index,lifecycle:Yt.COMPLETE,step:e.step,type:Zt}),"center"===f.placement&&d===Kt.RUNNING&&h("index")&&r!==Ut&&u===Yt.INIT&&p.update({lifecycle:Yt.READY}),y){const e=tr(f.target),t=!!e,i=t&&function(e){var t;if(!e)return!1;let r=e;for(;r&&r!==document.body;){if(r instanceof HTMLElement){const{display:e,visibility:t}=getComputedStyle(r);if("none"===e||"hidden"===t)return!1}r=null!=(t=r.parentElement)?t:null}return!0}(e);i?(m("status",Kt.READY,Kt.RUNNING)||m("lifecycle",Yt.INIT,Yt.READY))&&n({...v,step:f,type:"step:before"}):(console.warn(t?"Target not visible":"Target not mounted",f),n({...v,type:Qt,step:f}),o||p.update({index:l+(r===qt?-1:1)}))}m("lifecycle",Yt.INIT,Yt.READY)&&p.update({lifecycle:dr(f)||g?Yt.TOOLTIP:Yt.BEACON}),h("index")&&pr({title:`step:${u}`,data:[{key:"props",value:this.props}
172],debug:a}),h("lifecycle",Yt.BEACON)&&n({...v,step:f,type:"beacon"}),h("lifecycle",Yt.TOOLTIP)&&(n({...v,step:f,type:"tooltip"}),c&&this.tooltip&&(this.scope=new Rr(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),m("lifecycle",[Yt.TOOLTIP,Yt.INIT],Yt.INIT)&&(null==(t=this.scope)||t.removeScope(),p.cleanupPoppers())}componentWillUnmount(){var e;null==(e=this.scope)||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return dr(t)||e===Yt.TOOLTIP}render(){const{continuous:e,debug:t,index:r,nonce:i,shouldScroll:o,size:a,step:s}=this.props,l=tr(s.target);return Sr(s)&&g.domElement(l)?n.createElement("div",{key:`JoyrideStep-${r}`,className:"react-joyride__step"},n.createElement(Lt,{...s.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${r}`,open:this.open,placement:s.placement,target:s.target},n.createElement(jr,{beaconComponent:s.beaconComponent,continuous:e,index:r,isLastStep:r+1===a,locale:s.locale,nonce:i,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:o,size:a,step:s,styles:s.styles}))):null}},Br=class extends n.Component{constructor(e){super(e),Bt(this,"helpers"),Bt(this,"store"),Bt(this,"callback",e=>{const{callback:t}=this.props;g.function(t)&&t(e)}),Bt(this,"handleKeyboard",e=>{const{index:t,lifecycle:r}=this.state,{steps:n}=this.props,i=n[t];r===Yt.TOOLTIP&&"Escape"===e.code&&i&&!i.disableCloseOnEsc&&this.store.close("keyboard")}),Bt(this,"handleClickOverlay",()=>{const{index:e}=this.state,{steps:t}=this.props;kr(this.props,t[e]).disableOverlayClose||this.helpers.close("overlay")}),Bt(this,"syncState",e=>{this.setState(e)});const{debug:t,getHelpers:r,run:n=!0,stepIndex:i}=e;var o;this.store=(o={...e,controlled:n&&g.number(i)},new Tr(o)),this.helpers=this.store.getHelpers();const{addListener:a}=this.store;pr({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),a(this.syncState),r&&r(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!Jt())return;const{debug:e,disableCloseOnEsc:t,run:r,steps:n}=this.props,{start:i}=this.store;_r(n,e)&&r&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!Jt())return;const{action:r,controlled:n,index:i,status:o}=this.state,{debug:a,run:s,stepIndex:l,steps:c}=this.props,{stepIndex:d,steps:f}=e,{reset:p,setSteps:h,start:m,stop:v,update:y}=this.store,{changed:b}=O(e,this.props),{changed:w,changedFrom:x}=O(t,this.state),E=kr(this.props,c[i]),k=!u(f,c),S=g.number(l)&&b("stepIndex"),_=tr(E.target);if(k&&(_r(c,a)?h(c):console.warn("Steps are not valid",c)),b("run")&&(s?m(l):v()),S){let e=g.number(d)&&d<l?Ht:qt;r===Vt&&(e=Ut),[Kt.FINISHED,Kt.SKIPPED].includes(o)||y({action:r===Gt?Gt:e,index:l,lifecycle:Yt.INIT})}n||o!==Kt.RUNNING||0!==i||_||(this.store.update({index:i+1}),this.callback({...this.state,type:Qt,step:E}));const C={...this.state,index:i,step:E};if(w("action",[Ht,qt,$t,Gt])&&w("status",Kt.PAUSED)){const e=kr(this.props,c[t.index]);this.callback({...C,index:t.index,lifecycle:Yt.COMPLETE,step:e,type:Zt})}if(w("status",[Kt.FINISHED,Kt.SKIPPED])){const e=kr(this.props,c[t.index]);n||this.callback({...C,index:t.index,lifecycle:Yt.COMPLETE,step:e,type:Zt}),this.callback({...C,type:"tour:end",step:e,index:t.index}),p()}else x("status",[Kt.IDLE,Kt.READY],Kt.RUNNING)?this.callback({...C,type:"tour:start"}):(w("status")||w("action",zt))&&this.callback({...C,type:"tour:status"});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:r,status:n}=this.state,{debug:i,disableScrollParentFix:o=!1,scrollDuration:a,scrollOffset:s=20,scrollToFirstStep:l=!1,steps:u}=this.props,c=kr(this.props,u[t]),d=tr(c.target),f=function(e){const{isFirstStep:t,lifecycle:r,previousLifecycle:n,scrollToFirstStep:i,step:o,target:a}=e;return!o.disableScrolling&&(!t||i||r===Yt.TOOLTIP)&&"center"!==o.placement&&(!o.isFixed||!ir(a))&&n!==r&&[Yt.BEACON,Yt.TOOLTIP].includes(r)}({isFirstStep:0===t,lifecycle:r,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:c,target:d});if(n===Kt.RUNNING&&f){const e=nr(d,o),l=rr(d,o);let u=Math.floor(function(e,t,r){var n;if(!e)return 0;const{offsetTop:i=0,scrollTop:o=0}=null!=(n=T(e))?n:{};let a=e.getBoundingClientRect().top+o;i&&(nr(e,r)||function(e){return e.offsetParent!==document.body}(e))&&(a-=i);const s=Math.floor(a-t);return s<0?0:s}(d,s,o))||0;pr({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:r},{key:"status",value:n}],debug:i});const f=this.store.getPopper("beacon"),p=this.store.getPopper("tooltip");if(r===Yt.BEACON&&f){const{offsets:t,placement:r}=f;["bottom"].includes(r)||e||(u=Math.floor(t.popper.top-s))}else if(r===Yt.TOOLTIP&&p){const{flipped:t,offsets:r,placement:n}=p;!["top","right","left"].includes(n)||t||e?u-=c.spotlightPadding:u=Math.floor(r.popper.top-s)}u=u>=0?u:0,n===Kt.RUNNING&&function(e,t){const{duration:r,element:n}=t;return new Promise((t,i)=>{const{scrollTop:o}=n,a=e>o?e-o:o-e;P.top(n,e,{duration:a<100?50:r},e=>e&&"Element already at target scroll position"!==e.message?i(e):t())})}(u,{element:l,duration:a}).then(()=>{setTimeout(()=>{var e;
172null==(e=this.store.getPopper("tooltip"))||e.instance.update()},10)})}}render(){if(!Jt())return null;const{index:e,lifecycle:t,status:r}=this.state,{continuous:i=!1,debug:o=!1,nonce:a,scrollToFirstStep:s=!1,steps:l}=this.props,u={};if(r===Kt.RUNNING&&l[e]){const r=kr(this.props,l[e]);u.step=n.createElement(Fr,{...this.state,callback:this.callback,continuous:i,debug:o,helpers:this.helpers,nonce:a,shouldScroll:!r.disableScrolling&&(0!==e||s),step:r,store:this.store}),u.overlay=n.createElement(Nr,{id:"react-joyride-portal"},n.createElement(Ir,{...r,continuous:i,debug:o,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return n.createElement("div",{className:"react-joyride"},u.step,u.overlay)}};Bt(Br,"defaultProps",{continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]});var Ur=Br},50804:function(e,t,r){"use strict";r.d(t,{u:function(){return S}});var n=r(27378),i=r(29438),o=r(90005);const a={core:!1,base:!1};function s({css:e,id:t="react-tooltip-base-styles",type:r="base",ref:n}){var i,o;if(!e||"undefined"==typeof document||a[r])return;if("core"===r&&"undefined"!=typeof process&&(null===(i=null===process||void 0===process?void 0:"MISSING_ENV_VAR")||void 0===i?void 0:i.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==r&&"undefined"!=typeof process&&(null===(o=null===process||void 0===process?void 0:"MISSING_ENV_VAR")||void 0===o?void 0:o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===r&&(t="react-tooltip-core-styles"),n||(n={});const{insertAt:s}=n;if(document.getElementById(t))return;const l=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.id=t,u.type="text/css","top"===s&&l.firstChild?l.insertBefore(u,l.firstChild):l.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e)),a[r]=!0}const l=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:r=null,place:n="top",offset:o=10,strategy:a="absolute",middlewares:s=[(0,i.cv)(Number(o)),(0,i.RR)({fallbackAxisSideDirection:"start"}),(0,i.uY)({padding:5})],border:l,arrowSize:u=8})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};const c=s;return r?(c.push((0,i.x7)({element:r,padding:5})),(0,i.oo)(e,t,{placement:n,strategy:a,middleware:c}).then(({x:e,y:t,placement:r,middlewareData:n})=>{var i,o;const a={left:`${e}px`,top:`${t}px`,border:l},{x:s,y:c}=null!==(i=n.arrow)&&void 0!==i?i:{x:0,y:0},d=null!==(o={top:"bottom",right:"left",bottom:"top",left:"right"}[r.split("-")[0]])&&void 0!==o?o:"bottom",f=l&&{borderBottom:l,borderRight:l};let p=0;if(l){const e=`${l}`.match(/(\d+)px/);p=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:a,tooltipArrowStyles:{left:null!=s?`${s}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",...f,[d]:`-${u/2+p}px`},place:r}})):(0,i.oo)(e,t,{placement:"bottom",strategy:a,middleware:c}).then(({x:e,y:t,placement:r})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:r}))},u=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),c=(e,t,r)=>{let n=null;const i=function(...i){const o=()=>{n=null,r||e.apply(this,i)};r&&!n&&(e.apply(this,i),n=setTimeout(o,t)),r||(n&&clearTimeout(n),n=setTimeout(o,t))};return i.cancel=()=>{n&&(clearTimeout(n),n=null)},i},d=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,f=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,r)=>f(e,t[r]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!d(e)||!d(t))return e===t;const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(r=>f(e[r],t[r]))},p=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(e=>{const r=t.getPropertyValue(e);return"auto"===r||"scroll"===r})},h=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(p(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},m="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,v=e=>{e.current&&(clearTimeout(e.current),e.current=null)},g={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},y=(0,n.createContext)({getTooltipData:()=>g});function b(e="DEFAULT_TOOLTIP_ID"){return(0,n.useContext)(y).getTooltipData(e)}var w={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},x={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const E=({forwardRef:e,id:t,className:r,classNameArrow:a,variant:s="dark",anchorId:u,anchorSelect:d,place:p="top",offset:g=10,events:y=["hover"],openOnClick:E=!1,positionStrategy:k="absolute",middlewares:S,wrapper:_,delayShow:C=0,delayHide:O=0,float:P=!1,hidden:T=!1,noArrow:A=!1,clickable:I=!1,closeOnEsc:N=!1,closeOnScroll:R=!1,closeOnResize:j=!1,openEvents:M,closeEvents:D,globalCloseEvents:L,imperativeModeOnly:F,style:B,position:U,afterShow:V,afterHide:z,disableTooltip:q,content:H,contentWrapperRef:G,isOpen:$,defaultIsOpen:W=!1,setIsOpen:Z,previousActiveAnchor:Q,activeAnchor:Y,setActiveAnchor:K,border:J,opacity:X,arrowColor:ee,arrowSize:te=8,role:re="tooltip"})=>{var ne;const ie=(0,n.useRef)(null),oe=(0,n.useRef)(null),ae=(0,n.useRef)(null),se=(0,n.useRef)(null),le=(0,n.useRef)(null),[ue,ce]=(0,n.use
172State)({tooltipStyles:{},tooltipArrowStyles:{},place:p}),[de,fe]=(0,n.useState)(!1),[pe,he]=(0,n.useState)(!1),[me,ve]=(0,n.useState)(null),ge=(0,n.useRef)(!1),ye=(0,n.useRef)(null),{anchorRefs:be,setActiveAnchor:we}=b(t),xe=(0,n.useRef)(!1),[Ee,ke]=(0,n.useState)([]),Se=(0,n.useRef)(!1),_e=E||y.includes("click"),Ce=_e||(null==M?void 0:M.click)||(null==M?void 0:M.dblclick)||(null==M?void 0:M.mousedown),Oe=M?{...M}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!M&&_e&&Object.assign(Oe,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Pe=D?{...D}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!D&&_e&&Object.assign(Pe,{mouseleave:!1,blur:!1,mouseout:!1});const Te=L?{...L}:{escape:N||!1,scroll:R||!1,resize:j||!1,clickOutsideAnchor:Ce||!1};F&&(Object.assign(Oe,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Pe,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Te,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),m(()=>(Se.current=!0,()=>{Se.current=!1}),[]);const Ae=e=>{Se.current&&(e&&he(!0),setTimeout(()=>{Se.current&&(null==Z||Z(e),void 0===$&&fe(e))},10))};(0,n.useEffect)(()=>{if(t){if(de){r(Q);const n=e(Y),i=[...new Set([...n,t])].filter(Boolean).join(" ");null==Y||Y.setAttribute("aria-describedby",i)}else r(Y);return()=>{r(Y),r(Q)}}function e(e){var t;return(null===(t=null==e?void 0:e.getAttribute("aria-describedby"))||void 0===t?void 0:t.split(" "))||[]}function r(r){const n=e(r).filter(e=>e!==t);n.length?null==r||r.setAttribute("aria-describedby",n.join(" ")):null==r||r.removeAttribute("aria-describedby")}},[Y,de,t,Q]),(0,n.useEffect)(()=>{if(void 0===$)return()=>null;$&&he(!0);const e=setTimeout(()=>{fe($)},10);return()=>{clearTimeout(e)}},[$]),(0,n.useEffect)(()=>{if(de!==ge.current)if(v(le),ge.current=de,de)null==V||V();else{const e=(()=>{const e=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!e)return 0;const[,t,r]=e;return Number(t)*("ms"===r?1:1e3)})();le.current=setTimeout(()=>{he(!1),ve(null),null==z||z()},e+25)}},[de]);const Ie=e=>{ce(t=>f(t,e)?t:e)},Ne=(e=C)=>{v(ae),pe?Ae(!0):ae.current=setTimeout(()=>{Ae(!0)},e)},Re=(e=O)=>{v(se),se.current=setTimeout(()=>{xe.current||Ae(!1)},e)},je=e=>{var t;if(!e)return;const r=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==r?void 0:r.isConnected))return K(null),void we({current:null});C?Ne():Ae(!0),K(r),we({current:r}),v(se)},Me=()=>{I?Re(O||100):O?Re():Ae(!1),v(ae)},De=({x:e,y:t})=>{var r;const n={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};l({place:null!==(r=null==me?void 0:me.place)&&void 0!==r?r:p,offset:g,elementReference:n,tooltipReference:ie.current,tooltipArrowReference:oe.current,strategy:k,middlewares:S,border:J,arrowSize:te}).then(e=>{Ie(e)})},Le=e=>{if(!e)return;const t=e,r={x:t.clientX,y:t.clientY};De(r),ye.current=r},Fe=e=>{var t;if(!de)return;const r=e.target;r.isConnected&&((null===(t=ie.current)||void 0===t?void 0:t.contains(r))||[document.querySelector(`[id='${u}']`),...Ee].some(e=>null==e?void 0:e.contains(r))||(Ae(!1),v(ae)))},Be=c(je,50,!0),Ue=c(Me,50,!0),Ve=e=>{Ue.cancel(),Be(e)},ze=()=>{Be.cancel(),Ue()},qe=(0,n.useCallback)(()=>{var e,t;const r=null!==(e=null==me?void 0:me.position)&&void 0!==e?e:U;r?De(r):P?ye.current&&De(ye.current):(null==Y?void 0:Y.isConnected)&&l({place:null!==(t=null==me?void 0:me.place)&&void 0!==t?t:p,offset:g,elementReference:Y,tooltipReference:ie.current,tooltipArrowReference:oe.current,strategy:k,middlewares:S,border:J,arrowSize:te}).then(e=>{Se.current&&Ie(e)})},[de,Y,H,B,p,null==me?void 0:me.place,g,k,U,null==me?void 0:me.position,P,te]);(0,n.useEffect)(()=>{var e,t;const r=new Set(be);Ee.forEach(e=>{(null==q?void 0:q(e))||r.add({current:e})});const n=document.querySelector(`[id='${u}']`);n&&!(null==q?void 0:q(n))&&r.add({current:n});const o=()=>{Ae(!1)},a=h(Y),s=h(ie.current);Te.scroll&&(window.addEventListener("scroll",o),null==a||a.addEventListener("scroll",o),null==s||s.addEventListener("scroll",o));let l=null;Te.resize?window.addEventListener("resize",o):Y&&ie.current&&(l=(0,i.Me)(Y,ie.current,qe,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const c=e=>{"Escape"===e.key&&Ae(!1)};Te.escape&&window.addEventListener("keydown",c),Te.clickOutsideAnchor&&window.addEventListener("click",Fe);const d=[],f=e=>Boolean((null==e?void 0:e.target)&&(null==Y?void 0:Y.contains(e.target))),p=e=>{de&&f(e)||je(e)},m=e=>{de&&f(e)&&Me()},v=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],g=["click","dblclick","mousedown","mouseup"];Object.entries(Oe).forEach(([e,t])=>{t&&(v.includes(e)?d.push({event:e,listener:Ve}):g.includes(e)&&d.push({event:e,listener:p}))}),Object.entries(Pe).forEach(([e,t])=>{t&&(v.includes(e)?d.push({event:e,listener:ze}):g.includes(e)&&d.push({event:e,listener:m}))}),P&&d.push({event:"pointermove",listener:Le});const y=()=>{xe.current=!0},b=()=>{xe.current=!1,Me()},w=I&&(Pe.mouseout||Pe.mouseleave);return w&&(null===(e=ie.current)||void 0===e||e.addEventListener("mouseover",y),null===(t=ie.current)||void 0===t||t.addEventListener("mouseout",b)),d.forEach(({event:e,listener:t})=>{r.forEach(r=>{var n;null===(n=r.current)||void 0===n||n.addEventListener(e,t)})}),()=>{var e,t;Te.scroll&&(window.removeEventListener("scroll",o),null==a||a.removeEventListener("scroll",o),null==s||s.removeEventListener("scroll",o)),Te.resize?window.removeEventListener("resize",o):null==l||l(),Te.clickOutsideAnchor&&window.removeEventListener("click",Fe),Te.escape&&window.removeEventListener("keydown",c),w&&(null===(e=ie.current)||void 0===e||e.removeEventListener("mouseover",y),null===(t=ie.current)||void 0===t||t.removeEventListener("mouseout",b)),d.forEach(({event:e,listener:t})=>{r.forEach(r=>{var n;null===(n=r.current)||void 0===n||n.removeEventListener(e,t)})})}},[Y,qe,pe,be,Ee,M,D,L,_e,C,O]),(0,n.useEffect)(()=>{var e,r;let n=null!==(r=null!==(e=null==me?void 0:me.anchorSelect)&&void 0!==e?e:d)&&void 0!==r?r:"";!n&&t&&(n=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const i=new MutationObserver(e=>{const r=[],i=[];
172e.forEach(e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===t?r.push(e.target):e.oldValue===t&&i.push(e.target)),"childList"===e.type){if(Y){const t=[...e.removedNodes].filter(e=>1===e.nodeType);if(n)try{i.push(...t.filter(e=>e.matches(n))),i.push(...t.flatMap(e=>[...e.querySelectorAll(n)]))}catch(e){}t.some(e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,Y))&&(he(!1),Ae(!1),K(null),v(ae),v(se),!0)})}if(n)try{const t=[...e.addedNodes].filter(e=>1===e.nodeType);r.push(...t.filter(e=>e.matches(n))),r.push(...t.flatMap(e=>[...e.querySelectorAll(n)]))}catch(e){}}}),(r.length||i.length)&&ke(e=>[...e.filter(e=>!i.includes(e)),...r])});return i.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{i.disconnect()}},[t,d,null==me?void 0:me.anchorSelect,Y]),(0,n.useEffect)(()=>{qe()},[qe]),(0,n.useEffect)(()=>{if(!(null==G?void 0:G.current))return()=>null;const e=new ResizeObserver(()=>{setTimeout(()=>qe())});return e.observe(G.current),()=>{e.disconnect()}},[H,null==G?void 0:G.current]),(0,n.useEffect)(()=>{var e;const t=document.querySelector(`[id='${u}']`),r=[...Ee,t];Y&&r.includes(Y)||K(null!==(e=Ee[0])&&void 0!==e?e:t)},[u,Ee,Y]),(0,n.useEffect)(()=>(W&&Ae(!0),()=>{v(ae),v(se)}),[]),(0,n.useEffect)(()=>{var e;let r=null!==(e=null==me?void 0:me.anchorSelect)&&void 0!==e?e:d;if(!r&&t&&(r=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),r)try{const e=Array.from(document.querySelectorAll(r));ke(e)}catch(e){ke([])}},[t,d,null==me?void 0:me.anchorSelect]),(0,n.useEffect)(()=>{ae.current&&(v(ae),Ne(C))},[C]);const He=null!==(ne=null==me?void 0:me.content)&&void 0!==ne?ne:H,Ge=de&&Object.keys(ue.tooltipStyles).length>0;return(0,n.useImperativeHandle)(e,()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ve(null!=e?e:null),(null==e?void 0:e.delay)?Ne(e.delay):Ae(!0)},close:e=>{(null==e?void 0:e.delay)?Re(e.delay):Ae(!1)},activeAnchor:Y,place:ue.place,isOpen:Boolean(pe&&!T&&He&&Ge)})),pe&&!T&&He?n.createElement(_,{id:t,role:re,className:o("react-tooltip",w.tooltip,x.tooltip,x[s],r,`react-tooltip__place-${ue.place}`,w[Ge?"show":"closing"],Ge?"react-tooltip__show":"react-tooltip__closing","fixed"===k&&w.fixed,I&&w.clickable),onTransitionEnd:e=>{v(le),de||"opacity"!==e.propertyName||(he(!1),ve(null),null==z||z())},style:{...B,...ue.tooltipStyles,opacity:void 0!==X&&Ge?X:void 0},ref:ie},He,n.createElement(_,{className:o("react-tooltip-arrow",w.arrow,x.arrow,a,A&&w.noArrow),style:{...ue.tooltipArrowStyles,background:ee?`linear-gradient(to right bottom, transparent 50%, ${ee} 50%)`:void 0,"--rt-arrow-size":`${te}px`},ref:oe})):null},k=({content:e})=>n.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),S=n.forwardRef(({id:e,anchorId:t,anchorSelect:r,content:i,html:a,render:s,className:l,classNameArrow:c,variant:d="dark",place:f="top",offset:p=10,wrapper:h="div",children:m=null,events:v=["hover"],openOnClick:g=!1,positionStrategy:y="absolute",middlewares:w,delayShow:x=0,delayHide:S=0,float:_=!1,hidden:C=!1,noArrow:O=!1,clickable:P=!1,closeOnEsc:T=!1,closeOnScroll:A=!1,closeOnResize:I=!1,openEvents:N,closeEvents:R,globalCloseEvents:j,imperativeModeOnly:M=!1,style:D,position:L,isOpen:F,defaultIsOpen:B=!1,disableStyleInjection:U=!1,border:V,opacity:z,arrowColor:q,arrowSize:H,setIsOpen:G,afterShow:$,afterHide:W,disableTooltip:Z,role:Q="tooltip"},Y)=>
172{const[K,J]=(0,n.useState)(i),[X,ee]=(0,n.useState)(a),[te,re]=(0,n.useState)(f),[ne,ie]=(0,n.useState)(d),[oe,ae]=(0,n.useState)(p),[se,le]=(0,n.useState)(x),[ue,ce]=(0,n.useState)(S),[de,fe]=(0,n.useState)(_),[pe,he]=(0,n.useState)(C),[me,ve]=(0,n.useState)(h),[ge,ye]=(0,n.useState)(v),[be,we]=(0,n.useState)(y),[xe,Ee]=(0,n.useState)(null),[ke,Se]=(0,n.useState)(null),_e=(0,n.useRef)(null),Ce=(0,n.useRef)(U),{anchorRefs:Oe,activeAnchor:Pe}=b(e),Te=e=>null==e?void 0:e.getAttributeNames().reduce((t,r)=>{var n;return r.startsWith("data-tooltip-")&&(t[r.replace(/^data-tooltip-/,"")]=null!==(n=null==e?void 0:e.getAttribute(r))&&void 0!==n?n:null),t},{}),Ae=e=>{const t={place:e=>{var t;re(null!==(t=e)&&void 0!==t?t:f)},content:e=>{J(null!=e?e:i)},html:e=>{ee(null!=e?e:a)},variant:e=>{var t;ie(null!==(t=e)&&void 0!==t?t:d)},offset:e=>{ae(null===e?p:Number(e))},wrapper:e=>{var t;ve(null!==(t=e)&&void 0!==t?t:h)},events:e=>{const t=null==e?void 0:e.split(" ");ye(null!=t?t:v)},"position-strategy":e=>{var t;we(null!==(t=e)&&void 0!==t?t:y)},"delay-show":e=>{le(null===e?x:Number(e))},"delay-hide":e=>{ce(null===e?S:Number(e))},float:e=>{fe(null===e?_:"true"===e)},hidden:e=>{he(null===e?C:"true"===e)},"class-name":e=>{Ee(e)}};Object.values(t).forEach(e=>e(null)),Object.entries(e).forEach(([e,r])=>{var n;null===(n=t[e])||void 0===n||n.call(t,r)})};(0,n.useEffect)(()=>{J(i)},[i]),(0,n.useEffect)(()=>{ee(a)},[a]),(0,n.useEffect)(()=>{re(f)},[f]),(0,n.useEffect)(()=>{ie(d)},[d]),(0,n.useEffect)(()=>{ae(p)},[p]),(0,n.useEffect)(()=>{le(x)},[x]),(0,n.useEffect)(()=>{ce(S)},[S]),(0,n.useEffect)(()=>{fe(_)},[_]),(0,n.useEffect)(()=>{he(C)},[C]),(0,n.useEffect)(()=>{we(y)},[y]),(0,n.useEffect)(()=>{Ce.current!==U&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[U]),(0,n.useEffect)(()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===U,disableBase:U}}))},[]),(0,n.useEffect)(()=>{var n;const i=new Set(Oe);let o=r;if(!o&&e&&(o=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),o)try{document.querySelectorAll(o).forEach(e=>{i.add({current:e})})}catch(n){console.warn(`[react-tooltip] "${o}" is not a valid CSS selector`)}const a=document.querySelector(`[id='${t}']`);if(a&&i.add({current:a}),!i.size)return()=>null;const s=null!==(n=null!=ke?ke:a)&&void 0!==n?n:Pe.current,l=new MutationObserver(e=>{e.forEach(e=>{var t;if(!s||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const r=Te(s);Ae(r)})}),u={attributes:!0,childList:!1,subtree:!1};if(s){const e=Te(s);Ae(e),l.observe(s,u)}return()=>{l.disconnect()}},[Oe,Pe,ke,t,r]),(0,n.useEffect)(()=>{(null==D?void 0:D.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),V&&!u("border",`${V}`)&&console.warn(`[react-tooltip] "${V}" is not a valid \`border\`.`),(null==D?void 0:D.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),z&&!u("opacity",`${z}`)&&console.warn(`[react-tooltip] "${z}" is not a valid \`opacity\`.`)},[]);let Ie=m;const Ne=(0,n.useRef)(null);if(s){const e=s({content:(null==ke?void 0:ke.getAttribute("data-tooltip-content"))||K||null,activeAnchor:ke});Ie=e?n.createElement("div",{ref:Ne,className:"react-tooltip-content-wrapper"},e):null}else K&&(Ie=K);X&&(Ie=n.createElement(k,{content:X}));const Re={forwardRef:Y,id:e,anchorId:t,anchorSelect:r,className:o(l,xe),classNameArrow:c,content:Ie,contentWrapperRef:Ne,place:te,variant:ne,offset:oe,wrapper:me,events:ge,openOnClick:g,positionStrategy:be,middlewares:w,delayShow:se,delayHide:ue,float:de,hidden:pe,noArrow:O,clickable:P,closeOnEsc:T,closeOnScroll:A,closeOnResize:I,openEvents:N,closeEvents:R,globalCloseEvents:j,imperativeModeOnly:M,style:D,position:L,isOpen:F,defaultIsOpen:B,border:V,opacity:z,arrowColor:q,arrowSize:H,setIsOpen:G,afterShow:$,afterHide:W,disableTooltip:Z,activeAnchor:ke,previousActiveAnchor:_e.current,setActiveAnchor:e=>{Se(t=>((null==e?void 0:e.isSameNode(t))||(_e.current=t),e))},role:Q};return n.createElement(E,{...Re})});"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||s({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}
172.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||s({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})})},57856:function(e,t,r){"use strict";r.d(t,{tq:function(){return x},o5:function(){return k},c6:function(){return y}});var n=r(27378),i=r(68443);function o(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function a(e,t){const r=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>r.indexOf(e)<0).forEach(r=>{void 0===e[r]?e[r]=t[r]:o(t[r])&&o(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:a(e[r],t[r]):e[r]=t[r]})}function s(e={}){return e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function l(e={}){return e.pagination&&void 0===e.pagination.el}function u(e={}){return e.scrollbar&&void 0===e.scrollbar.el}function c(e=""){const t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),r=[];return t.forEach(e=>{r.indexOf(e)<0&&r.push(e)}),r.join(" ")}function d(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}const f=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","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 p(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function h(e){const t=[];
172return n.Children.toArray(e).forEach(e=>{p(e)?t.push(e):e.props&&e.props.children&&h(e.props.children).forEach(e=>t.push(e))}),t}function m(e){const t=[],r={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return n.Children.toArray(e).forEach(e=>{if(p(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){const n=h(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}}function v(e,t){return"undefined"==typeof window?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)}const g=(0,n.createContext)(null),y=()=>(0,n.useContext)(g),b=(0,n.createContext)(null);function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(this,arguments)}const x=(0,n.forwardRef)(function(e,t){let{className:r,tag:p="div",wrapperTag:h="div",children:g,onSwiper:y,...x}=void 0===e?{}:e,E=!1;const[k,S]=(0,n.useState)("swiper"),[_,C]=(0,n.useState)(null),[O,P]=(0,n.useState)(!1),T=(0,n.useRef)(!1),A=(0,n.useRef)(null),I=(0,n.useRef)(null),N=(0,n.useRef)(null),R=(0,n.useRef)(null),j=(0,n.useRef)(null),M=(0,n.useRef)(null),D=(0,n.useRef)(null),L=(0,n.useRef)(null),{params:F,passedParams:B,rest:U,events:V}=function(e={},t=!0){const r={on:{}},n={},s={};a(r,i.ZP.defaults),a(r,i.ZP.extendedDefaults),r._emitClasses=!0,r.init=!1;const l={},u=f.map(e=>e.replace(/_/,"")),c=Object.assign({},e);return Object.keys(c).forEach(i=>{void 0!==e[i]&&(u.indexOf(i)>=0?o(e[i])?(r[i]={},s[i]={},a(r[i],e[i]),a(s[i],e[i])):(r[i]=e[i],s[i]=e[i]):0===i.search(/on[A-Z]/)&&"function"==typeof e[i]?t?n[`${i[2].toLowerCase()}${i.substr(3)}`]=e[i]:r.on[`${i[2].toLowerCase()}${i.substr(3)}`]=e[i]:l[i]=e[i])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===r[e]&&(r[e]={}),!1===r[e]&&delete r[e]}),{params:r,passedParams:s,rest:l,events:n}}(x),{slides:z,slots:q}=m(g),H=()=>{P(!O)};Object.assign(F.on,{_containerClasses(e,t){S(t)}});const G=()=>{Object.assign(F.on,V),E=!0;const e={...F};if(delete e.wrapperClass,I.current=new i.ZP(e),I.current.virtual&&I.current.params.virtual.enabled){I.current.virtual.slides=z;const e={cache:!1,slides:z,renderExternal:C,renderExternalUpdate:!1};a(I.current.params.virtual,e),a(I.current.originalParams.virtual,e)}};return A.current||G(),I.current&&I.current.on("_beforeBreakpoint",H),(0,n.useEffect)(()=>()=>{I.current&&I.current.off("_beforeBreakpoint",H)}),(0,n.useEffect)(()=>{!T.current&&I.current&&(I.current.emitSlidesClasses(),T.current=!0)}),v(()=>{if(t&&(t.current=A.current),A.current)return I.current.destroyed&&G(),function({el:e,nextEl:t,prevEl:r,paginationEl:n,scrollbarEl:i,swiper:o},a){s(a)&&t&&r&&(o.params.navigation.nextEl=t,o.originalParams.navigation.nextEl=t,o.params.navigation.prevEl=r,o.originalParams.navigation.prevEl=r),l(a)&&n&&(o.params.pagination.el=n,o.originalParams.pagination.el=n),u(a)&&i&&(o.params.scrollbar.el=i,o.originalParams.scrollbar.el=i),o.init(e)}({el:A.current,nextEl:j.current,prevEl:M.current,paginationEl:D.current,scrollbarEl:L.current,swiper:I.current},F),y&&y(I.current),()=>{I.current&&!I.current.destroyed&&I.current.destroy(!0,!1)}},[]),v(()=>{!E&&V&&I.current&&Object.keys(V).forEach(e=>{I.current.on(e,V[e])});const e=function(e,t,r,n,i){const a=[];if(!t)return a;const s=e=>{a.indexOf(e)<0&&a.push(e)};if(r&&n){const e=n.map(i),t=r.map(i);e.join("")!==t.join("")&&s("children"),n.length!==r.length&&s("children")}return f.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(r=>{if(r in e&&r in t)if(o(e[r])&&o(t[r])){const 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)}),a}(B,N.current,z,R.current,e=>e.key);return N.current=B,R.current=z,e.length&&I.current&&!I.current.destroyed&&function({swiper:e,slides:t,passedParams:r,changedParams:n,nextEl:i,prevEl:s,scrollbarEl:l,paginationEl:u}){const c=n.filter(e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e),{params:d,pagination:f,navigation:p,scrollbar:h,virtual:m,thumbs:v}=e;let g,y,b,w,x,E,k,S;n.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(g=!0),n.includes("controller")&&r.controller&&r.controller.control&&d.controller&&!d.controller.control&&(y=!0),n.includes("pagination")&&r.pagination&&(r.pagination.el||u)&&(d.pagination||!1===d.pagination)&&f&&!f.el&&(b=!0),n.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||l)&&(
172d.scrollbar||!1===d.scrollbar)&&h&&!h.el&&(w=!0),n.includes("navigation")&&r.navigation&&(r.navigation.prevEl||s)&&(r.navigation.nextEl||i)&&(d.navigation||!1===d.navigation)&&p&&!p.prevEl&&!p.nextEl&&(x=!0);const _=t=>{e[t]&&(e[t].destroy(),"navigation"===t?(e.isElement&&(e[t].prevEl.remove(),e[t].nextEl.remove()),d[t].prevEl=void 0,d[t].nextEl=void 0,e[t].prevEl=void 0,e[t].nextEl=void 0):(e.isElement&&e[t].el.remove(),d[t].el=void 0,e[t].el=void 0))};n.includes("loop")&&e.isElement&&(d.loop&&!r.loop?E=!0:!d.loop&&r.loop?k=!0:S=!0),c.forEach(e=>{if(o(d[e])&&o(r[e]))a(d[e],r[e]),"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e||!("enabled"in r[e])||r[e].enabled||_(e);else{const t=r[e];!0!==t&&!1!==t||"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e?d[e]=r[e]:!1===t&&_(e)}}),c.includes("controller")&&!y&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),n.includes("children")&&t&&m&&d.virtual.enabled&&(m.slides=t,m.update(!0)),n.includes("children")&&t&&d.loop&&(S=!0),g&&v.init()&&v.update(!0),y&&(e.controller.control=d.controller.control),b&&(!e.isElement||u&&"string"!=typeof u||((u=document.createElement("div")).classList.add("swiper-pagination"),e.el.shadowEl.appendChild(u)),u&&(d.pagination.el=u),f.init(),f.render(),f.update()),w&&(!e.isElement||l&&"string"!=typeof l||((l=document.createElement("div")).classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(l)),l&&(d.scrollbar.el=l),h.init(),h.updateSize(),h.setTranslate()),x&&(e.isElement&&(i&&"string"!=typeof i||((i=document.createElement("div")).classList.add("swiper-button-next"),e.el.shadowEl.appendChild(i)),s&&"string"!=typeof s||((s=document.createElement("div")).classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(s))),i&&(d.navigation.nextEl=i),s&&(d.navigation.prevEl=s),p.init(),p.update()),n.includes("allowSlideNext")&&(e.allowSlideNext=r.allowSlideNext),n.includes("allowSlidePrev")&&(e.allowSlidePrev=r.allowSlidePrev),n.includes("direction")&&e.changeDirection(r.direction,!1),(E||S)&&e.loopDestroy(),(k||S)&&e.loopCreate(),e.update()}({swiper:I.current,slides:z,passedParams:B,changedParams:e,nextEl:j.current,prevEl:M.current,scrollbarEl:L.current,paginationEl:D.current}),()=>{V&&I.current&&Object.keys(V).forEach(e=>{I.current.off(e,V[e])})}}),v(()=>{var e;!(e=I.current)||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())},[_]),n.createElement(p,w({ref:A,className:c(`${k}${r?` ${r}`:""}`)},U),n.createElement(b.Provider,{value:I.current},q["container-start"],n.createElement(h,{className:d(F.wrapperClass)},q["wrapper-start"],F.virtual?function(e,t,r){if(!r)return null;const i=e=>{let r=e;return e<0?r=t.length+e:r>=t.length&&(r-=t.length),r},o=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${r.offset}px`}:{top:`${r.offset}px`},{from:a,to:s}=r,l=e.params.loop?-t.length:0,u=e.params.loop?2*t.length:t.length,c=[];for(let e=l;e<u;e+=1)e>=a&&e<=s&&c.push(t[i(e)]);return c.map((t,r)=>n.cloneElement(t,{swiper:e,style:o,key:`slide-${r}`}))}(I.current,z,_):z.map((e,t)=>n.cloneElement(e,{swiper:I.current,swiperSlideIndex:t})),q["wrapper-end"]),s(F)&&n.createElement(n.Fragment,null,n.createElement("div",{ref:M,className:"swiper-button-prev"}),n.createElement("div",{ref:j,className:"swiper-button-next"})),u(F)&&n.createElement("div",{ref:L,className:"swiper-scrollbar"}),l(F)&&n.createElement("div",{ref:D,className:"swiper-pagination"}),q["container-end"]))});function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},E.apply(this,arguments)}x.displayName="Swiper";const k=(0,n.forwardRef)(function(e,t){let{tag:r="div",children:i,className:o="",swiper:a,zoom:s,lazy:l,virtualIndex:u,swiperSlideIndex:d,...f}=void 0===e?{}:e;
172const p=(0,n.useRef)(null),[h,m]=(0,n.useState)("swiper-slide"),[y,b]=(0,n.useState)(!1);function w(e,t,r){t===p.current&&m(r)}v(()=>{if(void 0!==d&&(p.current.swiperSlideIndex=d),t&&(t.current=p.current),p.current&&a){if(!a.destroyed)return a.on("_slideClass",w),()=>{a&&a.off("_slideClass",w)};"swiper-slide"!==h&&m("swiper-slide")}}),v(()=>{a&&p.current&&!a.destroyed&&m(a.getSlideClasses(p.current))},[a]);const x={isActive:h.indexOf("swiper-slide-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0},k=()=>"function"==typeof i?i(x):i;return n.createElement(r,E({ref:p,className:c(`${h}${o?` ${o}`:""}`),"data-swiper-slide-index":u,onLoad:()=>{b(!0)}},f),s&&n.createElement(g.Provider,{value:x},n.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof s?s:void 0},k(),l&&!y&&n.createElement("div",{className:"swiper-lazy-preloader"}))),!s&&n.createElement(g.Provider,{value:x},k(),l&&!y&&n.createElement("div",{className:"swiper-lazy-preloader"})))});k.displayName="SwiperSlide"},68443: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={}){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,{Qr:function(){return X},Rv:function(){return ee},tl:function(){return J},ZP:function(){return Y}});const o={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const e="undefined"!=typeof document?document:{};return i(e,o),e}const s={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(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function l(){const e="undefined"!=typeof window?window:{};return i(e,s),e}function u(e,t=0){return setTimeout(e,t)}function c(){return Date.now()}function d(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function f(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function p(...e){const t=Object(e[0]),r=["__proto__","constructor","prototype"];for(let n=1;n<e.length;n+=1){const i=e[n];if(null!=i&&!f(i)){const e=Object.keys(Object(i)).filter(e=>r.indexOf(e)<0);for(let r=0,n=e.length;r<n;r+=1){const n=e[r],o=Object.getOwnPropertyDescriptor(i,n);void 0!==o&&o.enumerable&&(d(t[n])&&d(i[n])?i[n].__swiper__?t[n]=i[n]:p(t[n],i[n]):!d(t[n])&&d(i[n])?(t[n]={},i[n].__swiper__?t[n]=i[n]:p(t[n],i[n])):t[n]=i[n])}}}return t}function h(e,t,r){e.style.setProperty(t,r)}function m({swiper:e,targetPosition:t,side:r}){const n=l(),i=-e.translate;let o,a=null;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",n.cancelAnimationFrame(e.cssModeFrameID);const u=t>i?"next":"prev",c=(e,t)=>"next"===u&&e>=t||"prev"===u&&e<=t,d=()=>{o=(new Date).getTime(),null===a&&(a=o);const l=Math.max(Math.min((o-a)/s,1),0),u=.5-Math.cos(l*Math.PI)/2;let f=i+u*(t-i);if(c(f,t)&&(f=t),e.wrapperEl.scrollTo({[r]:f}),c(f,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[r]:f})}),void n.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=n.requestAnimationFrame(d)};d()}function v(e,t=""){return[...e.children].filter(e=>e.matches(t))}function g(e,t=[]){const r=document.createElement(e);return r.classList.add(...Array.isArray(t)?t:[t]),r}function y(e,t){return l().getComputedStyle(e,null).getPropertyValue(t)}function b(e){let t,r=e;if(r){for(t=0;null!==(r=r.previousSibling);)1===r.nodeType&&(t+=1);return t}}function w(e,t){const r=[];let n=e.parentElement;for(;n;)t?n.matches(t)&&r.push(n):r.push(n),n=n.parentElement;return r}function x(e,t){t&&e.addEventListener("transitionend",function r(n){n.target===e&&(t.call(e,n),e.removeEventListener("transitionend",r))})}function E(e,t,r){const n=l();return r?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}let k,S,_;function C(){return k||(k=function(){const e=l(),t=a();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),k}var O={on(e,t,r){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof t)return n;const i=r?"unshift":"push";
172return e.split(" ").forEach(e=>{n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][i](t)}),n},once(e,t,r){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof t)return n;function i(...r){n.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(n,r)}return i.__emitterProxy=t,n.on(e,i,r)},onAny(e,t){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof e)return r;const n=t?"unshift":"push";return r.eventsAnyListeners.indexOf(e)<0&&r.eventsAnyListeners[n](e),r},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const r=t.eventsAnyListeners.indexOf(e);return r>=0&&t.eventsAnyListeners.splice(r,1),t},off(e,t){const r=this;return!r.eventsListeners||r.destroyed?r: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):r},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let r,n,i;return"string"==typeof e[0]||Array.isArray(e[0])?(r=e[0],n=e.slice(1,e.length),i=t):(r=e[0].events,n=e[0].data,i=e[0].context||t),n.unshift(i),(Array.isArray(r)?r:r.split(" ")).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(i,[e,...n])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(i,n)})}),t}};const P=(e,t)=>{if(!e||e.destroyed||!e.params)return;const r=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(r){const t=r.querySelector(`.${e.params.lazyPreloaderClass}`);t&&t.remove()}},T=(e,t)=>{if(!e.slides[t])return;const r=e.slides[t].querySelector('[loading="lazy"]');r&&r.removeAttribute("loading")},A=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const r=e.slides.length;if(!r||!t||t<0)return;t=Math.min(t,r);const n="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const r=i,o=[r-t];return o.push(...Array.from({length:t}).map((e,t)=>r+n+t)),void e.slides.forEach((t,r)=>{o.includes(t.column)&&T(e,r)})}const o=i+n-1;if(e.params.rewind||e.params.loop)for(let n=i-t;n<=o+t;n+=1){const t=(n%r+r)%r;(t<i||t>o)&&T(e,t)}else for(let n=Math.max(i-t,0);n<=Math.min(o+t,r-1);n+=1)n!==i&&(n>o||n<i)&&T(e,n)};var I={updateSize:function(){const e=this;let t,r;const n=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:n.clientWidth,r=void 0!==e.params.height&&null!==e.params.height?e.params.height:n.clientHeight,0===t&&e.isHorizontal()||0===r&&e.isVertical()||(t=t-parseInt(y(n,"padding-left")||0,10)-parseInt(y(n,"padding-right")||0,10),r=r-parseInt(y(n,"padding-top")||0,10)-parseInt(y(n,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(r)&&(r=0),Object.assign(e,{width:t,height:r,size:e.isHorizontal()?t:r}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{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"}[t]}function r(e,r){return parseFloat(e.getPropertyValue(t(r))||0)}const n=e.params,{wrapperEl:i,slidesEl:o,size:a,rtlTranslate:s,wrongRTL:l}=e,u=e.virtual&&n.virtual.enabled,c=u?e.virtual.slides.length:e.slides.length,d=v(o,`.${e.params.slideClass}, swiper-slide`),f=u?e.virtual.slides.length:d.length;let p=[];const m=[],g=[];let b=n.slidesOffsetBefore;"function"==typeof b&&(b=n.slidesOffsetBefore.call(e));let w=n.slidesOffsetAfter;"function"==typeof w&&(w=n.slidesOffsetAfter.call(e));const x=e.snapGrid.length,k=e.slidesGrid.length;let S=n.spaceBetween,_=-b,C=0,O=0;if(void 0===a)return;"string"==typeof S&&S.indexOf("%")>=0?S=parseFloat(S.replace("%",""))/100*a:"string"==typeof S&&(S=parseFloat(S)),e.virtualSize=-S,d.forEach(e=>{s?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(h(i,"--swiper-centered-offset-before",""),h(i,"--swiper-centered-offset-after",""));const P=n.grid&&n.grid.rows>1&&e.grid;let T;P&&e.grid.initSlides(f);const A="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>void 0!==n.breakpoints[e].slidesPerView).length>0;for(let i=0;i<f;i+=1){let o;if(T=0,d[i]&&(o=d[i]),P&&e.grid.updateSlide(i,o,f,t),!d[i]||"none"!==y(o,"display")){if("auto"===n.slidesPerView){A&&(d[i].style[t("width")]="");const a=getComputedStyle(o),s=o.style.transform,l=o.style.webkitTransform;if(s&&(o.style.transform="none"),l&&(o.style.webkitTransform="none"),n.roun
vendor: 4,091 bytes, line 172
172dLengths)T=e.isHorizontal()?E(o,"width",!0):E(o,"height",!0);else{const e=r(a,"width"),t=r(a,"padding-left"),n=r(a,"padding-right"),i=r(a,"margin-left"),s=r(a,"margin-right"),l=a.getPropertyValue("box-sizing");if(l&&"border-box"===l)T=e+i+s;else{const{clientWidth:r,offsetWidth:a}=o;T=e+t+n+i+s+(a-r)}}s&&(o.style.transform=s),l&&(o.style.webkitTransform=l),n.roundLengths&&(T=Math.floor(T))}else T=(a-(n.slidesPerView-1)*S)/n.slidesPerView,n.roundLengths&&(T=Math.floor(T)),d[i]&&(d[i].style[t("width")]=`${T}px`);d[i]&&(d[i].swiperSlideSize=T),g.push(T),n.centeredSlides?(_=_+T/2+C/2+S,0===C&&0!==i&&(_=_-a/2-S),0===i&&(_=_-a/2-S),Math.abs(_)<.001&&(_=0),n.roundLengths&&(_=Math.floor(_)),O%n.slidesPerGroup===0&&p.push(_),m.push(_)):(n.roundLengths&&(_=Math.floor(_)),(O-Math.min(e.params.slidesPerGroupSkip,O))%e.params.slidesPerGroup===0&&p.push(_),m.push(_),_=_+T+S),e.virtualSize+=T+S,C=T,O+=1}}if(e.virtualSize=Math.max(e.virtualSize,a)+w,s&&l&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=`${e.virtualSize+S}px`),n.setWrapperSize&&(i.style[t("width")]=`${e.virtualSize+S}px`),P&&e.grid.updateWrapperSize(T,p,t),!n.centeredSlides){const t=[];for(let r=0;r<p.length;r+=1){let i=p[r];n.roundLengths&&(i=Math.floor(i)),p[r]<=e.virtualSize-a&&t.push(i)}p=t,Math.floor(e.virtualSize-a)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-a)}if(u&&n.loop){const t=g[0]+S;if(n.slidesPerGroup>1){const r=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),i=t*n.slidesPerGroup;for(let e=0;e<r;e+=1)p.push(p[p.length-1]+i)}for(let r=0;r<e.virtual.slidesBefore+e.virtual.slidesAfter;r+=1)1===n.slidesPerGroup&&p.push(p[p.length-1]+t),m.push(m[m.length-1]+t),e.virtualSize+=t}if(0===p.length&&(p=[0]),0!==S){const r=e.isHorizontal()&&s?"marginLeft":t("marginRight");d.filter((e,t)=>!(n.cssMode&&!n.loop)||t!==d.length-1).forEach(e=>{e.style[r]=`${S}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;g.forEach(t=>{e+=t+(S||0)}),e-=S;const t=e-a;p=p.map(e=>e<=0?-b:e>t?t+w:e)}if(n.centerInsufficientSlides){let e=0;if(g.forEach(t=>{e+=t+(S||0)}),e-=S,e<a){const t=(a-e)/2;p.forEach((e,r)=>{p[r]=e-t}),m.forEach((e,r)=>{m[r]=e+t})}}if(Object.assign(e,{slides:d,snapGrid:p,slidesGrid:m,slidesSizesGrid:g}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){h(i,"--swiper-centered-offset-before",-p[0]+"px"),h(i,"--swiper-centered-offset-after",e.size/2-g[g.length-1]/2+"px");const t=-e.snapGrid[0],r=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+r)}if(f!==c&&e.emit("slidesLengthChange"),p.length!==x&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),m.length!==k&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),!(u||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,r=e.el.classList.contains(t);f<=n.maxBackfaceHiddenSlides?r||e.el.classList.add(t):r&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,r=[],n=t.virtual&&t.params.virtual.enabled;let i,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>n?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{r.push(e)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!n)break;r.push(a(e))}else r.push(a(t.activeIndex));for(i=0;i<r.length;i+=1)if(void 0!==r[i]){const e=r[i].offsetHeight;o=e>o?e:o}(o||0===o)&&(t.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,r=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let n=0;n<t.length;n+=1)t[n].swiperSlideOffset=(e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop)-r-e.cssOverflowAdjustment()},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,r=t.params,{slides:n,rtlTranslate:i,snapGrid:o}=t;if(0===n.length)return;void 0===n[0].swiperSlideOffset&&t.updateSlidesOffset();let a=-e;
172i&&(a=e),n.forEach(e=>{e.classList.remove(r.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=r.spaceBetween;"string"==typeof s&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*t.size:"string"==typeof s&&(s=parseFloat(s));for(let e=0;e<n.length;e+=1){const l=n[e];let u=l.swiperSlideOffset;r.cssMode&&r.centeredSlides&&(u-=n[0].swiperSlideOffset);const c=(a+(r.centeredSlides?t.minTranslate():0)-u)/(l.swiperSlideSize+s),d=(a-o[0]+(r.centeredSlides?t.minTranslate():0)-u)/(l.swiperSlideSize+s),f=-(a-u),p=f+t.slidesSizesGrid[e];(f>=0&&f<t.size-1||p>1&&p<=t.size||f<=0&&p>=t.size)&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e),n[e].classList.add(r.slideVisibleClass)),l.progress=i?-c:c,l.originalProgress=i?-d:d}},updateProgress:function(e){const t=this;if(void 0===e){const r=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*r||0}const r=t.params,n=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:a,progressLoop:s}=t;const l=o,u=a;if(0===n)i=0,o=!0,a=!0;else{i=(e-t.minTranslate())/n;const r=Math.abs(e-t.minTranslate())<1,s=Math.abs(e-t.maxTranslate())<1;o=r||i<=0,a=s||i>=1,r&&(i=0),s&&(i=1)}if(r.loop){const r=t.getSlideIndexByData(0),n=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[r],o=t.slidesGrid[n],a=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);s=l>=i?(l-i)/a:(l+a-o)/a,s>1&&(s-=1)}Object.assign(t,{progress:i,progressLoop:s,isBeginning:o,isEnd:a}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),a&&!u&&t.emit("reachEnd toEdge"),(l&&!o||u&&!a)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:r,slidesEl:n,activeIndex:i}=e,o=e.virtual&&r.virtual.enabled,a=e=>v(n,`.${r.slideClass}${e}, swiper-slide${e}`)[0];let s;if(t.forEach(e=>{e.classList.remove(r.slideActiveClass,r.slideNextClass,r.slidePrevClass)}),o)if(r.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),s=a(`[data-swiper-slide-index="${t}"]`)}else s=a(`[data-swiper-slide-index="${i}"]`);else s=t[i];if(s){s.classList.add(r.slideActiveClass);let e=function(e,t){const r=[];for(;e.nextElementSibling;){const n=e.nextElementSibling;t?n.matches(t)&&r.push(n):r.push(n),e=n}return r}(s,`.${r.slideClass}, swiper-slide`)[0];r.loop&&!e&&(e=t[0]),e&&e.classList.add(r.slideNextClass);let n=function(e,t){const r=[];for(;e.previousElementSibling;){const n=e.previousElementSibling;t?n.matches(t)&&r.push(n):r.push(n),e=n}return r}(s,`.${r.slideClass}, swiper-slide`)[0];r.loop&&0===!n&&(n=t[t.length-1]),n&&n.classList.add(r.slidePrevClass)}e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,r=t.rtlTranslate?t.translate:-t.translate,{snapGrid:n,params:i,activeIndex:o,realIndex:a,snapIndex:s}=t;let l,u=e;const c=e=>{let r=e-t.virtual.slidesBefore;return r<0&&(r=t.virtual.slides.length+r),r>=t.virtual.slides.length&&(r-=t.virtual.slides.length),r};if(void 0===u&&(u=function(e){const{slidesGrid:t,params:r}=e,n=e.rtlTranslate?e.translate:-e.translate;let i;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?n>=t[e]&&n<t[e+1]-(t[e+1]-t[e])/2?i=e:n>=t[e]&&n<t[e+1]&&(i=e+1):n>=t[e]&&(i=e);return r.normalizeSlideIndex&&(i<0||void 0===i)&&(i=0),i}(t)),n.indexOf(r)>=0)l=n.indexOf(r);else{const e=Math.min(i.slidesPerGroupSkip,u);l=e+Math.floor((u-e)/i.slidesPerGroup)}if(l>=n.length&&(l=n.length-1),u===o)return l!==s&&(t.snapIndex=l,t.emit("snapIndexChange")),void(t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=c(u)));let d;d=t.virtual&&i.virtual.enabled&&i.loop?c(u):t.slides[u]?parseInt(t.slides[u].getAttribute("data-swiper-slide-index")||u,10):u,Object.assign(t,{previousSnapIndex:s,snapIndex:l,previousRealIndex:a,realIndex:d,previousIndex:o,activeIndex:u}),t.initialized&&A(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),a!==d&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,r=t.params,n=e.closest(`.${r.slideClass}, swiper-slide`);let i,o=!1;if(n)for(let e=0;e<t.slides.length;e+=1)if(t.slides[e]===n){o=!0,i=e;break}if(!n||!o)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=n,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(n.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=i,r.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}};function N({swiper:e,runCallbacks:t,direction:r,step:n}){const{activeIndex:i,previousIndex:o}=e;let a=r;if(a||(a=i>o?"next":i<o?"prev":"reset"),e.emit(`transition${n}`),t&&i!==o){if("reset"===a)return void e.emit(`slideResetTransition${n}`);e.emit(`slideChangeTransition${n}`),"next"===a?e.emit(`slideNextTransition${n}`):e.emit(`slidePrevTransition${n}`)}}var R={slideTo:function(e=0,t=this.params.speed,r=!0,n,i){"string"==typeof e&&(e=parseInt(e,10));const o=this;let a=e;a<0&&(a=0);const{params:s,snapGrid:l,slidesGrid:u,previousIndex:c,activeIndex:d,rtlTranslate:f,wrapperEl:p,enabled:h}=o;if(o.animating&&s.preventInteractionOnTransition||!h&&!n&&!i)return!1;const v=Math.min(o.params.slidesPerGroupSkip,a);let g=v+Math.floor((a-v)/o.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const y=-l[g];if(s.normalizeSlideIndex)for(let e=0;e<u.length;e+=1){const t=-Math.floor(100*y),r=Math.floor(100*u[e]),n=Math.floor(100*u[e+1]);void 0!==u[e+1]?t>=r&&t<n-(n-r)/2?a=e:t>=r&&t<n&&(a=e+1):t>=r&&(a=e)}if(o.initialized&&a!==d){if(!o.allowSlideNext&&(f?y>o.translate&&y>o.minTranslate():y<o.translate&&y<o.minTranslate()))return!1;if(!o.allowSlidePrev&&y>o.translate&&y>o.maxTranslate()&&(d||0)!==a)return!1}let b;if(a!==(c||0)&&r&&o.emit("beforeSlideChangeStart"),o.updateProgress(y),b=a>d?"next":a<d?"prev":"reset",f&&-y===o.translate||!f&&y===o.translate)return o.updateActiveIndex(a),s.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==s.effect&&o.setTranslate(y),"reset"!==b&&(o.transitionStart(r,b),o.transitionEnd(r,b)),!1;if(s.cssMode){const e=o.isHorizontal(),r=f?y:-y;if(0===t){const t=o.virtual&&o.params.virtual.enabled;t&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),t&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[e?"scrollLeft":"scrollTop"]=r})):p[e?"scrollLeft":"scrollTop"]=r,t&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return m({swiper:o,targetPosition:r,side:e?"left"
172:"top"}),!0;p.scrollTo({[e?"left":"top"]:r,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(y),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,n),o.transitionStart(r,b),0===t?o.transitionEnd(r,b):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(r,b))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t=this.params.speed,r=!0,n){"string"==typeof e&&(e=parseInt(e,10));const i=this;let o=e;return i.params.loop&&(i.virtual&&i.params.virtual.enabled?o+=i.virtual.slidesBefore:o=i.getSlideIndexByData(o)),i.slideTo(o,t,r,n)},slideNext:function(e=this.params.speed,t=!0,r){const n=this,{enabled:i,params:o,animating:a}=n;if(!i)return n;let s=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(s=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex<o.slidesPerGroupSkip?1:s,u=n.virtual&&o.virtual.enabled;if(o.loop){if(a&&!u&&o.loopPreventsSliding)return!1;n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft}return o.rewind&&n.isEnd?n.slideTo(0,e,t,r):n.slideTo(n.activeIndex+l,e,t,r)},slidePrev:function(e=this.params.speed,t=!0,r){const n=this,{params:i,snapGrid:o,slidesGrid:a,rtlTranslate:s,enabled:l,animating:u}=n;if(!l)return n;const 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)}const f=d(s?n.translate:-n.translate),p=o.map(e=>d(e));let 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=a.indexOf(h),m<0&&(m=n.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(m=m-n.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),i.rewind&&n.isBeginning){const 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 n.slideTo(m,e,t,r)},slideReset:function(e=this.params.speed,t=!0,r){return this.slideTo(this.activeIndex,e,t,r)},slideToClosest:function(e=this.params.speed,t=!0,r,n=.5){const i=this;let o=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){const e=i.snapGrid[s];l-e>(i.snapGrid[s+1]-e)*n&&(o+=i.params.slidesPerGroup)}else{const e=i.snapGrid[s-1];l-e<=(i.snapGrid[s]-e)*n&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,r)},slideToClickedSlide:function(){const e=this,{params:t,slidesEl:r}=e,n="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,o=e.clickedIndex;const a=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?o<e.loopedSlides-n/2||o>e.slides.length-e.loopedSlides+n/2?(e.loopFix(),o=e.getSlideIndex(v(r,`${a}[data-swiper-slide-index="${i}"]`)[0]),u(()=>{e.slideTo(o)})):e.slideTo(o):o>e.slides.length-n?(e.loopFix(),o=e.getSlideIndex(v(r,`${a}[data-swiper-slide-index="${i}"]`)[0]),u(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}};function j(e){const t=this,r=a(),n=l(),i=t.touchEventsData;i.evCache.push(e);const{params:o,touches:s,enabled:u}=t;if(!u)return;if(!o.simulateTouch&&"mouse"===e.pointerType)return;if(t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let d=e;d.originalEvent&&(d=d.originalEvent);let f=d.target;if("wrapper"===o.touchEventsTarget&&!t.wrapperEl.contains(f))return;if("which"in d&&3===d.which)return;if("button"in d&&d.button>0)return;if(i.isTouched&&i.isMoved)return;const p=!!o.noSwipingClass&&""!==o.noSwipingClass,h=e.composedPath?e.composedPath():e.path;p&&d.target&&d.target.shadowRoot&&h&&(f=h[0]);const m=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,v=!(!d.target||!d.target.shadowRoot);if(o.noSwiping&&(v?function(e,t=this){return function t(r){if(!r||r===a()||r===l()
172)return null;r.assignedSlot&&(r=r.assignedSlot);const n=r.closest(e);return n||r.getRootNode?n||t(r.getRootNode().host):null}(t)}(m,f):f.closest(m)))return void(t.allowClick=!0);if(o.swipeHandler&&!f.closest(o.swipeHandler))return;s.currentX=d.pageX,s.currentY=d.pageY;const g=s.currentX,y=s.currentY,b=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,w=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(b&&(g<=w||g>=n.innerWidth-w)){if("prevent"!==b)return;e.preventDefault()}Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=g,s.startY=y,i.touchStartTime=c(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);let x=!0;f.matches(i.focusableElements)&&(x=!1,"SELECT"===f.nodeName&&(i.isTouched=!1)),r.activeElement&&r.activeElement.matches(i.focusableElements)&&r.activeElement!==f&&r.activeElement.blur();const E=x&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!E||f.isContentEditable||d.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",d)}function M(e){const t=a(),r=this,n=r.touchEventsData,{params:i,touches:o,rtlTranslate:s,enabled:l}=r;if(!l)return;if(!i.simulateTouch&&"mouse"===e.pointerType)return;let u=e;if(u.originalEvent&&(u=u.originalEvent),!n.isTouched)return void(n.startMoving&&n.isScrolling&&r.emit("touchMoveOpposite",u));const d=n.evCache.findIndex(e=>e.pointerId===u.pointerId);d>=0&&(n.evCache[d]=u);const f=n.evCache.length>1?n.evCache[0]:u,p=f.pageX,h=f.pageY;if(u.preventedByNestedSwiper)return o.startX=p,void(o.startY=h);if(!r.allowTouchMove)return u.target.matches(n.focusableElements)||(r.allowClick=!1),void(n.isTouched&&(Object.assign(o,{startX:p,startY:h,prevX:r.touches.currentX,prevY:r.touches.currentY,currentX:p,currentY:h}),n.touchStartTime=c()));if(i.touchReleaseOnEdges&&!i.loop)if(r.isVertical()){if(h<o.startY&&r.translate<=r.maxTranslate()||h>o.startY&&r.translate>=r.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(p<o.startX&&r.translate<=r.maxTranslate()||p>o.startX&&r.translate>=r.minTranslate())return;if(t.activeElement&&u.target===t.activeElement&&u.target.matches(n.focusableElements))return n.isMoved=!0,void(r.allowClick=!1);if(n.allowTouchCallbacks&&r.emit("touchMove",u),u.targetTouches&&u.targetTouches.length>1)return;o.currentX=p,o.currentY=h;const m=o.currentX-o.startX,v=o.currentY-o.startY;if(r.params.threshold&&Math.sqrt(m**2+v**2)<r.params.threshold)return;if(void 0===n.isScrolling){let e;r.isHorizontal()&&o.currentY===o.startY||r.isVertical()&&o.currentX===o.startX?n.isScrolling=!1:m*m+v*v>=25&&(e=180*Math.atan2(Math.abs(v),Math.abs(m))/Math.PI,n.isScrolling=r.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(n.isScrolling&&r.emit("touchMoveOpposite",u),void 0===n.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(n.startMoving=!0)),n.isScrolling||r.zoom&&r.params.zoom&&r.params.zoom.enabled&&n.evCache.length>1)return void(n.isTouched=!1);if(!n.startMoving)return;r.allowClick=!1,!i.cssMode&&u.cancelable&&u.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&u.stopPropagation();let g=r.isHorizontal()?m:v,y=r.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(g=Math.abs(g)*(s?1:-1),y=Math.abs(y)*(s?1:-1)),o.diff=g,g*=i.touchRatio,s&&(g=-g,y=-y);const b=r.touchesDirection;r.swipeDirection=g>0?"prev":"next",r.touchesDirection=y>0?"prev":"next";const w=r.params.loop&&!i.cssMode;if(!n.isMoved){if(w&&r.loopFix({direction:r.swipeDirection}),n.startTranslate=r.getTranslate(),r.setTransition(0),r.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});r.wrapperEl.dispatchEvent(e)}n.allowMomentumBounce=!1,!i.grabCursor||!0!==r.allowSlideNext&&!0!==r.allowSlidePrev||r.setGrabCursor(!0),r.emit("sliderFirstMove",u)}let x;n.isMoved&&b!==r.touchesDirection&&w&&Math.abs(g)>=1&&(r.loopFix({direction:r.swipeDirection,setTranslate:!0}),x=!0),r.emit("sliderMove",u),n.isMoved=!0,n.currentTranslate=g+n.startTranslate;let E=!0,k=i.resistanceRatio;if(i.touchReleaseOnEdges&&(k=0),g>0?(w&&!x&&n.currentTranslate>
172(i.centeredSlides?r.minTranslate()-r.size/2:r.minTranslate())&&r.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>r.minTranslate()&&(E=!1,i.resistance&&(n.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+n.startTranslate+g)**k))):g<0&&(w&&!x&&n.currentTranslate<(i.centeredSlides?r.maxTranslate()+r.size/2:r.maxTranslate())&&r.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:r.slides.length-("auto"===i.slidesPerView?r.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),n.currentTranslate<r.maxTranslate()&&(E=!1,i.resistance&&(n.currentTranslate=r.maxTranslate()+1-(r.maxTranslate()-n.startTranslate-g)**k))),E&&(u.preventedByNestedSwiper=!0),!r.allowSlideNext&&"next"===r.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!r.allowSlidePrev&&"prev"===r.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),r.allowSlidePrev||r.allowSlideNext||(n.currentTranslate=n.startTranslate),i.threshold>0){if(!(Math.abs(g)>i.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);
172if(!n.allowThresholdMove)return n.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,n.currentTranslate=n.startTranslate,void(o.diff=r.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&r.freeMode||i.watchSlidesProgress)&&(r.updateActiveIndex(),r.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&r.freeMode&&r.freeMode.onTouchMove(),r.updateProgress(n.currentTranslate),r.setTranslate(n.currentTranslate))}function D(e){const t=this,r=t.touchEventsData,n=r.evCache.findIndex(t=>t.pointerId===e.pointerId);if(n>=0&&r.evCache.splice(n,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&("pointercancel"!==e.type||!t.browser.isSafari&&!t.browser.isWebView))return;const{params:i,touches:o,rtlTranslate:a,slidesGrid:s,enabled:l}=t;if(!l)return;if(!i.simulateTouch&&"mouse"===e.pointerType)return;let d=e;if(d.originalEvent&&(d=d.originalEvent),r.allowTouchCallbacks&&t.emit("touchEnd",d),r.allowTouchCallbacks=!1,!r.isTouched)return r.isMoved&&i.grabCursor&&t.setGrabCursor(!1),r.isMoved=!1,void(r.startMoving=!1);i.grabCursor&&r.isMoved&&r.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const f=c(),p=f-r.touchStartTime;if(t.allowClick){const e=d.path||d.composedPath&&d.composedPath();t.updateClickedSlide(e&&e[0]||d.target),t.emit("tap click",d),p<300&&f-r.lastClickTime<300&&t.emit("doubleTap doubleClick",d)}if(r.lastClickTime=c(),u(()=>{t.destroyed||(t.allowClick=!0)}),!r.isTouched||!r.isMoved||!t.swipeDirection||0===o.diff||r.currentTranslate===r.startTranslate)return r.isTouched=!1,r.isMoved=!1,void(r.startMoving=!1);let h;if(r.isTouched=!1,r.isMoved=!1,r.startMoving=!1,h=i.followFinger?a?t.translate:-t.translate:-r.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:h});let m=0,v=t.slidesSizesGrid[0];for(let e=0;e<s.length;e+=e<i.slidesPerGroupSkip?1:i.slidesPerGroup){const t=e<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;void 0!==s[e+t]?h>=s[e]&&h<s[e+t]&&(m=e,v=s[e+t]-s[e]):h>=s[e]&&(m=e,v=s[s.length-1]-s[s.length-2])}let g=null,y=null;i.rewind&&(t.isBeginning?y=i.virtual&&i.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const b=(h-s[m])/v,w=m<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(p>i.longSwipesMs){if(!i.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(b>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?g:m+w):t.slideTo(m)),"prev"===t.swipeDirection&&(b>1-i.longSwipesRatio?t.slideTo(m+w):null!==y&&b<0&&Math.abs(b)>i.longSwipesRatio?t.slideTo(y):t.slideTo(m))}else{if(!i.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||d.target!==t.navigation.nextEl&&d.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==g?g:m+w),"prev"===t.swipeDirection&&t.slideTo(null!==y?y:m)):d.target===t.navigation.nextEl?t.slideTo(m+w):t.slideTo(m)}}function L(){const e=this,{params:t,el:r}=e;if(r&&0===r.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:i,snapGrid:o}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=a&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||s?e.params.loop&&!a?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 F(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function B(){const e=this,{wrapperEl:t,rtlTranslate:r,enabled:n}=e;if(!n)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const o=e.maxTranslate()-e.minTranslate();i=0===o?0:(e.translate-e.minTranslate())/o,i!==e.progress&&e.updateProgress(r?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function U(e){const t=this;P(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update(
172)}let V=!1;function z(){}const q=(e,t)=>{const r=a(),{params:n,el:i,wrapperEl:o,device:s}=e,l=!!n.nested,u="on"===t?"addEventListener":"removeEventListener",c=t;i[u]("pointerdown",e.onTouchStart,{passive:!1}),r[u]("pointermove",e.onTouchMove,{passive:!1,capture:l}),r[u]("pointerup",e.onTouchEnd,{passive:!0}),r[u]("pointercancel",e.onTouchEnd,{passive:!0}),r[u]("pointerout",e.onTouchEnd,{passive:!0}),r[u]("pointerleave",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&i[u]("click",e.onClick,!0),n.cssMode&&o[u]("scroll",e.onScroll),n.updateOnWindowResize?e[c](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",L,!0):e[c]("observerUpdate",L,!0),i[u]("load",e.onLoad,{capture:!0})},H=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var G={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function $(e,t){return function(r={}){const n=Object.keys(r)[0],i=r[n];"object"==typeof i&&null!==i?(["navigation","pagination","scrollbar"].indexOf(n)>=0&&!0===e[n]&&(e[n]={auto:!0}),n in e&&"enabled"in i?(!0===e[n]&&(e[n]={enabled:!0}),"object"!=typeof e[n]||"enabled"in e[n]||(e[n].enabled=!0),e[n]||(e[n]={enabled:!1}),p(t,r)):p(t,r)):p(t,r)}}const W={eventsEmitter:O,update:I,translate:{getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:r,translate:n,wrapperEl:i}=this;if(t.virtualTranslate)return r?-n:n;if(t.cssMode)return n;let o=function(e,t="x"){const r=l();let n,i,o;const a=function(e){const t=l();let r;return t.getComputedStyle&&(r=t.getComputedStyle(e,null)),!r&&e.currentStyle&&(r=e.currentStyle),r||(r=e.style),r}(e);return r.WebKitCSSMatrix?(i=a.transform||a.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(e=>e.replace(",",".")).join(", ")),o=new r.WebKitCSSMatrix("none"===i?"":i)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),"x"===t&&(i=r.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(i=r.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),i||0}(i,e);return o+=this.cssOverflowAdjustment(),r&&(o=-o),o||0},setTranslate:function(e,t){const r=this,{rtlTranslate:n,params:i,wrapperEl:o,progress:a}=r;let s,l=0,u=0;r.isHorizontal()?l=n?-e:e:u=e,i.roundLengths&&(l=Math.floor(l),u=Math.floor(u)),r.previousTranslate=r.translate,r.translate=r.isH
172orizontal()?l:u,i.cssMode?o[r.isHorizontal()?"scrollLeft":"scrollTop"]=r.isHorizontal()?-l:-u:i.virtualTranslate||(r.isHorizontal()?l-=r.cssOverflowAdjustment():u-=r.cssOverflowAdjustment(),o.style.transform=`translate3d(${l}px, ${u}px, 0px)`);const c=r.maxTranslate()-r.minTranslate();s=0===c?0:(e-r.minTranslate())/c,s!==a&&r.updateProgress(e),r.emit("setTranslate",r.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,r=!0,n=!0,i){const o=this,{params:a,wrapperEl:s}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const l=o.minTranslate(),u=o.maxTranslate();let c;if(c=n&&e>l?l:n&&e<u?u:e,o.updateProgress(c),a.cssMode){const e=o.isHorizontal();if(0===t)s[e?"scrollLeft":"scrollTop"]=-c;else{if(!o.support.smoothScroll)return m({swiper:o,targetPosition:-c,side:e?"left":"top"}),!0;s.scrollTo({[e?"left":"top"]:-c,behavior:"smooth"})}return!0}return 0===t?(o.setTransition(0),o.setTranslate(c),r&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(c),r&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,r&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){const r=this;r.params.cssMode||(r.wrapperEl.style.transitionDuration=`${e}ms`),r.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const r=this,{params:n}=r;n.cssMode||(n.autoHeight&&r.updateAutoHeight(),N({swiper:r,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){const r=this,{params:n}=r;r.animating=!1,n.cssMode||(r.setTransition(0),N({swiper:r,runCallbacks:e,direction:t,step:"End"}))}},slide:R,loop:{loopCreate:function(e){const t=this,{params:r,slidesEl:n}=t;!r.loop||t.virtual&&t.params.virtual.enabled||(v(n,`.${r.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}),t.loopFix({slideRealIndex:e,direction:r.centeredSlides?void 0:"next"}))},loopFix:function({slideRealIndex:e,slideTo:t=!0,direction:r,setTranslate:n,activeSlideIndex:i,byController:o,byMousewheel:a}={}){const s=this;if(!s.params.loop)return;s.emit("beforeLoopFix");const{slides:l,allowSlidePrev:u,allowSlideNext:c,slidesEl:d,params:f}=s;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&f.virtual.enabled)return t&&(f.centeredSlides||0!==s.snapIndex?f.centeredSlides&&s.snapIndex<f.slidesPerView?s.slideTo(s.virtual.slides.length+s.snapIndex,0,!1,!0):s.snapIndex===s.snapGrid.length-1&&s.slideTo(s.virtual.slidesBefore,0,!1,!0):s.slideTo(s.virtual.slides.length,0,!1,!0)),s.allowSlidePrev=u,s.allowSlideNext=c,void s.emit("loopFix");const p="auto"===f.slidesPerView?s.slidesPerViewDynamic():Math.ceil(parseFloat(f.slidesPerView,10));let h=f.loopedSlides||p;h%f.slidesPerGroup!==0&&(h+=f.slidesPerGroup-h%f.slidesPerGroup),s.loopedSlides=h;const m=[],v=[];let g=s.activeIndex;void 0===i?i=s.getSlideIndex(s.slides.filter(e=>e.classList.contains(f.slideActiveClass))[0]):g=i;const y="next"===r||!r,b="prev"===r||!r;let w=0,x=0;if(i<h){w=Math.max(h-i,f.slidesPerGroup);for(let e=0;e<h-i;e+=1){const t=e-Math.floor(e/l.length)*l.length;m.push(l.length-t-1)}}else if(i>s.slides.length-2*h){x=Math.max(i-(s.slides.length-2*h),f.slidesPerGroup);for(let e=0;e<x;e+=1){const t=e-Math.floor(e/l.length)*l.length;v.push(t)}}if(b&&m.forEach(e=>{s.slides[e].swiperLoopMoveDOM=!0,d.prepend(s.slides[e]),s.slides[e].swiperLoopMoveDOM=!1}),y&&v.forEach(e=>{s.slides[e].swiperLoopMoveDOM=!0,d.append(s.slides[e]),s.slides[e].swiperLoopMoveDOM=!1}),s.recalcSlides(),"auto"===f.slidesPerView&&s.updateSlides(),f.watchSlidesProgress&&s.updateSlidesOffset(),t)if(m.length>0&&b)if(void 0===e){const e=s.slidesGrid[g],t=s.slidesGrid[g+w]-e;a?s.setTranslate(s.translate-t):(s.slideTo(g+w,0,!1,!0),n&&(s.touches[s.isHorizontal()?"startX":"startY"]+=t))}else n&&s.slideToLoop(e,0,!1,!0);else if(v.length>0&&y)if(void 0===e){const e=s.slidesGrid[g],t=s.slidesGrid[g-x]-e;a?s.setTranslate(s.translate-t):(s.slideTo(g-x,0,!1,!0),n&&(s.touches[s.isHorizontal()?"startX":"startY"]+=t))}else s.slideToLoop(e,0,!1,!0);if(s.allowSlidePrev=u,s.allowSlideNext=c,s.controller&&s.controller.control&&!o){const t={slideRealIndex:e,slideTo:!1,direction:r,setTranslate:n,activeSlideIndex:i,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(e
vendor: 5,549 bytes, line 172
172=>{!e.destroyed&&e.params.loop&&e.loopFix(t)}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix(t)}s.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:r}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const n=[];e.slides.forEach(e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;n[t]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),n.forEach(e=>{r.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}},grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const 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(){const 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(){const e=this,t=a(),{params:r}=e;e.onTouchStart=j.bind(e),e.onTouchMove=M.bind(e),e.onTouchEnd=D.bind(e),r.cssMode&&(e.onScroll=B.bind(e)),e.onClick=F.bind(e),e.onLoad=U.bind(e),V||(t.addEventListener("touchstart",z),V=!0),q(e,"on")},detachEvents:function(){q(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:r,params:n,el:i}=e,o=n.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const a=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;const s=(a in o?o[a]:void 0)||e.originalParams,l=H(e,n),u=H(e,s),c=n.enabled;l&&!u?(i.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),e.emitContainerClasses()):!l&&u&&(i.classList.add(`${n.containerModifierClass}grid`),(s.grid.fill&&"column"===s.grid.fill||!s.grid.fill&&"column"===n.grid.fill)&&i.classList.add(`${n.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===s[t])return;const r=n[t]&&n[t].enabled,i=s[t]&&s[t].enabled;r&&!i&&e[t].disable(),!r&&i&&e[t].enable()});const d=s.direction&&s.direction!==n.direction,f=n.loop&&(s.slidesPerView!==n.slidesPerView||d);d&&r&&e.changeDirection(),p(e.params,s);const h=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),c&&!h?e.disable():!c&&h&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",s),f&&r&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",s)},getBreakpoint:function(e,t="window",r){if(!e||"container"===t&&!r)return;let n=!1;const i=l(),o="window"===t?i.innerHeight:r.clientHeight,a=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}});a.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<a.length;e+=1){const{point:o,value:s}=a[e];"window"===t?i.matchMedia(`(min-width: ${s}px)`).matches&&(n=o):s<=r.clientWidth&&(n=o)}return n||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:r}=e,{slidesOffsetBefore:n}=r;if(n){const t=e.slides.length-1,r=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*n;e.isLocked=e.size>r}else e.isLocked=1===e.snapGrid.length;!0===r.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===r.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:r,rtl:n,el:i,device:o}=e,a=function(e,t){const 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",r.direction,{"free-mode":e.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:n},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&"column"===r.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);t.push(...a),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e.classList.remove(...t),this.emitContainerClasses()}}},Z={};class Q{constructor(...e){let t,r;1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?r=e[0]:[t,r]=e,r||(r={}),r=p({},r),t&&!r.el&&(r.el=t);const n=a();if(r.el&&"string"==typeof r.el&&n.querySelectorAll(r.el).length>1){const e=[];return n.querySelectorAll(r.el).forEach(t=>{const n=p({},r,{el:t});e.push(new Q(n))}),e}const i=this;i.__swiper__=!0,i.support=C(),i.device=function(e={}){return S||(S=function({userAgent:e}={}){const t=C(),r=l(),n=r.navigator.platform,i=e||r.navigator.userAgent,o={ios:!1,android:!1},a=r.screen.width,s=r.screen.height,u=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad).*OS\s([\d_]+)/);const d=i.match(/(iPod)(.*OS\s([\d_]+))?/),f=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===n;let h="MacIntel"===n;return!c&&h&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${s}`)>
172=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),h=!1),u&&!p&&(o.os="android",o.android=!0),(c||f||d)&&(o.os="ios",o.ios=!0),o}(e)),S}({userAgent:r.userAgent}),i.browser=(_||(_=function(){const e=l();let t=!1;function r(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(r()){const r=String(e.navigator.userAgent);if(r.includes("Version/")){const[e,n]=r.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));t=e<16||16===e&&n<2}}return{isSafari:t||r(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),_),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],r.modules&&Array.isArray(r.modules)&&i.modules.push(...r.modules);const o={};i.modules.forEach(e=>{e({params:r,swiper:i,extendParams:$(r,o),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const s=p({},G,o);return i.params=p({},s,Z,r),i.originalParams=p({},i.params),i.passedParams=p({}
172,r),i.params&&i.params.on&&Object.keys(i.params.on).forEach(e=>{i.on(e,i.params.on[e])}),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return"horizontal"===i.params.direction},isVertical(){return"vertical"===i.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.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:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getSlideIndex(e){const{slidesEl:t,params:r}=this,n=b(v(t,`.${r.slideClass}, swiper-slide`)[0]);return b(e)-n}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(t=>1*t.getAttribute("data-swiper-slide-index")===e)[0])}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=v(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const r=this;e=Math.min(Math.max(e,0),1);const n=r.minTranslate(),i=(r.maxTranslate()-n)*e+n;r.translateTo(i,void 0===t?0:t),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(r=>{const n=e.getSlideClasses(r);t.push({slideEl:r,classNames:n}),e.emit("_slideClass",r,n)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:r,slides:n,slidesGrid:i,slidesSizesGrid:o,size:a,activeIndex:s}=this;let l=1;if(r.centeredSlides){let e,t=n[s]?n[s].swiperSlideSize:0;for(let r=s+1;r<n.length;r+=1)n[r]&&!e&&(t+=n[r].swiperSlideSize,l+=1,t>a&&(e=!0));for(let r=s-1;r>=0;r-=1)n[r]&&!e&&(t+=n[r].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=s+1;e<n.length;e+=1)(t?i[e]+o[e]-i[s]<a:i[e]-i[s]<a)&&(l+=1);else for(let e=s-1;e>=0;e-=1)i[s]-i[e]<a&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:r}=e;function n(){const t=e.rtlTranslate?-1*e.translate:e.translate,r=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(r),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(r.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&P(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),r.freeMode&&r.freeMode.enabled&&!r.cssMode)n(),r.autoHeight&&e.updateAutoHeight();else{if(("auto"===r.slidesPerView||r.slidesPerView>1)&&e.isEnd&&!r.centeredSlides){const t=e.virtual&&r.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||n()}r.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const r=this,n=r.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e||(r.el.classList.remove(`${r.params.containerModifierClass}${n}`),r.el.classList.add(`${r.params.containerModifierClass}${e}`),r.emitContainerClasses(),r.params.direction=e,r.slides.forEac
vendor: 4,647 bytes, line 172
172h(t=>{"vertical"===e?t.style.width="":t.style.height=""}),r.emit("changeDirection"),t&&r.update()),r}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const 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.shadowEl&&(t.isElement=!0);const n=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(n()):v(r,n())[0];return!i&&t.params.createElements&&(i=g("div",t.params.wrapperClass),r.append(i),v(r,`.${t.params.slideClass}`).forEach(e=>{i.append(e)})),Object.assign(t,{el:r,wrapperEl:i,slidesEl:t.isElement?r:i,mounted:!0,rtl:"rtl"===r.dir.toLowerCase()||"rtl"===y(r,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===r.dir.toLowerCase()||"rtl"===y(r,"direction")),wrongRTL:"-webkit-box"===y(i,"display")}),!0}init(e){const t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(e=>{e.complete?P(t,e):e.addEventListener("load",e=>{P(t,e.target)})}),A(t),t.initialized=!0,A(t),t.emit("init"),t.emit("afterInit")),t}destroy(e=!0,t=!0){const r=this,{params:n,el:i,wrapperEl:o,slides:a}=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"),a&&a.length&&a.forEach(e=>{e.classList.remove(n.slideVisibleClass,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,function(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}(r)),r.destroyed=!0),null}static extendDefaults(e){p(Z,e)}static get extendedDefaults(){return Z}static get defaults(){return G}static installModule(e){Q.prototype.__modules__||(Q.prototype.__modules__=[]);const t=Q.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>Q.installModule(e)),Q):(Q.installModule(e),Q)}}Object.keys(W).forEach(e=>{Object.keys(W[e]).forEach(t=>{Q.prototype[t]=W[e][t]})}),Q.use([function({swiper:e,on:t,emit:r}){const n=l();let i=null,o=null;const a=()=>{e&&!e.destroyed&&e.initialized&&(r("beforeResize"),r("resize"))},s=()=>{e&&!e.destroyed&&e.initialized&&r("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==n.ResizeObserver?e&&!e.destroyed&&e.initialized&&(i=new ResizeObserver(t=>{o=n.requestAnimationFrame(()=>{const{width:r,height:n}=e;let i=r,o=n;t.forEach(({contentBoxSize:t,contentRect:r,target:n})=>{n&&n!==e.el||(i=r?r.width:(t[0]||t).inlineSize,o=r?r.height:(t[0]||t).blockSize)}),i===r&&o===n||a()})}),i.observe(e.el)):(n.addEventListener("resize",a),n.addEventListener("orientationchange",s))}),t("destroy",()=>{o&&n.cancelAnimationFrame(o),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null),n.removeEventListener("resize",a),n.removeEventListener("orientationchange",s)})},function({swiper:e,extendParams:t,on:r,emit:n}){const i=[],o=l(),a=(t,r={})=>{const a=new(o.MutationObserver||o.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(1===t.length)return void n("observerUpdate",t[0]);const r=function(){n("observerUpdate",t[0])};o.requestAnimationFrame?o.requestAnimationFrame(r):o.setTimeout(r,0)});a.observe(t,{attributes:void 0===r.attributes||r.attributes,childList:void 0===r.childList||r.childList,characterData:void 0===r.characterData||r.characterData}),i.push(a)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=w(e.el);for(let e=0;e<t.length;e+=1)a(t[e])}a(e.el,{childList:e.params.observeSlideChildren}),a(e.wrapperEl,{attributes:!1})}}),r("destroy",()=>
172{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)})}]);var Y=Q;function K(e=""){return`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function J({swiper:e,extendParams:t,on:r,emit:n}){const i="swiper-pagination";let o;t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let a=0;const s=e=>(Array.isArray(e)||(e=[e].filter(e=>!!e)),e);function l(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function u(t,r){const{bulletActiveClass:n}=e.params.pagination;t&&(t=t[("prev"===r?"previous":"next")+"ElementSibling"])&&(t.classList.add(`${n}-${r}`),(t=t[("prev"===r?"previous":"next")+"ElementSibling"])&&t.classList.add(`${n}-${r}-${r}`))}function c(t){const r=t.target.closest(K(e.params.pagination.bulletClass));if(!r)return;t.preventDefault();const n=b(r)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===n)return;const t=e.getSlideIndexByData(n),r=e.getSlideIndexByData(e.realIndex);t>e.slides.length-e.loopedSlides&&e.loopFix({direction:t>r?"next":"prev",activeSlideIndex:t,slideTo:!1}),e.slideToLoop(n)}else e.slideTo(n)}function d(){const t=e.rtl,r=e.params.pagination;if(l())return;let i,c,d=e.pagination.el;d=s(d);const f=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,p=e.params.loop?Math.ceil(f/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(c=e.previousRealIndex||0,i=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):void 0!==e.snapIndex?(i=e.snapIndex,c=e.previousSnapIndex):(c=e.previousIndex||0,i=e.activeIndex||0),"bullets"===r.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const n=e.pagination.bullets;let s,l,f;if(r.dynamicBullets&&(o=E(n[0],e.isHorizontal()?"width":"height",!0),d.forEach(t=>{t.style[e.isHorizontal()?"width":"height"]=o*(r.dynamicMainBullets+4)+"px"}),r.dynamicMainBullets>1&&void 0!==c&&(a+=i-(c||0),a>r.dynamicMainBullets-1?a=r.dynamicMainBullets-1:a<0&&(a=0)),s=Math.max(i-a,0),l=s+(Math.min(n.length,r.dynamicMainBullets)-1),f=(l+s)/2),n.forEach(e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${r.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),d.length>1)n.forEach(t=>{const n=b(t);n===i?t.classList.add(...r.bulletActiveClass.split(" ")):e.isElement&&t.setAttribute("part","bullet"),r.dynamicBullets&&(n>=s&&n<=l&&t.classList.add(...`${r.bulletActiveClass}-main`.split(" ")),n===s&&u(t,"prev"),n===l&&u(t,"next"))});else{const t=n[i];if(t&&t.classList.add(...r.bulletActiveClass.split(" ")),e.isElement&&n.forEach((e,t)=>{e.setAttribute("part",t===i?"bullet-active":"bullet")}),r.dynamicBullets){const e=n[s],t=n[l];for(let e=s;e<=l;e+=1)n[e]&&n[e].classList.add(...`${r.bulletActiveClass}-main`.split(" "));u(e,"prev"),u(t,"next")}}if(r.dynamicBullets){const i=Math.min(n.length,r.dynamicMainBullets+4),a=(o*i-o)/2-f*o,s=t?"right":"left";n.forEach(t=>{t.style[e.isHorizontal()?s:"top"]=`${a}px`})}}d.forEach((t,o)=>{if("fraction"===r.type&&(t.querySelectorAll(K(r.currentClass)).forEach(e=>{e.textContent=r.formatFractionCurrent(i+1)}),t.querySelectorAll(K(r.totalClass)).forEach(e=>{e.textContent=r.formatFractionTotal(p)})),"progressbar"===r.type){let n;n=r.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const o=(i+1)/p;let a=1,s=1;"horizontal"===n?a=o:s=o,t.querySelectorAll(K(r.progressbarFillClass)).forEac
172h(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${a}) scaleY(${s})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===r.type&&r.renderCustom?(t.innerHTML=r.renderCustom(e,i+1,p),0===o&&n("paginationRender",t)):(0===o&&n("paginationRender",t),n("paginationUpdate",t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](r.lockClass)})}function f(){const t=e.params.pagination;if(l())return;const r=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let i=e.pagination.el;i=s(i);let o="";if("bullets"===t.type){let n=e.params.loop?Math.ceil(r/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&n>r&&(n=r);for(let r=0;r<n;r+=1)t.renderBullet?o+=t.renderBullet.call(e,r,t.bulletClass):o+=`<${t.bulletElement} ${e.isElement?'part="bullet"':""} class="${t.bulletClass}"></${t.bulletElement}>`}"fraction"===t.type&&(o=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),"progressbar"===t.type&&(o=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],i.forEach(r=>{"custom"!==t.type&&(r.innerHTML=o||""),"bullets"===t.type&&e.pagination.bullets.push(...r.querySelectorAll(K(t.bulletClass)))}),"custom"!==t.type&&n("paginationRender",i[0])}function p(){e.params.pagination=function(e,t,r,n){return e.params.createElements&&Object.keys(n).forEach(i=>{if(!r[i]&&!0===r.auto){let o=v(e.el,`.${n[i]}`)[0];o||(o=g("div",n[i]),o.className=n[i],e.el.append(o)),r[i]=o,t[i]=o}}),r}(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let r;"string"==typeof t.el&&e.isElement&&(r=e.el.shadowRoot.querySelector(t.el)),r||"string"!=typeof t.el||(r=[...document.querySelectorAll(t.el)]),r||(r=t.el),r&&0!==r.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(r)&&r.length>1&&(r=[...e.el.querySelectorAll(t.el)],r.length>1&&(r=r.filter(t=>w(t,".swiper")[0]===e.el)[0])),Array.isArray(r)&&1===r.length&&(r=r[0]),Object.assign(e.pagination,{el:r}),r=s(r),r.forEach(r=>{"bullets"===t.type&&t.clickable&&r.classList.add(t.clickableClass),r.classList.add(t.modifierClass+t.type),r.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(r.classList.add(`${t.modifierClass}${t.type}-dynamic`),a=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&r.classList.add(t.progressbarOppositeClass),t.clickable&&r.addEventListener("click",c),e.enabled||r.classList.add(t.lockClass)}))}function h(){const t=e.params.pagination;if(l())return;let r=e.pagination.el;r&&(r=s(r),r.forEach(r=>{r.classList.remove(t.hiddenClass),r.classList.remove(t.modifierClass+t.type),r.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&r.removeEventListener("click",c)})),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const t=e.params.pagination;let{el:r}=e.pagination;r=s(r),r.forEach(r=>{r.classList.remove(t.horizontalClass,t.verticalClass),r.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),r("init",()=>{!1===e.params.pagination.enabled?m():(p(),f(),d())}),r("activeIndexChange",()=>{void 0===e.snapIndex&&d()}),r("snapIndexChange",()=>{d()}),r("snapGridLengthChange",()=>{f(),d()}),r("destroy",()=>{h()}),r("enable disable",()=>{let{el:t}=e.pagination;t&&(t=s(t),t.forEach(t=>t.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),r("lock unlock",()=>{d()}),r("click",(t,r)=>{const i=r.target;let{el:o}=e.pagination;if(Array.isArray(o)||(o=[o].filter(e=>!!e)),e.params.pagination.el&&e.params.pagination.hideOnClick&&o&&o.length>0&&!i.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&i===e.navigation.nextEl||e.navigation.prevEl&&i===e.navigation.prevEl))return;const t=o[0].classList.contains(e.params.pagination.hiddenClass);n(!0===t?"paginationShow":"paginationHide"),o.forEach(t=>t.classList.toggle(e.params.pagination.hiddenClass))}});const m=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=s(t),t.forEach(t=>t.classList.add(e.params.pagination.paginationDisabledClass))),h()};Object.assign(e.pagination,{enable:()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=s(t),t.forEach(t=>t.classList.remove(e.params.pagination.paginationDisabledClass))),p(),f(),d()},disable:m,render:f,update:d,init:p,destroy:h})}function X({swiper:e,extendParams:t,on:r}){function n(e,t){const r=function(){let e,t,r;return(n,i)=>{for(t=-1,e=n.length;e-t>1;)r=e+t>>1,n[r]<=i?t=r:e=r;return e}}();let n,i;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(i=r(this.x,e),n=i-1,(e-this.x[n])*(this.y[i]-this.y[n])/(this.x[i]-this.x[n])+this.y[n]):0},this}function i(){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)}t({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0},r("beforeInit",()=>{if("undefined"!=typeof window&&("string"==typeof e.params.controller.control||e.params.controller.control instanceof HTMLElement)){const t=document.querySelector(e.params.controller.control);if(t&&t.swiper)e.controller.control=t.swiper;else if(t){const r=n=>
172{e.controller.control=n.detail[0],e.update(),t.removeEventListener("init",r)};t.addEventListener("init",r)}return}e.controller.control=e.params.controller.control}),r("update",()=>{i()}),r("resize",()=>{i()}),r("observerUpdate",()=>{i()}),r("setTranslate",(t,r,n)=>{e.controller.control&&!e.controller.control.destroyed&&e.controller.setTranslate(r,n)}),r("setTransition",(t,r,n)=>{e.controller.control&&!e.controller.control.destroyed&&e.controller.setTransition(r,n)}),Object.assign(e.controller,{setTranslate:function(t,r){const i=e.controller.control;let o,a;const s=e.constructor;function l(t){if(t.destroyed)return;const r=e.rtlTranslate?-e.translate:e.translate;"slide"===e.params.controller.by&&(function(t){e.controller.spline=e.params.loop?new n(e.slidesGrid,t.slidesGrid):new n(e.snapGrid,t.snapGrid)}(t),a=-e.controller.spline.interpolate(-r)),a&&"container"!==e.params.controller.by||(o=(t.maxTranslate()-t.minTranslate())/(e.maxTranslate()-e.minTranslate()),!Number.isNaN(o)&&Number.isFinite(o)||(o=1),a=(r-e.minTranslate())*o+t.minTranslate()),e.params.controller.inverse&&(a=t.maxTranslate()-a),t.updateProgress(a),t.setTranslate(a,e),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(i))for(let e=0;e<i.length;e+=1)i[e]!==r&&i[e]instanceof s&&l(i[e]);else i instanceof s&&r!==i&&l(i)},setTransition:function(t,r){const n=e.constructor,i=e.controller.control;let o;function a(r){r.destroyed||(r.setTransition(t,e),0!==t&&(r.transitionStart(),r.params.autoHeight&&u(()=>{r.updateAutoHeight()}),x(r.wrapperEl,()=>{i&&r.transitionEnd()})))}if(Array.isArray(i))for(o=0;o<i.length;o+=1)i[o]!==r&&i[o]instanceof n&&a(i[o]);else i instanceof n&&r!==i&&a(i)}})}function ee({swiper:e,extendParams:t,emit:r,once:n}){t({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(e,{freeMode:{onTouchStart:function(){if(e.params.cssMode)return;const t=e.getTranslate();e.setTranslate(t),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})},onTouchMove:function(){if(e.params.cssMode)return;const{touchEventsData:t,touches:r}=e;0===t.velocities.length&&t.velocities.push({position:r[e.isHorizontal()?"startX":"startY"],time:t.touchStartTime}),t.velocities.push({position:r[e.isHorizontal()?"currentX":"currentY"],time:c()})},onTouchEnd:function({currentPos:t}){if(e.params.cssMode)return;const{params:i,wrapperEl:o,rtlTranslate:a,snapGrid:s,touchEventsData:l}=e,u=c()-l.touchStartTime;if(t<-e.minTranslate())e.slideTo(e.activeIndex);else if(t>-e.maxTranslate())e.slides.length<s.length?e.slideTo(s.length-1):e.slideTo(e.slides.length-1);else{if(i.freeMode.momentum){if(l.velocities.length>1){const t=l.velocities.pop(),r=l.velocities.pop(),n=t.position-r.position,o=t.time-r.time;e.velocity=n/o,e.velocity/=2,Math.abs(e.velocity)<i.freeMode.minimumVelocity&&(e.velocity=0),(o>150||c()-t.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=i.freeMode.momentumVelocityRatio,l.velocities.length=0;let t=1e3*i.freeMode.momentumRatio;const u=e.velocity*t;let d=e.translate+u;a&&(d=-d);let f,p=!1;const h=20*Math.abs(e.velocity)*i.freeMode.momentumBounceRatio;let m;if(d<e.maxTranslate())i.freeMode.momentumBounce?(d+e.maxTranslate()<-h&&(d=e.maxTranslate()-h),f=e.maxTranslate(),p=!0,l.allowMomentumBounce=!0):d=e.maxTranslate(),i.loop&&i.centeredSlides&&(m=!0);else if(d>e.minTranslate())i.freeMode.momentumBounce?(d-e.minTranslate()>h&&(d=e.minTranslate()+h),f=e.minTranslate(),p=!0,l.allowMomentumBounce=!0):d=e.minTranslate(),i.loop&&i.centeredSlides&&(m=!0);else if(i.freeMode.sticky){let t;for(let e=0;e<s.length;e+=1)if(s[e]>-d){t=e;break}d=Math.abs(s[t]-d)<Math.abs(s[t-1]-d)||"next"===e.swipeDirection?s[t]:s[t-1],d=-d}if(m&&n("transitionEnd",()=>{e.loopFix()}),0!==e.velocity){if(t=a?Math.abs((-d-e.translate)/e.velocity):Math.abs((d-e.translate)/e.velocity),i.freeMode.sticky){const r=Math.abs((a?-d:d)-e.translate),n=e.slidesSizesGrid[e.activeIndex];t=r<n?i.speed:r<2*n?1.5*i.speed:2.5*i.speed}}else if(i.freeMode.sticky)return void e.slideToClosest();i.freeMode.momentumBounce&&p?(e.updateProgress(f),e.setTransition(t),e.setTranslate(d),e.transitionStart(!0,e.swipeDirection),e.animating=!0,x(o,()=>{e&&!e.destroyed&&l.allowMomentumBounce&&(r("momentumBounce"),e.setTransition(i.speed),setTimeout(()=>{e.setTranslate(f),x(o,()=>{e&&!e.destroyed&&e.transitionEnd()})},0))})):e.velocity?(r("_freeModeNoMomentumRelease"),e.updateProgress(d),e.setTransition(t),e.setTranslate(d),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,x(o,()=>{e&&!e.destroyed&&e.transitionEnd()}))):e.updateProgress(d),e.updateActiveIndex(),e.updateSlidesClasses()}else{if(i.freeMode.sticky)return void e.slideToClosest();i.freeMode&&r("_freeModeNoMomentumRelease")}(!i.freeMode.momentum||u>=i.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}}}})}},98773:function(e,t,r){"use strict";function n(e){var t=function(e){var t=e.theme,r=e.prefix,n={nextPart:new Map,validators:[]},i=function(e,t){return t?e.map(function(e){return[e[0],e[1].map(function(e){return"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(function(e){var r=e[0],n=e[1];return[t+r,n]})):e})]}):e}(Object.entries(e.classGroups),r);
172return i.forEach(function(e){var r=e[0];a(e[1],n,r,t)}),n}(e),r=e.conflictingClassGroups,n=e.conflictingClassGroupModifiers,s=void 0===n?{}:n;return{getClassGroupId:function(e){var r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),i(r,t)||function(e){if(o.test(e)){var t=o.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}(e)},getConflictingClassGroupIds:function(e,t){var n=r[e]||[];return t&&s[e]?[].concat(n,s[e]):n}}}function i(e,t){if(0===e.length)return t.classGroupId;var r=e[0],n=t.nextPart.get(r),o=n?i(e.slice(1),n):void 0;if(o)return o;if(0!==t.validators.length){var a=e.join("-");return t.validators.find(function(e){return(0,e.validator)(a)})?.classGroupId}}r.d(t,{m:function(){return V}});var o=/^\[(.+)\]$/;function a(e,t,r,n){e.forEach(function(e){if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void a(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach(function(e){var i=e[0];a(e[1],s(t,i),r,n)})}else(""===e?t:s(t,e)).classGroupId=r})}function s(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}function l(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,n=new Map;function i(i,o){r.set(i,o),++t>e&&(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)}}}function u(e){var t=e.separator||":",r=1===t.length,n=t[0],i=t.length;return function(e){for(var o,a=[],s=0,l=0,u=0;u<e.length;u++){var c=e[u];if(0===s){if(c===n&&(r||e.slice(u,u+i)===t)){a.push(e.slice(l,u)),l=u+i;continue}if("/"===c){o=u;continue}}"["===c?s++:"]"===c&&s--}var d=0===a.length?e:e.substring(l),f=d.startsWith("!");return{modifiers:a,hasImportantModifier:f,baseClassName:f?d.substring(1):d,maybePostfixModifierPosition:o&&o>l?o-l:void 0}}}var c=/\s+/;function d(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=f(e))&&(n&&(n+=" "),n+=t);return n}function f(e){if("string"==typeof e)return e;for(var t,r="",n=0;n<e.length;n++)e[n]&&(t=f(e[n]))&&(r&&(r+=" "),r+=t);return r}function p(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,o,a,s=function(e){var r=t[0],c=t.slice(1).reduce(function(e,t){return t(e)},r());return i=function(e){return{cache:l(e.cacheSize),splitModifiers:u(e),...n(e)}}(c),o=i.cache.get,a=i.cache.set,s=f,f(e)};function f(e){var t=o(e);if(t)return t;var r=function(e,t){var r=t.splitModifiers,n=t.getClassGroupId,i=t.getConflictingClassGroupIds,o=new Set;return e.trim().split(c).map(function(e){var t=r(e),i=t.modifiers,o=t.hasImportantModifier,a=t.baseClassName,s=t.maybePostfixModifierPosition,l=n(s?a.substring(0,s):a),u=Boolean(s);if(!l){if(!s)return{isTailwindClass:!1,originalClassName:e};if(!(l=n(a)))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}(i).join(":");return{isTailwindClass:!0,modifierId:o?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,a=t+r;return!o.has(a)&&(o.add(a),i(r,n).forEach(function(e){return o.add(t+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" ")}(e,i);return a(e,r),r}return function(){return s(d.apply(null,arguments))}}function h(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var m=/^\[(?:([a-z-]+):)?(.+)\]$/i,v=/^\d+\/\d+$/,g=new Set(["px","full","screen"]),y=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,b=/\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$/,w=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function x(e){return O(e)||g.has(e)||v.test(e)||E(e)}function E(e){return j(e,"length",M)}function k(e){return j(e,"size",D)}function S(e){return j(e,"position",D)}function _(e){return j(e,"url",L)}function C(e){return j(e,"number",O)}function O(e){return!Number.isNaN(Number(e))}function P(e){return e.endsWith("%")&&O(e.slice(0,-1))}function T(e){return F(e)||j(e,"number",F)}function A(e){return m.test(e)}function I(){return!0}function N(e){return y.test(e)}function R(e){return j(e,"",B)}function j(e,t,r){var n=m.exec(e);return!!n&&(n[1]?n[1]===t:r(n[2]))}function M(e){return b.test(e)}function D(){return!1}function L(e){return e.startsWith("url(")}function F(e){return Number.isInteger(Number(e))}function B(e){return w.test(e)}function U(){var e=h("colors"),t=h("spacing"),r=h("blur"),n=h("brightness"),i=h("borderColor"),o=h("borderRadius"),a=h("borderSpacing"),s=h("borderWidth"),l=h("contrast"),u=h("grayscale"),c=h("hueRotate"),d=h("invert"),f=h("gap"),p=h("gradientColorStops"),m=h("gradientColorStopPositions"),v=h("inset"),g=h("margin"),y=h("opacity"),b=h("padding"),w=h("saturate"),j=h("scale"),M=h("sepia"),D=h("skew"),L=h("space"),F=h("translate"),B=function(){return["auto",A,t]},U=function(){return[A,t]},V=function(){return["",x]},z=function(){return["auto",O,A]},q=function(){return["","0",A]},H=function(){return[O,C]},G=function(){return[O,A]};return{cacheSize:500,theme:{colors:[I],spacing:[x],blur:["none","",
vendor: 6,883 bytes, line 172
172N,A],brightness:H(),borderColor:[e],borderRadius:["none","","full",N,A],borderSpacing:U(),borderWidth:V(),contrast:H(),grayscale:q(),hueRotate:G(),invert:q(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[P,E],inset:B(),margin:B(),opacity:H(),padding:U(),saturate:H(),scale:H(),sepia:q(),skew:G(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",A]}],container:["container"],columns:[{columns:[N]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"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(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[A])}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",T]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",A]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",T]}],"grid-cols":[{"grid-cols":[I]}],"col-start-end":[{col:["auto",{span:["full",T]},A]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[I]}],"row-start-end":[{row:["auto",{span:[T]},A]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",A]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",A]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(["start","end","center","between","around","evenly","stretch"])}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(["start","end","center","between","around","evenly","stretch"],["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:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[L]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",A,t]}],"min-w":[{"min-w":["min","max","fit",A,x]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[N]},N,A]}],h:[{h:[A,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",A,x]}],"max-h":[{"max-h":[A,t,"min","max","fit"]}],"font-size":[{text:["base",N,E]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",C]}],"font-family":[{font:[I]}],"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",A]}],"line-clamp":[{"line-clamp":["none",O,C]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",A,x]}],"list-image":[{"list-image":["none",A]}],"list-style-type":[{list:["none","disc","decimal",A]}],"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(["solid","dashed","dotted","double","none"],["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",x]}],"underline-offset":[{"underline-offset":["auto",A,x]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",A]}],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",A]}],"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(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[S])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",k]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},_]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}
172],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[].concat(["solid","dashed","dotted","double","none"],["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}
vendor: 4,325 bytes, line 172
172],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"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(["solid","dashed","dotted","double","none"])}],"outline-offset":[{"outline-offset":[A,x]}],"outline-w":[{outline:[x]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[x]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",N,R]}],"shadow-color":[{shadow:[I]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",N,A]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[M]}],"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":[M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",A]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",A]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",A]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[T,A]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",A]}],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",A]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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"]}
172],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",A]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[x,C]}],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 V=p(U)},61795:function(e,t,r){"use strict";r.d(t,{U6:function(){return f},ej:function(){return s},kG:function(){return l}});var n=r(85556),i="Invariant Violation",o=Object.setPrototypeOf,a=void 0===o?function(e,t){return e.__proto__=t,e}:o,s=function(e){function t(r){void 0===r&&(r=i);var n=e.call(this,"number"==typeof r?i+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=i,a(n,t.prototype),n}return(0,n.ZT)(t,e),t}(Error);function l(e,t){if(!e)throw new s(t)}var u=["debug","log","warn","error","silent"],c=u.indexOf("log");function d(e){return function(){if(u.indexOf(e)>=c)return(console[e]||console.log).apply(console,arguments)}}function f(e){var t=u[c];return c=Math.max(0,u.indexOf(e)),t}!function(e){e.debug=d("debug"),e.log=d("log"),e.warn=d("warn"),e.error=d("error")}(l||(l={}))},85556:function(e,t,r){"use strict";r.d(t,{Jh:function(){return l},ZT:function(){return i},_T:function(){return a},ev:function(){return u},mG:function(){return s},pi:function(){return o}});
172var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function s(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function l(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function u(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},4105:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r.d(t,{y:function(){return k}});var a=function(){return"function"==typeof Symbol},s=function(e){return a()&&Boolean(Symbol[e])},l=function(e){return s(e)?Symbol[e]:"@@"+e};a()&&!s("observable")&&(Symbol.observable=Symbol("observable"));var u=l("iterator"),c=l("observable"),d=l("species");function f(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function p(e){var t=e.constructor;
172return void 0!==t&&null===(t=t[d])&&(t=void 0),void 0!==t?t:k}function h(e){return e instanceof k}function m(e){m.log?m.log(e):setTimeout(function(){throw e})}function v(e){Promise.resolve().then(function(){try{e()}catch(e){m(e)}})}function g(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=f(t,"unsubscribe");r&&r.call(t)}}catch(e){m(e)}}function y(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function b(e,t,r){e._state="running";var n=e._observer;try{var i=f(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(y(e),!i)throw r;i.call(n,r);break;case"complete":y(e),i&&i.call(n)}}catch(e){m(e)}"closed"===e._state?g(e):"running"===e._state&&(e._state="ready")}function w(e,t,r){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:r}],void v(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(b(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)})):void b(e,t,r);e._queue.push({type:t,value:r})}}var x=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new E(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(y(this),g(this))},o(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),E=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){w(this._subscription,"next",e)},t.error=function(e){w(this._subscription,"error",e)},t.complete=function(){w(this._subscription,"complete")},o(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),k=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new x(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){n(e),i.unsubscribe()}},error:n,complete:r});else n(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),r()}})},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(p(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(p(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=p(this),n=arguments.length>1,i=!1,o=arguments[1];return new r(function(r){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||n)try{o=e(o,t)}catch(e){return r.error(e)}else o=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(o),r.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=p(this);return new i(function(t){var n,o=0;return function e(a){n=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=p(this);return new r(function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}
172return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[c]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var i=f(t,c);if(i){var o=i.call(t);if(Object(o)!==o)throw new TypeError(o+" is not an object");return h(o)&&o.constructor===r?o:new r(function(e){return o.subscribe(e)})}if(s("iterator")&&(i=f(t,u)))return new r(function(e){v(function(){if(!e.closed){for(var r,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.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))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i.call(t));!(r=o()).done;){var a=r.value;if(e.next(a),e.closed)return}e.complete()}})});if(Array.isArray(t))return new r(function(e){v(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)(function(e){v(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},o(e,null,[{key:d,get:function(){return this}}]),e}();a()&&Object.defineProperty(k,Symbol("extensions"),{value:{symbol:c,hostReportError:m},configurable:!0})},82608:function(e,t,r){"use strict";r.d(t,{Ue:function(){return d}});const n=e=>{let t;const r=new Set,n=(e,n)=>{const i="function"==typeof e?e(t):e;if(!Object.is(i,t)){const e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,o={setState:n,getState:i,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},a=t=e(n,i,o);return o};var i=r(27378),o=r(60626);const{useDebugValue:a}=i,{useSyncExternalStoreWithSelector:s}=o;let l=!1;const u=e=>e,c=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?n(e):n)(e):e,r=(e,r)=>function(e,t=u,r){r&&!l&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),l=!0);const n=s(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return a(n),n}(t,e,r);return Object.assign(r,t),r},d=e=>e?c(e):c}},function(e){e(e.s=31016)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.